Subject: 24.0.50; Emacs doesn't work as system mail program in OS X

From: "Jose A. Ortega Ruiz" <[email-masked]>
Date: Thu, 21 Jul 2011 04:29:10 +0200

- In OS X, use Mail.app to set Emacs to the system mail app
- Try any program that includes a link to a mailto, or that needs
  to send a mail (e.g., Cmd-Shift-i in Safari)
- Emacs gets the focus, but send mail user agent is not invoked
- However, the "send selection with emacs" service works fine!

In GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36)
 of 2011-07-21 on numenor.local
Windowing system distributor `Apple', version 10.3.1038
configured using `configure  '--with-ns''

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: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: rcirc

Minor modes in effect:
  rcirc-track-minor-mode: t
  recentf-mode: t
  ncm-mode: t
  ido-everywhere: t
  show-paren-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
. . . SPC p e r o SPC a SPC t u s SPC 1 1 A M SPC e 
s t o y SPC e n SPC c a s a SPC d e SPC <backspace> 
<backspace> <backspace> s e g u r o ! <return> <return> 
s w e e t SPC d r e a m s , <return> j a o C-c C-c 
n n n n n n n n n n n k c y g SPC p p q g g . SPC n 
n n n n h <tab> <tab> <tab> C-c M <ns-spi-service-call> 
C-a C-o C-n C-n C-o C-p C-p C-p C-p C-p C-p C-p C-p 
C-p C-p C-p C-p C-e s e r g i <tab> C-n u n a SPC c 
o s i l l a SPC m u y SPC i n t e r e s a n t e SPC 
p a r a SPC u n SPC p r o g r a m a d o r SPC d e SPC 
l i o n SPC o i <backspace> <backspace> ( o SPC i O 
S ) C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n <return> 
<return> <return> C-p C-o C-p . . . SPC m e SPC v i 
e n e n SPC r e c u e r d o s SPC d e SPC v i e j o 
s SPC t i e m p o s . . . C-n C-n C-n j a o C-c s C-c 
C-c h q g C-c f C-c C-SPC C-c C-SPC C-c C-SPC C-c C-n 
C-c C-SPC C-c g C-c f C-x b C-g M-x r e p o <tab> r 
<tab> b u <tab> <return>

Recent messages:
nnimap read 18k [5 times]
nnimap read 20k [6 times]
nnimap read 21k [5 times]
nnimap read 23k [4 times]
nnimap read 24k [2 times]
Reading active file via nndraft...done
Checking new news...done
Auto-saving...done
Quit
Making completion list...

Load-path shadows:
/Users/jao/.emacs.d/elpa/paredit-22/paredit hides /Users/jao/.emacs.d/config/lib/paredit
/Users/jao/.emacs.d/config/site/custom/jao-w3m hides /Users/jao/.emacs.d/config/custom/jao-w3m
/Users/jao/.emacs.d/config/site/custom/jao-vc hides /Users/jao/.emacs.d/config/custom/jao-vc
/Users/jao/.emacs.d/config/site/custom/jao-utils hides /Users/jao/.emacs.d/config/custom/jao-utils
/Users/jao/.emacs.d/config/site/custom/jao-time hides /Users/jao/.emacs.d/config/custom/jao-time
/Users/jao/.emacs.d/config/site/custom/jao-tex hides /Users/jao/.emacs.d/config/custom/jao-tex
/Users/jao/.emacs.d/config/site/custom/jao-skels hides /Users/jao/.emacs.d/config/custom/jao-skels
/Users/jao/.emacs.d/config/site/custom/jao-session hides /Users/jao/.emacs.d/config/custom/jao-session
/Users/jao/.emacs.d/config/site/custom/jao-rcirc hides /Users/jao/.emacs.d/config/custom/jao-rcirc
/Users/jao/.emacs.d/config/site/custom/jao-python hides /Users/jao/.emacs.d/config/custom/jao-python
/Users/jao/.emacs.d/config/site/custom/jao-osx hides /Users/jao/.emacs.d/config/custom/jao-osx
/Users/jao/.emacs.d/config/site/custom/jao-org hides /Users/jao/.emacs.d/config/custom/jao-org
/Users/jao/.emacs.d/config/site/custom/jao-moinmoin hides /Users/jao/.emacs.d/config/custom/jao-moinmoin
/Users/jao/.emacs.d/config/site/custom/jao-mail hides /Users/jao/.emacs.d/config/custom/jao-mail
/Users/jao/.emacs.d/config/site/custom/jao-lisp hides /Users/jao/.emacs.d/config/custom/jao-lisp
/Users/jao/.emacs.d/config/site/custom/jao-kbd hides /Users/jao/.emacs.d/config/custom/jao-kbd
/Users/jao/.emacs.d/config/site/custom/jao-ido hides /Users/jao/.emacs.d/config/custom/jao-ido
/Users/jao/.emacs.d/config/site/custom/jao-frames hides /Users/jao/.emacs.d/config/custom/jao-frames
/Users/jao/.emacs.d/config/site/custom/jao-eshell hides /Users/jao/.emacs.d/config/custom/jao-eshell
/Users/jao/.emacs.d/config/site/custom/jao-epg hides /Users/jao/.emacs.d/config/custom/jao-epg
/Users/jao/.emacs.d/config/site/custom/jao-elpa hides /Users/jao/.emacs.d/config/custom/jao-elpa
/Users/jao/.emacs.d/config/site/custom/jao-elisp hides /Users/jao/.emacs.d/config/custom/jao-elisp
/Users/jao/.emacs.d/config/site/custom/jao-edit hides /Users/jao/.emacs.d/config/custom/jao-edit
/Users/jao/.emacs.d/config/site/custom/jao-diary hides /Users/jao/.emacs.d/config/custom/jao-diary
/Users/jao/.emacs.d/config/site/custom/jao-custom hides /Users/jao/.emacs.d/config/custom/jao-custom
/Users/jao/.emacs.d/config/site/custom/jao-compile hides /Users/jao/.emacs.d/config/custom/jao-compile
/Users/jao/.emacs.d/config/site/custom/jao-clojure hides /Users/jao/.emacs.d/config/custom/jao-clojure
/Users/jao/.emacs.d/config/site/custom/jao-c hides /Users/jao/.emacs.d/config/custom/jao-c
/Users/jao/.emacs.d/config/site/custom/jao-buffers hides /Users/jao/.emacs.d/config/custom/jao-buffers
/Users/jao/.emacs.d/config/site/custom/jao-browse-url hides /Users/jao/.emacs.d/config/custom/jao-browse-url
/Users/jao/.emacs.d/config/site/custom/jao-autoloads hides /Users/jao/.emacs.d/config/custom/jao-autoloads
/Users/jao/.emacs.d/config/site/custom/jao-auto hides /Users/jao/.emacs.d/config/custom/jao-auto
/Users/jao/.emacs.d/config/lib/cap-words hides /Applications/Emacs.app/Contents/Resources/lisp/progmodes/cap-words
/Users/jao/.emacs.d/lib/magit/.dir-locals hides /Applications/Emacs.app/Contents/Resources/lisp/gnus/.dir-locals

