unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11796: 24.1; message-mode and mailcap-add
@ 2012-06-27 15:22 harven
  2012-06-27 16:29 ` Glenn Morris
  2012-07-01 15:32 ` Reiner Steib
  0 siblings, 2 replies; 3+ messages in thread
From: harven @ 2012-06-27 15:22 UTC (permalink / raw)
  To: 11796

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)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#11796: 24.1; message-mode and mailcap-add
  2012-06-27 15:22 bug#11796: 24.1; message-mode and mailcap-add harven
@ 2012-06-27 16:29 ` Glenn Morris
  2012-07-01 15:32 ` Reiner Steib
  1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-06-27 16:29 UTC (permalink / raw)
  To: harven; +Cc: 11796

tags 11796 notabug
close 11796
stop

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#11796: 24.1; message-mode and mailcap-add
  2012-06-27 15:22 bug#11796: 24.1; message-mode and mailcap-add harven
  2012-06-27 16:29 ` Glenn Morris
@ 2012-07-01 15:32 ` Reiner Steib
  1 sibling, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2012-07-01 15:32 UTC (permalink / raw)
  To: harven; +Cc: 11796

On Wed, Jun 27 2012, harven@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/





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-01 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 15:22 bug#11796: 24.1; message-mode and mailcap-add harven
2012-06-27 16:29 ` Glenn Morris
2012-07-01 15:32 ` Reiner Steib

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).