X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-spec.el;h=07d1a87df2fc01a629d18817933b36692779c9ef;hb=9826d063a575454e896b2cd3764a65a247762dd5;hp=b4e44e3de74e8a9901a2a65cd18914f4eb56446c;hpb=2e33d39729730bd9b58520e013ce3e53250eeb15;p=gnus diff --git a/lisp/gnus-spec.el b/lisp/gnus-spec.el index b4e44e3de..07d1a87df 100644 --- a/lisp/gnus-spec.el +++ b/lisp/gnus-spec.el @@ -1,5 +1,6 @@ ;;; gnus-spec.el --- format spec functions for Gnus -;; Copyright (C) 1996,97,98 Free Software Foundation, Inc. +;; Copyright (C) 1996, 1997, 1998, 1999, 2000 +;; Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: news @@ -201,9 +202,7 @@ (gnus-parse-format new-format (symbol-value - (intern (format "gnus-%s-line-format-alist" - (if (eq type 'article-mode) - 'summary-mode type)))) + (intern (format "gnus-%s-line-format-alist" type))) (not (string-match "mode$" (symbol-name type)))))) ;; Enter the new format spec into the list. (if entry @@ -242,7 +241,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)))) @@ -293,10 +292,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. @@ -311,14 +310,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")) @@ -531,7 +530,7 @@ If PROPS, insert the result." (not (eq 'byte-code (car form))) ;; Under XEmacs, it's (funcall #) (not (and (eq 'funcall (car form)) - (compiled-function-p (cadr form))))) + (byte-code-function-p (cadr form))))) (fset 'gnus-tmp-func `(lambda () ,form)) (byte-compile 'gnus-tmp-func) (setcar (cddr entry) (gnus-byte-code 'gnus-tmp-func)))))) @@ -547,8 +546,11 @@ 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) +;; Local Variables: +;; coding: iso-8859-1 +;; End: + ;;; gnus-spec.el ends here