emacs-devel
[Top][All Lists]
Advanced

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

Re: menu system in recent Emacs?


From: Thierry Volpiatto
Subject: Re: menu system in recent Emacs?
Date: Thu, 03 May 2012 09:28:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

> () Thierry Volpiatto <address@hidden>
> () Thu, 03 May 2012 07:21:43 +0200
>
>    I think you want to use cons instead of push here,
>    what you want is (t . event) like described in doc, isn't it?
>
> I've just now read (info "(elisp) Event Input Misc")
> which says, in part:
>
>      Normally you add events to the front of this list, so that the
>      events most recently unread will be reread first.
>
>      Events read from this list are not normally added to the current
>      command's key sequence (as returned by e.g. `this-command-keys'),
>      as the events will already have been added once as they were read
>      for the first time.  An element of the form `(`t' . EVENT)' forces
>      EVENT to be added to the current command's key sequence.
>
> So, no, i do not want to use ‘cons’ because:
>
> - ‘push’ is side-effecting, the equivalent of ‘cons’ then ‘setq’,
>   which is what we want (here, the value of the sub-expression is
>   unimportant);
Yes I understood this afterward, thanks.

> - (t . EVENT) frobs ‘this-command-keys’, which doesn't concern me.
>
> Perhaps you mistook ‘?\t’ (CHARACTER TABULATION, U+0009) for ‘t’?
>
>

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




reply via email to

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