GNU bug report logs - #16243
24.3.50; shr-visit-file doesn't set the buffer's default-directory

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Tue, 24 Dec 2013 17:33:02 UTC

Severity: normal

Tags: fixed

Found in version 24.3.50

Fixed in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 16243 <at> debbugs.gnu.org
Subject: bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory
Date: Wed, 25 Dec 2013 21:39:23 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: 16243 <at> debbugs.gnu.org
> Date: Wed, 25 Dec 2013 18:42:57 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > But expand-file-name doesn't support it.  On MS-Windows:
> >
> >   (expand-file-name "file:///d:/usr/lib")
> >     => "d:/gnu/bzr/emacs/trunk/file:/d:/usr/lib"
> 
> I think we're talking past each other here.  HTML documents use URLs
> like "file:///home/foo" or "http://fsf.org" as base addresses to expand
> relative URLs.

But shr-visit-file visits a local file, not an HTML document.

> These URLs are never fed to `expand-file-name' or anything like it.

But shr-browse-url, bound to RET on a link created by shr-visit-file,
does just that.

> The problem here is that the command `shr-visit-file' exists.  It
> shouldn't.

Then remove it, and let's move on.




This bug report was last modified 11 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.