From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#41114: 28.0.50; default-directory & buffer-file-name set to file:// URLs Date: Wed, 06 May 2020 23:52:59 +0200 Message-ID: <87h7wswx1g.fsf@gnu.org> References: <87tv0swy6k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="83049"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 41114@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 06 23:54:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWRzV-000LVO-CF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 23:54:09 +0200 Original-Received: from localhost ([::1]:33438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWRzU-0004zz-Dk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 17:54:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWRzO-0004zq-5F for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 17:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWRzN-0006L4-S9 for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 17:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWRzN-0007Vz-OJ for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 17:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 May 2020 21:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41114 X-GNU-PR-Package: emacs Original-Received: via spool by 41114-submit@debbugs.gnu.org id=B41114.158880199428831 (code B ref 41114); Wed, 06 May 2020 21:54:01 +0000 Original-Received: (at 41114) by debbugs.gnu.org; 6 May 2020 21:53:14 +0000 Original-Received: from localhost ([127.0.0.1]:41486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWRyc-0007Ux-9C for submit@debbugs.gnu.org; Wed, 06 May 2020 17:53:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWRyV-0007Ug-Va for 41114@debbugs.gnu.org; Wed, 06 May 2020 17:53:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36638) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWRyQ-0001Rk-Lu for 41114@debbugs.gnu.org; Wed, 06 May 2020 17:53:02 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:52325) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jWRyQ-0006wV-6F for 41114@debbugs.gnu.org; Wed, 06 May 2020 17:53:02 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id C54B327C0054 for <41114@debbugs.gnu.org>; Wed, 6 May 2020 17:53:01 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 06 May 2020 17:53:01 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeelgddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehttdertd dtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhr gheqnecuggftrfgrthhtvghrnheptdelieffkeeuffduueeffefhiedtjeeutdeuveegff fgtdejleekheegkeetkeevnecukfhppeekgedrudefvddruddtkedrvdefheenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p54846ceb.dip0.t-ipconnect.de [84.132.108.235]) by mail.messagingengine.com (Postfix) with ESMTPA id 37A863066123 for <41114@debbugs.gnu.org>; Wed, 6 May 2020 17:53:01 -0400 (EDT) In-Reply-To: <87tv0swy6k.fsf@gnu.org> (Tassilo Horn's message of "Wed, 06 May 2020 23:28:19 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179848 Archived-At: Tassilo Horn writes: > 1. emacs -Q > 2. (browse-url-emacs "file:///home/horn/.bashrc") ;; Adapt file name. > > The result of the procedure is that `buffer-file-name' is > "file:///home/horn/.bashrc" and `default-directory' is > "file:///home/horn/". > > According to the docs, both variables should be absolute file names, > not URLs. > > The problems with those URLs are at least that: > > - C-x C-f in that buffer will offer a completely broken initial > directory when querying for a file or directory. For me it is > ~/Repos/el/emacs/src/file:/home/horn/file:/home/horn/. > > - When call-process is called from that buffer it'll error that > file:///home/horn/ cannot be set as current directory. In addition, the file is read-only although I have write permissions for my own .bashrc. When I then C-x C-f ~/.bashrc, I get the message ~/.bashrc and file:///home/horn/.bashrc are the same file so Emacs actually knows they are the same file. Bye, Tassilo