From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Problem quitting properly from transient keymap with one keystroke Date: Fri, 20 Oct 2017 13:34:13 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1508520921 4046 195.159.176.226 (20 Oct 2017 17:35:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2017 17:35:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: rswgnu@gmail.com, emacs-devel To: Robert Weiner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 20 19:35:17 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5bCV-0000Pq-QL for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2017 19:35:15 +0200 Original-Received: from localhost ([::1]:55076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5bCd-0008N1-Bk for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2017 13:35:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5bBt-0008Mo-Ud for emacs-devel@gnu.org; Fri, 20 Oct 2017 13:34:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5bBr-0007PV-Bb for emacs-devel@gnu.org; Fri, 20 Oct 2017 13:34:37 -0400 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:52220) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5bBr-0007P0-5z; Fri, 20 Oct 2017 13:34:35 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GkCgBUM+pZ/4AFNJ1cHAEBBAEBCgEBg?= =?us-ascii?q?1+BUoQhhQ2GBo5LAYIqAZgWHYUiBAIChDpEFAECAQEBAQEBAQNoKIUeBiMzIxA?= =?us-ascii?q?LDgwCGA4CAhQYDSSKM6sogieLIQEBCCiBD4IfiGqFBYMUgmEBBKFflm2JXYdGl?= =?us-ascii?q?zM2IoFbNCEIMoMuhHokixYBAQE?= X-IPAS-Result: =?us-ascii?q?A2GkCgBUM+pZ/4AFNJ1cHAEBBAEBCgEBg1+BUoQhhQ2GBo5?= =?us-ascii?q?LAYIqAZgWHYUiBAIChDpEFAECAQEBAQEBAQNoKIUeBiMzIxALDgwCGA4CAhQYD?= =?us-ascii?q?SSKM6sogieLIQEBCCiBD4IfiGqFBYMUgmEBBKFflm2JXYdGlzM2IoFbNCEIMoM?= =?us-ascii?q?uhHokixYBAQE?= X-IronPort-AV: E=Sophos;i="5.43,405,1503374400"; d="scan'208";a="6843909" Original-Received: from 157-52-5-128.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.128]) by smtp.teksavvy.com with ESMTP; 20 Oct 2017 13:34:14 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D6B4760732; Fri, 20 Oct 2017 13:34:13 -0400 (EDT) In-Reply-To: (Robert Weiner's message of "Fri, 20 Oct 2017 12:04:51 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.38 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:219655 Archived-At: > =E2=80=8BI understand. Would it be possible to make the exit function ru= n on both > pre- and post-command hook so that it could use the results of the comman= d=E2=80=8B > when needed and eliminate the need in many cases to call the quit function > manually? Or would that cause problems? I think it would bump into other problems because the keep-pred predicate expects to be called from pre-command-hook. IOW, maybe it would have been a valid design, but it would be an incompatible change. Stefan