all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* PATCH: Don't mix faces in Buffer-menu header when Buffer-menu-use-header is nil
@ 2004-06-09 18:10 Francis Litterio
  2004-06-10 20:15 ` Francis Litterio
  0 siblings, 1 reply; 4+ messages in thread
From: Francis Litterio @ 2004-06-09 18:10 UTC (permalink / raw)


The below patch causes the Buffer-menu header to have a consistent face
for all characters when Buffer-menu-use-header is set to nil.  I was
motivated to make this change after setting Buffer-menu-use-header to
nil and noticing that the mixture of text having 'fixed-pitch face with
text having my personal default face (the X windows 6x10 font) made the
header look bad.

I hope the Emacs developer community finds this useful.
--
Francis Litterio
franl@world.std.com
http://world.std.com/~franl/
GPG and PGP public keys available on keyservers.


--- buff-menu.el.~1.66.~	2004-03-31 20:23:36.000000000 -0500
+++ buff-menu.el	2004-06-09 14:09:36.071049600 -0400
@@ -606,7 +606,10 @@
   (let* ((old-buffer (current-buffer))
 	 (standard-output standard-output)
 	 (mode-end (make-string (- Buffer-menu-mode-width 2) ? ))
-	 (header (concat " " (propertize "CRM " 'face 'fixed-pitch)
+	 (header (concat (if Buffer-menu-use-header-line " ")
+			 (if Buffer-menu-use-header-line
+			     (propertize "CRM " 'face 'fixed-pitch)
+			   "CRM ")
 			 (Buffer-menu-buffer+size
 			  (Buffer-menu-make-sort-button "Buffer" 2)
 			  (Buffer-menu-make-sort-button "Size" 3))
@@ -629,7 +632,7 @@
       (erase-buffer)
       (setq standard-output (current-buffer))
       (unless Buffer-menu-use-header-line
-	(insert header (propertize "---" 'face 'fixed-pitch) " ")
+	(insert header "--- ")
 	(insert (Buffer-menu-buffer+size "------" "----"))
 	(insert "  ----" mode-end "----\n")
 	(put-text-property 1 (point) 'intangible t))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-16  1:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-09 18:10 PATCH: Don't mix faces in Buffer-menu header when Buffer-menu-use-header is nil Francis Litterio
2004-06-10 20:15 ` Francis Litterio
2004-06-15 15:28   ` Juri Linkov
2004-06-16  1:34     ` Miles Bader

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.