# HG changeset patch # User Juanma Barranquero # Date 1140396991 0 # Node ID fef6008cad43108880b591afc46f9c5e852fc0e1 # Parent f01603b6b4ae6939108484aeeef68d8418e725c8 (list-buffers-noselect): Turn also "\n" into a strech spec so it doesn't display as "^J" on the header line when `Buffer-menu-use-header-line' is t. diff -r f01603b6b4ae -r fef6008cad43 lisp/buff-menu.el --- a/lisp/buff-menu.el Mon Feb 20 00:03:15 2006 +0000 +++ b/lisp/buff-menu.el Mon Feb 20 00:56:31 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