all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8073: dired-do-chmod but when forgot to give an argument
@ 2011-02-18  8:47 jidanni
  2011-02-27 19:53 ` bug#8131: bug#8073 and bug#8131 Stephen Berman
  0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2011-02-18  8:47 UTC (permalink / raw)
  To: 8073

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.





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

* bug#8131: bug#8073 and bug#8131
  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
  2011-02-28  1:31   ` bug#8131: dired-do-redisplay applies unwanted mark to file/dir line Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Berman @ 2011-02-27 19:53 UTC (permalink / raw)
  To: jidanni, kennedywildwood; +Cc: 8073, 8131

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





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

* bug#8131: dired-do-redisplay applies unwanted mark to file/dir line
  2011-02-27 19:53 ` bug#8131: bug#8073 and bug#8131 Stephen Berman
@ 2011-02-28  1:31   ` Glenn Morris
  0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2011-02-28  1:31 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 8131-done

Stephen Berman wrote:

> Here is a fix:

Cheers; applied.





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

end of thread, other threads:[~2011-02-28  1:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18  8:47 bug#8073: dired-do-chmod but when forgot to give an argument jidanni
2011-02-27 19:53 ` bug#8131: bug#8073 and bug#8131 Stephen Berman
2011-02-28  1:31   ` bug#8131: dired-do-redisplay applies unwanted mark to file/dir line Glenn Morris

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.