all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: Glenn Morris <rgm@gnu.org>
Cc: Michael Welsh Duggan <mwd@md5i.com>,
	Richard Stallman <rms@gnu.org>,
	21331@debbugs.gnu.org
Subject: bug#21331: mailcap (was Re: bug#21331: 24.5; LibreOffice documents have less support...)
Date: Wed, 26 Aug 2015 14:34:58 -0300	[thread overview]
Message-ID: <87io820x8d.fsf_-_@moondust.localdomain> (raw)
In-Reply-To: <ua37z658ft.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 26 Aug 2015 12:19:18 -0400")

I apologise profusely for causing this disturbance with a bug title that
turns out to have been a result of user misunderstanding.

As pointed out when I closed the bug, this is not an Emacs bug. Through
a mechanism of which I do not know the details, Gnus can open mail
attachments in an external program if there is an entry for the MIME
type of the attachment in the system (or user's?) mailcap file.

I happened to have an entry for the MIME type "application/msword" in my
mailcap file and no entries for LibreOffice files, causing the behaviour
I observed and misinterpreted as being "caused" by Emacs.

At 13:19 -0300 on Wednesday 2015-08-26, Glenn Morris wrote:

> I really doubt any GNU/Linux distribution has better support for MS
> Office in this area (a program they cannot ship or even install,
> ignoring Wine) then LibreOffice (which they do ship).

Checking this today, I deleted my mailcap file and reinstalled the
mailcap package from the Fedora 21 repository. The newly installed file
is:

    ### 
    ### Begin Red Hat Mailcap
    ###

    audio/*; /usr/bin/xdg-open %s

    image/*; /usr/bin/xdg-open %s

    application/msword; /usr/bin/xdg-open %s
    application/pdf; /usr/bin/xdg-open %s
    application/postscript ; /usr/bin/xdg-open %s

    text/html; /usr/bin/xdg-open %s ; copiousoutput

I'm guessing that the entry for msword has been added automatically
based on some configuration I've inadvertently made somewhere else
(probably as a desperate measure when I first switched permanently away
from Windows and needed to view a file from work).

But the possibility exists that this entry came from the distribution.
That would mean that for programs that use mailcap rather than desktop
facilities (xdg-utils or whatever), there is better support on Fedora
for Microsoft Word files (which will open in LibreOffice) than for
LibreOffice documents. But I too really doubt that. It worries me
though, so I will probably go on investigating until I find the truth of
the matter.

But not an Emacs problem.

> So on modern systems probably Emacs should give up and just call
> xdg-open.

That would be nice.

> (Though I seem to recall it's a pain because it forks and seems to
> exit.)

Presumably Gnus successfully uses xdg-open after it finds the xdg-open
entries in my mailcap file, so this problem can't be insurmountable, it
seems.





  parent reply	other threads:[~2015-08-26 17:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23 17:40 bug#21331: 24.5; LibreOffice documents have less support than Microsoft Office docs (in Gnus?) N. Jackson
2015-08-24  0:08 ` Richard Stallman
2015-08-24  0:08 ` Richard Stallman
2015-08-24 17:26 ` Glenn Morris
2015-08-24 22:03   ` N. Jackson
2015-08-25 22:13   ` Richard Stallman
2015-08-25 23:41     ` N. Jackson
2015-08-26 18:52       ` Richard Stallman
2015-08-26 11:12     ` Michael Welsh Duggan
2015-08-26 16:19       ` Glenn Morris
2015-08-26 16:33         ` Rasmus
2015-08-26 17:34         ` N. Jackson [this message]
2015-08-26 20:31           ` bug#21331: mailcap (was Re: bug#21331: 24.5; LibreOffice documents have less support...) N. Jackson
2015-08-27 16:26             ` Richard Stallman

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=87io820x8d.fsf_-_@moondust.localdomain \
    --to=nljlistbox2@gmail.com \
    --cc=21331@debbugs.gnu.org \
    --cc=mwd@md5i.com \
    --cc=rgm@gnu.org \
    --cc=rms@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.