all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Roland Winkler" <Roland.Winkler@physik.uni-erlangen.de>
Cc: emacs-devel@gnu.org
Subject: Re: prefix arg when mouse clicking on header
Date: Sun, 14 Dec 2008 23:03:59 -0500	[thread overview]
Message-ID: <jwvoczenl42.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <18757.39394.481444.293571@tfkp04.physik.uni-erlangen.de> (Roland Winkler's message of "Mon, 15 Dec 2008 00:42:26 +0100")

>   (interactive (list last-input-event (or last-prefix-arg 'no-arg)))
> seems to work. But is this the right thing? Why last-prefix-arg
> instead of current-prefix-arg? Certainly, this is consistent with
> the code letter P being ignored by interactive.

Not sure why that is.  Maybe some code somewhere catches the click, does
some processing and pushes events back on unread-command-events, so the
real code is only run on the second round?

> Also I was wondering what is the proper replacement for the code
> letter e used by interactive when the list is constructed by hand.

AFAIK it's last-nonmenu-event.

> If yes, that could go into the elisp manual.

It should go somewhere, I agree.  I tend to think that
call-interactively should use a table mapping letters to Elisp code, so
it'd be easy to see which code corresponds to while letter.


        Stefan




  parent reply	other threads:[~2008-12-15  4:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-14 23:42 prefix arg when mouse clicking on header Roland Winkler
2008-12-15  0:01 ` Drew Adams
2008-12-15  1:25   ` Roland Winkler
2008-12-15  1:33     ` Drew Adams
2008-12-15  4:03 ` Stefan Monnier [this message]
2008-12-15 18:33   ` Roland Winkler
2008-12-15 20:13     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvoczenl42.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=Roland.Winkler@physik.uni-erlangen.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.