GNU bug report logs -
#66166
30.0.50; [PATCH] Consider outline-heading-end-regexp in outline-font-lock-keywords
Previous Next
Reported by: Gabriel <gabriel376 <at> hotmail.com>
Date: Sat, 23 Sep 2023 07:57:01 UTC
Severity: normal
Tags: patch
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Consider outline-heading-end-regexp in outline-font-lock-keywords.
>
> Example of use case:
> 1) emacs -Q
> 2) in *scratch* buffer, type ";;; Hello" in a new line, plus some line breaks
> 3) eval:
> (setq-local outline-regexp ";;;*")
> (setq-local outline-heading-end-regexp "\n")
> (setq-local outline-minor-mode-highlight 'override)
> (custom-set-faces '(outline-1 ((t :background "red" :extend t))))
> (outline-minor-mode 1)
> 4) expected: since the outline-1 face has the extend attribute and the
> heading regexp ends in a line break, the outline-1 face on ";;; Hello"
> should be applied until the line break (extended)
>
> Patch:
> - (concat "^\\(?:" outline-regexp "\\).*"))
> + (concat "^\\(?:" outline-regexp "\\).*" outline-heading-end-regexp))
Thanks, your patch looks right. I wonder if it might break something,
maybe need more testing.
Then it will fix the extend attribute only when outlines are expanded.
But when collapsed, changes in the display engine are required
to support the extend attribute over the ellipsis (bug#65896).
This bug report was last modified 1 year and 128 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.