Article View: gnu.emacs.vm.bug
Article #9636vm-do-reply squashes my key definitions
From: David Eckelkamp
Date: Tue, 09 Apr 1991 14:30
Date: Tue, 09 Apr 1991 14:30
34 lines
2465 bytes
2465 bytes
In VM-5.31(beta) I think there is a problem with vm-do-reply. I believe there needs to be another hook akin to mail-setup-hook because VM sets some keys in the local map *after* vm-mail-internal runs the mail-setup-hook. This keeps me from being able to rebind \C-c\C-c and such. This new hook should probably be run after the "(if include-text ...)" form, IMHO. Why is it necessary to rebind \C-c\C-c? Well, in one of the last several patches VM begin exhibiting behavior I don't like. Namely, when I send-and-exit a mail message, my screen setup changes to a single window, even if I invoked vm-mail from the vm-summary window with the vm-message window also visible. The worst part about it is that the remaining window is the message window and not the summary window (which is at the top of the buffer ring when I'm in the vm-mail window). I finally got fed up with this behavior and set about changing it. No problem, thinks I! I discover that: (1) vm-mail-send-and-exit just calls mail-send-and-exit to do the sending and buffer shuffling; (2) mail-send-and-exit uses it argument to determine whether or not to delete the mail window; (3) vm-mail-send-and-exit dutifully passes its prefix arg to mail-send-and-exit; and (4) I can just use a prefix arg to vm-mail-send-and-exit to get the behavior I want. Hurray! I decide to create a simple function that calls vm-mail-send-and-exit with a prefix-like argument and bind that to \C-c\C-c. That's when I discover that vm-do-reply is squashing my definition of \C-c\C-c that I carefully setup in mail-setup-hook. Rats! Oh well, for now I'll try to remember the prefix arg work-around! ____________________________________________________________________________ David Eckelkamp Microelectronics and Computer Technology Corp. (MCC) eckelkamp@mcc.com 3500 W. Balcones Center Dr. (512) 343-0978 Austin,TX 78759
Technical Details
Message-ID:
<9104091430.AA11416@maverick.cad.mcc.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,1a14710b4018c105,start X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 1991-04-09 09:40:18 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wendy-fate.uu.net!bug-vm From: davide%cadillac.cad.mcc.com@mcc.com (David Eckelkamp) Newsgroups: gnu.emacs.vm.bug Subject: vm-do-reply squashes my key definitions Message-ID: <9104091430.AA11416@maverick.cad.mcc.com> Date: 9 Apr 91 14:30:24 GMT Sender: bug-vm-request@uunet.uu.net Reply-To: davide%cadillac.cad.mcc.com@mcc.com Lines: 34