diff lisp/buff-menu.el @ 90314:d1c5430c5bff

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-21 Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 97-112) - Update from CVS - Merge from erc--emacs--0 - Update from CVS: src/regex.c (extend_range_table_work_area): Fix typo. - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 37) - Update from CVS
author Miles Bader <miles@gnu.org>
date Wed, 22 Feb 2006 06:54:10 +0000
parents c5406394f567 fef6008cad43
children a8190f7e546e
line wrap: on
line diff
--- a/lisp/buff-menu.el	Wed Feb 22 06:52:00 2006 +0000
+++ b/lisp/buff-menu.el	Wed Feb 22 06:54:10 2006 +0000
@@ -706,9 +706,9 @@
 	 list desired-point)
     (when Buffer-menu-use-header-line
       (let ((pos 0))
-	;; Turn spaces in the header into stretch specs so they work
-	;; regardless of the header-line face.
-	(while (string-match "[ \t]+" header pos)
+	;; Turn whitespace chars in the header into stretch specs so
+	;; they work regardless of the header-line face.
+	(while (string-match "[ \t\n]+" header pos)
 	  (setq pos (match-end 0))
 	  (put-text-property (match-beginning 0) pos 'display
 			     ;; Assume fixed-size chars in the buffer.
@@ -726,6 +726,7 @@
       (erase-buffer)
       (setq standard-output (current-buffer))
       (unless Buffer-menu-use-header-line
+        ;; Use U+2014 (EM DASH) to underline if possible, else U+002D (HYPHEN-MINUS)
 	(let ((underline (if (char-displayable-p ?—) ?— ?-)))
 	  (insert header
 		  (apply 'string