X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;ds=sidebyside;f=lisp%2Fgnus-spec.el;h=5cf3fda2764401113d8aaf257baba36c8312da05;hb=0a4638ac9f2eb076e478cf5f99ff8afc308cdbbd;hp=554b46867a0a66ea349463ac7c6fe3fa7c5f38d1;hpb=27df114db202e8a922cf5e6c59a90be21701765c;p=gnus diff --git a/lisp/gnus-spec.el b/lisp/gnus-spec.el index 554b46867..5cf3fda27 100644 --- a/lisp/gnus-spec.el +++ b/lisp/gnus-spec.el @@ -240,7 +240,7 @@ '(gnus-face t face ,(symbol-value (intern (format "gnus-face-%d" type)))))) (defun gnus-balloon-face-function (form type) - `(gnus-put-text-property + `(gnus-put-text-property (point) (progn ,@form (point)) 'balloon-help ,(intern (format "gnus-balloon-face-%d" type)))) @@ -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,14 +309,14 @@ (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 ?\<)) - (replace-match (concat "\"(" + (= delim ?\«)) + (replace-match (concat "\"(" (cond ((= delim ?\() "mouse") ((= delim ?\{) "face") (t "balloon")) @@ -545,7 +545,7 @@ If PROPS, insert the result." (symbol-value (intern (format "gnus-%s-line-format" type))) (symbol-value (intern (format "gnus-%s-line-format-alist" type))) insertable))) - + (provide 'gnus-spec)