From: Stephen Berman <stephen.berman@gmx.net>
To: jidanni@jidanni.org, kennedywildwood@yahoo.com
Cc: 8073@debbugs.gnu.org, 8131@debbugs.gnu.org
Subject: bug#8131: bug#8073 and bug#8131
Date: Sun, 27 Feb 2011 20:53:22 +0100 [thread overview]
Message-ID: <87wrklb6fh.fsf@escher.home> (raw)
In-Reply-To: <87fwrliv9w.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 18 Feb 2011 16:47:39 +0800")
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 <kennedywildwood@yahoo.com> 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 <rgm@gnu.org>
[...]
* 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
next prev parent reply other threads:[~2011-02-27 19:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-18 8:47 bug#8073: dired-do-chmod but when forgot to give an argument jidanni
2011-02-27 19:53 ` Stephen Berman [this message]
2011-02-28 1:31 ` bug#8131: dired-do-redisplay applies unwanted mark to file/dir line Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wrklb6fh.fsf@escher.home \
--to=stephen.berman@gmx.net \
--cc=8073@debbugs.gnu.org \
--cc=8131@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
--cc=kennedywildwood@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.