From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19865: tar-untar-buffer: should honor default-directory Date: Sat, 14 Feb 2015 15:57:36 +0000 Message-ID: <87fva8bi4v.fsf@violet.siamics.net> References: <87a90gd91b.fsf@violet.siamics.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423929504 32559 80.91.229.3 (14 Feb 2015 15:58:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 15:58:24 +0000 (UTC) To: 19865@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 16:58:13 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 1YMf6i-0007BI-L3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 16:58:12 +0100 Original-Received: from localhost ([::1]:60230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMf6h-0006Ae-SD for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 10:58:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMf6e-00069z-G5 for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 10:58:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMf6Z-0001nV-PC for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 10:58:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMf6Z-0001nN-1a for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 10:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMf6Y-0002VW-B4 for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 10:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Feb 2015 15:58: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.14239294699619 (code B ref 19865); Sat, 14 Feb 2015 15:58:02 +0000 Original-Received: (at 19865) by debbugs.gnu.org; 14 Feb 2015 15:57:49 +0000 Original-Received: from localhost ([127.0.0.1]:43964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMf6K-0002V5-R5 for submit@debbugs.gnu.org; Sat, 14 Feb 2015 10:57:49 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:43808) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMf6H-0002Uv-Pz for 19865@debbugs.gnu.org; Sat, 14 Feb 2015 10:57:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=UOgg57V0i8LmpUTNWiCDSjVBnuN+1AY7AvpYWZP/JiY=; b=SdfJafWYCUl6MmW9cFAiYLghI53J4on4T+OLUPrm9gmiuGXMCAF7QICyNPzk8q2WuIL7tJUkU0tKAAXt8OSK2IpVaJQ/Igcq6A31H2pK5NduQOXscvPyaD1HgNIY0L0QWbFv0mR73k8UJutTOnijkauV2FnqofW5JDEPLMvy9fM=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMf6G-0003KD-Rs for 19865@debbugs.gnu.org; Sat, 14 Feb 2015 15:57:44 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMf69-0002Sj-8i for 19865@debbugs.gnu.org; Sat, 14 Feb 2015 22:57:37 +0700 Mail-Followup-To: 19865@debbugs.gnu.org In-Reply-To: <87a90gd91b.fsf@violet.siamics.net> (Ivan Shmakov's message of "Sat, 14 Feb 2015 11:31:12 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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:99391 Archived-At: Well, let=E2=80=99s see if I can reword the report. As currently implemented (tested on 7eb2077f9dd1, 2015-02-06 15:01:12 UTC), the *user* tar-untar-buffer command uses the value of the default-directory *user* variable, as set for the *internal* (tar-data-buffer) buffer =E2=80=93 in place of the value that same variable has in the buffer /the command is invoked from./ To stress it out: this report is /not/ intended to be a request for a feature for unpacking Tar archives into arbitrary directories, but is rather meant to point out that as currently implemented, the tar-untar-buffer behavior is *ill-defined*; especially if used after write-file (C-x C-w), save-buffer (C-x C-s; when a Tar archive is created from scratch), or M-x cd RET. (As all these commands /may/ change the value of default-directory for the user interaction buffer, but do /not/ do the same for the *internal* tar-data-buffer one.) I believe that using the values the *user* variables posses in *internal* buffers, when the command in question is invoked from a buffer dedicated to the *user* interaction and implemented by that same facility, is generally a wrong thing to do, and has a potential for confusion of users and developers alike. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A