Alias some gnus-specific do-nothing functions
Replace with #'always and #'ignore * lisp/gnus/gnus-agent.el: `gnus-agent-true' and `gnus-agent-false' * lisp/gnus/gnus-util.el: `gnus-not-ignore'
This commit is contained in:
parent
c14a67a80f
commit
db5e84af20
2 changed files with 6 additions and 10 deletions
|
@ -2910,13 +2910,9 @@ The following commands are available:
|
|||
(car func)
|
||||
(gnus-byte-compile `(lambda () ,func)))))
|
||||
|
||||
(defun gnus-agent-true ()
|
||||
"Return t."
|
||||
t)
|
||||
(defalias 'gnus-agent-true #'always)
|
||||
|
||||
(defun gnus-agent-false ()
|
||||
"Return nil."
|
||||
nil)
|
||||
(defalias 'gnus-agent-false #'ignore)
|
||||
|
||||
(defun gnus-category-make-function-1 (predicate)
|
||||
"Make a function from PREDICATE."
|
||||
|
@ -2924,8 +2920,9 @@ The following commands are available:
|
|||
;; Functions are just returned as is.
|
||||
((or (symbolp predicate)
|
||||
(functionp predicate))
|
||||
`(,(or (cdr (assq predicate gnus-category-predicate-alist))
|
||||
predicate)))
|
||||
(let ((fun (or (cdr (assq predicate gnus-category-predicate-alist))
|
||||
predicate)))
|
||||
(if (symbolp fun) `(,fun) `(funcall ',fun))))
|
||||
;; More complex predicate.
|
||||
((consp predicate)
|
||||
`(,(cond
|
||||
|
|
|
@ -1113,8 +1113,7 @@ sure of changing the value of `foo'."
|
|||
(setq gnus-info-buffer (current-buffer))
|
||||
(gnus-configure-windows 'info)))
|
||||
|
||||
(defun gnus-not-ignore (&rest _args)
|
||||
t)
|
||||
(defalias gnus-not-ignore #'always)
|
||||
|
||||
(defvar gnus-directory-sep-char-regexp "/"
|
||||
"The regexp of directory separator character.
|
||||
|
|
Loading…
Add table
Reference in a new issue