unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ian Zimmerman <itz@buug.org>
To: help-gnu-emacs@gnu.org
Subject: Message mode and emacsclient
Date: Tue, 7 Jul 2015 14:30:44 -0700	[thread overview]
Message-ID: <20150707210719.25059.2A35AC67@ahiker.mooo.com> (raw)

To read my mail these days I use mutt over a ssh connection to the mail
server.  On the mail server I always have an emacs --daemon running, and
I tell mutt to call emacsclient as the external editor when I need to
compose a message.  I use the predictable temporary filename pattern in
auto-mode-alist to put the client buffer into message-mode (more
precisely, gnus-article-edit-mode which inherits almost everything from
message-mode).

All this works almost perfectly, with one annoying nit.  Immediately
after I land in emacs with the temporary file loaded, if I try one of
the message keybindings to move to a header field (for instance, C-c C-f
C-s to move to the Subject: field), after the C-c C-f emacs barfs with
"C-c C-f is undefined".  But when I try the same key combination again,
it works!  And it also works if I do anything else in the buffer first,
such as C-g.  It is as if emacs was in some kind of temporary mode like
those modes used in the minibuffer and had to quit the temporary mode
first to allow normal editing.

Does this sound in the least bit familiar?  My hunch is that it may not
be specific to message-mode but may be a more generic buglet with
emacsclient and multilevel keymaps.

Oh and btw, GNU Emacs 23.4 .. I know, I know ..

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.




             reply	other threads:[~2015-07-07 21:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 21:30 Ian Zimmerman [this message]
2015-07-12  5:50 ` Message mode and emacsclient Ian Zimmerman
2015-07-19  1:52   ` Ian Zimmerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150707210719.25059.2A35AC67@ahiker.mooo.com \
    --to=itz@buug.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).