GNU bug report logs -
#24073
24.5; outline-on-heading-p sees any invisible text property as outline inviisble
Previous Next
Reported by: Paul Rankin <hello <at> paulwrankin.com>
Date: Tue, 26 Jul 2016 08:13:02 UTC
Severity: normal
Merged with 28080
Found in versions 24.5, 25.2
Fixed in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #44 received at 24073 <at> debbugs.gnu.org (full text, mbox):
On Tue, Aug 2, 2016 at 3:20 AM, Paul Rankin <hello <at> paulwrankin.com> wrote:
> I've added the following into my major mode to patch outline until the
> bug is addressed...
>
> (with-eval-after-load 'outline
> (advice-add 'outline-invisible-p :filter-return
> (lambda (return) (eq return (or 'outline t)))
> '((name . "fountain-mode-patch")))
> (dolist (fun '(outline-back-to-heading
> outline-on-heading-p
> outline-next-visible-heading))
> (let ((source (find-function-noselect fun)))
> (with-current-buffer (car source)
> (goto-char (cdr source))
> (eval (read (current-buffer))))))
> (message "Function `outline-invisible-p' has been patched"))
>
> But I'm a bit concerned if users install Emacs without uncompiled Lisp
> source, will this result in an error that Emacs simply can't find the
> library outline?
Yes, perhaps you want to wrap the loop body in with-demoted-errors, or similar.
This bug report was last modified 4 years and 202 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.