Features:
(shadow emacsbug ffap bbdb-gui org-gnus mailalias quail help-mode view
newcomment gnus-fun rcirc-notify rcirc url-http url-gw url-auth
url-queue gnus-html xml url-cache mm-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie w3m-form w3m-symbol qp
sort gnus-cite ansi-color flow-fill gnus-async gnus-bcklg mule-util
gnus-ml gnus-topic utf-7 nnimap parse-time utf7 rot13 netrc
network-stream starttls tls jao-osx-mail gnus-delay gnus-draft
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-cache gnus-msg
nndraft nnmh gnus-demon nntp eldoc server jao-colors jao-light-theme
jao-themes bml-moinmoin moinmoin-mode screen-lines bml bml-clojure
bml-python bml-skels bml-utils geiser geiser-skel fuel-skel cpp-skel
thingatpt jao-w3m jao-w3m-session url-util url-parse url-vars w3m
doc-view dired image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl
ccl w3m-favicon w3m-image w3m-proc w3m-util w3m-load jao-vc jao-utils
battery jao-time jao-tex jao-skels texinfo-skel lisp-skel muse-skel
haskell-skel jao-dominating-file scsh-skel init-skel common-skel
skeleton autoinsert jao-session recentf tree-widget saveplace jao-rcirc
jao-python virtualenv python-21 python jao-osx edit-server jao-org
jao-org-gnus jao-org-links jao-devon jao-applescript jao-org-utils
calfw-org org-agenda org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table
org-footnote org-src ob-comint comint ob-keys ob ob-eval org-complete
pcomplete org-list org-faces org-compat org-entities org-macs noutline
outline org-install jao-moinmoin jao-mail randomsig bbdb-gnus gnus-art
mm-uu mml2015 mm-view mml-smime smime dig mailcap nnir gnus-sum nnoo
gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int
gnus-range gnus-win gnus gnus-ems nnheader bbdb-snarf mail-extr bbdb-com
warnings bbdb timezone bbdb-autoloads gnutls smtpmail sendmail message
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils
mailheader jao-lisp info-look jao-kbd jao-ido ido jao-frames jao-eshell
esh-toggle jao-epg epa-file epa derived epg epg-config auth-source eieio
byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util mm-util
mail-prsvr password-cache jao-elpa auctex-autoloads tex-site
clojure-mode-autoloads muse-autoloads info paredit-autoloads
slime-repl-autoloads slime-autoloads package tabulated-list jao-elisp
jao-edit jao-diary calfw cal-china lunar solar cal-dst cal-bahai
cal-islam cal-hebrew holidays hol-loaddefs vc-git appt diary-lib
diary-loaddefs cal-menu calendar cal-loaddefs jao-custom jao-compile
jao-clojure paredit edmacro kmacro easy-mmode jao-c jao-buffers
jka-compr cus-edit easymenu cus-start cus-load wid-edit paren uniquify
advice help-fns advice-preload autorevert jao-browse-url jao-docview
term disp-table ehelp electric ring browse-url cl jao-autoloads jao-auto
regexp-opt time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
ns-win 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 ns multi-tty emacs)

-- 
If people do not believe that mathematics is simple, it is only
because they do not realize how complicated life is.
 -John von Neumann