all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RMAIL-summary mode, label display fix/change
@ 2003-09-28 21:00 Alexander Pohoyda
  0 siblings, 0 replies; only message in thread
From: Alexander Pohoyda @ 2003-09-28 21:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

Hi all,

Currently, lines in RMAIL-summary buffer look like:
   75  25-Sep  some.email@site.com   [50] { admin,} Some header goes here

I don't know if you consider this a bug, but I prefer it this way:
   75  25-Sep  some.email@site.com   [50] { admin } Some header goes here

Please have a look at the attached patch, which is made against current
CVS sources.
Thank you very much.

-- 
Alexander Pohoyda <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44


[-- Attachment #2: rmailsum.el.diff --]
[-- Type: text/x-patch, Size: 938 bytes --]


--- /workspace/emacs/lisp/mail/rmailsum.el	Wed Sep  3 22:11:40 2003
+++ /usr/local/share/emacs/21.3.50/lisp/mail/rmailsum.el	Mon Sep 22 22:06:12 2003
@@ -51,7 +51,7 @@
     ("^.....-.*" . font-lock-type-face)				; Unread.
     ;; Neither of the below will be highlighted if either of the above are:
     ("^.....[^D-] \\(......\\)" 1 font-lock-keyword-face)	; Date.
-    ("{ \\([^\n}]+\\),}" 1 font-lock-comment-face))		; Labels.
+    ("{ \\([^\n}]+\\) }" 1 font-lock-comment-face))		; Labels.
   "Additional expressions to highlight in Rmail Summary mode.")
 
 ;; Entry points for making a summary buffer.
@@ -300,8 +300,12 @@
 		 ""
 	       (concat "{"
 		       (buffer-substring (point)
-					 (progn (end-of-line) (point)))
-		       "} ")))))
+					 (progn (end-of-line)
+						(backward-char)
+						(if (looking-at ",")
+						    (point)
+						  (1+ (point)))))
+		       " } ")))))
 	 (line
 	  (progn
 	    (forward-line 1)

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-28 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-28 21:00 RMAIL-summary mode, label display fix/change Alexander Pohoyda

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.