Re: [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 literal

[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 literal

[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... Name

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

2010-04-26 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 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

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

2010-04-26 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 pgpGVKmR23JJQ.pgp Description: PGP signature

Re: [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 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

Re: [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 sig

[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 si

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 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 cur

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 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 cur

[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 cur

[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 cur

Re: [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 as

[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 a

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 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 t

[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 t

[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