From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <4e2a76de-32ee-4031-8fd2-84979f1cbc20@default> <87inyyc1dg.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10675"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 20841@debbugs.gnu.org, Lars Ingebrigtsen To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 31 04:12:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCZIp-0002fz-D4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Aug 2020 04:12:11 +0200 Original-Received: from localhost ([::1]:35996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCZIn-0001ld-RR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 22:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCZIg-0001lC-PX for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 22:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCZIg-0004iE-GJ for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 22:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCZIg-00067o-Az for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 22:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Aug 2020 02:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20841 X-GNU-PR-Package: emacs Original-Received: via spool by 20841-submit@debbugs.gnu.org id=B20841.159883988723472 (code B ref 20841); Mon, 31 Aug 2020 02:12:02 +0000 Original-Received: (at 20841) by debbugs.gnu.org; 31 Aug 2020 02:11:27 +0000 Original-Received: from localhost ([127.0.0.1]:51076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCZI6-00066R-Hv for submit@debbugs.gnu.org; Sun, 30 Aug 2020 22:11:26 -0400 Original-Received: from mail-ej1-f46.google.com ([209.85.218.46]:45552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCZI4-000665-O8 for 20841@debbugs.gnu.org; Sun, 30 Aug 2020 22:11:25 -0400 Original-Received: by mail-ej1-f46.google.com with SMTP id i26so6046108ejb.12 for <20841@debbugs.gnu.org>; Sun, 30 Aug 2020 19:11:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=A2arXmQbWuhe+34SwAxTMOtw+44Fg/eysztI6OYMlXI=; b=WoGG2+EImJIhR60oZ+c8FlmdXz7gLxN8g4EKL+xgCKlT5wto77nwypVdu8o8XGayyp wWqpW/wcRkfGo7wUCLwNts0df/1ojHq2Xf/yQfPkIy6F6WHQPj7qWZDsbyy485CIssZI N3BxO4j9aHe2PINSN2R0BaJF0e1ezwXgkJeHLYiV9efmMIX7+cz7B+/WBxnb5BLw06cl O36caAMRRzx4IMkjoqN9HlacsGglNtj6rJAzTAYV1knPU/Lzf2UYWPIRGLYwWkyMNTul oT79zs/f2l/toU29r2TznnVcUR6m2E/X3essa89e6KOY8BFrRhV5uG9slmhYfVtfp7C2 bswQ== X-Gm-Message-State: AOAM530Dsh+EoYVBJGx4rPVqtL7Td8ANmNSVEiTVuqjfCqrkB25RO8dy tQPOY5h4yDrl14GDaUij1FWlCCSj9CncPTiBQ64= X-Google-Smtp-Source: ABdhPJziInfD/MMs5JV6tttlQPB6A9nBGEKYuuGngLj8CscuB2XwDqnETwTNL1tKpye6MXEBRlCKyiRprwT7YM2MkoE= X-Received: by 2002:a17:906:3a02:: with SMTP id z2mr9764247eje.287.1598839879015; Sun, 30 Aug 2020 19:11:19 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 31 Aug 2020 02:11:18 +0000 In-Reply-To: (Drew Adams's message of "Sat, 30 Apr 2016 12:41:24 -0800 (GMT-08:00)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186735 Archived-At: tags 20841 + moreinfo unreproducible thanks Drew Adams 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.