Mercurial > emacs
comparison lisp/mail/mailalias.el @ 50865:c29829b8ca9c
(mail-directory-function, mail-directory-requery, mail-directory): Don't quote
nil and t in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 06 May 2003 17:48:06 +0000 |
parents | 0d8b17d428b5 |
children | 695cf19ef79e |
comparison
equal
deleted
inserted
replaced
50864:5f3b64308e0c | 50865:c29829b8ca9c |
---|---|
91 "*Function to call when completing outside `mail-complete-alist'-header." | 91 "*Function to call when completing outside `mail-complete-alist'-header." |
92 :type '(choice function (const nil)) | 92 :type '(choice function (const nil)) |
93 :group 'mailalias) | 93 :group 'mailalias) |
94 | 94 |
95 (defcustom mail-directory-function nil | 95 (defcustom mail-directory-function nil |
96 "*Function to get completions from directory service or `nil' for none. | 96 "*Function to get completions from directory service or nil for none. |
97 See `mail-directory-requery'." | 97 See `mail-directory-requery'." |
98 :type '(choice function (const nil)) | 98 :type '(choice function (const nil)) |
99 :group 'mailalias) | 99 :group 'mailalias) |
100 | 100 |
101 ;; This is for when the directory is huge, or changes frequently. | 101 ;; This is for when the directory is huge, or changes frequently. |
102 (defcustom mail-directory-requery nil | 102 (defcustom mail-directory-requery nil |
103 "*When non-`nil' call `mail-directory-function' for each completion. | 103 "*When non-nil call `mail-directory-function' for each completion. |
104 In that case, one argument gets passed to the function, the partial string | 104 In that case, one argument gets passed to the function, the partial string |
105 entered so far." | 105 entered so far." |
106 :type 'boolean | 106 :type 'boolean |
107 :group 'mailalias) | 107 :group 'mailalias) |
108 | 108 |
476 (downcase (car b))))))))) | 476 (downcase (car b))))))))) |
477 mail-names) | 477 mail-names) |
478 | 478 |
479 | 479 |
480 (defun mail-directory (pattern) | 480 (defun mail-directory (pattern) |
481 "Call directory to get names matching PATTERN or all if `nil'. | 481 "Call directory to get names matching PATTERN or all if nil. |
482 Calls `mail-directory-function' and applies `mail-directory-parser' to output." | 482 Calls `mail-directory-function' and applies `mail-directory-parser' to output." |
483 (save-excursion | 483 (save-excursion |
484 (message "Querying directory...") | 484 (message "Querying directory...") |
485 (set-buffer (generate-new-buffer " *mail-directory*")) | 485 (set-buffer (generate-new-buffer " *mail-directory*")) |
486 (funcall mail-directory-function pattern) | 486 (funcall mail-directory-function pattern) |