From: "Roland Winkler" <Roland.Winkler@physik.uni-erlangen.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: prefix arg when mouse clicking on header
Date: Mon, 15 Dec 2008 19:33:46 +0100 [thread overview]
Message-ID: <18758.41738.236091.808436@tfkp04.physik.uni-erlangen.de> (raw)
In-Reply-To: <jwvoczenl42.fsf-monnier+emacs@gnu.org>
On Sun Dec 14 2008 Stefan Monnier wrote:
> > (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?
This sounds very reasonable, but fixing this goes much beyond my
knowledge of emacs. Should I submit a bug report so that this topic
is properly entered into the system?
> > 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.
Then I find it confusing that various packages use last-input-event,
and I'd greatly appreciate if someone who knows about these things
could document them.
> 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.
That would be great!
Roland
next prev parent reply other threads:[~2008-12-15 18:33 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
2008-12-15 18:33 ` Roland Winkler [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18758.41738.236091.808436@tfkp04.physik.uni-erlangen.de \
--to=roland.winkler@physik.uni-erlangen.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).