From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#21284: 25.0.50; `completion-file-name-table' should/not use `nreverse'? Date: Mon, 6 Jun 2016 19:12:01 -0400 Message-ID: References: <83mvmytm2v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465254803 31603 80.91.229.3 (6 Jun 2016 23:13:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 23:13:23 +0000 (UTC) Cc: 21284@debbugs.gnu.org, Keith David Bershatsky , Marcin Borkowski To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 01:13:13 2016 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 1bA3ho-0007Ia-Ek for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 01:13:12 +0200 Original-Received: from localhost ([::1]:46003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA3hn-0001E4-OT for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jun 2016 19:13:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA3hi-0001D7-AX for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 19:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bA3he-0007qp-42 for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 19:13:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA3hd-0007qb-Vj for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 19:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bA3hd-0004od-PR for bug-gnu-emacs@gnu.org; Mon, 06 Jun 2016 19:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2016 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21284 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 21284-submit@debbugs.gnu.org id=B21284.146525472918443 (code B ref 21284); Mon, 06 Jun 2016 23:13:01 +0000 Original-Received: (at 21284) by debbugs.gnu.org; 6 Jun 2016 23:12:09 +0000 Original-Received: from localhost ([127.0.0.1]:57181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA3gn-0004nO-EU for submit@debbugs.gnu.org; Mon, 06 Jun 2016 19:12:09 -0400 Original-Received: from mail-oi0-f44.google.com ([209.85.218.44]:33021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA3gl-0004n3-Mf for 21284@debbugs.gnu.org; Mon, 06 Jun 2016 19:12:07 -0400 Original-Received: by mail-oi0-f44.google.com with SMTP id k23so250577175oih.0 for <21284@debbugs.gnu.org>; Mon, 06 Jun 2016 16:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+eL20m+Yfo7bpceJ4Kdv/HvwQDXHx2TZK+TUeTFKYU8=; b=yrBq6bjBBIapO5dJ8MM68sPmDUNm08XTlCkaq1x3Z3789qHNBVqThr8cMP7EBzcYmA TOhh4evR+DzBbX7xrLSWi//tcm8ijVNqT3hXk7KrQjTCDe59wy2Xz1HD6AyN0xYRVvbw AQWCiW+5ke2BFGA+UwcfU36PnGxlxkhkg4ajONKUrgF9woeA0Ap1gKUt5GaVNta4TKCb TwBQbxRijL5723pFeod3R2fM3699ft+xiw1FBL7QMJ0s/FfyjetHROJlylG/UYvUxVsq WOzlThW4+/CVlBqMEOYgTPAd5mRsjJ5V8t3o09YpaEr2HY6FDpgeZmXO2aMP1PT0wqEW X60Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+eL20m+Yfo7bpceJ4Kdv/HvwQDXHx2TZK+TUeTFKYU8=; b=Ik0D1ZPS8WaCtMEu9Gk7bLCU81O9SI+QJnhrue3INthKWJHK8Bda86spwrLA6NnMt0 uOyVF5HEOlsNJWDspB3Bvcw6eY0pG88mT4Liti7H3bWjPK5my8bvYW7vQ/JntcYZOTjc JN5BP9n0dE7RihI0dfUvoPu3DwQb1orDCnuikk4mn8eFgD6ku8OTLJlFhE7VvNWp2wgj MejCCV4Wkvpry/hZzfMOvOKR7mJObg8EyPHp1jhtddyiD0GYwuPb8akiqwuhmMEVlQU9 aex6p8dIrKE7eQVX3D8HYFEl7xGGlK6fDhUcoC6EpdRhT7jB5SXswkK52Dy3ihbaNlaX E+0w== X-Gm-Message-State: ALyK8tKDHJUu9AG1qET8xqokYTamewuoDs+EI6aXBXwHtip/czmjm+xdbT1N+jDvXWf8othaNBdPNRKc/QoA3w== X-Received: by 10.157.51.74 with SMTP id u10mr10555360otd.124.1465254721892; Mon, 06 Jun 2016 16:12:01 -0700 (PDT) Original-Received: by 10.157.5.168 with HTTP; Mon, 6 Jun 2016 16:12:01 -0700 (PDT) In-Reply-To: <83mvmytm2v.fsf@gnu.org> X-Google-Sender-Auth: G4OypX8s8AaK35_2AYb-Ic1XSg0 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:119187 Archived-At: tag 21284 - unreproducible severity 21284 minor quit On Mon, Jun 6, 2016 at 10:43 AM, Eli Zaretskii wrote: > I suspect that there's a hidden factor here: the order in which the > 'readdir' libc function returns the directory entries. On GNU/Linux, > the order is arbitrary (AFAIK, it's the order of the entries in the > directory file). On MS-Windows, the order is alphabetic, so reversing > will produce the reverse alphabetic order. I don't know what happens > on OS X. Oh yeah, I see reversed order on Windows. On Mon, Jun 6, 2016 at 12:19 PM, Keith David Bershatsky wrote: > I am on OS X and the default sort order is alphabetic, which gets reversed by `completion-file-name-table` because it uses `nreverse'. Actually, the result from `file-name-all-completions` is already reversed. `completion-file-name-table` then reverses it twice: once in the loop (dolist (tem all) (... (push tem comp))), and the `nreverse` call to undo it.