GNU bug report logs -
#57082
29.0.50; emacs-news-view-mode breakage
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Tue, 9 Aug 2022 16:19:03 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 57082 in the body.
You can then email your comments to 57082 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#57082
; Package
emacs
.
(Tue, 09 Aug 2022 16:19:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 09 Aug 2022 16:19:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
0. emacs -Q
1. Type `C-h n'
=> The NEWS buffer is displayed without icons on the header lines,
although the value of `outline-minor-mode-use-buttons' is `(derived-mode
. special-mode)'.
2. Type `C-c C-n' to move point to the first NEWS header "* Installation
Changes in Emacs 29.1" and then type TAB
=> Now there is an outline-close icon (emoji) at the beginning of the
header, the header has lost its first-level fontification and the NEWS
buffer is flagged as modified in the mode line. But instead of hiding
the current header line's body as per outline-cycle, there is no other
change in the buffer.
3. Type TAB again
=> forward-button is executed instead of outline-cycle, indicating that
the line with the icon is now not being treated as an outline header
line. And typing `M-< C-c C-n' now puts point on the first second level
header below the line with the icon.
4. Move point back to the icon and type RET
=> The icon changes to outline-open but there is otherwise no change in
the outline structure, and the message "Before first heading" is
displayed.
5. Type `C-c @ C-q' (outline-hide-sublevels)
=> The outline-close icon is inserted at the start of the second-level
header below the current line and after the icon only "..." is
displayed, i.e. all remaing text in the buffer has vanished.
Repeatedly typing RET toggles the icon between outline-open and
outline-close and displays the message "Before first heading" but the
text remains hidden. (Typing `C-c @ C-a' unhides the text.)
The attached patch appears to fix the problems described above, but the
only buffer using outline-minor-mode beside NEWS that I've tested it on
is *Help* showing the output of describe-bindings, and the seems to work
as expected with the patch (and due to the patch is not flagged as
modified, though that isn't important for *Help*.)
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6)
of 2022-08-09 built on strobelfs2
Repository revision: f1f1912658556e2f2a39cdae0da7ea2b8564d861
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Linux From Scratch r11.0-165
Configured using:
'configure --with-xinput2 --with-xwidgets 'CFLAGS=-Og -g3'
PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM
XINPUT2 XPM XWIDGETS GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
[Message part 2 (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Tue, 09 Aug 2022 18:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 57082 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
> The attached patch appears to fix the problems described above, but the
> only buffer using outline-minor-mode beside NEWS that I've tested it on
> is *Help* showing the output of describe-bindings, and the seems to work
> as expected with the patch (and due to the patch is not flagged as
> modified, though that isn't important for *Help*.)
Thanks; patch applied to Emacs 29.
The outline button stuff is still a work in progress, as you've found
out. I'm not quite sure whether it should be switched on by default in
NEWS buffers -- it doesn't seem to bring much value there. (As opposed
to in `describe-bindings', where it seems very helpful (since we're
starting out with some parts already folded.)
So I'm pondering whether to add an additional mechanism to say whether a
mode is "opting in" to the buttons or not, but I'm not sure what that
should look like.
bug marked as fixed in version 29.1, send any further explanations to
57082 <at> debbugs.gnu.org and Stephen Berman <stephen.berman <at> gmx.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2022 18:25:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Tue, 09 Aug 2022 19:23:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>> The attached patch appears to fix the problems described above, but the
>> only buffer using outline-minor-mode beside NEWS that I've tested it on
>> is *Help* showing the output of describe-bindings, and the seems to work
>> as expected with the patch (and due to the patch is not flagged as
>> modified, though that isn't important for *Help*.)
>
> Thanks; patch applied to Emacs 29.
I noticed more problems: arrow directions are inverted - when an outline
is hidden the arrow direction is open; when it's shown then the button has
the closed state.
S-TAB (outline-cycle-buffer) is very slow: takes ~3 seconds on a small
NEWS buffer.
Also don't understand why is this change:
(when outline-minor-mode-highlight
- (if (and global-font-lock-mode (font-lock-specified-p major-mode))
- (progn
- (font-lock-add-keywords nil outline-font-lock-keywords t)
- (font-lock-flush))
- (outline-minor-mode-highlight-buffer)))
+ (when (and global-font-lock-mode (font-lock-specified-p major-mode))
+ (font-lock-add-keywords nil outline-font-lock-keywords t)
+ (font-lock-flush))
+ (outline-minor-mode-highlight-buffer))
`outline-minor-mode-highlight-buffer' is intended only for buffers
that don't support font-lock highlighting.
> The outline button stuff is still a work in progress, as you've found
> out. I'm not quite sure whether it should be switched on by default in
> NEWS buffers -- it doesn't seem to bring much value there. (As opposed
> to in `describe-bindings', where it seems very helpful (since we're
> starting out with some parts already folded.)
It would be nicer if the color of the button depended on the outline's color,
e.g. blue for the top-level blue outline face, etc.
> So I'm pondering whether to add an additional mechanism to say whether a
> mode is "opting in" to the buttons or not, but I'm not sure what that
> should look like.
Since outline-minor-mode-use-buttons uses buffer-match-p, it can have
any condition, including a condition to exclude etc/NEWS, for example.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Tue, 09 Aug 2022 20:20:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 57082 <at> debbugs.gnu.org (full text, mbox):
On Tue, 09 Aug 2022 22:18:21 +0300 Juri Linkov <juri <at> linkov.net> wrote:
>>> The attached patch appears to fix the problems described above, but the
>>> only buffer using outline-minor-mode beside NEWS that I've tested it on
>>> is *Help* showing the output of describe-bindings, and the seems to work
>>> as expected with the patch (and due to the patch is not flagged as
>>> modified, though that isn't important for *Help*.)
>>
>> Thanks; patch applied to Emacs 29.
Thanks Lars.
> I noticed more problems: arrow directions are inverted - when an outline
> is hidden the arrow direction is open; when it's shown then the button has
> the closed state.
The arrows behave the same as in *Help* with describe-bindings:
outline-close (downward-pointing) when the body is hidden, outline-open
(leftward-pointing) when the body is shown. Is that wrong?
> S-TAB (outline-cycle-buffer) is very slow: takes ~3 seconds on a small
> NEWS buffer.
>
> Also don't understand why is this change:
>
> (when outline-minor-mode-highlight
> - (if (and global-font-lock-mode (font-lock-specified-p major-mode))
> - (progn
> - (font-lock-add-keywords nil outline-font-lock-keywords t)
> - (font-lock-flush))
> - (outline-minor-mode-highlight-buffer)))
> + (when (and global-font-lock-mode (font-lock-specified-p major-mode))
> + (font-lock-add-keywords nil outline-font-lock-keywords t)
> + (font-lock-flush))
> + (outline-minor-mode-highlight-buffer))
>
> `outline-minor-mode-highlight-buffer' is intended only for buffers
> that don't support font-lock highlighting.
Yes, but with that change, arrows are displayed on first visiting the
NEWS buffer; without it, they only appear when typing TAB on an outline
heading.
>> The outline button stuff is still a work in progress, as you've found
>> out. I'm not quite sure whether it should be switched on by default in
>> NEWS buffers -- it doesn't seem to bring much value there. (As opposed
>> to in `describe-bindings', where it seems very helpful (since we're
>> starting out with some parts already folded.)
>
> It would be nicer if the color of the button depended on the outline's color,
> e.g. blue for the top-level blue outline face, etc.
I guess that would require using suitable images rather than emojis.
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 00:04:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 57082 <at> debbugs.gnu.org (full text, mbox):
On 8/9/2022 1:18 PM, Stephen Berman wrote:
> On Tue, 09 Aug 2022 22:18:21 +0300 Juri Linkov <juri <at> linkov.net> wrote:
>
>> I noticed more problems: arrow directions are inverted - when an outline
>> is hidden the arrow direction is open; when it's shown then the button has
>> the closed state.
>
> The arrows behave the same as in *Help* with describe-bindings:
> outline-close (downward-pointing) when the body is hidden, outline-open
> (leftward-pointing) when the body is shown. Is that wrong?
I think that's wrong, yes. Every GUI I'm familiar with does it the other
way:
> Closed Item
v Open Item
> Closed Sub Item
This is the visual style used in GNOME (at least, the theme I'm using),
MS Windows, macOS, Firefox/Thunderbird, and probably others. More
importantly, it's also the style Emacs already uses elsewhere: see the
Customize UI.
The only other style I've seen is "-" for open items and "+" for closed
(because clicking "+" will *add* the children to the UI and "-" will
*remove* them). Emacs does that in the speedbar, for example.
>> It would be nicer if the color of the button depended on the outline's color,
>> e.g. blue for the top-level blue outline face, etc.
>
> I guess that would require using suitable images rather than emojis.
Images would be nice; Emacs already has some for the Customize UI that
could be reused.
For the NEWS file though (and especially programming modes). I still
think it'd be great to put the buttons in the fringe. That way the
buttons would never disrupt the contents of the file, e.g. by changing
how the indentation looks.
However, describe-bindings probably wants the buttons in the body, so
this would be yet another option, which adds complexity/maintenance
burden...
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 07:56:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 57082 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Tue, 9 Aug 2022 17:03:25 -0700 Jim Porter <jporterbugs <at> gmail.com> wrote:
> On 8/9/2022 1:18 PM, Stephen Berman wrote:
>> On Tue, 09 Aug 2022 22:18:21 +0300 Juri Linkov <juri <at> linkov.net> wrote:
>>
>>> I noticed more problems: arrow directions are inverted - when an outline
>>> is hidden the arrow direction is open; when it's shown then the button has
>>> the closed state.
>> The arrows behave the same as in *Help* with describe-bindings:
>> outline-close (downward-pointing) when the body is hidden, outline-open
>> (leftward-pointing) when the body is shown. Is that wrong?
^^^^
right (oops)
> I think that's wrong, yes. Every GUI I'm familiar with does it the other way:
>
> > Closed Item
> v Open Item
> > Closed Sub Item
>
> This is the visual style used in GNOME (at least, the theme I'm using), MS
> Windows, macOS, Firefox/Thunderbird, and probably others. More importantly,
> it's also the style Emacs already uses elsewhere: see the Customize UI.
Ah, of course, I didn't even think to look there (oops again).
[Message part 2 (text/x-patch, inline)]
diff --git a/lisp/outline.el b/lisp/outline.el
index 7750f9a75d..8132043097 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -294,16 +294,16 @@ outline-minor-mode-use-buttons
:version "29.1")
(define-icon outline-open button
- '((emoji "▶️")
- (symbol " ⯈ ")
+ '((emoji "🔽")
+ (symbol " ⯆ ")
(text " open "))
"Icon used for buttons for opening a section in outline buffers."
:version "29.1"
:help-echo "Open this section")
(define-icon outline-close button
- '((emoji "🔽")
- (symbol " ⯆ ")
+ '((emoji "▶️")
+ (symbol " ⯈ ")
(text " close "))
"Icon used for buttons for closing a section in outline buffers."
:version "29.1"
[Message part 3 (text/plain, inline)]
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:03:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>> Also don't understand why is this change:
>>
>> (when outline-minor-mode-highlight
>> - (if (and global-font-lock-mode (font-lock-specified-p major-mode))
>> - (progn
>> - (font-lock-add-keywords nil outline-font-lock-keywords t)
>> - (font-lock-flush))
>> - (outline-minor-mode-highlight-buffer)))
>> + (when (and global-font-lock-mode (font-lock-specified-p major-mode))
>> + (font-lock-add-keywords nil outline-font-lock-keywords t)
>> + (font-lock-flush))
>> + (outline-minor-mode-highlight-buffer))
>>
>> `outline-minor-mode-highlight-buffer' is intended only for buffers
>> that don't support font-lock highlighting.
>
> Yes, but with that change, arrows are displayed on first visiting the
> NEWS buffer; without it, they only appear when typing TAB on an outline
> heading.
This change broke fontification e.g. in diff buffers that now
add outline faces on diff hunks. So we need another solution.
Maybe on first visiting the NEWS buffer better to call
refontification with font-lock-ensure?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:03:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>>> It would be nicer if the color of the button depended on the outline's color,
>>> e.g. blue for the top-level blue outline face, etc.
>> I guess that would require using suitable images rather than emojis.
>
> Images would be nice; Emacs already has some for the Customize UI that
> could be reused.
Instead of preparing a lot of different images, maybe it would be
possible to specify a background/foreground color for SVG images.
OTOH, maybe easier would be just to use Unicode arrow characters
instead of emojis?
> For the NEWS file though (and especially programming modes). I still think
> it'd be great to put the buttons in the fringe. That way the buttons would
> never disrupt the contents of the file, e.g. by changing how the
> indentation looks.
Agreed, the clickable buttons in the fringe would be great,
and it's easy to implement.
> However, describe-bindings probably wants the buttons in the body, so this
> would be yet another option, which adds complexity/maintenance burden...
describe-bindings could override the default when necessary.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:09:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>> For the NEWS file though (and especially programming modes). I still
>> think it'd be great to put the buttons in the fringe. That way the
>> buttons would never disrupt the contents of the file, e.g. by changing
>> how the indentation looks.
>
> Agreed, the clickable buttons in the fringe would be great, and it's
> easy to implement.
>
Some users disable both fringes, or only the left fringe, though.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:10:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>> I think that's wrong, yes. Every GUI I'm familiar with does it the other way:
>>
>> > Closed Item
>> v Open Item
>> > Closed Sub Item
>>
>> This is the visual style used in GNOME (at least, the theme I'm using), MS
>> Windows, macOS, Firefox/Thunderbird, and probably others. More importantly,
>> it's also the style Emacs already uses elsewhere: see the Customize UI.
>
> Ah, of course, I didn't even think to look there (oops again).
>
> diff --git a/lisp/outline.el b/lisp/outline.el
> index 7750f9a75d..8132043097 100644
> --- a/lisp/outline.el
> +++ b/lisp/outline.el
> @@ -294,16 +294,16 @@ outline-minor-mode-use-buttons
> :version "29.1")
>
> (define-icon outline-open button
> - '((emoji "▶️")
> - (symbol " ⯈ ")
> + '((emoji "🔽")
> + (symbol " ⯆ ")
> (text " open "))
> "Icon used for buttons for opening a section in outline buffers."
> :version "29.1"
> :help-echo "Open this section")
It seems the problem is somewhere else - in code that uses these definitions,
because here semantically everything is correct: the outline-open button
for opening a section means that the current state of the button is closed.
This assumes that in "outline-open" the word "open" is a verb.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:12:01 GMT)
Full text and
rfc822 format available.
Message #37 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>>> For the NEWS file though (and especially programming modes). I still
>>> think it'd be great to put the buttons in the fringe. That way the
>>> buttons would never disrupt the contents of the file, e.g. by changing
>>> how the indentation looks.
>>
>> Agreed, the clickable buttons in the fringe would be great, and it's easy
>> to implement.
>
> Some users disable both fringes, or only the left fringe, though.
Then it should fall back to other methods.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:20:01 GMT)
Full text and
rfc822 format available.
Message #40 received at 57082 <at> debbugs.gnu.org (full text, mbox):
On Wed, 10 Aug 2022 10:36:22 +0300 Juri Linkov <juri <at> linkov.net> wrote:
>>> Also don't understand why is this change:
>>>
>>> (when outline-minor-mode-highlight
>>> - (if (and global-font-lock-mode (font-lock-specified-p major-mode))
>>> - (progn
>>> - (font-lock-add-keywords nil outline-font-lock-keywords t)
>>> - (font-lock-flush))
>>> - (outline-minor-mode-highlight-buffer)))
>>> + (when (and global-font-lock-mode (font-lock-specified-p major-mode))
>>> + (font-lock-add-keywords nil outline-font-lock-keywords t)
>>> + (font-lock-flush))
>>> + (outline-minor-mode-highlight-buffer))
>>>
>>> `outline-minor-mode-highlight-buffer' is intended only for buffers
>>> that don't support font-lock highlighting.
>>
>> Yes, but with that change, arrows are displayed on first visiting the
>> NEWS buffer; without it, they only appear when typing TAB on an outline
>> heading.
>
> This change broke fontification e.g. in diff buffers that now
> add outline faces on diff hunks. So we need another solution.
Oh, dear (as I noted in my OP, I only checked NEWS and *Help* with
describe-binding). But do you have a recipe to see this? When I create
a diff with vc-diff I don't see outline faces on the hunks.
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 08:25:01 GMT)
Full text and
rfc822 format available.
Message #43 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>>>> For the NEWS file though (and especially programming modes). I still
>>>> think it'd be great to put the buttons in the fringe. That way the
>>>> buttons would never disrupt the contents of the file, e.g. by
>>>> changing how the indentation looks.
>>>
>>> Agreed, the clickable buttons in the fringe would be great, and it's
>>> easy to implement.
>>
>> Some users disable both fringes, or only the left fringe, though.
>
> Then it should fall back to other methods.
>
Yes, I mentioned this only to remind that another methods should be
available. And if another method is available, perhaps the chosen method
should also depend on a configuration variable. Some users may prefer
in-buffer buttons even if they do not disable the fringes.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 15:18:02 GMT)
Full text and
rfc822 format available.
Message #46 received at 57082 <at> debbugs.gnu.org (full text, mbox):
This may be irrelevant/off-topic; if so, please ignore.
Whenever we have an icon or character (e.g. +, -)
that acts as a button to expand or contract some
hierarchical info by clicking the mouse, would it be
good to also have a mouseover tooltip there, that
lets you know a toggle key that both expands and
contracts (based on point being on that line or
whatever)?
Emacs typically has keyboard keys to toggle things,
and expanding/contracting together toggle.
Presumably there's a toggle key for the display
change involved here (if not, shouldn't there be?),
and it might be good to let someone using a mouse
know that there's an alternative to try.
The mouseover help won't show unless you hesitate
with the mouse over the icon/character, so this
shouldn't be annoying etc.
Just an idea. (Maybe this is already available?)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 18:47:01 GMT)
Full text and
rfc822 format available.
Message #49 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>>>> `outline-minor-mode-highlight-buffer' is intended only for buffers
>>>> that don't support font-lock highlighting.
>>>
>>> Yes, but with that change, arrows are displayed on first visiting the
>>> NEWS buffer; without it, they only appear when typing TAB on an outline
>>> heading.
>>
>> This change broke fontification e.g. in diff buffers that now
>> add outline faces on diff hunks. So we need another solution.
>
> Oh, dear (as I noted in my OP, I only checked NEWS and *Help* with
> describe-binding). But do you have a recipe to see this? When I create
> a diff with vc-diff I don't see outline faces on the hunks.
The minimal test case is this:
(setq-default outline-minor-mode-highlight t)
(add-hook 'diff-mode-hook 'outline-minor-mode)
Then the first lines of diff is highlighted with blue outline-1 face,
the @@-lines with outline-2 face, etc.
This is because outline-font-lock-keywords and
outline-minor-mode-highlight-buffer have slightly different
interpretations of the values for outline-minor-mode-highlight.
This could be improved, but in any case both these functions
should not be applied at the same time.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Wed, 10 Aug 2022 18:59:01 GMT)
Full text and
rfc822 format available.
Message #52 received at 57082 <at> debbugs.gnu.org (full text, mbox):
On Wed, 10 Aug 2022 21:45:25 +0300 Juri Linkov <juri <at> linkov.net> wrote:
>>>>> `outline-minor-mode-highlight-buffer' is intended only for buffers
>>>>> that don't support font-lock highlighting.
>>>>
>>>> Yes, but with that change, arrows are displayed on first visiting the
>>>> NEWS buffer; without it, they only appear when typing TAB on an outline
>>>> heading.
>>>
>>> This change broke fontification e.g. in diff buffers that now
>>> add outline faces on diff hunks. So we need another solution.
>>
>> Oh, dear (as I noted in my OP, I only checked NEWS and *Help* with
>> describe-binding). But do you have a recipe to see this? When I create
>> a diff with vc-diff I don't see outline faces on the hunks.
>
> The minimal test case is this:
>
> (setq-default outline-minor-mode-highlight t)
> (add-hook 'diff-mode-hook 'outline-minor-mode)
>
> Then the first lines of diff is highlighted with blue outline-1 face,
> the @@-lines with outline-2 face, etc.
Yes, I see it now, thanks.
> This is because outline-font-lock-keywords and
> outline-minor-mode-highlight-buffer have slightly different
> interpretations of the values for outline-minor-mode-highlight.
>
> This could be improved, but in any case both these functions
> should not be applied at the same time.
Ok. I'm not familiar enough with the intricacies of font-lock to whip
up a quick fix and can't afford to spend a lot of time on it, so I hope
someone better qualified than me will do it.
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Thu, 11 Aug 2022 06:46:01 GMT)
Full text and
rfc822 format available.
Message #55 received at 57082 <at> debbugs.gnu.org (full text, mbox):
>> This is because outline-font-lock-keywords and
>> outline-minor-mode-highlight-buffer have slightly different
>> interpretations of the values for outline-minor-mode-highlight.
>>
>> This could be improved, but in any case both these functions
>> should not be applied at the same time.
>
> Ok. I'm not familiar enough with the intricacies of font-lock to whip
> up a quick fix and can't afford to spend a lot of time on it, so I hope
> someone better qualified than me will do it.
I guess what is needed here is to find the right place to call
outline--fix-up-all-buttons on first visiting the NEWS buffer.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Fri, 12 Aug 2022 12:50:01 GMT)
Full text and
rfc822 format available.
Message #58 received at 57082 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
>> This is the visual style used in GNOME (at least, the theme I'm using), MS
>> Windows, macOS, Firefox/Thunderbird, and probably others. More importantly,
>> it's also the style Emacs already uses elsewhere: see the Customize UI.
>
> Ah, of course, I didn't even think to look there (oops again).
Thanks; pushed to Emacs 29.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Fri, 12 Aug 2022 12:51:01 GMT)
Full text and
rfc822 format available.
Message #61 received at 57082 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> linkov.net> writes:
> It seems the problem is somewhere else - in code that uses these definitions,
> because here semantically everything is correct: the outline-open button
> for opening a section means that the current state of the button is closed.
> This assumes that in "outline-open" the word "open" is a verb.
No, they're nouns.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57082
; Package
emacs
.
(Fri, 12 Aug 2022 12:52:01 GMT)
Full text and
rfc822 format available.
Message #64 received at 57082 <at> debbugs.gnu.org (full text, mbox):
Jim Porter <jporterbugs <at> gmail.com> writes:
> For the NEWS file though (and especially programming modes). I still
> think it'd be great to put the buttons in the fringe.
Yes, I agree. The in-buffer buttons look nice in *Help*, but in a more
text-like buffer like NEWS (and which also opens unfolded by default),
they're distracting.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 10 Sep 2022 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 11 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.