From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Severe lossage from unread-command-events Date: Thu, 06 Aug 2015 20:47:33 +0200 Message-ID: <871tfgl0e2.fsf@fencepost.gnu.org> References: <87egjh4u1h.fsf@fencepost.gnu.org> <83pp30sd5l.fsf@gnu.org> <87k2t831gf.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438886919 13501 80.91.229.3 (6 Aug 2015 18:48:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 18:48:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 06 20:48:34 2015 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 1ZNQDS-0002Ba-4i for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2015 20:48:34 +0200 Original-Received: from localhost ([::1]:46219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNQDR-0002qv-Fb for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2015 14:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNQDB-0002qa-46 for emacs-devel@gnu.org; Thu, 06 Aug 2015 14:48:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNQD9-0003ds-Vw for emacs-devel@gnu.org; Thu, 06 Aug 2015 14:48:17 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNQD9-0003dZ-Rg for emacs-devel@gnu.org; Thu, 06 Aug 2015 14:48:15 -0400 Original-Received: from localhost ([127.0.0.1]:43145 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZNQD9-0001uU-7v; Thu, 06 Aug 2015 14:48:15 -0400 Original-Received: by lola (Postfix, from userid 1000) id 5147DE0E47; Thu, 6 Aug 2015 20:47:33 +0200 (CEST) In-Reply-To: <87k2t831gf.fsf@fencepost.gnu.org> (David Kastrup's message of "Thu, 06 Aug 2015 17:01:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 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:188511 Archived-At: David Kastrup writes: > Well, according to how I read the variable description of > unread-command-events, some are bounced back there from input which has > already been recorded. The description reads: > > Documentation: > List of events to be read as the command input. > These events are processed first, before actual keyboard input. > Events read from this list are not normally added to =E2=80=98this-co= mmand-keys=E2=80=99, > as they 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 that l= ist. > > My test programs used (t . EVENT) after just using EVENT did not do the > trick either. Uh oh. This is bad news for macro recording of list events. Defining kbd macro... Auto-saving...done is undefined and the " is undefined" message comes with an abort of macro recording. Quite the nuisance. So I'll remove the t thing again and will see how I fare then. Now obviously if my events appear first in unread-command-events, they cannot already have been added to this-command-keys, but at least list events apparently must not be added in the (t . EVENT) form or _something_ will attempt a lookup and fail. Since the message appears only _once_, it would appear that the problem stops occuring the moment macro recording by C-x ( has stopped. What a can of worms. --=20 David Kastrup