From: Glenn Morris <rgm@gnu.org>
To: 30887-done@debbugs.gnu.org
Subject: bug#30887: 27.0.50; fortune-message occupys two lines of height for one line message
Date: Wed, 21 Mar 2018 14:16:10 -0400 [thread overview]
Message-ID: <2plgelcn11.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <m2o9jieezf.fsf@xuchunyang.me> (Xu Chunyang's message of "Wed, 21 Mar 2018 03:14:44 +0800")
Version: 27.1
commit 03a27fa
Date: Wed Mar 21 14:10:05 2018 -0400
* lisp/play/fortune.el (fortune-message):
Avoid trailing newline. (Bug#30887)
diff --git a/lisp/play/fortune.el b/lisp/play/fortune.el
index 74ace06..740f436 100644
--- a/lisp/play/fortune.el
+++ b/lisp/play/fortune.el
@@ -313,6 +313,8 @@ fortune-message
(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
prev parent reply other threads:[~2018-03-21 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-20 19:14 bug#30887: 27.0.50; fortune-message occupys two lines of height for one line message Xu Chunyang
2018-03-21 18:16 ` Glenn Morris [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2plgelcn11.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=30887-done@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.