GNU bug report logs -
#17228
24.4.50; Dired with -R switch and hiding details: Missing chars etc.
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 8 Apr 2014 22:37:01 UTC
Severity: normal
Found in version 24.4.50
Done: Christopher Schmidt <ch <at> ristopher.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17228 in the body.
You can then email your comments to 17228 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17228
; Package
emacs
.
(Tue, 08 Apr 2014 22:37:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 08 Apr 2014 22:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
C-u C-x d -alR SOME-DIR
The descendent dirs are inserted. OK. Now hide details (`(').
The `.' entries appear at the end of the subdir header lines. The
newlines separating the inserted subdirs from the preceding listing are
missing. The colons at the end of the subdir header lines are missing.
The subdir header lines are not indented.
(The top-level dir listing is OK.)
Example - this is what you see before hiding details:
d:/foo/test:
total used in directory 1024 available 115348376
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 .
drwxrwxrwx 1 myuser Domain Users 1048576 04-08 15:19 ..
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 sample-one
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 sample-two
d:/foo/test/sample-one:
total 0
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 .
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 ..
drwxrwxrwx 1 myuser Domain Users 0 2013-05-18 example1
d:/foo/test/sample-one/example:
total 0
drwxrwxrwx 1 myuser Domain Users 0 2013-05-18 .
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 ..
d:/foo/test/sample-two:
total 0
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 .
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 ..
drwxrwxrwx 1 myuser Domain Users 0 2013-05-18 example2
d:/foo/test/sample-two/example:
total 0
drwxrwxrwx 1 myuser Domain Users 0 2013-05-18 .
drwxrwxrwx 1 myuser Domain Users 0 2013-05-31 ..
And this is what you see after hiding details:
d:/foo/test:
.
..
sample-one
sample-two
d:/foo/test/sample-one .
..
example
d:/foo/test/sample-one/example1 .
..
d:/foo/test/sample-two .
..
example
d:/foo/test/sample-two/example2 .
..
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-04-08 on ODIEONE
Bzr revision: 116956 dancol <at> dancol.org-20140408123940-knoyutxt4l8ws7qm
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17228
; Package
emacs
.
(Wed, 09 Apr 2014 15:28:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 17228 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 8 Apr 2014 15:35:24 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
>
> In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
> of 2014-04-08 on ODIEONE
> Bzr revision: 116956 dancol <at> dancol.org-20140408123940-knoyutxt4l8ws7qm
FWIW, I see the same problems on GNU/Linux.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17228
; Package
emacs
.
(Mon, 21 Apr 2014 18:00:03 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> I don't think it's that hard to fix. `dired-insert-set-properties'
> just doesn't check whether any non file line is an information line to
> hide or something else (empty line or subdir header line). So,
> something like this should do:
[...]
> WDYT? We should test it well, however, to be sure it does the same
> for different `ls-lisp-use-insert-directory-program' values and such.
Great! I can confirm that your change fixes the bug with and without ls
emulation on my GNU/Linux system. Thank you very much.
If there is no objection, I will commit the following patch to the
emacs-24 branch tomorrow.
[Message part 2 (text/x-diff, inline)]
+--- lisp/ChangeLog
+++ lisp/ChangeLog
@@ -1,3 +1,9 @@
+2014-04-21 Michael Heerdegen <michael_heerdegen <at> web.de>
+
+ * dired.el (dired-insert-set-properties): Do not consider
+ subdirectory headings and empty lines to be information that
+ `dired-hide-details-mode' should hide. (Bug#17228)
+
2014-04-20 Michael Albinus <michael.albinus <at> gmx.de>
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if
--- lisp/dired.el
+++ lisp/dired.el
@@ -1250,9 +1250,11 @@
(while (< (point) end)
(ignore-errors
(if (not (dired-move-to-filename))
- (put-text-property (line-beginning-position)
- (1+ (line-end-position))
- 'invisible 'dired-hide-details-information)
+ (unless (or (looking-at-p "^$")
+ (looking-at-p dired-subdir-regexp))
+ (put-text-property (line-beginning-position)
+ (1+ (line-end-position))
+ 'invisible 'dired-hide-details-information))
(put-text-property (+ (line-beginning-position) 1) (1- (point))
'invisible 'dired-hide-details-detail)
(add-text-properties
bug closed, send any further explanations to
17228 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Christopher Schmidt <ch <at> ristopher.com>
to
control <at> debbugs.gnu.org
.
(Tue, 22 Apr 2014 20:50:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 21 May 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 355 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.