bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-dire


From: Lars Ingebrigtsen
Subject: bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory
Date: Tue, 24 Dec 2013 21:14:58 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Why is this a problem?  Because shr.el binds keys to commands that
> expect the buffer's directory to be set correctly.  For example, RET
> is bound to shr-browse-url, which (at least on Windows) needs to
> expand the linked file name relative to the directory of the file that
> is displayed in the buffer.

`shr-visit-file' was a half-assed command I added before I did eww, and
it should probably be removed.  It's not very useful any more.

But if we keep the command, then it should be altered to pass the
directory in as the HTTP base URL, which would make the URLs point to
the right thing without altering default-directory.

But setting default-directory might also be nice -- do "special mode"
buffers usually do so or not?

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]