Up Arrow Difficulties Revisited

Up Arrow Difficulties Revisited

Post by Claude S. » Fri, 23 Nov 2007 22:38:22


I reported here earlier that the up arrow was replacing the email
address produced by the "r" reply key with another address.

This happens if I press the up arrow immediately after the proper
address is selected by the "r" key.

I have since found out that the same thing can happen if the up arrow is
pressed immediately after the subject is presented to me.

It will remember past subjects and allow you to scroll through them.

It is a memory thing.

If I exit mutt and then load it again, all memory is lost and pressing
up or down arrows does nothing.

This fooled me into thinking I had found and cured the problem.

This is a very dangerous feature and can easily lead, as it did in my
case, to accidentally sending a message to the wrong person.

I can not find any reference to this feature and how to change or
eliminate it.

Help would be appreciated.

Ubuntu 6.06
mutt 1.5.11-3ubuntu2.2

CSSJR

--
If we do not wish to lose our freedom, we must learn to tolerate our
neighbor's right to freedom even though he might express that freedom
in a manner we consider to be eccentric.
 
 
 

Up Arrow Difficulties Revisited

Post by Ian Gregor » Fri, 23 Nov 2007 23:40:35


Yes, it is an extremely useful feature, not only allowing recall
of recent addresses and subjects using up/down arrows, but more
importantly (for the way I use it) recent folders. I would hate
to have use Mutt without this capability. Note that just hitting
up arrow does not change the address/folder/whatever - you then
have to hit Enter to select the value you have chosen.

I understand you have been caught out at least once because you
were not aware of this feature, but now that you know about it
why not embrace it rather than try to disable it?

Do you use bash? It is the same as in bash where you can repeat
a recent command by scrolling up and down through the list of
recent commands using the arrow keys and then hitting enter.

If you really don't want this feature there is probably a way of
disabling it. There might also be a way of making mutt save the
information to a file between sessions so that you don't lose your
history when you exit.

Ian

--
Ian Gregory
http://www.yqcomputer.com/

 
 
 

Up Arrow Difficulties Revisited

Post by Ange » Sat, 24 Nov 2007 01:25:53


I would even consider to switch MTU if it was missing.


I didn't think about it, but that would be really great. Does anybody
if there is a way to so it?

--
Saludos,
Angel

O< ascii ribbon campaign - stop html mail and posts - www.asciiribbon.org
 
 
 

Up Arrow Difficulties Revisited

Post by Christian » Sat, 24 Nov 2007 02:29:24

* Angel on Thursday, November 22, 2007:


This is supported at least since Mutt 1.5.15.

c
--
Python Mutt utilities < http://www.yqcomputer.com/ ;
 
 
 

Up Arrow Difficulties Revisited

Post by Claude S. » Sat, 24 Nov 2007 03:59:06


Well, I have always known that was the dimmest bulb in the room, but I
have a problem understanding why I would want to reply to X and then
substitute y for x's address.

Either I am replying to X or I am not. "r" means reply.

Now if I am replying to X about XYZ, then why would I want to substitute
abc for xyz?

If I want to start a new message to another, there is the alias file.

At any rate, I will be rid of it one way or another.

I had really hoped for some help, not a sales pitch.

CSSJR





--
If we do not wish to lose our freedom, we must learn to tolerate our
neighbor's right to freedom even though he might express that freedom
in a manner we consider to be eccentric.
 
 
 

Up Arrow Difficulties Revisited

Post by Ian Gregor » Sat, 24 Nov 2007 08:16:52


There have been many cases where I have wanted to change the
default "To:" address after hitting "r" (eg someone emailed
me from work but timing/circumstances mean I have to reply
to them at home).

If you think that you will never want to change the default then
you could set $fast_reply

| When set, the initial prompt for recipients and subject are
| skipped when replying to messages, and the initial prompt for
| subject is skipped when forwarding messages.

For me, there are enough times when I do want to change the
"To:" on a reply that it doesn't make sense to set $fast_reply,
because without it all you have to do is hit enter to confirm
the default (and it gives you a extra chance to see if someone
is tricking you by for example setting their "Reply-to:" to go
to your boss instead of them).

