Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

2 views
Skip to first unread message

har...@free.fr

unread,
Jun 27, 2012, 11:22:31 AM6/27/12
to 11...@debbugs.gnu.org
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
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: fr_FR.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
show-paren-mode: t
display-time-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
temp-buffer-resize-mode: t
column-number-mode: t
line-number-mode: t

Recent input:
M-t r e p o r t - b u f DEL DEL DEL <tab> <return>

Recent messages:
Loading quail/latin-post...done
Enriched: decoding document...
Indenting...
Parsing /home/yves/.mailrc... done
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils
mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils ps-mule ps-print ps-def lpr mailabbrev disp-table
enriched paren webjump browse-url slime-autoloads edmacro kmacro quail
help-mode easymenu view windmove uniquify advice help-fns advice-preload
time server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)



Glenn Morris

unread,
Jun 27, 2012, 12:29:36 PM6/27/12
to har...@free.fr, 11...@debbugs.gnu.org
tags 11796 notabug
close 11796
stop

har...@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

unread,
Jul 1, 2012, 11:32:32 AM7/1/12
to har...@free.fr, 11...@debbugs.gnu.org
On Wed, Jun 27 2012, har...@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/



0 new messages