From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13602: 24.3.50; remove bindings for `icomplete-minibuffer-map' - make a separate mode Date: Thu, 07 Feb 2013 09:50:10 +0200 Organization: JURTA Message-ID: <87a9rgo959.fsf@mail.jurta.org> References: <65EEA895D8A0443A859A780AB233146E@us.oracle.com> <625A327B282C4C279837A7542B76E5C8@us.oracle.com> <87zjzk112u.fsf@gmail.com> <20DF11E25EE542A1A334DA1FDB79F77B@us.oracle.com> <87bobz7ajl.fsf@gmail.com> <87bobys6yc.fsf@mail.jurta.org> <87wquluiks.fsf@mail.jurta.org> <87txpon5mk.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360226789 13825 80.91.229.3 (7 Feb 2013 08:46:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2013 08:46:29 +0000 (UTC) Cc: 13602@debbugs.gnu.org To: Jambunathan K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 09:46:49 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1U3N84-0008Av-Hz for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2013 09:46:48 +0100 Original-Received: from localhost ([::1]:48402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3N7l-0004U7-Rs for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2013 03:46:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3N7h-0004Qo-8K for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 03:46:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3N7f-0005IM-8c for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 03:46:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3MMX-0003qa-Ub for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 02:57:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U3MNp-0005lx-U5 for bug-gnu-emacs@gnu.org; Thu, 07 Feb 2013 02:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Feb 2013 07:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13602 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13602-submit@debbugs.gnu.org id=B13602.136022390222143 (code B ref 13602); Thu, 07 Feb 2013 07:59:01 +0000 Original-Received: (at 13602) by debbugs.gnu.org; 7 Feb 2013 07:58:22 +0000 Original-Received: from localhost ([127.0.0.1]:40644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3MNC-0005l5-75 for submit@debbugs.gnu.org; Thu, 07 Feb 2013 02:58:22 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:33555 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3MN8-0005kw-16 for 13602@debbugs.gnu.org; Thu, 07 Feb 2013 02:58:20 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 23C58258B92943; Wed, 6 Feb 2013 23:56:54 -0800 (PST) In-Reply-To: <87txpon5mk.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 07 Feb 2013 09:21:31 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70800 Archived-At: > `completion-all-sorted-completions' prefers recent input history. Once > you have `gnus-read-ephemeral-emacs-bug-group' in the command history, > it is likely to be the first of the few completions which you can pick > with one or more C-s-es. > > One doesn't need to rely on traditional "C-r" exclusively to accomplish > the above work flow. IIUC, it matches only prefixes, whereas traditional Isearch `C-r' can also match in the middle of the command name in the history. When I tried now `icomplete-backward-completions' currently bound to `C-r', I discovered that it is broken. It fails with the error: Debugger entered--Lisp error: (wrong-type-argument listp 0) cdr(0) (setcdr last-but-one (cdr last)) (progn (setcdr last-but-one (cdr last)) ...) (if last (progn (setcdr last-but-one (cdr last)) ...)) (let* ((comps (completion-all-sorted-completions)) (last (cdr last-but-one))) ...) icomplete-backward-completions() call-interactively(icomplete-backward-completions nil nil) read-from-minibuffer("M-x " nil ... nil extended-command-history nil nil) completing-read-default("M-x " ... commandp t nil extended-command-history nil nil) completing-read("M-x " ... commandp t nil extended-command-history) read-extended-command() byte-code("..." [current-prefix-arg read-extended-command] 2) call-interactively(execute-extended-command nil nil) The full test case: 0. emacs -Q 1. M-x icomplete-mode RET 2. M-x icomplete-m C-r Does this mean that other users of `icomplete-mode' like me disabled `icomplete-mode' in their .emacs after it began overriding Isearch keys, so this feature remained untested and the bug remained unnoticed for the long time (2 months)? I won't be surprised if this is the real reason, because traditional Isearch C-s and C-r is useful in the minibuffer. OTOH, I believe the users of `icomplete-mode' might like the new feature provided by the new commands `icomplete-forward-completions' and `icomplete-backward-completions' only when it leaves intact the traditional Isearch keybindings C-s and C-r. Let's face the root of the problem: abusing C-s and C-r keys in ido was a poor choice in the first place that paved the road to future conflicts. Are there know alternatives to C-s and C-r among the ido users? I see that ido.el mentions the right and left arrow keys. Could they be used with some modifiers?