aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/mailcap.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/gnus/mailcap.el b/lisp/gnus/mailcap.el
index a3348c69869..d8881104af8 100644
--- a/lisp/gnus/mailcap.el
+++ b/lisp/gnus/mailcap.el
@@ -556,8 +556,11 @@ MAILCAPS if set; otherwise (on Unix) use the path from RFC 1524, plus
556 results))) 556 results)))
557 557
558(defun mailcap-mailcap-entry-passes-test (info) 558(defun mailcap-mailcap-entry-passes-test (info)
559 "Return non-nil if mailcap entry INFO passes its test clause. 559 "Replace the test clause of INFO itself with a boolean for some cases.
560Also return non-nil if no test clause is present." 560This function supports only `test -n $DISPLAY' and `test -z $DISPLAY',
561replaces them with t or nil. As for others or if INFO has a interactive
562spec (needsterm, needsterminal, or needsx11) but DISPLAY is not set,
563the test clause will be unchanged."
561 (let ((test (assq 'test info)) ; The test clause 564 (let ((test (assq 'test info)) ; The test clause
562 status) 565 status)
563 (setq status (and test (split-string (cdr test) " "))) 566 (setq status (and test (split-string (cdr test) " ")))