From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Magnus Henoch Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3224: 23.0.92; vc-dir vs uniquify: wrong directory used Date: Tue, 05 May 2009 16:19:07 +0100 Message-ID: <84my9rfuhg.fsf@linux-b2a3.site> Reply-To: Magnus Henoch , 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 1241537558 22733 80.91.229.12 (5 May 2009 15:32:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2009 15:32:38 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 05 17:32:28 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 1M1Md9-0006w8-BP for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 May 2009 17:32:27 +0200 Original-Received: from localhost ([127.0.0.1]:55616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Md8-0002nE-OT for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 May 2009 11:32:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1Mcp-0002dE-W5 for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 11:32:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1Mcl-0002a1-3l for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 11:32:07 -0400 Original-Received: from [199.232.76.173] (port=41819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Mck-0002Zy-Rs for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 11:32:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41360) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1Mcj-0006cE-Rz for bug-gnu-emacs@gnu.org; Tue, 05 May 2009 11:32:02 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n45FVr2H029138; Tue, 5 May 2009 08:31:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n45FP6r8026613; Tue, 5 May 2009 08:25:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Magnus Henoch Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 05 May 2009 15:25:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3224 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124153676325022 (code B ref -1); Tue, 05 May 2009 15:25:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 May 2009 15:19:23 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n45FJIHS025016 for ; Tue, 5 May 2009 08:19:19 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:47294 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1M1MQP-0005Zd-0S for emacs-pretest-bug@gnu.org; Tue, 05 May 2009 11:19:17 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1M1MQM-0002bY-EW for emacs-pretest-bug@gnu.org; Tue, 05 May 2009 11:19:16 -0400 Original-Received: from zimbra.erlangsystems.com ([88.208.247.62]:38501) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1MQL-0002Zy-Qo for emacs-pretest-bug@gnu.org; Tue, 05 May 2009 11:19:14 -0400 Original-Received: from linux-b2a3.site (host213-123-170-251.in-addr.btopenworld.com [213.123.170.251]) by zimbra.erlangsystems.com (Postfix) with ESMTP id DE209135A260 for ; Tue, 5 May 2009 16:16:35 +0100 (BST) X-Hashcash: 1:25:090505:emacs-pretest-bug@gnu.org::C5UHY00Hy1QJred1:000000000000000000000000000000000001Uy7L User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 05 May 2009 11:32:07 -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:27719 gmane.emacs.pretest.bugs:24386 Archived-At: 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". If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/23.0.92/etc/DEBUG for instructions. In GNU Emacs 23.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-04-28 on linux-b2a3 Windowing system distributor `The X.Org Foundation', version 11.0.10502000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Diff Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t jabber-activity-mode: t jabber-mode-line-mode: t show-paren-mode: t server-mode: t icomplete-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: d M-f M-f M-f M-f s-i C-x v d ~ / b l a s v a p C-h f u n i j q r a t b u f C-x b C-h f M-x l o c a t e v c - d i r . e l s-i v i s-i v c - d i r - p r e p C-e ( l e t SPC ( ( d e f a u l t - d i r e c t o r y SPC d i r ) ) C-a C-k C-k C-e ) C-x C-s C-x C-e C-x v d ~ / b l a s v n o C-x v d n o d a d C-x v d a p a d C-x b C-s C-x v = C-h v u n i q u b u M-x r e p o r t - e