aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav HÃ¥llberg2010-06-18 19:39:04 -0700
committerGlenn Morris2010-06-18 19:39:04 -0700
commitd148e8f9bb50a8e8998e9abe05f9e847263e2dbe (patch)
treebb7c832bbd37ddebfe91622135cd41e404ed4303
parentb1a03ef6bfba4296dddc3df1e8f9d54aba3e45e3 (diff)
downloademacs-d148e8f9bb50a8e8998e9abe05f9e847263e2dbe.tar.gz
emacs-d148e8f9bb50a8e8998e9abe05f9e847263e2dbe.zip
* lisp/descr-text.el (describe-char): Avoid trailing whitespace. (Bug#6423)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/descr-text.el5
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 730cf65c8d5..f0e152d3ffe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-06-19 Gustav HÃ¥llberg <gustav@gmail.com> (tiny change)
2
3 * descr-text.el (describe-char): Avoid trailing whitespace. (Bug#6423)
4
12010-06-18 Stefan Monnier <monnier@iro.umontreal.ca> 52010-06-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * emacs-lisp/edebug.el (edebug-read-list): 7 * emacs-lisp/edebug.el (edebug-read-list):
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 218f2a51d7f..735023ceb02 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -618,7 +618,7 @@ as well as widgets, buttons, overlays, and text properties."
618 ,@(if (not eight-bit-p) 618 ,@(if (not eight-bit-p)
619 (let ((unicodedata (describe-char-unicode-data char))) 619 (let ((unicodedata (describe-char-unicode-data char)))
620 (if unicodedata 620 (if unicodedata
621 (cons (list "Unicode data" " ") unicodedata)))))) 621 (cons (list "Unicode data" "") unicodedata))))))
622 (setq max-width (apply 'max (mapcar (lambda (x) 622 (setq max-width (apply 'max (mapcar (lambda (x)
623 (if (cadr x) (length (car x)) 0)) 623 (if (cadr x) (length (car x)) 0))
624 item-list))) 624 item-list)))
@@ -642,7 +642,8 @@ as well as widgets, buttons, overlays, and text properties."
642 (window-width)) 642 (window-width))
643 (insert "\n") 643 (insert "\n")
644 (indent-to (1+ max-width))) 644 (indent-to (1+ max-width)))
645 (insert " " clm))) 645 (unless (zerop (length clm))
646 (insert " " clm))))
646 (insert "\n")))) 647 (insert "\n"))))
647 648
648 (when overlays 649 (when overlays