From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: Message mode and emacsclient Date: Sat, 11 Jul 2015 22:50:36 -0700 Message-ID: <20150712054435.20767.03D121BC@ahiker.mooo.com> References: <20150707210719.25059.2A35AC67@ahiker.mooo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1436680821 9491 80.91.229.3 (12 Jul 2015 06:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2015 06:00:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 12 08:00:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZEAJG-0007iK-Vx for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 08:00:19 +0200 Original-Received: from localhost ([::1]:49820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEAJG-0003RZ-68 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 02:00:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEAJ5-0003Q8-Mi for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 02:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEAJ1-00087K-PU for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 02:00:07 -0400 Original-Received: from disorder-1-pt.tunnel.tserv3.fmt2.ipv6.he.net ([2001:470:1f04:51a::2]:50387 helo=acedia.primate.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEAJ1-00086f-Gk for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 02:00:03 -0400 Original-Received: from acedia.primate.net (localhost [127.0.0.1]) by acedia.primate.net (8.14.9/8.14.9/Debian-2) with ESMTP id t6C601o9002739 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 11 Jul 2015 23:00:01 -0700 Original-Received: (from itz@localhost) by acedia.primate.net (8.14.9/8.14.9/Submit) id t6C5obhZ001519 for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 22:50:37 -0700 X-Authentication-Warning: acedia.primate.net: itz set sender to itz@buug.org using -f Original-Received: from itz by ahiker.mooo.com with local (Exim 4.80) (envelope-from ) id 1ZEA9s-0005Ph-Hm for help-gnu-emacs@gnu.org; Sat, 11 Jul 2015 22:50:36 -0700 Content-Disposition: inline In-Reply-To: <20150707210719.25059.2A35AC67@ahiker.mooo.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:470:1f04:51a::2 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105622 Archived-At: On 2015-07-07 14:30 -0700, Ian Zimmerman wrote: > 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. I have now tried to do this with pure message-mode, just to be sure the few additional goodies gnus-article-edit-mode strings on aren't to blame. The problem stays the same. There seems to be some kind of timeout. What I mean is, after this happens, I force it to behave, I compose my message and send it off, if I go compose another message within a minute or so, it works fine from the start. But if I wait longer, it happens again. I am stumped. Anyone? -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.