all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Drew Adams <drew.adams@oracle.com>
Cc: 20841@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#20841: 25.0.50; Turning off `which-function-mode' does not remove its last effect from the minibuffer
Date: Mon, 31 Aug 2020 02:11:18 +0000	[thread overview]
Message-ID: <CADwFkmkU_H4Bmy3u4s+8R3n_z0BqwJOL7tiLxsdVnM_HATZECw@mail.gmail.com> (raw)
In-Reply-To: <fee56842-1200-402b-9ca6-c51669eba9e7@default> (Drew Adams's message of "Sat, 30 Apr 2016 12:41:24 -0800 (GMT-08:00)")

tags 20841 + moreinfo unreproducible
thanks

Drew Adams <drew.adams@oracle.com> writes:

>> > Subject line says it all.
>>
>> I'm unable to reproduce this on the trunk.  I see that there have been
>> changes to the mode in the last year, but skimming the changes, I don't
>> see anything in the "switch the mode off" path...
>>
>> Are you still seeing this?
>
> Yes, I'm still seeing it.  I turn it off and I still see things
> like `[Documentation]' and `[???]' in the mode line of existing
> buffers.
>
> When this is true of *Help*, for instance, i.e., it remains
> in the mode line after I've toggled it off, if I then ask
> for something else to be displayed in *Help* (e.g. do `C-h f'),
> then it is removed from the mode line.
>
> I see this in my setup, but my setup does nothing with
> `which-function-mode'.  One guess is that the bug might
> manifest itself only if you have a standalone minibuffer.

I can't reproduce this under "emacs -Q" either.

I think we need more information here.  I suspect that this issue is
related to some package or configuration you do, possibly with regards
to the mode-line.

> Another guess might be (since ediff uses a separate control
> frame (?)) that it is similar to whatever is behind this
> comment in the code:
>
> ;; FIXME: Why does ediff require special support?

Possibly.  You could try running this to see if it makes any difference:

    (which-func-update-1 (get-buffer-window))

> Another guess is that it might have to do with
> `mode-line-misc-info'.

After my attempts reproducing the bug and reading the code, I doubt
that.  But it's possible.

> After I've turned the mode off I see that the value of
> variable `which-func-mode' remains `t' in buffers, even
> though the global value has been changed to `nil'.

That variable is t in buffers that support which-function-mode.  IOW,
this is expected.

> I don't have time to try to debug this.
> Close it if no one else has the time.  I no longer
> turn the mode on at all, to avoid the annoyance.

Maybe you have more time to investigate this today than you did when
this was first reported?

Lacking more information, I unfortunately think it will be hard to get
much further here.





  parent reply	other threads:[~2020-08-31  2:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18  1:25 bug#20841: 25.0.50; Turning off `which-function-mode' does not remove its last effect from the minibuffer Drew Adams
2016-04-30 20:01 ` Lars Ingebrigtsen
2016-04-30 20:41   ` Drew Adams
2016-05-07 12:44     ` Michael Heerdegen
2016-05-07 12:55       ` Michael Heerdegen
2020-08-31  2:11     ` Stefan Kangas [this message]
2020-08-31  2:26       ` Drew Adams
2020-08-31  2:53         ` Stefan Kangas
2020-10-03 22:20           ` Michael Heerdegen
2020-10-04 14:00             ` Lars Ingebrigtsen

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=CADwFkmkU_H4Bmy3u4s+8R3n_z0BqwJOL7tiLxsdVnM_HATZECw@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=20841@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=larsi@gnus.org \
    /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.