The thing about Up Arrow was a red herring really. When Mutt
does give you the option to enter or edit an email address,
history recall of previously entered addresses using up/down
arrows is always an option, along with tab completion, address
book extraction etc. You just didn't want it to give you the
option in the first place.

Ian

--
Ian Gregory
http://www.yqcomputer.com/
 
 
 

Up Arrow Difficulties Revisited

Post by andre » Sat, 24 Nov 2007 10:15:27


[..]


I have not read the entire thread so my apologies if I have missed a
vital comment. Is there not the safety net available, which I use, of
generating the headers /before/ editing the message and then having
the ability to edit these manually:

set edit_headers=yes

This does not answer your concerns about the arrow keys but may be of
some help to you. Which editor do you use with mutt?

Andrew

--
Now I can praise him, now that I can stand by to mourn
and speak before this web that killed my father; yet
I grieve for the thing done, the death, and all our race.
I have won; but my victory is soiled, and has no pride.
 
 
 

Up Arrow Difficulties Revisited

Post by Claude S. » Sat, 24 Nov 2007 22:37:43


Thank you, Andrew:

I use vim.

I will try your suggestion to see if it helps keep me out of trouble.

CSSJR

--
If we do not wish to lose our freedom, we must learn to tolerate our
neighbor's right to freedom even though he might express that freedom
in a manner we consider to be eccentric.
 
 
 

Up Arrow Difficulties Revisited

Post by Paul Walke » Sun, 25 Nov 2007 01:40:44


Section 2 of the manual covers "Editing Input Fields", and tells you how to
rebind the editor keys.

There isn't a "nop" or an "unbind", but something like:

bind editor <up> bol
bind editor <down> eol

would probably be fairly harmless (beginning and end of line respectively).
Feel free to read the manual and adjust the bindings as you wish. ;-)

--
Paul

My parents sent my brother through law school. He graduated. Now he's suing
them for wasting seven years of his life. -- Mike Binder
 
 
 

Up Arrow Difficulties Revisited

Post by Claude S. » Sun, 25 Nov 2007 02:33:37


Now here comes one Paul Walker, a truly brilliant and helpful gentleman
who HAS THE CURE I WAS LOOKING FOR!!

Thank you.

It works like a charm.

I looked at the manual but apparently did not know where to look.

Thanks again.

CSSJR

--
If we do not wish to lose our freedom, we must learn to tolerate our
neighbor's right to freedom even though he might express that freedom
in a manner we consider to be eccentric.
 
 
 

Up Arrow Difficulties Revisited

Post by Christian » Sun, 25 Nov 2007 02:44:09

* Paul Walker on Friday, November 23, 2007:

Are you sure? From TFM:

_function_ specifies which action to take when key is pressed. For a
complete list of functions, see the reference. The special function
noop unbinds the specified key sequence.


bind editor <up> noop
bind editor <down> noop

seem to work here. -- Grr, I'd never do that, stuck w/o history.

c
--
Python Mutt utilities < http://www.yqcomputer.com/ ;
 
 
 

Up Arrow Difficulties Revisited

Post by Ian Gregor » Sun, 25 Nov 2007 06:19:27


Did you look at setting $fast_reply? That seems to do exactly what
you want in that it completely skips the steps of asking you to
edit or confirm the To: address and Subject: when composing a reply.
In the rare occasions where you might want to use other than the
default for either field you could set them after exiting the message
editor and before sending.

That way you would still have use of the arrow keys in other
circumstances, for example selecting recently used folders.

Ian

--
Ian Gregory
http://www.yqcomputer.com/
 
 
 

Up Arrow Difficulties Revisited

Post by Claude S. » Sun, 25 Nov 2007 07:12:02


Thanks for that suggestion.

I will keep it in mind for the future, but for now I think I want to
totally block that feature.

CSSJR

--
If we do not wish to lose our freedom, we must learn to tolerate our
neighbor's right to freedom even though he might express that freedom
in a manner we consider to be eccentric.
 
 
 

Up Arrow Difficulties Revisited

Post by Paul Walke » Sun, 25 Nov 2007 09:19:19


It might well do; I tried "nop", and it didn't work, so I didn't think to
check further. My fault. Too much time with low-level code. :)

Thanks,

--
Paul