From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: menu system in recent Emacs? Date: Thu, 03 May 2012 09:28:07 +0200 Message-ID: <87txzx9114.fsf@gmail.com> 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> <87mx5pohyn.fsf@gnuvola.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1336030121 17475 80.91.229.3 (3 May 2012 07:28:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 May 2012 07:28:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 03 09:28:40 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 1SPqSr-0002gS-Ay for ged-emacs-devel@m.gmane.org; Thu, 03 May 2012 09:28:37 +0200 Original-Received: from localhost ([::1]:56616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPqSq-0000tq-Jp for ged-emacs-devel@m.gmane.org; Thu, 03 May 2012 03:28:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPqSi-0000tZ-5N for emacs-devel@gnu.org; Thu, 03 May 2012 03:28:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPqSb-00078W-My for emacs-devel@gnu.org; Thu, 03 May 2012 03:28:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPqSb-00078F-G9 for emacs-devel@gnu.org; Thu, 03 May 2012 03:28:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SPqSY-0002Qn-1D for emacs-devel@gnu.org; Thu, 03 May 2012 09:28:18 +0200 Original-Received: from lbe83-2-78-243-104-167.fbx.proxad.net ([78.243.104.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 May 2012 09:28:18 +0200 Original-Received: from thierry.volpiatto by lbe83-2-78-243-104-167.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 May 2012 09:28:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lbe83-2-78-243-104-167.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux) Cancel-Lock: sha1:E/m+Vc1Kvk62go7wK82uhKNAQOU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:150240 Archived-At: Thien-Thi Nguyen writes: > () 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 ‘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