(This message responds to several in the thread.)

I had said:

> In the pager, next-line and previous-line appear to repaint the entire
> screen instead of scrolling it.  Scrolling it would be a lot faster.
> The same might be true for the index.

Scott McDermott <[EMAIL PROTECTED]> replied:

> This may be dependent on your curses implementation (I don't know
> about slang).  For ncurses-4.2, a number of development/experimental
> options have to be explicitly compiled in...

That was indeed the problem: rebuilding ncurses-4.2 with
--enable-hashmap fixed it.

The suspend/resume problem went away earlier, when I switched from
Solaris curses to ncurses.

> > It would be nice to have a function for the index screen that causes a
> > check for new mail to happen right now (like the inc command of
> > mailx).
> 
> Sync.

Doh, of course.  I had been thinking of that function as "write my
changes back to the file", without realizing that even if I've made no
changes, it syncs in both directions.

> > Mutt uses tabs to fold long header fields, so I edited the source to
> > make it use spaces instead:
>
> It may be required by the RFCs (if you're talking about things like
> receive, etc).

RFC 822 regards spaces and tabs as equivalent.

Vikas Agnihotri <[EMAIL PROTECTED]> wrote:

> folder-hook . 'push <current-middle>'

Excellent, thank you.

> Remember that you can use the token '<backspace>' only in the 'macro'
> command, not the 'bind' command. 'bind'. expects the RHS to be Mutt
> _functions_.

I was referring to the LHS, for example:

bind index <backspace> previous-page

This started working when I switched from Solaris curses to ncurses.
Before that I had to use \cH instead of <backspace>.

> > It would be nice if I could override the tty special characters via
> > bind and macro commands.
>
> Hm. I would like this also. Is this even possible?

vi and less both use ctrl-Y as a normal key even if it's the tty's dsusp
character.  I don't know enough about termio and curses to guess what
they're doing.

David DeSimone <[EMAIL PROTECTED]> wrote:

> For me, Mutt checks for mail whenever I press any key in the index.
> Is this not what you want?

That sounds great.  I didn't know this was happening (it's not
documented).  I thought it was only using the mail_check timeout.

> > It would be nice if Mutt, when it executes the bind and macro
> > commands, would notice if a character is a tty special character and
> > reconfigure the tty to disable that character.
>
> I simply disable those characters before running Mutt, using my shell
> script approach.  This doesn't /need/ to be in Mutt.

There are four tty special characters that generate signals: intr, quit,
susp, and dsusp.  Suppose one wanted to allow the susp key to suspend
mutt, but wanted the keys normally bound to intr, quit, and dsusp to
do other things in mutt.  Invoking mutt from a shell script that first
disables those characters, then restores them after mutt returns, almost
gives the correct behavior, but not quite, because after you suspend
mutt the other special keys are still disabled.

AMC

Reply via email to