GNU bug report logs -
#17288
SegFault with emacs in CPP header file (long constructor)
Previous Next
Full log
Message #16 received at 17288 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
> Christopher, could you please take a look at this bug? Emacs 24.4 is
> in pretest, and it would be too bad if we release it with this bug not
> fixed.
Chris, 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:
[17228.patch (text/x-diff, inline)]
*** /home/micha/Treasure/today/dired.el 2014-04-21 02:13:59.045937983 +0200
--- /home/micha/Treasure/today/dired-fix-17228.el 2014-04-21 02:15:00.429707571 +0200
***************
*** 1250,1258 ****
(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)
(put-text-property (+ (line-beginning-position) 1) (1- (point))
'invisible 'dired-hide-details-detail)
(add-text-properties
--- 1250,1260 ----
(while (< (point) end)
(ignore-errors
(if (not (dired-move-to-filename))
! (unless (or (looking-at "^$")
! (looking-at 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
[Message part 3 (text/plain, inline)]
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.
Michael.
This bug report was last modified 11 years and 92 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.