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 12:47:48 +0000 Message-ID: <871tlsd5hn.fsf@violet.siamics.net> References: <87a90gd91b.fsf@violet.siamics.net> <834mqoy9h8.fsf@gnu.org> <8761b4d6f2.fsf@violet.siamics.net> <831tlsy8c3.fsf@gnu.org> 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 1423918106 22896 80.91.229.3 (14 Feb 2015 12:48:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 12:48:26 +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 13:48:12 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 1YMc8p-0008Vk-Tf for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 13:48:12 +0100 Original-Received: from localhost ([::1]:59600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMc8p-00029i-2h for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 07:48:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMc8k-00028h-CC for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 07:48:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMc8g-0004Br-SL for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 07:48:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMc8g-0004Bj-HL for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 07:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMc8g-0006Pl-0F for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 07:48: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 12:48: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.142391808024649 (code B ref 19865); Sat, 14 Feb 2015 12:48:01 +0000 Original-Received: (at 19865) by debbugs.gnu.org; 14 Feb 2015 12:48:00 +0000 Original-Received: from localhost ([127.0.0.1]:42775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMc8d-0006PV-GQ for submit@debbugs.gnu.org; Sat, 14 Feb 2015 07:47:59 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:43755) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMc8a-0006PM-RK for 19865@debbugs.gnu.org; Sat, 14 Feb 2015 07:47:57 -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=ViR+bXngh61fcpsuIkIzwmT93hTIWRE6PkGqckWUjjs=; b=b8wHaGd87fbc3n2pm7LQBKmCRxygmXeMrhXXNaUtj2yJnxYaFuas1di2TkJVGqmTIVQDf90IWcNnL7Vmi08XBXWgAH3JYLS9Si58AZOLqM5wI9OM7in3r0bnwnPg1PSbXCz3wH0J0GTZ3y8UCXRAYTe6KKI1vbHJ5Qv433FSxNc=; 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 1YMc8a-0001qh-1r for 19865@debbugs.gnu.org; Sat, 14 Feb 2015 12:47:56 +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 1YMc8T-0001qR-Bl for 19865@debbugs.gnu.org; Sat, 14 Feb 2015 19:47:49 +0700 Mail-Followup-To: 19865@debbugs.gnu.org In-Reply-To: <831tlsy8c3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Feb 2015 14:40:44 +0200") 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:99377 Archived-At: >>>>> Eli Zaretskii writes: >>>>> From: Ivan Shmakov Date: Sat, 14 Feb 2015 12:27:45 +0000 >>>>> Eli Zaretskii writes: [=E2=80=A6] >>> "Extract all archive members in the tar-file into the current >>> directory." >>> which seems to match what it does. Why isn't default-directory of >>> tar-data-buffer the right choice for doing that? >> Because the default-directory of the tar-mode buffer may be changed >> by the user (with M-x cd or otherwise) with the intent of directing >> tar-untar-buffer to extract the archive members into an arbitrary >> directory, per its docstring. > Sounds like an obscure possibility to me. If we want to give the > user an option to extract to a specific directory, why not make that > directory an argument of tar-untar-buffer, and prompt for it when the > function is called with a prefix argument? That's how we usually let > the user change such defaults. No objection against such a new feature on my part. Still, the docstring mentions =E2=80=9Ccurrent directory=E2=80=9D, and it= =E2=80=99s exactly the thing default-directory references and M-x cd sets. Thus the current behavior doesn=E2=80=99t match the documentation, so at least one of the two=E2=80=99s in the need for a fix. --=20 FSF associate member #7257 np. El Dorado =E2=80=94 Iron Maiden =E2=80=A6 3= 013 B6A0 230E 334A