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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.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: Tue, 24 Dec 2013 22:02:46 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> Not really sure what you meant here.  shr-visit-file is about local
> files, right?  So what URL and which HTTP are relevant here, and why?

To make relative URLs expand correctly, file://directory/file/is/in
should be passed in as the base directory.

> Which special mode buffers?  I actually don't quite understand why
> buffer-file-name isn't set to the name of the file we visit.

`shr-visit-file' doesn't really visit a file.  It just does a rendering
based on it.  If `buffer-file-name' is set to the file, and you save
what you see, you destroy the .html file you see a rendering of.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




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.