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: Tue, 24 Dec 2013 21:14:58 +0100 Message-ID: <8761qeroot.fsf@building.gnus.org> References: <83bo066ts6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387916531 28450 80.91.229.3 (24 Dec 2013 20:22:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Dec 2013 20:22:11 +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 Tue Dec 24 21:22:17 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 1VvYUa-0002Tf-SY for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2013 21:22:17 +0100 Original-Received: from localhost ([::1]:40346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvYUa-0000Q1-BW for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2013 15:22:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvYUS-0000Pt-Hp for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 15:22:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvYUN-0003l6-7P for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 15:22:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvYUN-0003kM-44 for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 15:22:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VvYUM-00048z-GB for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2013 15:22: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: Tue, 24 Dec 2013 20:22: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.138791647215848 (code B ref 16243); Tue, 24 Dec 2013 20:22:02 +0000 Original-Received: (at 16243) by debbugs.gnu.org; 24 Dec 2013 20:21:12 +0000 Original-Received: from localhost ([127.0.0.1]:39671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvYTX-00047Y-KP for submit@debbugs.gnu.org; Tue, 24 Dec 2013 15:21:11 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59062) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvYTV-00047N-JW for 16243@debbugs.gnu.org; Tue, 24 Dec 2013 15:21:10 -0500 Original-Received: from 37.253.110.173.tmi.telenormobil.no ([37.253.110.173] helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VvYTG-0001YW-7V; Tue, 24 Dec 2013 21:20:54 +0100 In-Reply-To: <83bo066ts6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 24 Dec 2013 19:30:33 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1VvYTG-0001YW-7V MailScanner-NULL-Check: 1388521255.67057@w/pM4c6W2IZlMcL2hbM38A 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:82546 Archived-At: Eli Zaretskii 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/