[PATCH] Re: is it possible to set pager search pattern based on message-hook?

2010-10-14 Thread Will Fiveash
I think I have a better fix. I've included a patch that introduces a search_regex pager setting. This allows one to initialize the search string via a message-hook when entering the mutt pager. Here is an example of how to use it: message-hook '~s "^CR "' 'set search_regex="^=== "' This has fe

Re: is it possible to set pager search pattern based on message-hook?

2010-10-14 Thread Will Fiveash
On Thu, Oct 14, 2010 at 05:00:00PM -0500, Will Fiveash wrote: > On Thu, Oct 14, 2010 at 04:36:07PM -0500, Will Fiveash wrote: > > Actually, that's not really working for me as it interferes with other > > mutt functions like saving a message. For example when I'm in index > > mode and I have the f

Re: is it possible to set pager search pattern based on message-hook?

2010-10-14 Thread Will Fiveash
On Thu, Oct 14, 2010 at 04:36:07PM -0500, Will Fiveash wrote: > Actually, that's not really working for me as it interferes with other > mutt functions like saving a message. For example when I'm in index > mode and I have the following setting: > > message-hook '~s "^CR "' 'push ":macro pager /

Re: is it possible to set pager search pattern based on message-hook?

2010-10-14 Thread Will Fiveash
On Wed, Oct 13, 2010 at 02:50:50PM -0500, Will Fiveash wrote: > On Tue, Sep 28, 2010 at 03:40:16PM -0500, David Champion wrote: > > * On 28 Sep 2010, Will Fiveash wrote: > > > I'd like to set search to a particular pattern when I view a message > > > with a particular subject. The reason I want t

Re: is it possible to set pager search pattern based on message-hook?

2010-10-13 Thread Will Fiveash
On Tue, Sep 28, 2010 at 03:40:16PM -0500, David Champion wrote: > * On 28 Sep 2010, Will Fiveash wrote: > > I'd like to set search to a particular pattern when I view a message > > with a particular subject. The reason I want this is that some messages > > I receive have sections with section del

Re: is it possible to set pager search pattern based on message-hook?

2010-09-28 Thread Will Fiveash
On Tue, Sep 28, 2010 at 03:40:16PM -0500, David Champion wrote: > * On 28 Sep 2010, Will Fiveash wrote: > > I'd like to set search to a particular pattern when I view a message > > with a particular subject. The reason I want this is that some messages > > I receive have sections with section del

Re: is it possible to set pager search pattern based on message-hook?

2010-09-28 Thread Will Fiveash
On Wed, Sep 29, 2010 at 12:01:11AM +0200, Rado S wrote: > =- Will Fiveash wrote on Tue 28.Sep'10 at 14:46:06 -0500 -= > > > I'd like to set search to a particular pattern when I view a message > > with a particular subject. The reason I want this is that some messages > > I receive have sections

Re: is it possible to set pager search pattern based on message-hook?

2010-09-28 Thread Rado S
=- Will Fiveash wrote on Tue 28.Sep'10 at 14:46:06 -0500 -= > I'd like to set search to a particular pattern when I view a message > with a particular subject. The reason I want this is that some messages > I receive have sections with section delimiters and I want search > initialized to that de

Re: is it possible to set pager search pattern based on message-hook?

2010-09-28 Thread David Champion
* On 28 Sep 2010, Will Fiveash wrote: > I'd like to set search to a particular pattern when I view a message > with a particular subject. The reason I want this is that some messages > I receive have sections with section delimiters and I want search > initialized to that delimiter pattern. Is t

is it possible to set pager search pattern based on message-hook?

2010-09-28 Thread Will Fiveash
I'd like to set search to a particular pattern when I view a message with a particular subject. The reason I want this is that some messages I receive have sections with section delimiters and I want search initialized to that delimiter pattern. Is this possible and if so can someone give me a hi