From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fadi Moukayed Newsgroups: gmane.emacs.bugs Subject: bug#64079: 28.2; dired-mouse-find-file does not respect dired-kill-when-opening-new-dired-buffer Date: Thu, 15 Jun 2023 10:54:27 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21921"; mail-complaints-to="usenet@ciao.gmane.io" To: 64079@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 15 11:58:28 2023 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 1q9jkJ-0005Ub-RF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Jun 2023 11:58:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9jjw-0004P8-DF; Thu, 15 Jun 2023 05:58:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9jju-0004Or-H0 for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 05:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9jju-0000fL-7l for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 05:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9jjt-00053i-PA for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 05:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fadi Moukayed Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2023 09:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64079 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168682304419397 (code B ref -1); Thu, 15 Jun 2023 09:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jun 2023 09:57:24 +0000 Original-Received: from localhost ([127.0.0.1]:46238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9jjG-00052m-OC for submit@debbugs.gnu.org; Thu, 15 Jun 2023 05:57:24 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9ikg-0003Jt-RI for submit@debbugs.gnu.org; Thu, 15 Jun 2023 04:54:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9ike-0005Mg-Kz for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 04:54:44 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9ikc-0005ha-1c for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 04:54:44 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9827109c6e9so204721966b.3 for ; Thu, 15 Jun 2023 01:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686819279; x=1689411279; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5NhbFB/LoPPvINoyzqWr0qX3psWEdUKhpJc2CZUh2Js=; b=Fv4cRcSlWkV7W7DyGotAUaiiax7pMMx2kre+wxUb1A2nCmvJd06+arW/dNdvKQRaDn kDUXrgI+ZMZQ7Z9jsGa9NHfT4ueOiq1B7O26u5wsqDCxf2uDjMqkXQ/MGM2zW8wNyUDk agDDPcMnZR+qB9Z5UYsFaEg3z/77D8s0S3g0oFTfNprliYbADJUyCiL6Jc5NjVPvZK7o 2PCPmqNuePv6YH+FCPACOdmvwl2WPIFNQkiFnA8wvLN8T1u2lqdfqfZKKPichWLa1obb AVnOw4I39aYhItOYPRw4P4IACDOqzA4r6hMJe08ynXgrAxiRYkd05Df2fRtZNauMwsMS HRcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686819279; x=1689411279; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5NhbFB/LoPPvINoyzqWr0qX3psWEdUKhpJc2CZUh2Js=; b=D8Wz0LRsyeqSsWx64iBsxu8/kVzmjvkVE57AQxz3fslMrMy/jM6RuCqoDi/i8YdxVx 8bCeYco+RshORItjRFBOycLpefVHQHNhwsDiEC41MiEZIn+DgucAKtnyoAQF7Qgpp2pj MFaBsqhNUZ1EqaMRldIJ8Vj3vBA0kd2dIfSovzDUG8hRdyGfBeAWdPipL/sV10YOYFAT E5ZFb2LelqecbkEzoD7wStF+Nmt+ihY7Tv3W6bDQVcnMleCsgybgYVu6fomPFgLyVNs5 lP3b813L8rZku2f/dWJDk1/6n050Hb1NCkfcj9+Fff/LFB6YRgMwFmhu6pa5LjMd6e9b 5GZA== X-Gm-Message-State: AC+VfDwjcNOv75TSGWkcMFM7LraN29K2BvmWBnK1INpdMipnnLHtwQF1 DWWCgTcebcBJA/iHKAbXhOYLVh7VW5bVCh7fUX0MVaIPGb0= X-Google-Smtp-Source: ACHHUZ64oLrgt+TQdjba6ISFUOzYNY92IeBrmGcM87sghtvW2VFWShIqUn0hNFRS1yNdk7CHOSGlnItr+7Kp/F69H2M= X-Received: by 2002:a17:907:707:b0:94f:956:b3f7 with SMTP id xb7-20020a170907070700b0094f0956b3f7mr15953311ejb.2.1686819279259; Thu, 15 Jun 2023 01:54:39 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=smfadi@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 15 Jun 2023 05:57:21 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263417 Archived-At: Hi all, While attempting to rebind mouse-3 to `dired-mouse-find-file', I noticed that the `dired-kill-when-opening-new-dired-buffer' customization option is not being respected. `dired-mouse-find-file' opens directories in new dired buffers in all cases. Steps to reproduce: 1. Start Emacs 2. Open a `dired' buffer, e.g. using C-x d 3. Use M-: and evaluate the expression `(define-key dired-mode-map [mouse-3] 'dired-mouse-find-file)' 4. Navigate a nested directory tree (e.g. a/b/c/d) in dired by right-clicking on the directory names. Expected behavior: Only a dired buffer for d is retained. Observed behavior: dired buffers a, b, c are created and retained in addition to d. Hints: `dired-mouse-find-file' needs to contain similar logic to `dired--find-possibly-alternative-file' for checking the customization variable, or needs to delegate to the latter function. --- In GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-06-02 built on lcy02-amd64-102 Repository revision: 08cc469f8738bad2a31ce5b4c4c55301b71d598b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12201001 System Description: Ubuntu 22.04.2 LTS Configured using: 'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3 --without-xaw3d --with-modules --with-cairo --with-native-compilation 'CFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -O2' 'CPPFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include -isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu' 'LDFLAGS=-L/build/emacs/parts/emacs/install/lib -L/build/emacs/parts/emacs/install/usr/lib -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Org Minor modes in effect: display-line-numbers-mode: t shell-dirtrack-mode: t delete-selection-mode: t recentf-mode: t global-whitespace-mode: t global-goto-address-mode: t goto-address-mode: t fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t desktop-save-mode: t cua-mode: t windmove-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail display-line-numbers org-element avl-tree generator ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat advice org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec disp-table dracula-theme pcase delsel recentf tree-widget wid-edit whitespace goto-addr thingatpt icomplete desktop frameset cua-base cus-load finder-inf windmove edmacro kmacro site-start comp comp-cstr warnings rx cl-extra help-mode info slime-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 495514 24906) (symbols 48 30214 1) (strings 32 149409 4103) (string-bytes 1 4176844) (vectors 16 55880) (vector-slots 8 1622923 37169) (floats 8 363 740) (intervals 56 619 88) (buffers 992 12))