Commit a2064b09 authored by Miles Bader's avatar Miles Bader
Browse files

lisp/play/cookie1.el (cookie): Work properly when there's only one entry

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-323
parent be1fc9b8
2006-06-21 Miles Bader <miles@gnu.org>
* play/cookie1.el (cookie): Work properly when there's only one entry.
2006-06-21 Nick Roberts <nickrob@snap.net.nz>
 
* progmodes/gdb-ui.el (gdb-exited): Ensure overlay arrow gets killed.
......
;;; cookie1.el --- retrieve random phrases from fortune cookie files
;; Copyright (C) 1993, 2002, 2003, 2004, 2005,
;; Copyright (C) 1993, 2002, 2003, 2004, 2005, 2006,
;; 2006 Free Software Foundation, Inc.
;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
......@@ -75,7 +75,7 @@ When the phrase file is read in, display STARTMSG at the beginning
of load, ENDMSG at the end."
(let ((cookie-vector (cookie-snarf phrase-file startmsg endmsg)))
(shuffle-vector cookie-vector)
(aref cookie-vector 1)))
(aref cookie-vector 0)))
;;;###autoload
(defun cookie-insert (phrase-file &optional count startmsg endmsg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment