harven | 27 Jun 2012 17:22
Picon
Favicon

bug#11796: 24.1; message-mode and mailcap-add

I have just built emacs 24.1 from the sources on the fsf website and
there is an option from my emacs23 init file that doesn't work anymore.
Here is the recipe.

Starting from emacs -Q,
type and execute the following in the *scratch* buffer.

(add-hook 'message-mode-hook (lambda ()
    (mailcap-add "application/pdf" "gv --safer %s")))

Then try sending a message with C-x m.
This gives the following message:
Symbol's function definition is void: mailcap-add
and the *mail* buffer does not appear.

Under emacs23, no error is reported and the *mail* buffer appears as 
expected. Is there some way to get this behavior back ? 

Sincerely,
Harven.

In GNU Emacs 24.1.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2012-06-27 on ergodik
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
(Continue reading)

Glenn Morris | 27 Jun 2012 18:29
Picon

bug#11796: 24.1; message-mode and mailcap-add

tags 11796 notabug
close 11796
stop

harven <at> free.fr wrote:

> Symbol's function definition is void: mailcap-add

You can add to your .emacs:

(autoload 'mailcap-add "mailcap")

Loading message.el used to load mailcap.el as an unecessary side-effect,
but no longer does.

Reiner Steib | 1 Jul 2012 17:32
X-Face

bug#11796: 24.1; message-mode and mailcap-add

On Wed, Jun 27 2012, harven <at> free.fr wrote:

> (add-hook 'message-mode-hook (lambda ()
>     (mailcap-add "application/pdf" "gv --safer %s")))
>
> Then try sending a message with C-x m.
> This gives the following message:
> Symbol's function definition is void: mailcap-add

Beyond Glenn's suggestion, I doubt that `message-mode-hook' is
suitable for adding mailcap entries since mailcap is typically used
when displaying articles whereas Message mode is for composing it.

Bye, Reiner.
--

-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


Gmane