[PATCH] emacs: More DWIM when editing messages

2010-04-27 Thread Dirk Hohndel
On Mon, 26 Apr 2010 23:14:49 -0700, Carl Worth wrote: > On Tue, 27 Apr 2010 06:34:51 +0100, David Edmondson wrote: > > On Mon, 26 Apr 2010 15:28:02 -0700, Dirk Hohndel > > wrote: > > > +(if (re-search-backward "-- " nil t) > > > > Maybe `message-signature-separator' rather than the

[PATCH] emacs: More DWIM when editing messages

2010-04-27 Thread David Edmondson
On Mon, 26 Apr 2010 15:28:02 -0700, Dirk Hohndel wrote: > +(if (re-search-backward "-- " nil t) Maybe `message-signature-separator' rather than the literal "-- " here. dme. -- David Edmondson, http://dme.org -- next part -- A non-text attachment was scrubbed...

[PATCH] emacs: More DWIM when editing messages

2010-04-27 Thread Carl Worth
On Tue, 27 Apr 2010 06:34:51 +0100, David Edmondson wrote: > On Mon, 26 Apr 2010 15:28:02 -0700, Dirk Hohndel > wrote: > > +(if (re-search-backward "-- " nil t) > > Maybe `message-signature-separator' rather than the literal "-- " > here. Good catch. Dirk did say he was almost sure he had

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 16:39:44 -0700, Carl Worth wrote: > On Mon, 26 Apr 2010 15:28:02 -0700, Dirk Hohndel > wrote: > > This appears not to have gone out??? Must be that weird MUA that I'm > > using... > > Strange. I couldn't find it earlier, and now I have both versions > here. So blame me, (or

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 15:28:02 -0700, Dirk Hohndel wrote: > This appears not to have gone out??? Must be that weird MUA that I'm > using... Strange. I couldn't find it earlier, and now I have both versions here. So blame me, (or the weird MUA that I'm using...). > The existing code inserts the

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 10:28:33 -0700, Carl Worth wrote: > On Mon, 26 Apr 2010 09:31:49 -0700, Dirk Hohndel > wrote: > > On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson wrote: > > > For composing new messages and forwarding, leave the cursor on the > > > 'To:' field. For replies, leave the

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread David Edmondson
For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she decides to immediately kill the buffer. --- emacs/notmuch-mua.el | 32

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 10:28:33 -0700, Carl Worth wrote: > On Mon, 26 Apr 2010 09:31:49 -0700, Dirk Hohndel > wrote: > > On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson wrote: > > > For composing new messages and forwarding, leave the cursor on the > > > 'To:' field. For replies, leave the

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Carl Worth
On Mon, 26 Apr 2010 09:31:49 -0700, Dirk Hohndel wrote: > On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson wrote: > > For composing new messages and forwarding, leave the cursor on the > > 'To:' field. For replies, leave the cursor at the start of the > > body. In all cases, mark the buffer

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson wrote: > For composing new messages and forwarding, leave the cursor on the > 'To:' field. For replies, leave the cursor at the start of the > body. In all cases, mark the buffer as not modified so that the user > is not prompted if she decides

[PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread David Edmondson
For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she decides to immediately kill the buffer. --- emacs/notmuch-mua.el | 32

Re: [PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson d...@dme.org wrote: For composing new messages and forwarding, leave the cursor on the 'To:' field. For replies, leave the cursor at the start of the body. In all cases, mark the buffer as not modified so that the user is not prompted if she

Re: [PATCH] emacs: More DWIM when editing messages

2010-04-26 Thread Dirk Hohndel
On Mon, 26 Apr 2010 10:28:33 -0700, Carl Worth cwo...@cworth.org wrote: On Mon, 26 Apr 2010 09:31:49 -0700, Dirk Hohndel hohn...@infradead.org wrote: On Mon, 26 Apr 2010 15:01:25 +0100, David Edmondson d...@dme.org wrote: For composing new messages and forwarding, leave the cursor on the