From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25995: 26.0.50; Mismatch between documented and actual behaviour of icomplete Date: Thu, 09 Mar 2017 18:25:21 -0500 Message-ID: <87shmm823i.fsf@users.sourceforge.net> References: <87a88yveuj.fsf@debian> 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 1489101919 25473 195.159.176.226 (9 Mar 2017 23:25:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2017 23:25:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25995@debbugs.gnu.org To: Alexis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 00:25:15 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 1cm7Qi-0005YA-0I for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 00:25:08 +0100 Original-Received: from localhost ([::1]:36658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm7Qo-000807-0u for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Mar 2017 18:25:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cm7Qh-0007xw-Tg for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:25:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cm7Qd-0007bn-0h for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:25:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cm7Qc-0007bh-S1 for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cm7Qc-0006Kp-IA for bug-gnu-emacs@gnu.org; Thu, 09 Mar 2017 18:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Mar 2017 23:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25995-submit@debbugs.gnu.org id=B25995.148910185124286 (code B ref 25995); Thu, 09 Mar 2017 23:25:02 +0000 Original-Received: (at 25995) by debbugs.gnu.org; 9 Mar 2017 23:24:11 +0000 Original-Received: from localhost ([127.0.0.1]:48193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm7Pn-0006Ja-7h for submit@debbugs.gnu.org; Thu, 09 Mar 2017 18:24:11 -0500 Original-Received: from mail-io0-f178.google.com ([209.85.223.178]:35522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cm7Pm-0006JH-6A; Thu, 09 Mar 2017 18:24:10 -0500 Original-Received: by mail-io0-f178.google.com with SMTP id z13so38912416iof.2; Thu, 09 Mar 2017 15:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=5UNFpzd+tAE7GYrB7g6tEDB7e+fRfp4/MIQrHjeLYeQ=; b=s/fuM9BBbUhFeijuqQPV4ZmZp8qI2gBnVpkZaXjqVV2OcWEfDSi6p/9QSGtPlhj2x+ InMalwpT532eleVns++RlQFNkmQLNrh2LmYtyChZZb3kT6zaPhzo39RB38EDbmFj4O76 0snOBVcSOpzajPQNpctW0s0optt5Zj9wDuz18vdrLs89qNp/t/mDzl8Us6MjZG7d7rGk IEtZWbFMdoczunhZfhMiw9R3iaK0NPuehkNYYwJ3JXvPT67sTk3/8y21bHcvgU4+0XTn bpH8NT24OTDKoaH13DpYp/bcTFVBuTU0T667x/rKHQUCI9pXtjxpu0Xe+J3kKvMhlo6+ ReSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=5UNFpzd+tAE7GYrB7g6tEDB7e+fRfp4/MIQrHjeLYeQ=; b=sk5d7OlgQEFDvjCMDq65gVmltROAgIIa6cgcsisXDlbnoqKplVoGfrD5mXEFeOKp+Y 5xWcSgHQRneaNzl22Vnkfs/TPUuklYbW4FJouUZkJoGoIZDbS8ydveR/CuRd1wtwrXHO nLVSNXdkjDOHZdPb19qpilQkOyceYdwwzcIzM/8ZhOPQddeZ0OAEobclEwotTkrBnkts C7l2gmcC2l877/Bee1NBf4JqGWc2oY6OC6MI3Xmje3oH2EJOPvY5usSr0kTFuvviEd3m 8zePpLTDdS2JqWsrcb5HD2Y84oVR22tBxanCr5E6I+c5nVxQPDT6k5qKSj7BsIdrDeSd soZw== X-Gm-Message-State: AMke39kSsPUbIgK6Lc8/g6zS7cJkrQU2YebxL026EfalV6Q0CfuGhy3ZdzZTB8IO51kzAw== X-Received: by 10.107.46.163 with SMTP id u35mr15109745iou.196.1489101844581; Thu, 09 Mar 2017 15:24:04 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 62sm635405itl.1.2017.03.09.15.24.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2017 15:24:04 -0800 (PST) In-Reply-To: <87a88yveuj.fsf@debian> (Alexis's message of "Mon, 06 Mar 2017 22:12:20 +1100") 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:130410 Archived-At: tags 25995 confirmed quit Alexis writes: > * Create a test directory containing three files: '1', '2', '3'. > > * Change to that directory and run emacs -Q. > > * M-x icomplete-mode > > * C-x C-f > > * C-j > > Section 19.7.2 of the Emacs manual states: > > "At any time, you can type =E2=80=98C-j=E2=80=99 to select the first comp= letion in the > list." > > Reading left-to-right, '1' is the first item in the list. So C-j > should visit that file. Instead, it visits '3'. This seems to have been introduced by [1: 65797b1]. I guess completion-pcm--filename-try-filter should not reverse its input? 1: 2016-04-28 19:31:43 +0200 65797b1d75e9f608ffd50fd88be47a854b143bb1 Make icomplete respect `completion-ignored-extensions' --- i/lisp/minibuffer.el +++ w/lisp/minibuffer.el @@ -3257,7 +3257,7 @@ completion-pcm--filename-try-filter "\\)\\'"))) (dolist (f all) (unless (string-match-p re f) (push f try))) - (or try all)))) + (or (nreverse try) all)))) =20 =20 (defun completion-pcm--merge-try (pattern all prefix suffix)