From unknown Thu Jun 19 14:04:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12221 <12221@debbugs.gnu.org> To: bug#12221 <12221@debbugs.gnu.org> Subject: Status: 24.2; shell completion can not handle multiple candidates Reply-To: bug#12221 <12221@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:27 +0000 retitle 12221 24.2; shell completion can not handle multiple candidates reassign 12221 emacs submitter 12221 Leo severity 12221 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 17 22:37:00 2012 Received: (at submit) by debbugs.gnu.org; 18 Aug 2012 02:37:00 +0000 Received: from localhost ([127.0.0.1]:36263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2YuJ-0005Rl-HN for submit@debbugs.gnu.org; Fri, 17 Aug 2012 22:37:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41796) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2YuH-0005Rd-Ak for submit@debbugs.gnu.org; Fri, 17 Aug 2012 22:36:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2YuF-0000Ac-FQ for submit@debbugs.gnu.org; Fri, 17 Aug 2012 22:36:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:59364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2YuF-0000AP-Bo for submit@debbugs.gnu.org; Fri, 17 Aug 2012 22:36:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2YuE-0004uN-GU for bug-gnu-emacs@gnu.org; Fri, 17 Aug 2012 22:36:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2Yon-0007UG-AC for bug-gnu-emacs@gnu.org; Fri, 17 Aug 2012 22:31:18 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:59584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2Yon-0007UC-3N for bug-gnu-emacs@gnu.org; Fri, 17 Aug 2012 22:31:17 -0400 Received: by pbbro12 with SMTP id ro12so4664440pbb.0 for ; Fri, 17 Aug 2012 19:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:x-debbugs-cc:date:message-id:mime-version :content-type; bh=BE0Upk1/UyFuXRiTl+N5axrdeafYYk/5GLJvs8u1ldk=; b=KxszrYE5rl/azfkF716PfAvXsZQHdIgAJPtBBqZATW+oFLblbrhwx5GxtnViEyJv50 ycOIGVpfwC/R5+coqeR8JOFr5NVyoiIOgm4ahdOvIyBXi0T80rRZbE5r6BheVQpUb2O8 a8nbYb4dUiqYcEej7GpanX+ik8Zeny5Z61TVf7AM6IW14SqLtPaLmbuBStit66AorlIV dyzDnXcNZ/YJjcDbMSeYZDvOtjvCRbAOgw6jpO58rbDwP72F/i4UAVFHdBHgIM1ElF9q lXYh2pTZkk5QkHZ9MUcSyqzymH8M7iph47WkaJbRhoCDpQ7IH6dLIGaWYiIezybvN5M7 7Lcw== Received: by 10.66.74.100 with SMTP id s4mr13723632pav.27.1345257076122; Fri, 17 Aug 2012 19:31:16 -0700 (PDT) Received: from localhost ([123.114.56.118]) by mx.google.com with ESMTPS id kt2sm6071157pbc.73.2012.08.17.19.31.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 19:31:15 -0700 (PDT) From: Leo To: bug-gnu-emacs@gnu.org Subject: 24.2; shell completion can not handle multiple candidates X-Debbugs-CC: Stefan Monnier Date: Sat, 18 Aug 2012 10:31:04 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 1. Emacs -q 2. (setq completion-cycle-threshold 3) 3. M-x shell 4. fu In OSX, the last step completes to `fuser' ignoring `funzip'. The completion cannot cycle because of the extra ' ' inserted which demonstrates one of the failures of completion-at-point as reported in http://debbugs.gnu.org/11906. Leo From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 15 23:27:44 2012 Received: (at control) by debbugs.gnu.org; 16 Sep 2012 03:27:44 +0000 Received: from localhost ([127.0.0.1]:36074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TD5WJ-0002ps-QR for submit@debbugs.gnu.org; Sat, 15 Sep 2012 23:27:44 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:38855) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TD5WI-0002pk-29 for control@debbugs.gnu.org; Sat, 15 Sep 2012 23:27:42 -0400 Received: by ieak13 with SMTP id k13so8443618iea.3 for ; Sat, 15 Sep 2012 20:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=9DV3L3Y8jsts3Atb83bkFnIw7RD8jDU/HLz0US2No7A=; b=D/0Teu/fwktA4pttvf17gOctjoQ1LM4fr4oZqft2EoT9WeuQfK8SD5oDVAAaJd8HRs F/dBc+q5XNAd8aql8lSqCHf7jiXrvLo6+aPADvncbdo3ArA5F7Ebs2jAS4Hgq+tIKXZM x0zSrD8Y4ohdzzsFjuDJeyqfoxJ44HYFW57LJyBp6yVrPR2Lc+yQPv8KJyIQShxpWovq 4f3PBpy4ZMU5r/Prv7bNo2sDn9S8emmslfRlJMfGwaBFq/Xl1LxVY6eeVNFz9mFx8Jfv aJ4X163fHV17j6ERNJHZh4D3bILkEx7YBl5vV835VlqDdYuRdN9CVyK12WKB7DJrUOHO KkIw== Received: by 10.50.15.132 with SMTP id x4mr2843070igc.58.1347765994786; Sat, 15 Sep 2012 20:26:34 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id hz10sm3023369igc.12.2012.09.15.20.26.32 (version=SSLv3 cipher=OTHER); Sat, 15 Sep 2012 20:26:34 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: merge 12092 12221 Date: Sun, 16 Sep 2012 11:26:29 +0800 Message-ID: <87pq5m1wd6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) merge 12092 12221 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 17 10:49:00 2012 Received: (at control) by debbugs.gnu.org; 17 Sep 2012 14:49:00 +0000 Received: from localhost ([127.0.0.1]:40011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDcd9-0006cx-HM for submit@debbugs.gnu.org; Mon, 17 Sep 2012 10:48:59 -0400 Received: from mail-ob0-f172.google.com ([209.85.214.172]:35250) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDcd7-0006cd-76 for control@debbugs.gnu.org; Mon, 17 Sep 2012 10:48:57 -0400 Received: by mail-ob0-f172.google.com with SMTP id wc20so8851368obb.3 for ; Mon, 17 Sep 2012 07:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=JuKULDpC/UIZyOyDB/PdBxInbHwrYbNu0IzynZleilQ=; b=Q3pcGmkeF+xOWbZ238SOc2QWHFBGLt2f2wxRHId5lIc/qr4R/ICA0aERn4Sacy9MMX 3img+wqBc8nxP9r4GVZQMA4BXroLG66bnZe3Y7qOrNj49iLdwgKpXS+CiSbXBUGv8r/r xqGDH6RZMTGyMpFh6OvPKDtabdmAksJ+DvIb4DZgBLLCIa2yUByeWGwA8yofbtidEaeO lcoULSEX9vLWSuxBZ8Y3Pgk72EjW31f9dQ/XPO+lVSSDycu9kc52skb8KSJcvuF6/het HaPyPG1JrdV3gqu2T0D+Zkw4IZtogZWN3xuFGrxnAn6rfxwZnePDbsPonmBDsKbcs9ZX PSuQ== Received: by 10.60.29.134 with SMTP id k6mr11663502oeh.5.1347893262440; Mon, 17 Sep 2012 07:47:42 -0700 (PDT) Received: from ulysses ([155.69.172.88]) by mx.google.com with ESMTPS id qd7sm10918183obc.5.2012.09.17.07.47.37 (version=SSLv3 cipher=OTHER); Mon, 17 Sep 2012 07:47:40 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 12092 Date: Mon, 17 Sep 2012 22:47:35 +0800 Message-ID: <87sjag1zaw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) unmerge 12221 close 12092 thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 03 01:50:57 2012 Received: (at submit) by debbugs.gnu.org; 3 Oct 2012 05:50:57 +0000 Received: from localhost ([127.0.0.1]:38413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJHrE-0005TS-Q2 for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:50:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45704) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TJHrA-0005TI-3E for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:50:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJHqY-0008P5-JE for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:50:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_NUMERIC_HELO autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJHqY-0008Oy-Fi for submit@debbugs.gnu.org; Wed, 03 Oct 2012 01:50:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJHqX-0002MT-Ah for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 01:50:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJHqW-0008Na-5X for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 01:50:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:43294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJHqV-0008LI-Uz for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 01:50:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TJHqI-0002Wy-OA for bug-gnu-emacs@gnu.org; Wed, 03 Oct 2012 07:49:58 +0200 Received: from 119.255.41.67 ([119.255.41.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Oct 2012 07:49:58 +0200 Received: from sdl.web by 119.255.41.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Oct 2012 07:49:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Leo Subject: Re: bug#12221: 24.2; shell completion can not handle multiple candidates Date: Wed, 03 Oct 2012 13:49:05 +0800 Lines: 18 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 119.255.41.67 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (OS X 10.8.2) Cancel-Lock: sha1:Wk7XSVvroCj95hK9ogDuogfVq3E= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On 2012-08-18 10:31 +0800, Leo wrote: > 1. Emacs -q > 2. (setq completion-cycle-threshold 3) > 3. M-x shell > 4. fu > > In OSX, the last step completes to `fuser' ignoring `funzip'. The > completion cannot cycle because of the extra ' ' inserted which > demonstrates one of the failures of completion-at-point as reported in > http://debbugs.gnu.org/11906. And of course when this is broken, M-! (shell-command) breaks as well. I wonder if there is any plan in fixing up completion-at-point for 24.3. This thing has been implanted in so many places in emacs that when it breaks it hurts badly! Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 19 17:12:54 2012 Received: (at 12221-done) by debbugs.gnu.org; 19 Oct 2012 21:12:55 +0000 Received: from localhost ([127.0.0.1]:52196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPJsE-0000fl-E4 for submit@debbugs.gnu.org; Fri, 19 Oct 2012 17:12:54 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:33787) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPJsC-0000fa-P5 for 12221-done@debbugs.gnu.org; Fri, 19 Oct 2012 17:12:53 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwEAG6Zu09MCoeh/2dsb2JhbABEtBGBCIJyciYYDTeIAAMLmFKhN4oagwyDHgOjM4FYgwWBOho X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202330641" Received: from 76-10-135-161.dsl.teksavvy.com (HELO ceviche.home) ([76.10.135.161]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Oct 2012 17:11:15 -0400 Received: by ceviche.home (Postfix, from userid 20848) id E393966773; Fri, 19 Oct 2012 17:11:13 -0400 (EDT) From: Stefan Monnier To: 12221-done@debbugs.gnu.org Subject: 24.2; shell completion can not handle multiple candidates Message-ID: Date: Fri, 19 Oct 2012 17:11:13 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 12221-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) I've installed the patch below which I believe fixes the bug, finally. Stefan === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-10-19 09:28:50 +0000 +++ lisp/ChangeLog 2012-10-19 18:58:27 +0000 @@ -1,3 +1,8 @@ +2012-10-19 Stefan Monnier + + * minibuffer.el (minibuffer-force-complete): Make the next completion use + the same completion-field (bug@12221). + 2012-10-19 Martin Rudalics * emacs-lisp/debug.el (debug): Record height of debugger window === modified file 'lisp/minibuffer.el' --- lisp/minibuffer.el 2012-10-18 03:30:04 +0000 +++ lisp/minibuffer.el 2012-10-19 18:40:12 +0000 @@ -1134,7 +1134,23 @@ ;; through the previous possible completions. (let ((last (last all))) (setcdr last (cons (car all) (cdr last))) - (completion--cache-all-sorted-completions (cdr all))))))) + (completion--cache-all-sorted-completions (cdr all))) + ;; Make sure repeated uses cycle, even though completion--done might + ;; have added a space or something that moved us outside of the field. + ;; (bug#12221). + (let* ((table minibuffer-completion-table) + (pred minibuffer-completion-predicate) + (extra-prop completion-extra-properties) + (cmd + (lambda () "Cycle through the possible completions." + (interactive) + (let ((completion-extra-properties extra-prop)) + (completion-in-region start (point) table pred))))) + (set-temporary-overlay-map + (let ((map (make-sparse-keymap))) + (define-key map [remap completion-at-point] cmd) + (define-key map (vector last-command-event) cmd) + map))))))) (defvar minibuffer-confirm-exit-commands '(completion-at-point minibuffer-complete @@ -1557,7 +1573,6 @@ (let* ((exit-fun (plist-get completion-extra-properties :exit-function)) (pre-msg (and exit-fun (current-message)))) (cl-assert (memq finished '(exact sole finished unknown))) - ;; FIXME: exit-fun should receive `finished' as a parameter. (when exit-fun (when (eq finished 'unknown) (setq finished From unknown Thu Jun 19 14:04:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Nov 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator