Article View: gnu.emacs.vm.bug
Article #516Re: problem with vm-next-command-uses-marks
From: newsspam5REMOVETHIS
Date: Thu, 23 Nov 2006 22:19
Date: Thu, 23 Nov 2006 22:19
40 lines
2609 bytes
2609 bytes
Robert Marshall <spam@chezmarshall.freeserve.co.uk> writes:
> The documentation for this says
>
> Does nothing except insure that the next VM command will operate only
> on the marked messages in the current folder. This only works for
> commands bound to key, menu or button press events. M-x vm-command will
> not work.
>
> However if there's an inadvertent mouse event the setting for the next
> command gets lost - which if you're about to (for example) send a
> digest and end up with the entire inbox in the digest it can take a
> while :-(
>
> I have sloppy focus the mouse strayed out of the window into another
> vm folder window and the vm-next-command-uses-marks was gone.
>
> Also the same problem if you use mouse-autoselect-window and can't remember
> the key binding and then try to access to command off the menu...
>
> Using RobertF's patched version....
> not sure there's a lot that can be done about this though?
Not something like a simple bugfix. It uses the variable
`last-command' and checks of it are everywhere ...
It should not happen if you use a WM with focus follows mouse or
preserve the last-command by a advice, e.g. on mouse-track if you
have a focus-on-click config or what ever command changes
last-command..
(defadvice mouse-track (around vm-next-command-uses-marks-fix activate)
(let ((vm-next-command-uses-marks-fix last-command))
(message "last-command = %S <<" last-command)
ad-do-it
(if (eq vm-next-command-uses-marks-fix 'vm-next-command-uses-marks)
(setq this-command 'vm-next-command-uses-marks))))
Robert
Technical Details
Message-ID:
<85hcwpiz65.fsf@robf.de>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.space.net!news.m-online.net!not-for-mailReferences:
<m1irh63x27.fsf@chezmarshall.freeserve.co.uk>Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,b792dc1d0cf80e0a X-Google-Attributes: gidf6829,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.space.net!news.m-online.net!not-for-mail From: newsspam5REMOVETHIS@robf.de Newsgroups: gnu.emacs.vm.bug Subject: Re: problem with vm-next-command-uses-marks Date: Thu, 23 Nov 2006 23:19:30 +0100 Organization: (posted via) M-net Telekommunikations GmbH Lines: 40 Message-ID: <85hcwpiz65.fsf@robf.de> References: <m1irh63x27.fsf@chezmarshall.freeserve.co.uk> NNTP-Posting-Host: ppp-82-135-6-30.dynamic.mnet-online.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: svr7.m-online.net 1164320370 831 82.135.6.30 (23 Nov 2006 22:19:30 GMT) X-Complaints-To: abuse@m-online.net NNTP-Posting-Date: Thu, 23 Nov 2006 22:19:30 +0000 (UTC) User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:I+CKPWhCkEV4k+Tp1jbM67TZYVU=