GNU bug report logs - #11796
24.1; message-mode and mailcap-add

Previous Next

Packages: emacs, gnus;

Reported by: harven <at> free.fr

Date: Wed, 27 Jun 2012 15:28:01 UTC

Severity: normal

Tags: notabug

Found in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11796 in the body.
You can then email your comments to 11796 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11796; Package emacs. (Wed, 27 Jun 2012 15:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to harven <at> free.fr:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 27 Jun 2012 15:28:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: harven <at> free.fr
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1; message-mode and mailcap-add
Date: Wed, 27 Jun 2012 17:22:31 +0200
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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11796; Package emacs. (Wed, 27 Jun 2012 16:34:01 GMT) Full text and rfc822 format available.

Message #8 received at 11796 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: harven <at> free.fr
Cc: 11796 <at> debbugs.gnu.org
Subject: Re: bug#11796: 24.1; message-mode and mailcap-add
Date: Wed, 27 Jun 2012 12:29:36 -0400
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.




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Jun 2012 16:34:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 11796 <at> debbugs.gnu.org and harven <at> free.fr Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 Jun 2012 16:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#11796; Package emacs,gnus. (Sun, 01 Jul 2012 15:39:01 GMT) Full text and rfc822 format available.

Message #15 received at 11796 <at> debbugs.gnu.org (full text, mbox):

From: Reiner Steib <reinersteib+gmane <at> imap.cc>
To: harven <at> free.fr
Cc: 11796 <at> debbugs.gnu.org
Subject: Re: bug#11796: 24.1; message-mode and mailcap-add
Date: Sun, 01 Jul 2012 17:32:32 +0200
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/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 30 Jul 2012 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.