From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#3224: 23.0.92; vc-dir vs uniquify: wrong directory used Date: Tue, 4 Aug 2009 05:30:26 -0700 (PDT) Message-ID: <200908041230.n74CUQUd025123@godzilla.ics.uci.edu> References: <84my9rfuhg.fsf@linux-b2a3.site> Reply-To: Dan Nicolaescu , 3224@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249390042 17623 80.91.229.12 (4 Aug 2009 12:47:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 12:47:22 +0000 (UTC) Cc: 3224@emacsbugs.donarmstrong.com To: Magnus Henoch Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 14:47:10 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYJPy-0004rd-S8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 14:47:03 +0200 Original-Received: from localhost ([127.0.0.1]:42614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYJPy-0001yJ-8Q for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 08:47:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYJPt-0001vM-49 for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 08:46:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYJPn-0001qq-Rm for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 08:46:56 -0400 Original-Received: from [199.232.76.173] (port=34634 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYJPn-0001pa-Ir for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 08:46:51 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48164) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYJPl-0008Oo-KI for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 08:46:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n74CklJQ003992; Tue, 4 Aug 2009 05:46:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n74CZ5Af002878; Tue, 4 Aug 2009 05:35:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Aug 2009 12:35:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3224 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3224-submit@emacsbugs.donarmstrong.com id=B3224.12493890482750 (code B ref 3224); Tue, 04 Aug 2009 12:35:05 +0000 Original-Received: (at 3224) by emacsbugs.donarmstrong.com; 4 Aug 2009 12:30:48 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n74CUiwP002741 for <3224@emacsbugs.donarmstrong.com>; Tue, 4 Aug 2009 05:30:45 -0700 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id n74CUQYk013490; Tue, 4 Aug 2009 05:30:26 -0700 (PDT) Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id n74CUQUd025123; Tue, 4 Aug 2009 05:30:26 -0700 (PDT) In-Reply-To: <84my9rfuhg.fsf@linux-b2a3.site> (Magnus Henoch's message of "Tue, 05 May 2009 16:19:07 +0100") Original-Lines: 55 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: n74CUQYk013490 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 04 Aug 2009 08:46:56 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29851 Archived-At: Magnus Henoch writes: > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > I have uniquify-buffer-name-style set to post-forward, which means that > I expect buffers with the same name to be called BUFFER|DIR. This > doesn't quite work with vc-dir: the DIR part corresponds to the setting > of `default-directory' in the buffer where I invoke the command, instead > of the directory I specify. > > To reproduce, start "emacs -Q" and evaluate: > > (progn > (require 'uniquify) > (setq uniquify-buffer-name-style 'post-forward) > (cd "/tmp") > (make-directory "foo") > (make-directory "bar") > (vc-dir "/tmp/foo") > (cd "/tmp/foo") > (vc-dir "/tmp/bar")) > > You will get two buffers, "*vc-dir*|foo" displaying /tmp/bar, and > "*vc-dir*|/tmp" displaying /tmp/foo. > > I tried to fix this by binding default-directory around > create-file-buffer in vc-dir-prepare-status-buffer, which partly fixed > the problem: the buffer for bar had a correct name, but the buffer for > foo was still "*vc-dir*|/tmp". I am not familiar with uniquify, but after binding default-directory in vc-dir-prepare-status-buffer, I get the result above. And it is identical to what happens when doing: (progn (require 'uniquify) (setq uniquify-buffer-name-style 'post-forward) (cd "/tmp") (make-directory "foo") (make-directory "bar") (cd "/tmp/foo") (create-file-buffer "*vc-dir*") (cd "/tmp/bar") (create-file-buffer "*vc-dir*")) so either this is a problem with uniquify, or uniquify it's just working as expected.