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:30:28 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508520683 20641 195.159.176.226 (20 Oct 2017 17:31:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2017 17:31:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 20 19:31:19 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 1e5b8Z-0003i3-UI for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2017 19:31:12 +0200 Original-Received: from localhost ([::1]:55062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5b8e-0007Tf-CA for ged-emacs-devel@m.gmane.org; Fri, 20 Oct 2017 13:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5b82-0007TL-PP for emacs-devel@gnu.org; Fri, 20 Oct 2017 13:30:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5b80-0005H8-4h for emacs-devel@gnu.org; Fri, 20 Oct 2017 13:30:38 -0400 Original-Received: from pmta31.teksavvy.com ([76.10.157.38]:35183) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5b7z-0005GG-UU for emacs-devel@gnu.org; Fri, 20 Oct 2017 13:30:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EcIAAyMupZ/4AFNJ1cHQEFAQsBg1+BU?= =?us-ascii?q?okuhgaOSwGBeTEBlgaCEIU/BAIChDpHEQECAQEBAQEBAQNoKIUeAQQBViMQCw4?= =?us-ascii?q?mEhQYDSSKKwitSIshAQEBBwImgy6Iaop6AQShX6BKh0aXMzkDHIFbNCEIMoMuh?= =?us-ascii?q?HokixYBAQE?= X-IPAS-Result: =?us-ascii?q?A2EcIAAyMupZ/4AFNJ1cHQEFAQsBg1+BUokuhgaOSwGBeTE?= =?us-ascii?q?BlgaCEIU/BAIChDpHEQECAQEBAQEBAQNoKIUeAQQBViMQCw4mEhQYDSSKKwitS?= =?us-ascii?q?IshAQEBBwImgy6Iaop6AQShX6BKh0aXMzkDHIFbNCEIMoMuhHokixYBAQE?= X-IronPort-AV: E=Sophos;i="5.43,405,1503374400"; d="scan'208";a="6843688" 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:30:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9E0E560732; Fri, 20 Oct 2017 13:30:28 -0400 (EDT) In-Reply-To: (Oleh Krehel's message of "Fri, 20 Oct 2017 17:26:03 +0200") 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:219654 Archived-At: >> Could you highlight some of the things that are easier with >> hydra-set-transient-map (or more generally what were the problems you >> encountered with set-transient-map)? > Just some customization logic, see `hydra--clearfun' for more detail. > One example is the `hydra-pause-resume' command: it's not in any > transient map, but needs special interaction. > Another example is issuing a warning in some cases about the transient > map, instead of disabling it. Without looking into the details, I'd think that you can put that functionality into the `keep-pred` function (and hence implement hydra-set-transient-map on top of set-transient-map). But since you don't build on top of set-transient-map, I assume that doing what I suggest leads to problems. Right? What were those? Stefan