1 ;;; gnus-spec.el --- format spec functions for Gnus
2 ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 ;; Free Software Foundation, Inc.
5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
29 (eval-when-compile (require 'cl
))
33 (defcustom gnus-use-correct-string-widths
(featurep 'xemacs
)
34 "*If non-nil, use correct functions for dealing with wide characters."
39 (defcustom gnus-make-format-preserve-properties
(featurep 'xemacs
)
40 "*If non-nil, use a replacement `format' function which preserves
41 text properties. This is only needed on XEmacs, as FSF Emacs does this anyway."
46 ;;; Internal variables.
48 (defvar gnus-summary-mark-positions nil
)
49 (defvar gnus-group-mark-positions nil
)
50 (defvar gnus-group-indentation
"")
52 ;; Format specs. The chunks below are the machine-generated forms
53 ;; that are to be evaled as the result of the default format strings.
54 ;; We write them in here to get them byte-compiled. That way the
55 ;; default actions will be quite fast, while still retaining the full
56 ;; flexibility of the user-defined format specs.
58 ;; First we have lots of dummy defvars to let the compiler know these
59 ;; are really dynamic variables.
61 (defvar gnus-tmp-unread
)
62 (defvar gnus-tmp-replied
)
63 (defvar gnus-tmp-score-char
)
64 (defvar gnus-tmp-indentation
)
65 (defvar gnus-tmp-opening-bracket
)
66 (defvar gnus-tmp-lines
)
67 (defvar gnus-tmp-name
)
68 (defvar gnus-tmp-closing-bracket
)
69 (defvar gnus-tmp-subject-or-nil
)
70 (defvar gnus-tmp-subject
)
71 (defvar gnus-tmp-marked
)
72 (defvar gnus-tmp-marked-mark
)
73 (defvar gnus-tmp-subscribed
)
74 (defvar gnus-tmp-process-marked
)
75 (defvar gnus-tmp-number-of-unread
)
76 (defvar gnus-tmp-group-name
)
77 (defvar gnus-tmp-group
)
78 (defvar gnus-tmp-article-number
)
79 (defvar gnus-tmp-unread-and-unselected
)
80 (defvar gnus-tmp-news-method
)
81 (defvar gnus-tmp-news-server
)
82 (defvar gnus-tmp-article-number
)
83 (defvar gnus-mouse-face
)
84 (defvar gnus-mouse-face-prop
)
85 (defvar gnus-tmp-header
)
86 (defvar gnus-tmp-from
)
88 (defun gnus-summary-line-format-spec ()
89 (insert gnus-tmp-unread gnus-tmp-replied
90 gnus-tmp-score-char gnus-tmp-indentation
)
91 (gnus-put-text-property
95 (format "%c%4s: %-23s%c" gnus-tmp-opening-bracket gnus-tmp-lines
98 (gnus-summary-from-or-to-or-newsgroups
99 gnus-tmp-header gnus-tmp-from
))))
100 (if (> (length val
) 23)
103 gnus-tmp-closing-bracket
))
105 gnus-mouse-face-prop gnus-mouse-face
)
106 (insert " " gnus-tmp-subject-or-nil
"\n"))
108 (defvar gnus-summary-line-format-spec
109 (gnus-byte-code 'gnus-summary-line-format-spec
))
111 (defun gnus-summary-dummy-line-format-spec ()
113 (gnus-put-text-property
118 gnus-mouse-face-prop gnus-mouse-face
)
119 (insert " " gnus-tmp-subject
"\n"))
121 (defvar gnus-summary-dummy-line-format-spec
122 (gnus-byte-code 'gnus-summary-dummy-line-format-spec
))
124 (defun gnus-group-line-format-spec ()
125 (insert gnus-tmp-marked-mark gnus-tmp-subscribed
126 gnus-tmp-process-marked
127 gnus-group-indentation
128 (format "%5s: " gnus-tmp-number-of-unread
))
129 (gnus-put-text-property
132 (insert gnus-tmp-group
"\n")
134 gnus-mouse-face-prop gnus-mouse-face
))
135 (defvar gnus-group-line-format-spec
136 (gnus-byte-code 'gnus-group-line-format-spec
))
138 (defvar gnus-format-specs
139 `((version .
,emacs-version
)
140 (gnus-version .
,(gnus-continuum-version))
141 (group "%M\%S\%p\%P\%5y: %(%g%)%l\n" ,gnus-group-line-format-spec
)
142 (summary-dummy "* %(: :%) %S\n"
143 ,gnus-summary-dummy-line-format-spec
)
144 (summary "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n"
145 ,gnus-summary-line-format-spec
))
146 "Alist of format specs.")
148 (defvar gnus-default-format-specs gnus-format-specs
)
150 (defvar gnus-article-mode-line-format-spec nil
)
151 (defvar gnus-summary-mode-line-format-spec nil
)
152 (defvar gnus-group-mode-line-format-spec nil
)
154 ;;; Phew. All that gruft is over with, fortunately.
157 (defun gnus-update-format (var)
158 "Update the format specification near point."
163 ;; Find the end of the current word.
164 (re-search-forward "[ \t\n]" nil t
)
166 (when (re-search-backward "\\(gnus-[-a-z]+-line-format\\)" nil t
)
168 (let* ((type (intern (progn (string-match "gnus-\\([-a-z]+\\)-line" var
)
169 (match-string 1 var
))))
170 (entry (assq type gnus-format-specs
))
173 (setq gnus-format-specs
(delq entry gnus-format-specs
)))
175 (intern (format "%s-spec" var
))
176 (gnus-parse-format (setq value
(symbol-value (intern var
)))
177 (symbol-value (intern (format "%s-alist" var
)))
178 (not (string-match "mode" var
))))
179 (setq spec
(symbol-value (intern (format "%s-spec" var
))))
180 (push (list type value spec
) gnus-format-specs
)
182 (pop-to-buffer "*Gnus Format*")
184 (lisp-interaction-mode)
185 (insert (gnus-pp-to-string spec
))))
187 (defun gnus-update-format-specifications (&optional force
&rest types
)
188 "Update all (necessary) format specifications.
189 Return a list of updated types."
190 ;; Make the indentation array.
191 ;; See whether all the stored info needs to be flushed.
193 (not gnus-newsrc-file-version
)
194 (not (equal (gnus-continuum-version)
195 (gnus-continuum-version gnus-newsrc-file-version
)))
196 (not (equal emacs-version
197 (cdr (assq 'version gnus-format-specs
)))))
198 (setq gnus-format-specs nil
))
200 ;; Go through all the formats and see whether they need updating.
201 (let (new-format entry type val updated
)
202 (while (setq type
(pop types
))
203 ;; Jump to the proper buffer to find out the value of the
204 ;; variable, if possible. (It may be buffer-local.)
206 (let ((buffer (intern (format "gnus-%s-buffer" type
))))
207 (when (and (boundp buffer
)
208 (setq val
(symbol-value buffer
))
209 (gnus-buffer-exists-p val
))
211 (setq new-format
(symbol-value
212 (intern (format "gnus-%s-line-format" type
)))))
213 (setq entry
(cdr (assq type gnus-format-specs
)))
215 (equal (car entry
) new-format
))
216 ;; Use the old format.
217 (set (intern (format "gnus-%s-line-format-spec" type
))
219 ;; This is a new format.
221 (if (not (stringp new-format
))
222 ;; This is a function call or something.
224 ;; This is a "real" format.
228 (intern (format "gnus-%s-line-format-alist" type
)))
229 (not (string-match "mode$" (symbol-name type
))))))
230 ;; Enter the new format spec into the list.
233 (setcar (cdr entry
) val
)
234 (setcar entry new-format
))
235 (push (list type new-format val
) gnus-format-specs
))
236 (set (intern (format "gnus-%s-line-format-spec" type
)) val
)
237 (push type updated
))))
239 (unless (assq 'version gnus-format-specs
)
240 (push (cons 'version emacs-version
) gnus-format-specs
))
243 (defvar gnus-mouse-face-0
'highlight
)
244 (defvar gnus-mouse-face-1
'highlight
)
245 (defvar gnus-mouse-face-2
'highlight
)
246 (defvar gnus-mouse-face-3
'highlight
)
247 (defvar gnus-mouse-face-4
'highlight
)
249 (defun gnus-mouse-face-function (form type
)
250 `(gnus-put-text-property
251 (point) (progn ,@form
(point))
255 `(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type
)))))))
257 (defvar gnus-face-0
'bold
)
258 (defvar gnus-face-1
'italic
)
259 (defvar gnus-face-2
'bold-italic
)
260 (defvar gnus-face-3
'bold
)
261 (defvar gnus-face-4
'bold
)
263 (defun gnus-face-face-function (form type
)
264 `(gnus-add-text-properties
265 (point) (progn ,@form
(point))
266 '(gnus-face t face
,(symbol-value (intern (format "gnus-face-%d" type
))))))
268 (defun gnus-balloon-face-function (form type
)
269 `(gnus-put-text-property
270 (point) (progn ,@form
(point))
271 ,(if (fboundp 'balloon-help-mode
)
274 ,(intern (format "gnus-balloon-face-%d" type
))))
276 (defun gnus-spec-tab (column)
278 `(insert-char ?
(max (- ,column
(current-column)) 0))
279 (let ((column (abs column
)))
280 `(if (> (current-column) ,column
)
282 (if (= (move-to-column ,column
) ,column
)
283 (delete-region (point) end
)
284 (delete-region (1- (point)) end
)
286 (insert-char ?
(max (- ,column
(current-column)) 0))))))
288 (defun gnus-correct-length (string)
289 "Return the correct width of STRING."
291 (mapcar (lambda (char) (incf length
(gnus-char-width char
))) string
)
294 (defun gnus-correct-substring (string start
&optional end
)
299 (length (length string
))
300 (string (concat string
"\0")))
301 ;; Find the start position.
302 (while (and (< seek length
)
304 (incf wseek
(gnus-char-width (aref string seek
)))
307 ;; Find the end position.
308 (while (and (<= seek length
)
311 (incf wseek
(gnus-char-width (aref string seek
)))
314 (substring string wstart
(1- wend
))))
316 (defun gnus-string-width-function ()
318 (gnus-use-correct-string-widths
319 'gnus-correct-length
)
320 ((fboundp 'string-width
)
325 (defun gnus-substring-function ()
327 (gnus-use-correct-string-widths
328 'gnus-correct-substring
)
329 ((fboundp 'string-width
)
330 'gnus-correct-substring
)
334 (defun gnus-tilde-max-form (el max-width
)
335 "Return a form that limits EL to MAX-WIDTH."
336 (let ((max (abs max-width
))
337 (length-fun (gnus-string-width-function))
338 (substring-fun (gnus-substring-function)))
340 `(if (> (,length-fun
,el
) ,max
)
342 `(,substring-fun
,el
(- (,length-fun
,el
) ,max
))
343 `(,substring-fun
,el
0 ,max
))
345 `(let ((val (eval ,el
)))
346 (if (> (,length-fun val
) ,max
)
348 `(,substring-fun val
(- (,length-fun val
) ,max
))
349 `(,substring-fun val
0 ,max
))
352 (defun gnus-tilde-cut-form (el cut-width
)
353 "Return a form that cuts CUT-WIDTH off of EL."
354 (let ((cut (abs cut-width
))
355 (length-fun (gnus-string-width-function))
356 (substring-fun (gnus-substring-function)))
358 `(if (> (,length-fun
,el
) ,cut
)
360 `(,substring-fun
,el
0 (- (,length-fun
,el
) ,cut
))
361 `(,substring-fun
,el
,cut
))
363 `(let ((val (eval ,el
)))
364 (if (> (,length-fun val
) ,cut
)
366 `(,substring-fun val
0 (- (,length-fun val
) ,cut
))
367 `(,substring-fun val
,cut
))
370 (defun gnus-tilde-ignore-form (el ignore-value
)
371 "Return a form that is blank when EL is IGNORE-VALUE."
373 `(if (equal ,el
,ignore-value
)
375 `(let ((val (eval ,el
)))
376 (if (equal val
,ignore-value
)
379 (defun gnus-pad-form (el pad-width
)
380 "Return a form that pads EL to PAD-WIDTH accounting for multi-column
381 characters correctly. This is because `format' may pad to columns or to
382 characters when given a pad value."
383 (let ((pad (abs pad-width
))
384 (side (< 0 pad-width
))
385 (length-fun (gnus-string-width-function)))
387 `(let ((need (- ,pad
(,length-fun
,el
))))
389 (concat ,(when side
'(make-string need ?\
))
391 ,(when (not side
) '(make-string need ?\
)))
393 `(let* ((val (eval ,el
))
394 (need (- ,pad
(,length-fun val
))))
396 (concat ,(when side
'(make-string need ?\
))
398 ,(when (not side
) '(make-string need ?\
)))
401 (defun gnus-parse-format (format spec-alist
&optional insert
)
402 ;; This function parses the FORMAT string with the help of the
403 ;; SPEC-ALIST and returns a list that can be eval'ed to return the
404 ;; string. If the FORMAT string contains the specifiers %( and %)
405 ;; the text between them will have the mouse-face text property.
406 ;; If the FORMAT string contains the specifiers %[ and %], the text between
407 ;; them will have the balloon-help text property.
408 (let ((case-fold-search nil
))
410 "\\`\\(.*\\)%[0-9]?[{(«]\\(.*\\)%[0-9]?[»})]\\(.*\n?\\)\\'\\|%[-0-9]*=\\|%[-0-9]*\\*"
412 (gnus-parse-complex-format format spec-alist
)
413 ;; This is a simple format.
414 (gnus-parse-simple-format format spec-alist insert
))))
416 (defun gnus-parse-complex-format (format spec-alist
)
417 (let ((cursor-spec nil
))
419 (gnus-set-work-buffer)
421 (goto-char (point-min))
422 (while (re-search-forward "\"" nil t
)
423 (replace-match "\\\"" nil t
))
424 (goto-char (point-min))
426 ;; Convert all font specs into font spec lists.
427 (while (re-search-forward "%\\([0-9]+\\)?\\([«»{}()]\\)" nil t
)
428 (let ((number (if (match-beginning 1)
429 (match-string 1) "0"))
430 (delim (aref (match-string 2) 0)))
431 (if (or (= delim ?\
()
434 (replace-match (concat "\"("
435 (cond ((= delim ?\
() "mouse")
436 ((= delim ?\
{) "face")
440 (replace-match "\")\""))))
441 (goto-char (point-max))
443 ;; Convert point position commands.
444 (goto-char (point-min))
445 (let ((case-fold-search nil
))
446 (while (re-search-forward "%\\([-0-9]+\\)?\\*" nil t
)
447 (replace-match "\"(point)\"" t t
)
448 (setq cursor-spec t
)))
449 ;; Convert TAB commands.
450 (goto-char (point-min))
451 (while (re-search-forward "%\\([-0-9]+\\)=" nil t
)
452 (replace-match (format "\"(tab %s)\"" (match-string 1)) t t
))
453 ;; Convert the buffer into the spec.
454 (goto-char (point-min))
455 (let ((form (read (current-buffer))))
457 `(let (gnus-position)
458 ,@(gnus-complex-form-to-spec form spec-alist
)
460 (gnus-put-text-property gnus-position
(1+ gnus-position
)
463 ,@(gnus-complex-form-to-spec form spec-alist
)))))))
465 (defun gnus-complex-form-to-spec (form spec-alist
)
471 (gnus-parse-simple-format sform spec-alist t
))
472 ((eq (car sform
) 'point
)
473 '(setq gnus-position
(point)))
474 ((eq (car sform
) 'tab
)
475 (gnus-spec-tab (cadr sform
)))
477 (funcall (intern (format "gnus-%s-face-function" (car sform
)))
478 (gnus-complex-form-to-spec (cddr sform
) spec-alist
)
483 (defun gnus-xmas-format (fstring &rest args
)
484 "A version of `format' which preserves text properties.
486 Required for XEmacs, where the built in `format' function strips all text
487 properties from both the format string and any inserted strings.
489 Only supports the format sequence %s, and %% for inserting
490 literal % characters. A pad width and an optional - (to right pad)
491 are supported for %s."
492 (let ((re "%%\\|%\\(-\\)?\\([1-9][0-9]*\\)?s")
496 (goto-char (point-min))
497 (while (re-search-forward re nil t
)
498 (goto-char (match-end 0))
500 ((string= (match-string 0) "%%")
504 (error 'wrong-number-of-arguments
#'my-format n fstring
))
505 (let* ((minlen (string-to-int (or (match-string 2) "")))
507 (str (if (stringp arg
) arg
(format "%s" arg
)))
508 (lpad (null (match-string 1)))
509 (padlen (max 0 (- minlen
(length str
)))))
511 (if lpad
(insert-char ?\ padlen
))
513 (unless lpad
(insert-char ?\ padlen
))
514 (setq args
(cdr args
))))))
517 (defun gnus-parse-simple-format (format spec-alist
&optional insert
)
518 ;; This function parses the FORMAT string with the help of the
519 ;; SPEC-ALIST and returns a list that can be eval'ed to return a
522 spec flist fstring elem result dontinsert user-defined
523 type value pad-width spec-beg cut-width ignore-value
524 tilde-form tilde elem-type extended-spec
)
526 (gnus-set-work-buffer)
528 (goto-char (point-min))
529 (while (re-search-forward "%" nil t
)
530 (setq user-defined nil
538 (setq spec-beg
(1- (point)))
540 ;; Parse this spec fully.
543 ((looking-at "\\([-.0-9]+\\)\\(,[-0-9]+\\)?")
544 (setq pad-width
(string-to-number (match-string 1)))
545 (when (match-beginning 2)
546 (setq max-width
(string-to-number (buffer-substring
547 (1+ (match-beginning 2))
549 (goto-char (match-end 0)))
552 (setq tilde
(read (current-buffer))
556 ((memq type
'(pad pad-left
))
557 (setq pad-width value
))
558 ((eq type
'pad-right
)
559 (setq pad-width
(- value
)))
560 ((memq type
'(max-right max
))
561 (setq max-width value
))
563 (setq max-width
(- value
)))
564 ((memq type
'(cut cut-left
))
565 (setq cut-width value
))
566 ((eq type
'cut-right
)
567 (setq cut-width
(- value
)))
570 (if (stringp value
) value
(format "%s" value
))))
572 (setq tilde-form value
))
574 (error "Unknown tilde type: %s" tilde
)))
579 ;; User-defined spec -- find the spec name.
580 ((eq (setq spec
(char-after)) ?u
)
582 (when (and (eq (setq user-defined
(char-after)) ?
&)
583 (looking-at "&\\([^;]+\\);"))
584 (setq user-defined
(match-string 1))
585 (goto-char (match-end 1))))
587 ((and (eq spec ?
&) (looking-at "&\\([^;]+\\);"))
588 (setq extended-spec
(intern (match-string 1)))
589 (goto-char (match-end 1))))
591 (delete-region spec-beg
(point))
593 ;; Now we have all the relevant data on this spec, so
594 ;; we start doing stuff.
597 ;; "%%" just results in a "%".
602 (setq elem
(list tilde-form ?s
)))
603 ;; Treat user defined format specifiers specially.
607 (list (intern (format
608 (if (stringp user-defined
)
609 "gnus-user-format-function-%s"
610 "gnus-user-format-function-%c")
614 ;; Find the specification from `spec-alist'.
615 ((setq elem
(cdr (assq (or extended-spec spec
) spec-alist
))))
617 (setq elem
'("*" ?s
))))
618 (setq elem-type
(cadr elem
))
619 ;; Insert the new format elements.
621 (not (and (featurep 'xemacs
)
622 gnus-use-correct-string-widths
)))
623 (insert (number-to-string pad-width
)))
624 ;; Create the form to be evaled.
625 (if (or max-width cut-width ignore-value
626 (and (featurep 'xemacs
)
627 gnus-use-correct-string-widths
))
630 (let ((el (car elem
)))
631 (cond ((= (cadr elem
) ?c
)
632 (setq el
(list 'char-to-string el
)))
634 (setq el
(list 'int-to-string el
))))
636 (setq el
(gnus-tilde-ignore-form el ignore-value
)))
638 (setq el
(gnus-tilde-cut-form el cut-width
)))
640 (setq el
(gnus-tilde-max-form el max-width
)))
642 (setq el
(gnus-pad-form el pad-width
)))
645 (push (car elem
) flist
))))
646 (setq fstring
(buffer-substring-no-properties (point-min) (point-max))))
648 ;; Do some postprocessing to increase efficiency.
653 ((string= fstring
"")
655 ;; Not a format string.
656 ((not (string-match "%" fstring
))
658 ;; A format string with just a single string spec.
659 ((string= fstring
"%s")
661 ;; A single character.
662 ((string= fstring
"%c")
665 ((string= fstring
"%d")
668 (list `(princ ,(car flist
)))
669 (list `(int-to-string ,(car flist
)))))
670 ;; Just lots of chars and strings.
671 ((string-match "\\`\\(%[cs]\\)+\\'" fstring
)
673 ;; A single string spec at the beginning of the spec.
674 ((string-match "\\`%[sc][^%]+\\'" fstring
)
675 (list (car flist
) (substring fstring
2)))
676 ;; A single string spec in the middle of the spec.
677 ((string-match "\\`\\([^%]+\\)%[sc]\\([^%]+\\)\\'" fstring
)
678 (list (match-string 1 fstring
) (car flist
) (match-string 2 fstring
)))
679 ;; A single string spec in the end of the spec.
680 ((string-match "\\`\\([^%]+\\)%[sc]\\'" fstring
)
681 (list (match-string 1 fstring
) (car flist
)))
682 ;; Only string (and %) specs (XEmacs only!)
683 ((and (featurep 'xemacs
)
684 gnus-make-format-preserve-properties
686 "\\`\\([^%]*\\(%%\\|%-?\\([1-9][0-9]*\\)?s\\)\\)*[^%]*\\'"
688 (list (cons 'gnus-xmas-format
(cons fstring
(nreverse flist
)))))
689 ;; A more complex spec.
691 (list (cons 'format
(cons fstring
(nreverse flist
)))))))
697 (cons 'insert result
)))
698 (cond ((stringp result
)
701 (cons 'concat result
))
704 (defun gnus-eval-format (format &optional alist props
)
705 "Eval the format variable FORMAT, using ALIST.
706 If PROPS, insert the result."
707 (let ((form (gnus-parse-format format alist props
)))
709 (gnus-add-text-properties (point) (progn (eval form
) (point)) props
)
712 (defun gnus-compile ()
713 "Byte-compile the user-defined format specs."
716 (let ((entries gnus-format-specs
)
717 (byte-compile-warnings '(unresolved callargs redefine
))
720 (gnus-message 7 "Compiling format specs...")
723 (setq entry
(pop entries
))
724 (if (memq (car entry
) '(gnus-version version
))
725 (setq gnus-format-specs
(delq entry gnus-format-specs
))
726 (let ((form (caddr entry
)))
727 (when (and (listp form
)
728 ;; Under GNU Emacs, it's (byte-code ...)
729 (not (eq 'byte-code
(car form
)))
730 ;; Under XEmacs, it's (funcall #<compiled-function ...>)
731 (not (and (eq 'funcall
(car form
))
732 (byte-code-function-p (cadr form
)))))
733 (defalias 'gnus-tmp-func
`(lambda () ,form
))
734 (byte-compile 'gnus-tmp-func
)
735 (setcar (cddr entry
) (gnus-byte-code 'gnus-tmp-func
))))))
737 (push (cons 'version emacs-version
) gnus-format-specs
)
738 ;; Mark the .newsrc.eld file as "dirty".
740 (gnus-message 7 "Compiling user specs...done"))))
742 (defun gnus-set-format (type &optional insertable
)
743 (set (intern (format "gnus-%s-line-format-spec" type
))
745 (symbol-value (intern (format "gnus-%s-line-format" type
)))
746 (symbol-value (intern (format "gnus-%s-line-format-alist" type
)))
752 ;; coding: iso-8859-1
755 ;;; arch-tag: a4328fa1-1f84-4b09-97ad-4b5767cfd50f
756 ;;; gnus-spec.el ends here