unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52166: Dired doesn't handle filenames with newlines
@ 2021-11-28 19:26 Tor Kringeland
  2021-11-28 19:42 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Tor Kringeland @ 2021-11-28 19:26 UTC (permalink / raw)
  To: 52166

Create a file named `
file.txt` in `dired' (that is, with a newline included).  It's possible
to mark this file, but when I try to delete it, `dired' complains that
there is "No file on this line".

Moreover, only "file.txt" is displayed on the next line, with no
indication that the filename starts with a newline.  This makes it easy
to miss it at a glance.  It could be helpful to have an option of the
filename instead being displayed like "^Jfile.txt" instead.

I'm using a recent build of Emacs 29 (from 24 November) on macOS.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52166: Dired doesn't handle filenames with newlines
  2021-11-28 19:26 bug#52166: Dired doesn't handle filenames with newlines Tor Kringeland
@ 2021-11-28 19:42 ` Eli Zaretskii
  2021-11-29 15:30   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-11-28 19:42 UTC (permalink / raw)
  To: Tor Kringeland; +Cc: 52166

> From: Tor Kringeland <tor.a.s.kringeland@ntnu.no>
> Date: Sun, 28 Nov 2021 20:26:21 +0100
> 
> Create a file named `
> file.txt` in `dired' (that is, with a newline included).  It's possible
> to mark this file, but when I try to delete it, `dired' complains that
> there is "No file on this line".
> 
> Moreover, only "file.txt" is displayed on the next line, with no
> indication that the filename starts with a newline.  This makes it easy
> to miss it at a glance.  It could be helpful to have an option of the
> filename instead being displayed like "^Jfile.txt" instead.

You need to add -b to the ls switches used by Dired, and then you will
have what you want.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52166: Dired doesn't handle filenames with newlines
  2021-11-28 19:42 ` Eli Zaretskii
@ 2021-11-29 15:30   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-29 15:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Tor Kringeland, 52166

Eli Zaretskii <eliz@gnu.org> writes:

> You need to add -b to the ls switches used by Dired, and then you will
> have what you want.

And I think we've previously decided that this is not something we're
going to attempt to solve in a more general way, so I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-29 15:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28 19:26 bug#52166: Dired doesn't handle filenames with newlines Tor Kringeland
2021-11-28 19:42 ` Eli Zaretskii
2021-11-29 15:30   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).