bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52038: Completion for user mailcap entries


From: Lars Ingebrigtsen
Subject: bug#52038: Completion for user mailcap entries
Date: Sat, 24 Sep 2022 15:39:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Arash Esbati <arash@gnu.org> writes:

> I added some entries to my ~/.mailcap like this (where the action part
> is not relevant for this report):
>
>   application/vnd.ms-excel; foo
>   application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; bar
>   application/vnd.openxmlformats-officedocument.wordprocessingml.document; baz
>
> In Gnus, I take a mail with an attachment (application/octet-stream) and
> hit 'e' to view the MIME part externally.  When asked for 'View as MIME
> type', I enter 'application/vnd<TAB>' and get the following completions:
>
>  
>
> Note the \ before the dots and I have to insert a backslash before I can
> proceed with completion.  Is this the expected behavior?

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

The entries you are seeing as vnd\.ms-excel etc come from here:

(defvar mailcap-mime-data
  `(("application"
     ("vnd\\.ms-excel"
      (viewer . "gnumeric %s")

These are regexps, and we want to specify that we're matching the "."
character, and not the [.] character class, so we don't match
"vndxms-excel".  That's probably overly pedantic, but...

But I think this is working as designed, and I'm therefore closing this
bug report.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]