From unknown Sun Jun 15 08:13:56 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#8131 <8131@debbugs.gnu.org> To: bug#8131 <8131@debbugs.gnu.org> Subject: Status: 24.0.50; dired-do-redisplay applies unwanted mark to file/dir line Reply-To: bug#8131 <8131@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:13:56 +0000 retitle 8131 24.0.50; dired-do-redisplay applies unwanted mark to file/dir = line reassign 8131 emacs submitter 8131 John Peters severity 8131 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 27 08:13:58 2011 Received: (at submit) by debbugs.gnu.org; 27 Feb 2011 13:13:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtgRh-0006gr-Q4 for submit@debbugs.gnu.org; Sun, 27 Feb 2011 08:13:58 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ptbg1-0006Up-5z for submit@debbugs.gnu.org; Sun, 27 Feb 2011 03:08:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ptbfu-0002N4-Mz for submit@debbugs.gnu.org; Sun, 27 Feb 2011 03:08:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,T_DKIM_INVALID,T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:47924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ptbfu-0002N0-KI for submit@debbugs.gnu.org; Sun, 27 Feb 2011 03:08:18 -0500 Received: from [140.186.70.92] (port=52200 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptbft-0000pg-85 for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 03:08:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ptbfr-0002Mq-UT for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 03:08:17 -0500 Received: from nm4.bullet.mail.sp2.yahoo.com ([98.139.91.74]:43982) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Ptbfr-0002Mi-Gu for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 03:08:15 -0500 Received: from [98.139.91.63] by nm4.bullet.mail.sp2.yahoo.com with NNFMP; 27 Feb 2011 08:08:14 -0000 Received: from [98.139.91.2] by tm3.bullet.mail.sp2.yahoo.com with NNFMP; 27 Feb 2011 08:08:14 -0000 Received: from [127.0.0.1] by omp1002.mail.sp2.yahoo.com with NNFMP; 27 Feb 2011 08:08:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 170061.30470.bm@omp1002.mail.sp2.yahoo.com Received: (qmail 96097 invoked by uid 60001); 27 Feb 2011 08:08:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298794093; bh=ZUFlzWJ/3x+vd7o6pMAPJjsoIQMiIcSkXmo4gJEk29Q=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=iai/azVQ1yPdNYaCz2HYTOP85THOQF2VkWqBlWDrNUtReXjZz1LfkprDchWnAfXrwMpaPypZ44184CEj0UhraYwUFBtG4SU8tPF3U7mrww0hmqB6K5ZGsrbVotSVS7hdbUj8hOgCTKx+CjgKyiR2SPYAJxmx7YAh/Hgp9f2xbDU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type; b=wgWH0kC9yS02//zRUoN3L+zqmUuS9CMIOyMX1QTvt+fQWm25Zp6PSz34aLSgjVAE+olKwiaDJDFLaDZ1MQNttYKdmNbuWvR5PN8T8mPPGrO3iM5WUn4uP9SWs0JUpd3S6VU+XcKci+JRxGKxWaj5FA9FdtF2joLmCvGhBnMTVbQ=; Message-ID: <690102.95304.qm@web111008.mail.gq1.yahoo.com> X-YMail-OSG: cuouo_wVM1mj6BgZf5poCgcRXlCLtx8dhuWZ38cwyGL6zm6 tSY_sNGebuvlYUX3EtuqS3gJWUGdyADfBae3wMPspw9GWLXWo0Ik76R56873 B4dB5KRjo96oj24YpYmYHcw6KyDW9NqMQJ1t4xnwr0n4n9KQ739aVPCxzz2Y y6c6bR5nWnFJYtINIGkBTBUXocSdTgNjWV8d1kt95nnts8YB5bNztuClpqJP RGFZ06Hq_GgsBLQmtRTKykp7izYIsdYwKyInbc6LNStMIgZJttu2QeZ4af2i .60DUehXeiMxqr3qB3CQfT9qcH.zeo99kOMfh913qJ0SupVSrLA-- Received: from [173.55.234.210] by web111008.mail.gq1.yahoo.com via HTTP; Sun, 27 Feb 2011 00:08:13 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.109.292656 Date: Sun, 27 Feb 2011 00:08:13 -0800 (PST) From: John Peters Subject: 24.0.50; dired-do-redisplay applies unwanted mark to file/dir line To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 27 Feb 2011 08:13:56 -0500 Cc: jfp@practic.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Dear Friends: Recent breakage in dired-do-redisplay, manifests in Fedora 13 and Mac OS X. File or dir line acquires an unexpected mark which appears to be the name's first letter. Failure recipe: (Fedora 13, Emacs bzr-103433) emacs -Q --eval='(progn (write-file (make-temp-file "FOO"))(require (quote dired)) (dired-jump) (dired-do-redisplay))' will apply "F" mark to the file line. Cheers, John Peters kennedywildwood@yahoo.com In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-02-26 on localhost.localdomain Windowing system distributor `Fedora Project', version 11.0.10802000 configured using `configure '--with-x' '--with-x-toolkit=gtk' '--without-selinux' '--without-compress-info'' Important settings: value of $LC_ALL: C 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: nil default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x e m a c s - r e p o r t - e m a c s b u g - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Saving file /tmp/FOO265947zf... Wrote /tmp/FOO265947zf Redisplaying...done Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse auth-source eieio byte-opt bytecomp byte-compile assoc gnus-util time-date password-cache url-vars mm-util mail-prsvr dired-aux dired-x easymenu dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 27 14:53:36 2011 Received: (at 8131) by debbugs.gnu.org; 27 Feb 2011 19:53:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtmgR-0007nz-Jz for submit@debbugs.gnu.org; Sun, 27 Feb 2011 14:53:35 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PtmgO-0007nf-8m for 8131@debbugs.gnu.org; Sun, 27 Feb 2011 14:53:33 -0500 Received: (qmail invoked by alias); 27 Feb 2011 19:53:25 -0000 Received: from i59F5652B.versanet.de (EHLO escher.home) [89.245.101.43] by mail.gmx.net (mp038) with SMTP; 27 Feb 2011 20:53:25 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/pxKkb2HrpELwijDQfULLoeN7lBi1nXNmF5KAnTO YbRPuNedAkiXPp Received: by escher.home (Postfix, from userid 1000) id 1BBA762892; Sun, 27 Feb 2011 20:53:22 +0100 (CET) From: Stephen Berman To: jidanni@jidanni.org, kennedywildwood@yahoo.com Subject: Re: bug#8073 and bug#8131 References: <87fwrliv9w.fsf@jidanni.org> Date: Sun, 27 Feb 2011 20:53:22 +0100 In-Reply-To: <87fwrliv9w.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 18 Feb 2011 16:47:39 +0800") Message-ID: <87wrklb6fh.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 8131 Cc: 8073@debbugs.gnu.org, 8131@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Fri, 18 Feb 2011 16:47:39 +0800 jidanni@jidanni.org wrote: > M runs the command dired-do-chmod, which is an interactive compiled > Lisp function in `dired-aux.el'. > > However, if you forget to give it a mode, and just type RET, before long > your dired will look like > > drwxr-xr-x 3 jidanni 4096 Feb 18 16:44 . > drwxr-xr-x 94 jidanni 12288 Feb 18 15:06 .. > -rwxr-xr-x 1 jidanni 635 Jan 21 20:01 Email_Addresses.pl > -rw-r--r-- 1 jidanni 1287 Feb 18 16:39 Makefile > b -rw-r--r-- 1 jidanni 2750 Nov 27 2009 b3 > drwxr-xr-x 2 jidanni 4096 Jul 22 2010 dropping > j -rw-r--r-- 1 jidanni 1190 Nov 27 2009 jj > -rw-r--r-- 1 jidanni 5084 Nov 27 2009 nam > u -rw-r--r-- 1 jidanni 9540 Feb 18 16:44 u.htm > > with the first letter of the file appearing before the line. On Sun, 27 Feb 2011 00:08:13 -0800 (PST) John Peters wrote: > Dear Friends: > > Recent breakage in dired-do-redisplay, manifests in Fedora 13 and Mac OS > X. File or dir line acquires an unexpected mark which appears to be the name's first letter. > > Failure recipe: (Fedora 13, Emacs bzr-103433) > > emacs -Q --eval='(progn (write-file (make-temp-file "FOO"))(require > (quote dired)) (dired-jump) (dired-do-redisplay))' > > will apply "F" mark to the file line. I believe both of these bugs are due to this change: 2010-11-09 Glenn Morris [...] * dired-aux.el (dired-kill-line, dired-do-kill-lines) (dired-update-file-line, dired-add-entry, dired-remove-entry) (dired-relist-entry): [...] Replace yet more uses of end-of-line etc with line-end-position, etc. Here is a fix: *** /data/steve/bzr/emacs/trunk/lisp/dired-aux.el 2011-02-23 15:11:01.000000000 +0100 --- /data/steve/bzr/emacs/quickfixes/lisp/dired-aux.el 2011-02-27 20:45:45.000000000 +0100 *************** *** 1025,1033 **** ;; Keeps any marks that may be present in column one (doing this ;; here is faster than with dired-add-entry's optional arg). ;; Does not update other dired buffers. Use dired-relist-entry for that. ! (let ((char (following-char)) ! (opoint (line-beginning-position)) ! (buffer-read-only)) (delete-region opoint (progn (forward-line 1) (point))) (if file (progn --- 1025,1033 ---- ;; Keeps any marks that may be present in column one (doing this ;; here is faster than with dired-add-entry's optional arg). ;; Does not update other dired buffers. Use dired-relist-entry for that. ! (let* ((opoint (line-beginning-position)) ! (char (char-after opoint)) ! (buffer-read-only)) (delete-region opoint (progn (forward-line 1) (point))) (if file (progn Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 27 20:31:50 2011 Received: (at 8131-done) by debbugs.gnu.org; 28 Feb 2011 01:31:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ptrxl-0000cI-PR for submit@debbugs.gnu.org; Sun, 27 Feb 2011 20:31:49 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ptrxj-0000c6-Il for 8131-done@debbugs.gnu.org; Sun, 27 Feb 2011 20:31:48 -0500 Received: from localhost ([127.0.0.1]:41507) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ptrxe-000672-64; Sun, 27 Feb 2011 20:31:42 -0500 From: Glenn Morris To: Stephen Berman Subject: Re: bug#8131: dired-do-redisplay applies unwanted mark to file/dir line References: <87fwrliv9w.fsf@jidanni.org> <87wrklb6fh.fsf@escher.home> X-Spook: virus DES target codes plutonium defense information X-Ran: qC^7e(]!Nq5/~h.bID!>;9>01[eLj$vwlIvT/-(9?\_i>CSVX/gbPC,pQOW[', (Stephen Berman's message of "Sun, 27 Feb 2011 20:53:22 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8131-done Cc: 8131-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Stephen Berman wrote: > Here is a fix: Cheers; applied. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 27 20:38:49 2011 Received: (at control) by debbugs.gnu.org; 28 Feb 2011 01:38:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pts4W-0000n4-Vg for submit@debbugs.gnu.org; Sun, 27 Feb 2011 20:38:49 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pts4U-0000mr-GP for control@debbugs.gnu.org; Sun, 27 Feb 2011 20:38:46 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Pts4P-0006MQ-Ga for control@debbugs.gnu.org; Sun, 27 Feb 2011 20:38:41 -0500 Date: Sun, 27 Feb 2011 20:38:41 -0500 Message-Id: Subject: control message for bug 8073 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) forcemerge 8131 8073 From unknown Sun Jun 15 08:13:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 28 Mar 2011 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