From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36502: Fwd: bug#36502: 27.0.50; infinite loop in file-name-case-insensitive-p Date: Fri, 12 Jul 2019 09:41:50 +0300 Message-ID: <83v9w73gb5.fsf@gnu.org> References: <7fa570d6-74a7-56d0-af9e-48ade20551b8@cornell.edu> <87muhr47k5.fsf@gmail.com> <837e8v87jf.fsf@gnu.org> <2ffa1b04-e667-f708-1047-d5fc38e72787@cornell.edu> <83v9wd7vwi.fsf@gnu.org> <14115c87-c1e7-6f3d-2694-106a9d4c8706@cornell.edu> <83bly47lxk.fsf@gnu.org> <837e8s7hk4.fsf@gnu.org> <2f71c7a3-423c-4a36-a0c2-5c1833905a28@cornell.edu> <2f15cf80-feba-3e71-4cbf-a7fa25b43797@cornell.edu> <83zhlo5tkm.fsf@gnu.org> <41c1033e-bd1c-d244-7293-00dfba900e8f@cornell.edu> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="143426"; mail-complaints-to="usenet@blaine.gmane.org" Cc: schwab@suse.de, npostavs@gmail.com, 36502@debbugs.gnu.org, monnier@iro.umontreal.ca, dan@dpsutton.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 08:59:46 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlpWv-000atL-Kl for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 08:59:41 +0200 Original-Received: from localhost ([::1]:46988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlpGt-0002Aq-G1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 02:43:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53325) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlpGq-00029Y-IW for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 02:43:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlpGo-0001w9-KY for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 02:43:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58584) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlpGo-0001vv-0i for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 02:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlpGn-0002wU-Qf for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 02:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 06:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36502 X-GNU-PR-Package: emacs Original-Received: via spool by 36502-submit@debbugs.gnu.org id=B36502.156291374011266 (code B ref 36502); Fri, 12 Jul 2019 06:43:01 +0000 Original-Received: (at 36502) by debbugs.gnu.org; 12 Jul 2019 06:42:20 +0000 Original-Received: from localhost ([127.0.0.1]:39172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlpG8-0002ve-7z for submit@debbugs.gnu.org; Fri, 12 Jul 2019 02:42:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlpG6-0002vQ-D3 for 36502@debbugs.gnu.org; Fri, 12 Jul 2019 02:42:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hlpG1-0001Pc-1M; Fri, 12 Jul 2019 02:42:13 -0400 Original-Received: from [176.228.60.248] (port=3113 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hlpFn-00047X-Ks; Fri, 12 Jul 2019 02:42:00 -0400 In-reply-to: (message from Richard Stallman on Thu, 11 Jul 2019 19:36:38 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:162752 Archived-At: > From: Richard Stallman > Cc: eliz@gnu.org, dan@dpsutton.com, npostavs@gmail.com, > 36502@debbugs.gnu.org, monnier@iro.umontreal.ca, > schwab@suse.de > Date: Thu, 11 Jul 2019 19:36:38 -0400 > > > (let ((default-directory "~foo")) > > (expand-file-name "bar")) > > => "~foo/~foo/bar" > > That is not right, but I think "~foo/bar" would be right. No, I think this should yield an absolute file name starting with a slash (on Posix systems). > > Part of what's confusing here is that file-name-absolute-p returns > > t on file names starting with "~", even though its doc string > > explicitly states that such a file name is not absolute. > > This contradiction is not good. But I would like to point out > that, in a certain sesne, a name starting with ~ is absolute. > It is not relative to the current directory. It is only absolute if what follows ~ is a slash or a name of an existing user. I think we should fix the inconsistency in that direction.