all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#1586: prefix arg when mouse clicking on header line
@ 2008-12-15 20:58 Roland Winkler
  2011-07-02 23:41 ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2008-12-15 20:58 UTC (permalink / raw
  To: emacs-pretest-bug

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-04 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 20:58 bug#1586: prefix arg when mouse clicking on header line Roland Winkler
2011-07-02 23:41 ` Chong Yidong
2011-07-04 19:05   ` Stefan Monnier
2011-07-04 20:50     ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.