From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4049: marked as done (23.1.50; dired doesn't work with files containing newlines in the filename) Date: Sun, 13 Sep 2009 20:25:27 +0000 Message-ID: References: <87ljkimwf1.fsf@cyd.mit.edu> <87skg63wyr.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1252873527-29932-0" X-Trace: ger.gmane.org 1252873645 19365 80.91.229.12 (13 Sep 2009 20:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 20:27:25 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 13 22:27:17 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MmvfJ-0003SE-FY for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 22:27:17 +0200 Original-Received: from localhost ([127.0.0.1]:46770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmvfI-00029V-6I for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 16:27:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmvfC-000296-Na for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 16:27:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mmvf8-00028k-C5 for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 16:27:09 -0400 Original-Received: from [199.232.76.173] (port=52533 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmvf7-00028Z-M0 for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 16:27:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44207) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mmvf7-0004Gb-0z for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2009 16:27:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8DKQxo0030197; Sun, 13 Sep 2009 13:27:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8DKPRCq030073; Sun, 13 Sep 2009 13:25:28 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4049 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31049 Archived-At: This is a multi-part message in MIME format... ------------=_1252873527-29932-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sun, 13 Sep 2009 16:17:38 -0400 with message-id <87ljkimwf1.fsf@cyd.mit.edu> and subject line Re: 23.1.50; dired doesn't work with files containing newl= ines in the filename has caused the Emacs bug report #4049, regarding 23.1.50; dired doesn't work with files containing newlines in the= filename to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4049: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4049 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1252873527-29932-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 5 Aug 2009 19:03:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n75J2reJ007736 for ; Wed, 5 Aug 2009 12:02:54 -0700 Received: from mail.gnu.org ([199.232.76.166]:34978 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MYllD-00046m-KP for emacs-pretest-bug@gnu.org; Wed, 05 Aug 2009 15:02:52 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MYllA-0008WT-0C for emacs-pretest-bug@gnu.org; Wed, 05 Aug 2009 15:02:51 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:38130) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYll9-0008W9-GV for emacs-pretest-bug@gnu.org; Wed, 05 Aug 2009 15:02:47 -0400 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id D75923BE1E9 for ; Wed, 5 Aug 2009 15:02:45 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 05 Aug 2009 15:02:45 -0400 X-Sasl-enc: GVQ5WtKjbLPp+oZYIey6C6mJ42M+xbVACCCZM0NtSJY3 1249498965 Received: from thinkpad.tsdh.de (p54AF3B9A.dip0.t-ipconnect.de [84.175.59.154]) by mail.messagingengine.com (Postfix) with ESMTPA id EC1CA32E7 for ; Wed, 5 Aug 2009 15:02:44 -0400 (EDT) From: Tassilo Horn To: emacs-pretest-bug@gnu.org Subject: 23.1.50; dired doesn't work with files containing newlines in the filename Mail-Copies-To: never Date: Wed, 05 Aug 2009 21:02:52 +0200 Message-ID: <87skg63wyr.fsf@thinkpad.tsdh.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Filenames on POSIX may contain newlines in the name. I tried that on GNU/Linux. The `ls' command lists the file as "multi?line?file", where the question marks represent the newlines. Unfortunately, dired doesn't work with those files. Here's a "screenshot": --8<---------------cut here---------------start------------->8--- drwxr-xr-x 2 horn horn 4.0K 2009-06-30 22:32 kvm drwxr-xr-x 4 horn horn 4.0K 2009-08-05 19:30 Mail -rw-r--r-- 1 horn horn 4 2009-08-05 20:05 multi line file drwxr-xr-x 7 horn horn 12K 2009-08-05 20:04 News drwxr-xr-x 6 horn horn 4.0K 2009-07-27 20:59 opt --8<---------------cut here---------------end--------------->8--- The listing itself is ok, I'd say. But hitting RET on "multi" says "File no longer exists; type `g' to update dired buffer", and RET on "line" or "file" say "No file on this line". I think that `dired-move-to-end-of-filename' has to be adapted to consider those filenames, too. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1.50/etc/DEBUG for instructions. In GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-08-02 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.10603000 configured using `configure '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' '--program-suffix=-emacs-23-cvs' '--infodir=/usr/share/info/emacs-23-cvs' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--with-libotf' '--with-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=core2 -O2 -pipe' 'LDFLAGS=-Wl,-z,now'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Article Minor modes in effect: display-time-mode: t yas/global-mode: t yas/minor-mode: t recentf-mode: t iswitchb-mode: t window-number-meta-mode: t window-number-mode: t exec-abbrev-cmd-mode: t savehist-mode: t show-paren-mode: t tooltip-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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x d t C-x C-b q C-x b . e m y n C-x b . e m C-x k C-x b s o C-x k M-x r e b i s w i t c h b SPC v i r t a l u a l SPC b u f f e r n s SPC C-g M-x g y q q 1 q C-n SPC SPC SPC SPC SPC SPC SPC SPC SPC c SPC SPC SPC SPC M-2 M-1 M-2 C-SPC M-w M-x r e b Recent messages: 20090805T205934.781> End of message 20090805T205934.803> End of message 20090805T205934.822> End of message 20090805T205934.843> End of message 20090805T205934.864> End of message 20090805T205934.884> End of message 20090805T205935.276> End of message 20090805T205935.626> End of message Mark set Saved text from "> Because a file name on Posix platforms" Load-path shadows: /usr/share/emacs/site-lisp/ruby-mode/ruby-mode hides /usr/share/emacs/23.1.50/lisp/progmodes/ruby-mode ~/repos/el/org-mode/lisp/org-bbdb hides /usr/share/emacs/23.1.50/lisp/org/org-bbdb ~/repos/el/org-mode/lisp/org-colview hides /usr/share/emacs/23.1.50/lisp/org/org-colview ~/repos/el/org-mode/lisp/org-footnote hides /usr/share/emacs/23.1.50/lisp/org/org-footnote ~/repos/el/org-mode/lisp/org-compat hides /usr/share/emacs/23.1.50/lisp/org/org-compat ~/repos/el/org-mode/lisp/org-clock hides /usr/share/emacs/23.1.50/lisp/org/org-clock ~/repos/el/org-mode/lisp/org-bibtex hides /usr/share/emacs/23.1.50/lisp/org/org-bibtex ~/repos/el/org-mode/lisp/org-faces hides /usr/share/emacs/23.1.50/lisp/org/org-faces ~/repos/el/org-mode/lisp/org-timer hides /usr/share/emacs/23.1.50/lisp/org/org-timer ~/repos/el/org-mode/lisp/org-vm hides /usr/share/emacs/23.1.50/lisp/org/org-vm ~/repos/el/org-mode/lisp/org-list hides /usr/share/emacs/23.1.50/lisp/org/org-list ~/repos/el/org-mode/lisp/org-gnus hides /usr/share/emacs/23.1.50/lisp/org/org-gnus ~/repos/el/org-mode/lisp/org-exp hides /usr/share/emacs/23.1.50/lisp/org/org-exp ~/repos/el/org-mode/lisp/org-wl hides /usr/share/emacs/23.1.50/lisp/org/org-wl ~/repos/el/org-mode/lisp/org-plot hides /usr/share/emacs/23.1.50/lisp/org/org-plot ~/repos/el/org-mode/lisp/org-w3m hides /usr/share/emacs/23.1.50/lisp/org/org-w3m ~/repos/el/org-mode/lisp/org-agenda hides /usr/share/emacs/23.1.50/lisp/org/org-agenda ~/repos/el/org-mode/lisp/org-archive hides /usr/share/emacs/23.1.50/lisp/org/org-archive ~/repos/el/org-mode/lisp/org-attach hides /usr/share/emacs/23.1.50/lisp/org/org-attach ~/repos/el/org-mode/lisp/org-mhe hides /usr/share/emacs/23.1.50/lisp/org/org-mhe ~/repos/el/org-mode/lisp/org-irc hides /usr/share/emacs/23.1.50/lisp/org/org-irc ~/repos/el/org-mode/lisp/org-table hides /usr/share/emacs/23.1.50/lisp/org/org-table ~/repos/el/org-mode/lisp/org-info hides /usr/share/emacs/23.1.50/lisp/org/org-info ~/repos/el/org-mode/lisp/org-jsinfo hides /usr/share/emacs/23.1.50/lisp/org/org-jsinfo ~/repos/el/org-mode/lisp/org-id hides /usr/share/emacs/23.1.50/lisp/org/org-id ~/repos/el/org-mode/lisp/org-publish hides /usr/share/emacs/23.1.50/lisp/org/org-publish ~/repos/el/org-mode/lisp/org-mew hides /usr/share/emacs/23.1.50/lisp/org/org-mew ~/repos/el/org-mode/lisp/org-remember hides /usr/share/emacs/23.1.50/lisp/org/org-remember ~/repos/el/org-mode/lisp/org-macs hides /usr/share/emacs/23.1.50/lisp/org/org-macs ~/repos/el/org-mode/lisp/org-mouse hides /usr/share/emacs/23.1.50/lisp/org/org-mouse ~/repos/el/org-mode/lisp/org-install hides /usr/share/emacs/23.1.50/lisp/org/org-install ~/repos/el/org-mode/lisp/org hides /usr/share/emacs/23.1.50/lisp/org/org ~/repos/el/org-mode/lisp/org-rmail hides /usr/share/emacs/23.1.50/lisp/org/org-rmail ~/repos/el/org-mode/lisp/org-mac-message hides /usr/share/emacs/23.1.50/lisp/org/org-mac-message ~/elisp/elp hides /usr/share/emacs/23.1.50/lisp/emacs-lisp/elp ------------=_1252873527-29932-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4049-done) by emacsbugs.donarmstrong.com; 13 Sep 2009 20:16:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8DKGBUh028404 for <4049-done@emacsbugs.donarmstrong.com>; Sun, 13 Sep 2009 13:16:12 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 1119E57E26C; Sun, 13 Sep 2009 16:17:38 -0400 (EDT) From: Chong Yidong To: Tassilo Horn Cc: 4049-done@emacsbugs.donarmstrong.com Subject: Re: 23.1.50; dired doesn't work with files containing newlines in the filename Date: Sun, 13 Sep 2009 16:17:38 -0400 Message-ID: <87ljkimwf1.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Filenames on POSIX may contain newlines in the name. I tried that on > GNU/Linux. The `ls' command lists the file as "multi?line?file", where > the question marks represent the newlines. Add the "-b" option to dired-listing-switches, e.g.: (setq dired-listing-switches (concat dired-listing-switches "b")) We could try to parse this ourselves, but this is never going to be reliable, e.g. a file could be named "foo\n -rw-r--r--..." and so on; we'd never catch that. ------------=_1252873527-29932-0--