From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19865: tar-untar-buffer: should honor default-directory Date: Mon, 16 Feb 2015 18:40:51 -0500 Message-ID: References: <87a90gd91b.fsf@violet.siamics.net> <83sie8wn8z.fsf@gnu.org> <831tlpvp35.fsf@gnu.org> <83twyltz5x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424130149 10601 80.91.229.3 (16 Feb 2015 23:42:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2015 23:42:29 +0000 (UTC) Cc: ivan@siamics.net, 19865@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 00:42:14 2015 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 1YNVIr-0007jK-U9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 00:42:14 +0100 Original-Received: from localhost ([::1]:43141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNVIr-0000tU-BT for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Feb 2015 18:42:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNVIm-0000o2-27 for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2015 18:42:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNVIh-0001S1-04 for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2015 18:42:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNVIg-0001Rt-M9 for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2015 18:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YNVIg-0005tM-98 for bug-gnu-emacs@gnu.org; Mon, 16 Feb 2015 18:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Feb 2015 23:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 19865-submit@debbugs.gnu.org id=B19865.142413006822529 (code B ref 19865); Mon, 16 Feb 2015 23:42:02 +0000 Original-Received: (at 19865) by debbugs.gnu.org; 16 Feb 2015 23:41:08 +0000 Original-Received: from localhost ([127.0.0.1]:45725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNVHn-0005rH-U4 for submit@debbugs.gnu.org; Mon, 16 Feb 2015 18:41:08 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:37410) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNVHm-0005r7-1g for 19865@debbugs.gnu.org; Mon, 16 Feb 2015 18:41:07 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t1GNf3dL024407; Mon, 16 Feb 2015 18:41:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0DDFBF86; Mon, 16 Feb 2015 18:40:51 -0500 (EST) In-Reply-To: <83twyltz5x.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 16 Feb 2015 21:49:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5219=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5219> : inlines <2192> : streams <1391442> : uri <1856984> 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:99483 Archived-At: > It's the same as working in the shell: That's also my impression. > if you changed a directory, you need to go back before you operate on > files, or risk operate on wrong files. No: I changed directory specifically because I wanted to operate on other files. And I often don't go back. >> I agree that having to be careful in which buffer we are when we read >> a given variable because it might be buffer-local is a source of >> maintenance headaches, but we have that all over the place in Elisp, >> and we don't really have any "better solution". > I don't really see a problem here that needs a solution. A year from > now no one will remember or understand why we use with-current-buffer > in that place. The comment explains why and the comment will still be there a year from now. The code takes a file name from one buffer and uses it in another buffer: every time we do it, we have to be extra careful to make sure the file name is absolute, and that's what the patch does. Stefan