[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: |
Wed, 25 Dec 2013 18:42:57 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Eli Zaretskii <eliz@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. These URLs are never fed to `expand-file-name' or
anything like it.
>> That's why `buffer-file-name' isn't set.
>
> There are other methods to prevent accidental saving, which don't mess
> up with buffer-file-name or default-directory. After all, the user
> can always specify the file to save explicitly, so you cannot make
> this 100% idiot-proof anyway. The way things are now, we punish the
> innocent majority on behalf of a crazy minority. That doesn't sound
> right to me.
The problem here is that the command `shr-visit-file' exists. It
shouldn't. It was just used to simple debugging while developing shr,
and should be removed. That the buffer is in `fundamental-mode' is
another symptom. >"?
Instead there could be an `eww-find-file' that would do the right thing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Eli Zaretskii, 2013/12/24
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Lars Ingebrigtsen, 2013/12/24
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Eli Zaretskii, 2013/12/24
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Lars Ingebrigtsen, 2013/12/24
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Eli Zaretskii, 2013/12/24
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Lars Ingebrigtsen, 2013/12/25
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Eli Zaretskii, 2013/12/25
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory,
Lars Ingebrigtsen <=
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Eli Zaretskii, 2013/12/25
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Lars Ingebrigtsen, 2013/12/25
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Lars Ingebrigtsen, 2013/12/25
- bug#16243: 24.3.50; shr-visit-file doesn't set the buffer's default-directory, Eli Zaretskii, 2013/12/25