From unknown Fri Jun 20 07:11:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48301 <48301@debbugs.gnu.org> To: bug#48301 <48301@debbugs.gnu.org> Subject: Status: 28.0.50; Dired asks if buffer "" should be deleted with ls flag -p Reply-To: bug#48301 <48301@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:11:55 +0000 retitle 48301 28.0.50; Dired asks if buffer "" should be deleted with ls fl= ag -p reassign 48301 emacs submitter 48301 Tassilo Horn severity 48301 normal tag 48301 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 08 18:01:00 2021 Received: (at submit) by debbugs.gnu.org; 8 May 2021 22:01:00 +0000 Received: from localhost ([127.0.0.1]:52541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfV0N-0008BK-RE for submit@debbugs.gnu.org; Sat, 08 May 2021 18:01:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:47778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfV0L-0008BE-Hf for submit@debbugs.gnu.org; Sat, 08 May 2021 18:00:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfV0L-0002fW-9E for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 18:00:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46066) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfV0K-0007HL-VO for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 18:00:57 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:45471) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfV0K-0000Jb-Rs for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 18:00:56 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 65E3227C0054 for ; Sat, 8 May 2021 18:00:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 08 May 2021 18:00:56 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeghedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgesthdtredttd ertdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhg qeenucggtffrrghtthgvrhhnpeduvdeuveejfeekueffieffhfethfdviedutddtgfeivd dvhfevffelgfdujeetveenucfkphepkeejrdduieefrdefuddrudehgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmh htphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqdht shguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 8 May 2021 18:00:55 -0400 (EDT) User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tassilo Horn To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Dired asks if buffer "" should be deleted with ls flag -p Date: Sat, 08 May 2021 23:11:15 +0200 Message-ID: <87sg2wx4vg.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 1. emacs -Q 2. (setq dired-listing-switches "-Alhp") ;; the -p prints dirs as foo/, ;; i.e., with trailing /. 3. M-x dired RET ~ RET 4. Visit directory ~/foobar in dired 5. Delete ~/foobar directory in dired 6. Dired asks: "Kill Dired buffer of , too?" where it should ask if the buffer of foobar should be killed. The reason is that with the -p flag to ls which prints directories with trailing slash, `dired-clean-up-after-deletion' is called with filename FN "/home/foo/foobar/" and then (file-name-nondirectory "/home/foo/foobar/") returns "". Without the -p flag, it would be called with "/home/foo/foobar" where (file-name-nondirectory "/home/foo/foobar") => "foobar". In GNU Emacs 28.0.50 (build 23, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4) of 2021-05-08 built on thinkpad-t440p Repository revision: 79e2d0486c89c6c452df33792976ea6fdf825185 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101001 System Description: Arch Linux Configured using: 'configure --with-modules --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF 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 $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: global-aggressive-indent-mode: t dynamic-completion-mode: t which-key-mode: t company-posframe-mode: t global-company-mode: t yas-global-mode: t yas-minor-mode: t global-git-commit-mode: t magit-auto-revert-mode: t override-global-mode: t vertico-mode: t aggressive-completion-mode: t minibuffer-depth-indicate-mode: t recentf-mode: t pixel-scroll-mode: t save-place-mode: t savehist-mode: t show-paren-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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 buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/Repos/el/mu/build/mu4e/mu4e hides ~/Repos/el/mu/mu4e/mu4e ~/Repos/el/mu/build/mu4e/mu4e-main hides ~/Repos/el/mu/mu4e/mu4e-main ~/Repos/el/mu/build/mu4e/mu4e-view hides ~/Repos/el/mu/mu4e/mu4e-view ~/Repos/el/mu/build/mu4e/mu4e-org hides ~/Repos/el/mu/mu4e/mu4e-org ~/Repos/el/mu/build/mu4e/mu4e-lists hides ~/Repos/el/mu/mu4e/mu4e-lists ~/Repos/el/mu/build/mu4e/mu4e-actions hides ~/Repos/el/mu/mu4e/mu4e-actions ~/Repos/el/mu/build/mu4e/mu4e-utils hides ~/Repos/el/mu/mu4e/mu4e-utils ~/Repos/el/mu/build/mu4e/mu4e-context hides ~/Repos/el/mu/mu4e/mu4e-context ~/Repos/el/mu/build/mu4e/mu4e-draft hides ~/Repos/el/mu/mu4e/mu4e-draft ~/Repos/el/mu/build/mu4e/mu4e-message hides ~/Repos/el/mu/mu4e/mu4e-message ~/Repos/el/mu/build/mu4e/mu4e-compose hides ~/Repos/el/mu/mu4e/mu4e-compose ~/Repos/el/mu/build/mu4e/mu4e-view-common hides ~/Repos/el/mu/mu4e/mu4e-view-common ~/Repos/el/mu/build/mu4e/mu4e-view-old hides ~/Repos/el/mu/mu4e/mu4e-view-old ~/Repos/el/mu/build/mu4e/mu4e-view-gnus hides ~/Repos/el/mu/mu4e/mu4e-view-gnus ~/Repos/el/mu/build/mu4e/mu4e-headers hides ~/Repos/el/mu/mu4e/mu4e-headers ~/Repos/el/mu/build/mu4e/mu4e-mark hides ~/Repos/el/mu/mu4e/mu4e-mark ~/Repos/el/mu/build/mu4e/mu4e-icalendar hides ~/Repos/el/mu/mu4e/mu4e-icalendar ~/Repos/el/mu/build/mu4e/mu4e-speedbar hides ~/Repos/el/mu/mu4e/mu4e-speedbar ~/Repos/el/mu/build/mu4e/mu4e-contrib hides ~/Repos/el/mu/mu4e/mu4e-contrib ~/Repos/el/mu/build/mu4e/mu4e-proc hides ~/Repos/el/mu/mu4e/mu4e-proc ~/Repos/el/mu/build/mu4e/mu4e-meta hides ~/Repos/el/mu/mu4e/mu4e-meta ~/Repos/el/mu/build/mu4e/mu4e-vars hides ~/Repos/el/mu/mu4e/mu4e-vars /home/horn/.emacs.d/elpa/transient-20210427.833/transient hides /home/horn/Repos/el/emacs/lisp/transient Features: (shadow emacsbug dired-aux secrets network-stream mailalias conf-mode magit-extras cursor-sensor misearch multi-isearch cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs two-column face-remap view eieio-opt speedbar ezimage dframe shortdoc help-fns radix-tree mm-archive gnus-fun sort gnus-cite mail-extr qp company-oddmuse company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb paredit vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs display-fill-column-indicator auto-package-update finder-inf generic yaml-mode fish-mode cargo cargo-process rust-utils rust-mode rust-rustfmt rust-playpen rust-compile compile rust-cargo web-mode disp-table preview-latex auto-loads tex-site deadgrep spinner s hl-todo aggressive-indent rainbow-mode vc-git vc-dir ewoc vc vc-dispatcher epa-file dired-x mu4e-icalendar gnus-icalendar org-capture org-refile icalendar diary-lib diary-loaddefs mu4e mu4e-org mu4e-main mu4e-view mu4e-view-gnus mu4e-view-common mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 mu4e-mark mu4e-proc mu4e-utils doc-view jka-compr image-mode exif mu4e-lists mu4e-message flow-fill 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 org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs mule-util hl-line mu4e-vars mu4e-meta smtpmail-multi smtpmail sendmail ecomplete completion auto-dictionary flyspell ispell tramp-smb which-key highlight-parentheses company-restclient know-your-http-well http-status-codes http-relations http-methods http-headers restclient company-posframe posframe company pcase yasnippet forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist gnutls forge-notify forge-revnote forge-pullreq forge-issue forge-topic forge-post markdown-mode color thingatpt noutline outline forge-repo forge forge-core forge-db closql emacsql-sqlite advice emacsql emacsql-compiler magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor server magit-mode transient comp comp-cstr magit-git magit-section magit-utils crm dash visual-filename-abbrev debbugs soap-client url-http url-auth url-gw nsm warnings rng-xsd rng-dt rng-util xsd-regexp bug-reference use-package-bind-key bind-key easy-mmode vertico aggressive-completion icomplete mb-depth use-package-diminish windmove rx tramp-cache tramp-sh recentf tree-widget pixel-scroll saveplace savehist paren smiley 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 dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus wid-edit nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mm-util mail-prsvr mail-utils edmacro kmacro dracula-theme diminish cl-extra help-mode use-package-ensure use-package-core 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 info 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 electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-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 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 875922 131442) (symbols 48 48716 6) (strings 32 221966 9449) (string-bytes 1 7356230) (vectors 16 91176) (vector-slots 8 2231600 244469) (floats 8 658 635) (intervals 56 24199 1855) (buffers 992 45)) From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 09:26:21 2021 Received: (at 48301) by debbugs.gnu.org; 11 May 2021 13:26:21 +0000 Received: from localhost ([127.0.0.1]:35379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSOy-0006Wb-QK for submit@debbugs.gnu.org; Tue, 11 May 2021 09:26:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSOx-0006WO-97 for 48301@debbugs.gnu.org; Tue, 11 May 2021 09:26:19 -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=7Iiq8t5jDWdjH1m1hrbHBwJWn6NwpG9TO6TnNHL/NeU=; b=MU4ZzkCdda0V5PG94sMT3745LB O7Cisut8lquw+sK3J1r2wDIuP0gc3iUBxmoU+xy/3Nv14yk1RIHbZitNQM6lRgxjhUa7Rvujv2X9C DmouURjcmCgE9d+4iyT16bc3wgcpAw6uLxdwDG6ecLuDt+KOXsMjB00Sji4Zn6rkQNAw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgSOo-0005QJ-Vx; Tue, 11 May 2021 15:26:13 +0200 From: Lars Ingebrigtsen To: Tassilo Horn Subject: Re: bug#48301: 28.0.50; Dired asks if buffer "" should be deleted with ls flag -p References: <87sg2wx4vg.fsf@gnu.org> X-Now-Playing: Coil's _Love's Secret Domain (2)_: "Teenage lightning (various) " Date: Tue, 11 May 2021 15:26:10 +0200 In-Reply-To: <87sg2wx4vg.fsf@gnu.org> (Tassilo Horn's message of "Sat, 08 May 2021 23:11:15 +0200") Message-ID: <87h7j9o0zx.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tassilo Horn writes: > 1. emacs -Q > 2. (setq dired-listing-switches "-Alhp") ;; the -p prints dirs as foo/, > ;; i.e., with trailing /. > 3. M-x dired RET ~ RET > 4. Visit directory ~/foobar in dired > 5. Delete ~/foobar [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48301 Cc: 48301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tassilo Horn writes: > 1. emacs -Q > 2. (setq dired-listing-switches "-Alhp") ;; the -p prints dirs as foo/, > ;; i.e., with trailing /. > 3. M-x dired RET ~ RET > 4. Visit directory ~/foobar in dired > 5. Delete ~/foobar directory in dired > 6. Dired asks: "Kill Dired buffer of , too?" where it should ask if the > buffer of foobar should be killed. > > The reason is that with the -p flag to ls which prints directories with > trailing slash, `dired-clean-up-after-deletion' is called with filename > FN "/home/foo/foobar/" and then (file-name-nondirectory > "/home/foo/foobar/") returns "". I'm unable to reproduce this bug in Emacs 28 -- I get no prompt at all when deleting the foobar directory (when testing with "emacs -Q"). Are there some missing steps here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 09:27:03 2021 Received: (at control) by debbugs.gnu.org; 11 May 2021 13:27:03 +0000 Received: from localhost ([127.0.0.1]:35383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSPf-0006Xq-3k for submit@debbugs.gnu.org; Tue, 11 May 2021 09:27:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSPd-0006XK-Vl for control@debbugs.gnu.org; Tue, 11 May 2021 09:27:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lD4+pmBd0eEn/B99prJqlKlRZ545S3LmIRk+YG305bk=; b=YSAuuISr+gWRL+6DEsWdyQib6g nNMts8ksdEl6rMJBU/mPhJHVbY540SHY/2+JH9IgArtaCEEus8zfIUh+LR6AP+utvN91/ZGM6U/zk rB+25V+6gQov71np5fC8XtxPP3H8rtRohDiHgPIDpHE6FGkJrNO6Gqpvm39HPEXtC4B4=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgSPW-0005Qe-Fx for control@debbugs.gnu.org; Tue, 11 May 2021 15:26:56 +0200 Date: Tue, 11 May 2021 15:26:54 +0200 Message-Id: <87fsyto0yp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #48301 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 48301 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 48301 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 11:28:49 2021 Received: (at 48301) by debbugs.gnu.org; 11 May 2021 15:28:49 +0000 Received: from localhost ([127.0.0.1]:37140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgUJV-0001yV-2L for submit@debbugs.gnu.org; Tue, 11 May 2021 11:28:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgUJT-0001yH-9J for 48301@debbugs.gnu.org; Tue, 11 May 2021 11:28:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52502) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgUJN-0005WC-F4; Tue, 11 May 2021 11:28:41 -0400 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:51455) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUJN-0000VB-Bx; Tue, 11 May 2021 11:28:41 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 2365B27C0054; Tue, 11 May 2021 11:28:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 11 May 2021 11:28:41 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehtddgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepve evieekteekveeigfefffeivdetgeduvdffueeuudevgedttdehvdfhueevfffhnecukfhp peekjedrudeifedrfedurdduheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 May 2021 11:28:40 -0400 (EDT) References: <87sg2wx4vg.fsf@gnu.org> <87h7j9o0zx.fsf@gnus.org> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tassilo Horn To: Lars Ingebrigtsen Subject: Re: bug#48301: 28.0.50; Dired asks if buffer "" should be deleted with ls flag -p Date: Tue, 11 May 2021 15:41:04 +0200 In-reply-to: <87h7j9o0zx.fsf@gnus.org> Message-ID: <87pmxxqogq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48301 Cc: 48301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: >> 1. emacs -Q >> 2. (setq dired-listing-switches "-Alhp") ;; the -p prints dirs as foo/, >> ;; i.e., with trailing /. >> 3. M-x dired RET ~ RET >> 4. Visit directory ~/foobar in dired >> 5. Delete ~/foobar directory in dired >> 6. Dired asks: "Kill Dired buffer of , too?" where it should ask if the >> buffer of foobar should be killed. >> >> The reason is that with the -p flag to ls which prints directories with >> trailing slash, `dired-clean-up-after-deletion' is called with filename >> FN "/home/foo/foobar/" and then (file-name-nondirectory >> "/home/foo/foobar/") returns "". > > I'm unable to reproduce this bug in Emacs 28 -- I get no prompt at all > when deleting the foobar directory (when testing with "emacs -Q"). > Are there some missing steps here? Oh, I'm sorry, you are right. It seems that one needs to require dired-x, too. So here a completed/amended recipe: >> 1. emacs -Q >> 2. (setq dired-listing-switches "-Alhp") ;; the -p prints dirs as foo/, >> ;; i.e., with trailing /. 2.1 (require 'dired-x) >> 3. M-x dired RET ~ RET 3.1 Create foobar subdir using `+ foobar RET' 3.2 Refresh using `g' because only then the new foobar directory will be shown as foobar/ instead of foobar (without the trailing /). >> 4. Visit directory ~/foobar/ in dired (a new dired buffer) >> 5. Delete ~/foobar/ directory in the original dired buffer >> 6. Dired asks: "Kill Dired buffer of , too?" where it should ask if the >> buffer of foobar should be killed. Bye, Tassilo From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 15:12:25 2021 Received: (at 48301-done) by debbugs.gnu.org; 11 May 2021 19:12:25 +0000 Received: from localhost ([127.0.0.1]:37433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgXns-0001Db-Sc for submit@debbugs.gnu.org; Tue, 11 May 2021 15:12:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgXnr-0001DN-Kj for 48301-done@debbugs.gnu.org; Tue, 11 May 2021 15:12:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33266) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgXnl-0007OR-Vx; Tue, 11 May 2021 15:12:18 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:54659) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgXni-0006yI-Sw; Tue, 11 May 2021 15:12:15 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 60EF827C0054; Tue, 11 May 2021 15:12:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 11 May 2021 15:12:14 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehtddgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 May 2021 15:12:13 -0400 (EDT) References: <87sg2wx4vg.fsf@gnu.org> <87h7j9o0zx.fsf@gnus.org> <87pmxxqogq.fsf@gnu.org> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tassilo Horn To: Lars Ingebrigtsen Subject: Re: bug#48301: 28.0.50; Dired asks if buffer "" should be deleted with ls flag -p Date: Tue, 11 May 2021 21:10:54 +0200 In-reply-to: <87pmxxqogq.fsf@gnu.org> Message-ID: <87mtt1qe45.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48301-done Cc: 48301-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi again, I've just had some time to have a look at the issue myself and fixed it in commit 4e175604b5. I'm closing this issue. Bye, Tassilo From unknown Fri Jun 20 07:11:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Jun 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator