[gnus git] branch master updated: m0-13-86-gd20dda5 =1= mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix
Katsumi Yamaoka <[email protected]> Wed, 21 Oct 2015 07:36:53 +0200
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via d20dda5b1d899018825f1f3e7099f22455d83afe (commit)
from 7c0c5448e9b45864024f524e090312a438d600e9 (commit)
- Log -----------------------------------------------------------------
commit d20dda5b1d899018825f1f3e7099f22455d83afe
Author: Katsumi Yamaoka <[email protected]>
Date: Wed Oct 21 05:36:45 2015 +0000
mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c8c5b3e..7e8e899 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-14 Katsumi Yamaoka <[email protected]>
+
+ * mailcap.el (mailcap-mailcap-entry-passes-test): Doc fix.
+
2015-10-20 Michael Sperber <[email protected]>
* mailcap.el (mailcap-mime-data): Conditonalize `doc-view-mode', which
diff --git a/lisp/mailcap.el b/lisp/mailcap.el
index a3348c6..d888110 100644
--- a/lisp/mailcap.el
+++ b/lisp/mailcap.el
@@ -556,8 +556,11 @@ MAILCAPS if set; otherwise (on Unix) use the path from RFC 1524, plus
results)))
(defun mailcap-mailcap-entry-passes-test (info)
- "Return non-nil if mailcap entry INFO passes its test clause.
-Also return non-nil if no test clause is present."
+ "Replace the test clause of INFO itself with a boolean for some cases.
+This function supports only `test -n $DISPLAY' and `test -z $DISPLAY',
+replaces them with t or nil. As for others or if INFO has a interactive
+spec (needsterm, needsterminal, or needsx11) but DISPLAY is not set,
+the test clause will be unchanged."
(let ((test (assq 'test info)) ; The test clause
status)
(setq status (and test (split-string (cdr test) " ")))
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 4 ++++
lisp/mailcap.el | 7 +++++--
2 files changed, 9 insertions(+), 2 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project