From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19865: tar-untar-buffer: should honor default-directory Date: Tue, 17 Feb 2015 20:02:29 +0200 Message-ID: <83pp985scq.fsf@gnu.org> References: <87a90gd91b.fsf@violet.siamics.net> <83sie8wn8z.fsf@gnu.org> <831tlpvp35.fsf@gnu.org> <83twyltz5x.fsf@gnu.org> <85y4nwii2h.fsf@iznogoud.viz> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424196206 5725 80.91.229.3 (17 Feb 2015 18:03:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2015 18:03:26 +0000 (UTC) Cc: ivan@siamics.net, 19865@debbugs.gnu.org To: Wolfgang Jenkner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 17 19:03:15 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 1YNmUM-00015G-So for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 19:03:15 +0100 Original-Received: from localhost ([::1]:46679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNmUL-0001fU-Qq for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 13:03:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNmUD-0001eR-Ec for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 13:03:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNmUA-000706-8c for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 13:03:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNmUA-000700-6F for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 13:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YNmU9-0008A3-MZ for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 13:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Feb 2015 18:03:01 +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.142419615231336 (code B ref 19865); Tue, 17 Feb 2015 18:03:01 +0000 Original-Received: (at 19865) by debbugs.gnu.org; 17 Feb 2015 18:02:32 +0000 Original-Received: from localhost ([127.0.0.1]:46531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNmTf-00089M-7v for submit@debbugs.gnu.org; Tue, 17 Feb 2015 13:02:31 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:44879) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNmTb-000895-UH for 19865@debbugs.gnu.org; Tue, 17 Feb 2015 13:02:29 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NJX00B00GEEHS00@mtaout26.012.net.il> for 19865@debbugs.gnu.org; Tue, 17 Feb 2015 20:02:36 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJX001H4GSB30B0@mtaout26.012.net.il>; Tue, 17 Feb 2015 20:02:36 +0200 (IST) In-reply-to: <85y4nwii2h.fsf@iznogoud.viz> X-012-Sender: halo1@inter.net.il 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:99499 Archived-At: > From: Wolfgang Jenkner > Cc: Eli Zaretskii , ivan@siamics.net, 19865@debbugs.gnu.org > Date: Tue, 17 Feb 2015 18:03:26 +0100 > > The shell analogy might be a bit misleading and is perhaps the reason > why you seem to be talking past each other: Personally, at the shell > command line, I don't change to the directory holding the tarball, > instead I change to the directory where I want to extract it, like this > > $ cd ~/src; tar xvf ~/Downloads/foo.tar.gz > > This is quite different from the situation in emacs where > > C-x C-f ~/Downloads/foo.tar.gz > > results in buffers whose default-directory is ~/Downloads, hence the > reason why doing M-x cd ~/src in the non-hidden buffer should have the > effect as in the proposed patch. To solve this problem, I proposed, in the beginning of this thread, to allow the user to specify a directory where to extract the tarball, by invoking the command with a prefix argument.