GNU bug report logs - #1586
prefix arg when mouse clicking on header line

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>

Date: Wed, 17 Dec 2008 06:48:45 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Roland Winkler" <Roland.Winkler <at> physik.uni-erlangen.de>
To: emacs-pretest-bug <at> gnu.org
Subject: bug#1586: prefix arg when mouse clicking on header line
Date: Mon, 15 Dec 2008 21:58:06 +0100
If a command takes a mouse event and an (optional) prefix arg as its
arguments, the interactive specifications are

  (interactive "e\nP")

or

  (interactive (list last-input-event current-prefix-arg))

This works fine inside the main part of a window. For a command
that does the same thing in the header line, these interactive
specifications do not work. Instead one needs, e..g,

  (interactive (list last-input-event last-prefix-arg))

i.e., current-prefix-arg needs to be replaced by last-prefix-arg.
This problem occured in the context of the command
proced-sort-header in proced.el, which provides a complete test
example. See also

http://lists.gnu.org/archive/html/emacs-devel/2008-12/msg00559.html



In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2008-12-05 on regnitz
Windowing system distributor `The X.Org Foundation', version
 11.0.10502000




This bug report was last modified 13 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.