From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: menu system in recent Emacs? Date: Thu, 03 May 2012 09:13:20 +0200 Message-ID: <87mx5pohyn.fsf@gnuvola.org> References: <87zk9to1bh.fsf@lifelogs.com> <878vhcgfwu.fsf@lifelogs.com> <87sjfibwhj.fsf@lifelogs.com> <87havybs60.fsf_-_@lifelogs.com> <87havybeks.fsf@thinkpad.tsdh.de> <87wr4u8jgb.fsf@lifelogs.com> <87havy31k5.fsf@gmx.com> <87sjfi8dxt.fsf@lifelogs.com> <8762cem97x.fsf@gnuvola.org> <874nry84qc.fsf@lifelogs.com> <871un2m5j8.fsf@gnuvola.org> <87bom5et5k.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1336029228 10941 80.91.229.3 (3 May 2012 07:13:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 May 2012 07:13:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 03 09:13:47 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPqEU-0001Oy-BP for ged-emacs-devel@m.gmane.org; Thu, 03 May 2012 09:13:46 +0200 Original-Received: from localhost ([::1]:54268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPqET-0007SQ-9J for ged-emacs-devel@m.gmane.org; Thu, 03 May 2012 03:13:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPqEM-0007S5-Rk for emacs-devel@gnu.org; Thu, 03 May 2012 03:13:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPqEI-0001U4-AY for emacs-devel@gnu.org; Thu, 03 May 2012 03:13:38 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:58597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPqEH-0001Tf-VU for emacs-devel@gnu.org; Thu, 03 May 2012 03:13:34 -0400 Original-Received: from ambire (79.21.139.144) by smtp207.alice.it (8.6.023.02) id 4F05A6650D9C1414; Thu, 3 May 2012 09:13:31 +0200 Original-Received: from ttn by ambire with local (Exim 4.72) (envelope-from ) id 1SPqE5-0000Z7-TW; Thu, 03 May 2012 09:13:21 +0200 In-Reply-To: <87bom5et5k.fsf@gmail.com> (Thierry Volpiatto's message of "Thu, 03 May 2012 07:21:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150239 Archived-At: () Thierry Volpiatto () 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 =E2=80=98cons=E2=80=99 because: - =E2=80=98push=E2=80=99 is side-effecting, the equivalent of =E2=80=98cons= =E2=80=99 then =E2=80=98setq=E2=80=99, which is what we want (here, the value of the sub-expression is unimportant); - (t . EVENT) frobs =E2=80=98this-command-keys=E2=80=99, which doesn't conc= ern me. Perhaps you mistook =E2=80=98?\t=E2=80=99 (CHARACTER TABULATION, U+0009) fo= r =E2=80=98t=E2=80=99?