From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44023: dired-allow-duplicate-buffers Date: Mon, 19 Oct 2020 10:11:42 +0200 Message-ID: <87ft6ahby9.fsf@gnus.org> References: <20201015192231.rezuhk7foiyq3uff@E15-2016.optimum.net> <87wnzqrb0y.fsf@gnus.org> <20201016064644.poo6ljwpgdhbsksy@E15-2016.optimum.net> <877drq2l4n.fsf@gnus.org> <20201018054523.xy5lggg3nft7263u@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17332"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 44023@debbugs.gnu.org To: Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 19 10:13:48 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUQIc-0004P4-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 10:13:46 +0200 Original-Received: from localhost ([::1]:45510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUQIb-0002IY-Tq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 04:13:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUQHv-0001oK-Bu for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2020 04:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUQHv-0006lf-1S for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2020 04:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUQHu-0002x1-St for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2020 04:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Oct 2020 08:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44023 X-GNU-PR-Package: emacs Original-Received: via spool by 44023-submit@debbugs.gnu.org id=B44023.160309512311239 (code B ref 44023); Mon, 19 Oct 2020 08:13:02 +0000 Original-Received: (at 44023) by debbugs.gnu.org; 19 Oct 2020 08:12:03 +0000 Original-Received: from localhost ([127.0.0.1]:39853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUQGw-0002vD-Rm for submit@debbugs.gnu.org; Mon, 19 Oct 2020 04:12:03 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:60014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUQGv-0002ug-2P for 44023@debbugs.gnu.org; Mon, 19 Oct 2020 04:12:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jGXKwitknuhTX0+hdGA7//bCwyT8BoBi1fouuQKP8MU=; b=nujZ/nblF6Y0MUQsgmw9vT1PNY GcpbzjrJBOnAgaI6cXK9bRx3g/71nc8ntsKg2zyydTxqc8EZUpOaXtD6NByUHgQepTQGk1xihzuYu oEVnNtCkoHNELKZEph1Xy76zxTGX/Er6xz0tzCY2JWMOtXI7PtEWROFRqtbb//vfxMMw=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kUQGd-0004sm-Rz; Mon, 19 Oct 2020 10:11:54 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEVDNUhYT2KHdIYf GCT0zK+oXWX////KAn60AAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QKEgciIGgyBOwAAAG7SURBVDjL XZRBcsMgDEWlquzBHvY2SfakTA/Qjr13Oub+V6mEwNAyWWT0pP9BCAMAoHV1TZQSB6z8Iv+BC9yS LECnoFVMISRdkg14FTgXbqmhCBYHsAzAdXMX1g6InTq4UwMp4VhxXzqA0eP+TQ1E7CCE+zZ386sk CLhdQCuwgu/5OmIBVk4Z2GNu5qjnsKI3jQcEBQQqlkYgyaCdWUZQmkjFy7awycXcWqBS0uJ+24oU WydJqDuKHFeA5V7AaTfAnwr6BZd05/N2ASpAlPBV8qsUJQHISv5lNN5AqWPXPNd4ATMUQNHl/Lnl LkUVPH0+TB6kSDdFbz4TXlLcQQUoIJpt8KCyW5yRwXsHFitIi8/QAceoaGGyJhszANSOTOTM8e4H DwbiFGg1x3mMB+Qbj8iPZkV77gOQKREaA1q//QM8IPNHsHB5XyC4eXossfV2yxVMqyOew96RrHfq pgViCKuFP8AKwGd4vJz1/yr4UcXw+Fmduu/b0QDPFLKWU5PcgeMR4We+Kjh3HajyDig9xV7BVywf DlAgYk7c9/OQgUYlc5m2qQJTkgWgTnpEnsM9v7wagzyoOtEK8i+W2o66dNtRxAAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMC0xMC0xOFQwNzozNDozMiswMDowMGkk31EAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjAtMTAtMThUMDc6MzQ6MzIrMDA6MDAYeWftAAAAAElFTkSuQmCC X-Now-Playing: Rocket To The Sky's _Cigars_: "Cigars" In-Reply-To: <20201018054523.xy5lggg3nft7263u@E15-2016.optimum.net> (Boruch Baum's message of "Sun, 18 Oct 2020 01:45:23 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190954 Archived-At: Boruch Baum writes: >> > Dired internally (in the very line being modified by my >> > patch) actively subverts having several buffers visiting the same >> > directory, >> >> What line are you referring to? > > - (buffer (dired-find-buffer-nocreate dirname mode)) > > It's the only line changed in the patch file, at the beginning of > function dired-internal-noselect. Ah, yes, it seems like dired is working the same as when visiting a regular file here. As find-file says: --- Switch to a buffer visiting file FILENAME, creating one if none already exists. --- Dired buffers aren't "visiting" files in the same way that regular files are, but it tries to keep the same semantics. So renaming a dired buffer doesn't help at all, because Emacs will always root out the already-existing buffer that points to that directory. I wonder whether that's on purpose, or whether it just happens that way by accident. Or is there a way to rename a dired buffer so that you can have two of them pointing to the same directory? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no