From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57350: 29.0.50; dired and filenames containing newlines Date: Wed, 31 Aug 2022 13:59:11 +0300 Message-ID: <835yi8u1a8.fsf@gnu.org> References: <25348.34632.888174.151961@capuchin.co.uk> <87edx7s02n.fsf@gnus.org> <87bksaos5w.fsf@gnus.org> <8335dj336r.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1411"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 57350@debbugs.gnu.org, robert@capuchin.co.uk To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 13:00:35 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 1oTLSU-0000Dq-Sh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 13:00:35 +0200 Original-Received: from localhost ([::1]:39058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTLST-0004gX-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 07:00:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTLS0-0004gF-1f for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTLRz-0003ox-PC for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTLRz-0000jd-A3 for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 07:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Aug 2022 11:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57350 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 57350-submit@debbugs.gnu.org id=B57350.16619435422701 (code B ref 57350); Wed, 31 Aug 2022 11:00:03 +0000 Original-Received: (at 57350) by debbugs.gnu.org; 31 Aug 2022 10:59:02 +0000 Original-Received: from localhost ([127.0.0.1]:38340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTLR0-0000hL-CD for submit@debbugs.gnu.org; Wed, 31 Aug 2022 06:59:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTLQw-0000gz-Iv for 57350@debbugs.gnu.org; Wed, 31 Aug 2022 06:59:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTLQp-0003ib-Jy; Wed, 31 Aug 2022 06:58:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=n6cIuDPJk33OejuwphSA6Gmllhe8MNqId8f+gNr23/E=; b=K76Gj6sKxXUH Zyd3Gzl+bNhRFtBi3+opjftGTzzbD4mlKgqf/mysozo0sJgXDl5cYomFy/W54N0wmZiSmcUqTn9iq nos0y9xDI4+zaBNEyH5DHXcmuG/chXQ8PLooilgRu8Ec3rbWRYqp4eBmBsUIQwFOtph6pcAZk0b/J DYYtFY4lVkand4PCBjG1Dg1HcRquZhECrXC5GmaUaSS+SOw0CBjOiau9/NQIc5uAneuuUWT4i2dRA enHenmSSBsbjfchkC7L2XTA6XlfHe/x2ZGGNpDo2CxJw/CD7i6hPz/fezcsaOr12wX/bScy9vguBi t7BPeGKjdskgRhDFV6p9tQ==; Original-Received: from [87.69.77.57] (port=4886 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTLQl-0008O2-0z; Wed, 31 Aug 2022 06:58:47 -0400 In-Reply-To: (message from Richard Stallman on Tue, 30 Aug 2022 22:38:34 -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" Xref: news.gmane.io gmane.emacs.bugs:241179 Archived-At: > From: Richard Stallman > Cc: larsi@gnus.org, robert@capuchin.co.uk, 57350@debbugs.gnu.org > Date: Tue, 30 Aug 2022 22:38:34 -0400 > > > A lot of coding. The --dired option tells Emacs where the file name > > begins and ends, but it does nothing to remove the literal newline > > character in the Dired buffer that breaks the file name entry into two > > (or more) lines. So all the Dired commands that move by lines and > > assume a file's entry takes only one line on display become broken and > > have to be rewritten almost from scratch. > > It seems to me that the newlines in the file names should not be > represented in the Direc buffer as newlines. Perhaps as \n? And > backslashes as \\? > > dired-readin could search the filenames for newlines and backslashes > and change the representation of them. Could be done, but that would also need a lot of coding, just elsewhere: all the features and commands which work on Dired buffers would need to perform the inverse conversion before actually using the file names. I'm not sure which of the jobs is smaller, but it doesn't look like any of them is small. Anyway, patches are welcome.