aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/play/fortune.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/play/fortune.el b/lisp/play/fortune.el
index 740f436711a..e6c9c227c48 100644
--- a/lisp/play/fortune.el
+++ b/lisp/play/fortune.el
@@ -283,8 +283,9 @@ and choose the directory as the fortune-file."
283;;; Display fortune 283;;; Display fortune
284(defun fortune-in-buffer (_interactive &optional file) 284(defun fortune-in-buffer (_interactive &optional file)
285 "Put a fortune cookie in the *fortune* buffer. 285 "Put a fortune cookie in the *fortune* buffer.
286INTERACTIVE is ignored. Optional argument FILE, when supplied, 286Optional argument FILE, when supplied, specifies the file to
287specifies the file to choose the fortune from." 287choose the fortune from."
288 (declare (advertised-calling-convention (&optional file) "27.1"))
288 (let ((fortune-buffer (or (get-buffer fortune-buffer-name) 289 (let ((fortune-buffer (or (get-buffer fortune-buffer-name)
289 (generate-new-buffer fortune-buffer-name))) 290 (generate-new-buffer fortune-buffer-name)))
290 (fort-file (expand-file-name 291 (fort-file (expand-file-name