GNU bug report logs - #6423
[describe-char PATCH 2/2] describe-char: remove superfluous space at end of "Unicode data" line

Previous Next

Package: emacs;

Reported by: Gustav Hållberg <gustav <at> gmail.com>

Date: Mon, 14 Jun 2010 12:49:03 UTC

Severity: minor

Tags: patch

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6423 in the body.
You can then email your comments to 6423 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6423; Package emacs. (Mon, 14 Jun 2010 12:49:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gustav Hållberg <gustav <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 14 Jun 2010 12:49:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gustav Hållberg <gustav <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [describe-char PATCH 2/2] describe-char: remove superfluous space
	at end of "Unicode data" line
Date: Mon, 14 Jun 2010 14:23:50 +0200
This prevents annoying markup if the trailing-whitespace face is used.
---
 lisp/descr-text.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 51f7a77..d66aa88 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -618,7 +618,7 @@ as well as widgets, buttons, overlays, and text properties."
               ,@(if (not eight-bit-p)
                     (let ((unicodedata (describe-char-unicode-data char)))
                       (if unicodedata
-                          (cons (list "Unicode data" " ") unicodedata))))))
+                          (cons (list "Unicode data" "") unicodedata))))))
       (setq max-width (apply 'max (mapcar (lambda (x)
                                             (if (cadr x) (length (car x)) 0))
                                           item-list)))
@@ -642,7 +642,8 @@ as well as widgets, buttons, overlays, and text properties."
                               (window-width))
                       (insert "\n")
                       (indent-to (1+ max-width)))
-                    (insert " " clm)))
+                    (unless (zerop (length clm))
+                      (insert " " clm))))
                 (insert "\n"))))
 
           (when overlays





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Sat, 19 Jun 2010 02:41:01 GMT) Full text and rfc822 format available.

Notification sent to Gustav Hållberg <gustav <at> gmail.com>:
bug acknowledged by developer. (Sat, 19 Jun 2010 02:41:02 GMT) Full text and rfc822 format available.

Message #10 received at 6423-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 6423-done <at> debbugs.gnu.org
Subject: Re: bug#6423: [describe-char PATCH 2/2] describe-char: remove
	superfluous space at end of "Unicode data" line
Date: Fri, 18 Jun 2010 22:40:28 -0400
OK; applied.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 17 Jul 2010 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.