diff options
Diffstat (limited to 'lisp/play/fortune.el')
-rw-r--r-- | lisp/play/fortune.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/play/fortune.el b/lisp/play/fortune.el index 4488bb9c6ec..3c057f41497 100644 --- a/lisp/play/fortune.el +++ b/lisp/play/fortune.el @@ -313,6 +313,8 @@ Optional FILE is a fortune file from which a cookie will be selected." (with-temp-buffer (let ((fortune-buffer-name (current-buffer))) (fortune-in-buffer t file) + ;; Avoid trailing newline. + (if (bolp) (delete-char -1)) (message "%s" (buffer-string))))) ;;;###autoload |