From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#19853: Acknowledgement (25.0.50; ElDoc is displayed whether eldoc-mode is enabled or not) Date: Sun, 20 Mar 2016 23:15:30 +0200 Message-ID: <379eb804-473d-40b9-2a04-1d7daafefa08@yandex.ru> References: <864mqqgh3j.fsf@yandex.ru> <55AE4DA2.1060505@yandex.ru> <87wpoxko2a.fsf@web.de> <4b554a3b-bc21-859e-4cfc-3c82901ea32f@yandex.ru> <87shzlkngx.fsf@web.de> <7be513e7-2d38-1e78-46f6-03ca17d58f90@yandex.ru> <87oaa9klc5.fsf@web.de> <87k2kxkjsc.fsf@web.de> <8760wglust.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1458508581 15976 80.91.229.3 (20 Mar 2016 21:16:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2016 21:16:21 +0000 (UTC) Cc: 19853@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 22:16:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahkhl-0006Wa-Pf for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2016 22:16:10 +0100 Original-Received: from localhost ([::1]:54529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahkhl-0004py-2R for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2016 17:16:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahkhh-0004pr-HV for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 17:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahkhe-0007ee-Cw for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 17:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahkhe-0007eW-8a for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 17:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahkhe-0006UQ-4K for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2016 17:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2016 21:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19853 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19853-submit@debbugs.gnu.org id=B19853.145850854024916 (code B ref 19853); Sun, 20 Mar 2016 21:16:02 +0000 Original-Received: (at 19853) by debbugs.gnu.org; 20 Mar 2016 21:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:55934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahkhI-0006To-6a for submit@debbugs.gnu.org; Sun, 20 Mar 2016 17:15:40 -0400 Original-Received: from mail-wm0-f45.google.com ([74.125.82.45]:34948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahkhF-0006Ta-Vw for 19853@debbugs.gnu.org; Sun, 20 Mar 2016 17:15:38 -0400 Original-Received: by mail-wm0-f45.google.com with SMTP id l68so88621013wml.0 for <19853@debbugs.gnu.org>; Sun, 20 Mar 2016 14:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=/5TgRUXrcTXKWPkqZIs5eJapw3SDGQMnE3R3WjwqVho=; b=QtTH3rLRXib3/eQH9+HtUzRzTLN3bh3XZujM5+9kCeEvXFiWG6RTAYO+LZelYhg6nG CUFyUgyQHYrX0PfByODpfJmiTISpqSHjxGkq7R8+y6KAOgQfUYjptRossJWEW+H1xWci mzWNanAyn6AF/Zu6AvAIk7qq1r8EKF5yr/7POVnAwZFS+3y3hgwlgd9JU/Y56Feki7/d l96aAVxlY4gCFgtG4du+yqAALd+i1fruDr0Mv4VZOlsFgPMd9qXdP3w89EYoQi7TUN0N e29Q0QhFttGTMQCZ6sX43AVWkG0a07KdNzx0acFcSRYrfwU7IaezcrME4bc0gZdv6bRQ 0Q+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=/5TgRUXrcTXKWPkqZIs5eJapw3SDGQMnE3R3WjwqVho=; b=YCNhTPizW73bM1tAebitSpa6TOfzQ/whYGGEXiQRxQ2nmjby6P7jAs/Q7JvU2ydC/I k5H0b3S6u/cqtiW9OT6X3bDF+FLPqn9LbRxa/11Ht6iKqwzFQSuSFrvbU8iw5NzCa6QA GzNk1FJegp8xJLWkgDDNvvkWFOLQg0vP4lulv2HR6pGghQRyu3Y+VjAmQhJ6AtsYdm8M kaQwpEMlpVlmDmr9TMHTt7V1h1N1Z05YjR1lgzfVnpCpC2yxyNc8tMPQzYzgEn0xak+8 a66TGkuqbr9R0fT5fjTPMQuBWamKFtJhcSwPg1QUcAGM+GUhO3hga2heX1XVdW/Y2zRi BFDw== X-Gm-Message-State: AD7BkJIua4MvOJgqqMuC3Dez6a9VPAPRgBYK3Nigzygn9xy3eDx72y00UlGvndn0Kf3XNw== X-Received: by 10.28.12.80 with SMTP id 77mr10190351wmm.19.1458508532526; Sun, 20 Mar 2016 14:15:32 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id k125sm9347728wmb.14.2016.03.20.14.15.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2016 14:15:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <8760wglust.fsf@web.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115190 Archived-At: On 03/20/2016 11:10 PM, Michael Heerdegen wrote: > Yes. I think turning `globalized-eldoc-mode' could change the default > value of `eldoc-mode', while the local `eldoc-mode' changes the local > value (as it does now). That's not how globalized minor modes work. > But that would lead to another problem: if the user has both modes off, > then turns on the local mode in some buffer, and after that turns on the > global mode as well, we have the stuff in both the global and the local > hook bindings. Nope: globalized mode should only turn on the local mode in appropriate buffers. And it would, in turn, only modify the local parts of the hook in each of the buffers. > Hmm, I think the only way out would be to add the stuff to the global > hook bindings unconditionally when eldoc is loaded - no matter whether > the global mode is on or not, and never remove it. And use only one > (buffer local) variable for controlling, `eldoc-mode', that the local > mode sets locally. The variable `global-eldoc-mode' would not appear in > the code any more. `global-eldoc-mode' would become a trivial > globalized minor mode that would only turn the local value of > `eldoc-mode' in all buffers. Would that make sense? Sounds like a viable alternative, yes.