From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#7131: 24.0.50; `dired' with cons arg should not ignore arg if buffer exists Date: Fri, 21 Jul 2017 13:36:34 +0900 Message-ID: <87inimh0dp.fsf@calancha-pc> References: <9165B8BF5E624AAA8F9551E7A82022AF@us.oracle.com> <871spe0yas.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500611841 23778 195.159.176.226 (21 Jul 2017 04:37:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 04:37:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 7131-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 21 06:37:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYPgb-0005Ti-5S for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 06:37:09 +0200 Original-Received: from localhost ([::1]:40997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYPgf-0005cN-4y for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 00:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYPgX-0005aN-V3 for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 00:37:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYPgU-0002kG-QH for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 00:37:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYPgU-0002jx-MC for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 00:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dYPgU-0005QT-EO for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 00:37:02 -0400 Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jul 2017 04:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 7131 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: easy Mail-Followup-To: 7131@debbugs.gnu.org, tino.calancha@gmail.com, drew.adams@oracle.com Original-Received: via spool by 7131-done@debbugs.gnu.org id=D7131.150061180820833 (code D ref 7131); Fri, 21 Jul 2017 04:37:02 +0000 Original-Received: (at 7131-done) by debbugs.gnu.org; 21 Jul 2017 04:36:48 +0000 Original-Received: from localhost ([127.0.0.1]:50247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYPgG-0005Px-BF for submit@debbugs.gnu.org; Fri, 21 Jul 2017 00:36:48 -0400 Original-Received: from mail-pf0-f170.google.com ([209.85.192.170]:35815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYPgE-0005Pl-C1 for 7131-done@debbugs.gnu.org; Fri, 21 Jul 2017 00:36:46 -0400 Original-Received: by mail-pf0-f170.google.com with SMTP id r76so2658611pfj.2 for <7131-done@debbugs.gnu.org>; Thu, 20 Jul 2017 21:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=7b2RrFodo86iMwMU+rWx1Gmg3286yRbzBHuWN6+OB+w=; b=X+Z2Oow4b0YUYV3oCW+xXXlWCnITivfu+rKwe5dNxyQKWRKoQeLPkGLKz/sNYud7QY 08x3boqPck6PRStGGaglSP6ec0RvIRQjWv+3OEo2YQYKTzo9xPjM068pnz5i00S/seBS fxhWKDC9A80UWdrLCPlWIJAt0en+J1hmHvda7FXn4oAnB57io76EhsmCxwrSaMebJJ7Q HLAJZeQVlo8xKR9Ey2aYMv2LIoDwcVZlUr7vJQ+QIBlrzMqVa4gImm1BAtMLGsBmMFOA VQKTgHBWa7BytlpQP4Fztog5t8sIpCQhoZ+qugemJBQUQzBc1hIaCMIRG5oCjli6jbTR OG9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7b2RrFodo86iMwMU+rWx1Gmg3286yRbzBHuWN6+OB+w=; b=bZy4NMZPGUiOb7c4FvDgbKOOHrPQVSAOLAGO24igJeA3w0KveDhwwYVg8U0Zy2IBS8 PxbDHRy6FsWgSCuSK4eWm7FHrHr9+0KoTvFyxRROQum5LOUw1AUE+NRki71FiL+04xK9 FqT67iwkpiwY5E6pt6DuseiuCZawQ33q4hDbTahQ9w3xp8oDEel0n8aZ6PQIcfzI5qih BDse2hi+bTkQUZ4YoNahotw+u0dqy0uBUMt2eEqLyDwBb9TdtjyVqaCmV0q+TR3gc1ge lVh4KTwqNA2F7Nfw9JKbxYJMZDtzeh/KPcbpDfEFVJZ4a/G120QbF5yS6xhRjEegcEu1 SDQQ== X-Gm-Message-State: AIVw110YdFc/uk2NWYfmq+Ui5fBjaTtTyl+IQFq2GMQMsff+2fffxtmc ROgsxIrtxvSzOERs X-Received: by 10.84.204.133 with SMTP id b5mr6685608ple.124.1500611798802; Thu, 20 Jul 2017 21:36:38 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id f15sm6813450pga.5.2017.07.20.21.36.37 for <7131-done@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Jul 2017 21:36:38 -0700 (PDT) In-Reply-To: <871spe0yas.fsf@calancha-pc> (Tino Calancha's message of "Tue, 18 Jul 2017 20:39:07 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:134811 Archived-At: >> Following that rationale, the behavior for a cons arg should be to >> respect the explicit file list passed, not to simply ignore it and reuse >> an existing buffer. >> >> And since it would be problematic to test the file list for differences >> from the existing listing (whether or not it came from a cons arg >> previously), we should always just update the buffer to reflect the >> file-list that is passed. IOW, with an explicit file list, never reuse >> an existing Dired buffer of the same name. > IMO, if `dired-directory' is a cons and DIR-OR-LIST is a string then we > must update the buffer as well: in this case, the user want to see the > full listing of that directory. Fixed in master branch as commit 1d559e384b467b3f74e8b78695f124b561c884d9