From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs 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 Message-ID: <87txdwg732.fsf@building.gnus.org> References: <83bo066ts6.fsf@gnu.org> <8761qeroot.fsf@building.gnus.org> <83wqiu55pa.fsf@gnu.org> <87lhzaq7wp.fsf@building.gnus.org> <83txdx616f.fsf@gnu.org> <87zjnpl4vx.fsf@building.gnus.org> <83mwjo6d8s.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387994182 11958 80.91.229.3 (25 Dec 2013 17:56:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Dec 2013 17:56:22 +0000 (UTC) Cc: 16243@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 25 18:56:29 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vvsb3-0001VY-3W for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Dec 2013 18:50:17 +0100 Original-Received: from localhost ([::1]:43104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvsb2-0006aM-Pb for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Dec 2013 12:50:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvsau-0006Yf-LX for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2013 12:50:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vvsap-0000kA-DX for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2013 12:50:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvsap-0000ic-At for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2013 12:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vvsao-0006KD-3a for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2013 12:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Dec 2013 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16243 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16243-submit@debbugs.gnu.org id=B16243.138799375124214 (code B ref 16243); Wed, 25 Dec 2013 17:50:02 +0000 Original-Received: (at 16243) by debbugs.gnu.org; 25 Dec 2013 17:49:11 +0000 Original-Received: from localhost ([127.0.0.1]:41637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvsZy-0006IT-GL for submit@debbugs.gnu.org; Wed, 25 Dec 2013 12:49:10 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:57900) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvsZw-0006IL-5z for 16243@debbugs.gnu.org; Wed, 25 Dec 2013 12:49:09 -0500 Original-Received: from 46.156.155.141.tmi.telenormobil.no ([46.156.155.141] helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VvsZh-0003nE-Hd; Wed, 25 Dec 2013 18:48:53 +0100 In-Reply-To: <83mwjo6d8s.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Dec 2013 19:40:03 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1VvsZh-0003nE-Hd MailScanner-NULL-Check: 1388598533.90643@cWDFgymqN7ipJwfhOlN4wQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82593 Archived-At: Eli Zaretskii 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/