From: Christopher Schmidt <ch@ristopher.com>
To: 17228@debbugs.gnu.org
Cc: Michael Heerdegen <michael_heerdegen@web.de>
Subject: bug#17228: 24.4.50; Dired with -R switch and hiding details: Missing chars etc.
Date: Mon, 21 Apr 2014 13:58:44 -0400 (EDT) [thread overview]
Message-ID: <87eh0q5zui@ristopher.com> (raw)
In-Reply-To: <87eh0rttbw.fsf@web.de> (Michael Heerdegen's message of "Mon, 21 Apr 2014 02:33:07 +0200")
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
Michael Heerdegen <michael_heerdegen@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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff, Size: 1058 bytes --]
+--- lisp/ChangeLog
+++ lisp/ChangeLog
@@ -1,3 +1,9 @@
+2014-04-21 Michael Heerdegen <michael_heerdegen@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@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
prev parent reply other threads:[~2014-04-21 17:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-08 22:35 bug#17228: 24.4.50; Dired with -R switch and hiding details: Missing chars etc Drew Adams
2014-04-09 15:26 ` Eli Zaretskii
2014-04-20 14:31 ` bug#17288: " Eli Zaretskii
2014-04-21 0:33 ` Michael Heerdegen
2014-04-21 17:58 ` Christopher Schmidt [this message]
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=87eh0q5zui@ristopher.com \
--to=ch@ristopher.com \
--cc=17228@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
/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.