From: Michael Sperber <sperber@deinprogramm.de>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: PATCH: Unbreak `mailcap-mailcap-entry-passes-test'
Date: Tue, 20 Oct 2015 13:51:38 +0200 [thread overview]
Message-ID: <y9lmvvdep11.fsf@deinprogramm.de> (raw)
In-Reply-To: <b4mfv15iykq.fsf@jpl.org> (Katsumi Yamaoka's message of "Tue, 20 Oct 2015 20:11:49 +0900")
Thanks for the quick action!
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> This is what I grasped of how mailcap.el does:
>
> What is passed to mailcap-mailcap-entry-passes-test is an entry
> of a mailcap file (user's or system's) like this:
>
> image/*; xv %s; test=test -n "$DISPLAY"
>
> This entry is parsed by mailcap-parse-mailcap into:
>
> ((viewer . "xv %s") (type . "image/*") (test . "test -n \"$DISPLAY\""))
>
> It is passed to mailcap-mailcap-entry-passes-test as an argument,
> and the result is added to mailcap-mime-data. Where the result is
>
> ((viewer . "xv %s") (type . "image/*") (test . t))
>
> if $DISPLAY is not empty, otherwise:
>
> ((viewer . "xv %s") (type . "image/*") (test))
Right. However, many typical mailcap entries will not have a test
clause.
> If your patch is applied, the `test' token will not be updated
> whatever $DISPLAY is.
I don't think so:
If there's a test clause present, the same code as before runs -
mutating the cdr as before.
If not, the function simply returns t, as documented. (In that case,
there's nothing to mutate.)
--
Regards,
Mike
next prev parent reply other threads:[~2015-10-20 11:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 9:10 Michael Sperber
2015-10-20 11:11 ` Katsumi Yamaoka
2015-10-20 11:51 ` Michael Sperber [this message]
2015-10-20 14:25 ` Katsumi Yamaoka
2015-10-20 15:55 ` Michael Sperber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y9lmvvdep11.fsf@deinprogramm.de \
--to=sperber@deinprogramm.de \
--cc=ding@gnus.org \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).