From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Marshall Newsgroups: gmane.emacs.bugs Subject: bug#57350: 29.0.50; dired and filenames containing newlines Date: Tue, 23 Aug 2022 08:52:40 +0100 Message-ID: <25348.34632.888174.151961@capuchin.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40543"; mail-complaints-to="usenet@ciao.gmane.io" To: 57350@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 23 09:57:04 2022 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 1oQOmU-000ALs-QS for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 09:57:02 +0200 Original-Received: from localhost ([::1]:40716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQOmT-0007SB-GH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 03:57:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQOjb-0003qt-9m for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 03:54:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQOja-0008F9-9b for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 03:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQOja-0008WN-5K for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 03:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Marshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Aug 2022 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57350 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.166124118832676 (code B ref -1); Tue, 23 Aug 2022 07:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Aug 2022 07:53:08 +0000 Original-Received: from localhost ([127.0.0.1]:42479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQOih-0008Uy-Vj for submit@debbugs.gnu.org; Tue, 23 Aug 2022 03:53:08 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQOie-0008Up-Eo for submit@debbugs.gnu.org; Tue, 23 Aug 2022 03:53:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQOie-0002mT-8F for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 03:53:04 -0400 Original-Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:43266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQOia-00084u-BL for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 03:53:02 -0400 Original-Received: from [212.54.57.105] (helo=csmtp1.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQOiM-0007Ad-6J for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 09:52:46 +0200 Original-Received: from capuchin.co.uk ([82.0.180.44]) by cmsmtp with ESMTP id QOiLoxI7w2CkpQOiLoDsFZ; Tue, 23 Aug 2022 09:52:46 +0200 X-SourceIP: 82.0.180.44 X-Spam: 0 X-Authority: v=2.4 cv=S5fKfagP c=1 sm=1 tr=0 ts=6304874e cx=a_exe a=ZmEqW+an5eg7eqPGYFwV/Q==:117 a=ZmEqW+an5eg7eqPGYFwV/Q==:17 a=kj9zAlcOel0A:10 a=biHskzXt2R4A:10 a=aR16PxjQAAAA:8 a=tyav6Pdv4quEwYfFPnIA:9 a=CjuIK1q_8ugA:10 a=zbFvvTOBjyH4ze5LlUjX:22 Original-Received: from poulenc.faure (unknown [192.168.0.153]) by capuchin.co.uk (Postfix) with ESMTPS id 6113C19F3AA for ; Tue, 23 Aug 2022 08:52:45 +0100 (BST) X-Mailer: VM 8.2.0b under 29.0.50 (x86_64-pc-linux-gnu) X-CMAE-Envelope: MS4xfAnhrSxBlnS6mr6R6KHSlx/PngfoR8Q49AH8LDLVqO0I//31Wa+TNOGv0HXK8d9mMxQw/MICztJdhKtIgVaNpcZLesSrc1tbWS26OC5W5sbIPSL9l5qD UGPhYYVvg/qyBPs2XEs5AaiRCJNxuBGdrAbEPgSkvGsoA2Cw2v0oNeiynd9A0lGk+WRoBV73jUmVCQ== Received-SPF: none client-ip=212.54.57.96; envelope-from=robert@capuchin.co.uk; helo=smtpq1.tb.ukmail.iss.as9143.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:240503 Archived-At: I was sent a file whose name contained a newline: drwxrwxr-x 9 robert robert 12288 Aug 23 08:22 . -rw-rw-r-- 1 robert robert 4887658 Aug 23 08:22 21st August Draft Newsletter FINAL.pdf (try not to eyeroll too much at the file name and the combination of draft and final!) If you delete the file in dired using dired-flag-file-deletion and then dired-do-flagged-delete the file is deleted but the file name still appears in the dired buffer. D -rw-rw-r-- 1 robert robert 4887658 Aug 23 08:23 21st August Draft Newsletter FINAL.pdf (ignore the different time on the file) Refreshing the buffer does show that the deletion was successful Also (after getting the file again with the newlined name) renaming the file in dired then shows the file as existing in both its original name and the new one. Again refreshing the buffer sorts out the issue. I tried to rename the file within Wdired and remove the internal newline, at one point I got an error when exiting Wdired (and the rename failed) but am currently unable to replicate this bit of the problem.. Robert In GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2022-07-28 built on poulenc Repository revision: 5999dc1cd925ddf8af0b893432124af7904a6918 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 21.10 Configured using: 'configure --with-xpm=ifavailable' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Dired by date Minor modes in effect: shell-dirtrack-mode: t global-hi-lock-mode: t hi-lock-mode: t recentf-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/robert/elisp/dired-async hides /home/robert/.emacs.d/elpa/async-20191030.2138/dired-async /home/robert/elisp/async hides /home/robert/.emacs.d/elpa/async-20191030.2138/async /home/robert/.emacs.d/elpa/transient-20191115.1356/transient hides /home/robert/emacs-git/new/emacs/lisp/transient Features: (shadow emacsbug wdired bookmark shell pcomplete comint pp doc-view filenotify jka-compr image-mode exif dired-aux url-queue url-cache dabbrev thingatpt xref project ring shr-color color gnus-fun qp mule-util flow-fill mm-archive cl-extra help-mode sort smiley ansi-color gnus-cite mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check gnus-async gnus-bcklg gnus-ml disp-table gnus-topic cursor-sensor nndraft nnmh nnfolder gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-cache bbdb-gnus network-stream nntp bbdb-vm bbdb-mua bbdb-com crm vm-pine gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file url-dired svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message yank-media dired-x dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search range bbdb bbdb-site timezone sendmail mail-utils vm-rfaddons vm-reply vm-imap vm-save vm-virtual vm-summary-faces vm-delete vm-pop vm-undo vm-sort vm-thread vm-mime vm-toolbar vm-menu tapestry vm-window vm-folder vm-crypto vm-summary vm-mouse vm-page vm-motion vm-minibuf vm-message vm-misc vm-macro vm-autoloads vm-vars vm-version vm misearch multi-isearch twittering-mode advice identica-mode url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny longlines parse-time iso8601 time-date xml cl cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays holiday-loaddefs diary-lib diary-loaddefs cal-menu calendar cal-loaddefs server tbemail org-install hi-lock desktop frameset recentf tree-widget wid-edit bbdb-loaddefs finder-inf info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile cconv url-vars cl-loaddefs cl-lib rmc 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 1074877 91613) (symbols 48 59368 182) (strings 32 472465 25550) (string-bytes 1 11985789) (vectors 16 137125) (vector-slots 8 2267698 163527) (floats 8 911 505) (intervals 56 121608 1899) (buffers 992 38))