[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1586: prefix arg when mouse clicking on header line

From: Roland Winkler
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")


  (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


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]