From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#25644: 26.0.50; Problematic transient map in minibuffer-force-complete Date: Tue, 07 Feb 2017 16:52:19 +0100 Message-ID: <87lgti80cs.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486483877 19166 195.159.176.226 (7 Feb 2017 16:11:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 16:11:17 +0000 (UTC) Cc: Stefan Monnier To: 25644@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 17:11:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cb8MH-0004Yv-Gc for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 17:11:09 +0100 Original-Received: from localhost ([::1]:55108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb8MN-0005Zk-7Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 11:11:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb84p-0006In-4l for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:53:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb84k-0002xg-D6 for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:53:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60948) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb84k-0002xS-9w for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cb84k-0002WN-3D for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2017 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25644 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14864827679666 (code B ref -1); Tue, 07 Feb 2017 15:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2017 15:52:47 +0000 Original-Received: from localhost ([127.0.0.1]:59147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb84V-0002Vp-8x for submit@debbugs.gnu.org; Tue, 07 Feb 2017 10:52:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb84T-0002Vd-Oy for submit@debbugs.gnu.org; Tue, 07 Feb 2017 10:52:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb84N-0002dZ-8n for submit@debbugs.gnu.org; Tue, 07 Feb 2017 10:52:40 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43123) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cb84N-0002dQ-5O for submit@debbugs.gnu.org; Tue, 07 Feb 2017 10:52:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb84L-0005yE-LR for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:52:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb84G-0002WT-Sf for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:52:37 -0500 Original-Received: from mout.web.de ([217.72.192.78]:64907) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cb84G-0002VQ-IN for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 10:52:32 -0500 Original-Received: from drachen.dragon ([88.67.111.141]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LdF4n-1cAHck18tt-00iPPH; Tue, 07 Feb 2017 16:52:23 +0100 X-Provags-ID: V03:K0:DjmsnAGG77RngXUrmtlefAIPTpYJ5z6ZYrNOnoSwmuuJIr9fIY/ zMXrLDkyUZ3zldSc2ckYSFD0gAEe9O4ybXadaMlyyFmSnfJBHxzjBem6r8WdRsVxYYqQRpw sje9EeuqKDOKvm0YBY7lKKQbWnSKSprypyd4EzBpaF87ll345o45cTNJPAEpUtDjPTk+xGk iHglJJuxd+y6UrvzQoROA== X-UI-Out-Filterresults: notjunk:1;V01:K0:X9aj+2e5Djs=:DcY98QxfhasFXq6lJM7dVj pCRemc6jOBSUhlxkK37xRnl/OxVdPAmo5PwPxMvf+zebXp3pP3eJHUEKDAZH/7GyXepnteg0o cawRoP5QmQEBSsE0GTvgTM8SRkj9dOTJiC8p1sYpT68PtV46SnbAKhHVyIVFtgP9ej+Lp40J6 9PeJhDD5q1MYNaloLovbj0P4nInnYWfBn8l50vuSbe3khh/EE39orKNq8JkvVjcIBIMOTazlG xhJtE6aqnVxoCSLlAqbXNDB2k8DmrS+Qm5V7kZzTu9w6Zs+ze886+feARY8gqCWPXakUmtQqq 78PEzlTMr364RIRJOF0XH2RRctefhlKTkfQkUUqJtSwOG/+WSGzZln9IWBInUWOl/nsJslsTL T9uVh3nku/HeOOUpvZZJPFfxcb9GUjbPssN+MRUeT47SgdBjnq2OJJc7gsXkGPtLWer0B4dCy J4vBBFsVEPwYk4Q5SR9XP4O1qLHY4JCcbRQ6FlydQ7o8qhfNCJTJSDoQQ24cx5kr38UCWOKlR jOlDvOHCiP5rup2kx0QISvHFZdyjzpX0bNOgYkg2wKZcs9/+Q6PVVeZVPCTtIP7Iy0r/9oGaH lx7YdfSPLvaPRqzFO5kDFELvI1mLSfcsMvZ1rw+5h2CJUv6HYuLE7VNbwDDneMZu3zxhMebJ1 rwwL0kUC3RKvfeTAsJn5pBV8kcL0au0Kp2hZBxAU1g2PUSMGxPFDfyQwH80ajuVjG6tm7qYUe YLfNhlbOdaIyBmYcquR2aHG1jmuySz9CR/wxG/a3/2J7YwhaQsURuVX4UB2lXffeOW5uLJUp X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129073 Archived-At: Hi, [I CC Stefan because he has installed the fix for #12221 that added the code that bites me] I like to use icomplete-mode, but I prefer to have the bindings of RET and C-j switched. This sometimes collides with the transient-map installed by minibuffer-force-complete. Here is a random recipe for emacs -Q: Setup: #+begin_src emacs-lisp (icomplete-mode) (define-key icomplete-minibuffer-map [return] #'icomplete-force-complete-and-exit) (define-key icomplete-minibuffer-map [(control ?j)] #'exit-minibuffer) #+end_src Now (just a silly example): M-x epatch - Answer y to the question whether the patch is in a buffer - Hit RET to confirm the suggested default Note that nothing happens, or you get a `ding'. The second RET works OTOH. Without the "Setup" part it works as expected however. I debugged a bit and found that in the first place, the transient map installed by minibuffer-force-complete shadows the (my) binding of RET. Someone with insight into that code (Stefan, probably): am I'm doing something forbidden, or should we improve that code? Thanks, Michael. In GNU Emacs 26.0.50.15 (x86_64-pc-linux-gnu, GTK+ Version 3.22.7) of 2017-02-06 built on drachen Repository revision: d45dbccc5d2360818e70bbb0bc816c62c8cf6cbe Windowing system distributor 'The X.Org Foundation', version 11.0.11901000 System Description: Debian GNU/Linux 9.0 (stretch)