Gnus development mailing list
 help / color / mirror / Atom feed
* what the heck happened to gnus-spec ?!
@ 1999-12-08 17:50 Didier Verna
  1999-12-08 17:54 ` Hrvoje Niksic
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Didier Verna @ 1999-12-08 17:50 UTC (permalink / raw)



        The balloon-help property format spec has been broken. Here's a diff
between the latest working version I have, and the latest CVS version. I
don't understand these modifications. If they were intentional, they should
/at least/ have been ChangeLog'ed, and commented in the documentation. But
those modifications look wrong anyway.

        Does anybody remember doing this ?


--- gnus-spec.el	Wed Jan 20 01:51:17 1999
+++ /usr/local/src/pgnus/lisp/gnus-spec.el	Wed Dec  8 10:14:35 1999
@@ -291,10 +291,10 @@
   ;; SPEC-ALIST and returns a list that can be eval'ed to return the
   ;; string.  If the FORMAT string contains the specifiers %( and %)
   ;; the text between them will have the mouse-face text property.
-  ;; If the FORMAT string contains the specifiers %< and %>, the text between
+  ;; If the FORMAT string contains the specifiers %[ and %], the text between
   ;; them will have the balloon-help text property.
   (if (string-match
-       "\\`\\(.*\\)%[0-9]?[{(<]\\(.*\\)%[0-9]?[})>]\\(.*\n?\\)\\'"
+       "\\`\\(.*\\)%[0-9]?[{(«]\\(.*\\)%[0-9]?[»})]\\(.*\n?\\)\\'"
        format)
       (gnus-parse-complex-format format spec-alist)
     ;; This is a simple format.
@@ -309,13 +309,13 @@
       (replace-match "\\\"" nil t))
     (goto-char (point-min))
     (insert "(\"")
-    (while (re-search-forward "%\\([0-9]+\\)?\\([{}()<>]\\)" nil t)
+    (while (re-search-forward "%\\([0-9]+\\)?\\([«»{}()]\\)" nil t)
       (let ((number (if (match-beginning 1)
 			(match-string 1) "0"))
 	    (delim (aref (match-string 2) 0)))
 	(if (or (= delim ?\()
 		(= delim ?\{)
-		(= delim ?\<))
+		(= delim ?\«))
 	    (replace-match (concat "\"("
 				   (cond ((= delim ?\() "mouse")
 					 ((= delim ?\{) "face")
@@ -545,7 +545,6 @@
 	(symbol-value (intern (format "gnus-%s-line-format" type)))
 	(symbol-value (intern (format "gnus-%s-line-format-alist" type)))
 	insertable)))
-
 
 (provide 'gnus-spec)
 


-- 
    /     /   _   _       Didier Verna        http://www.inf.enst.fr/~verna/
 - / / - / / /_/ /        EPITA / LRDE            mailto:didier@epita.fr
/_/ / /_/ / /__ /      14-16 rue Voltaire       Tel.   +33 (1) 44 08 01 77
                   94276 Kremlin-Bicêtre cedex  Fax.   +33 (1) 44 08 01 99


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

end of thread, other threads:[~2000-04-21 19:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-08 17:50 what the heck happened to gnus-spec ?! Didier Verna
1999-12-08 17:54 ` Hrvoje Niksic
1999-12-08 18:51 ` Jan Vroonhof
1999-12-08 19:29   ` Didier Verna
1999-12-08 19:22 ` Toby Speight
2000-04-21 19:25 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).