From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#27202: 26.0.50; Eldoc mode is broken Date: Sat, 3 Jun 2017 02:05:49 +0300 Message-ID: <6bd74cdf-6448-bbc3-a047-a9b5f6e2a0e6@yandex.ru> References: <877f0up3o1.fsf@rosalinde> <87tw3ynih2.fsf@rosalinde> <87poemnh1h.fsf@rosalinde> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1496444837 11771 195.159.176.226 (2 Jun 2017 23:07:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Jun 2017 23:07:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 Cc: 27202@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 03 01:07:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGvey-0002mF-As for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jun 2017 01:07:12 +0200 Original-Received: from localhost ([::1]:51760 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGvf3-0000bC-Ks for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Jun 2017 19:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGver-0000XK-AT for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 19:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGveo-00057M-5p for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 19:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGveo-00056R-1n for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 19:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dGven-000535-L4 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2017 19:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jun 2017 23:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27202 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27202-submit@debbugs.gnu.org id=B27202.149644476119327 (code B ref 27202); Fri, 02 Jun 2017 23:07:01 +0000 Original-Received: (at 27202) by debbugs.gnu.org; 2 Jun 2017 23:06:01 +0000 Original-Received: from localhost ([127.0.0.1]:52083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGvdn-00051a-Go for submit@debbugs.gnu.org; Fri, 02 Jun 2017 19:05:59 -0400 Original-Received: from mail-wm0-f45.google.com ([74.125.82.45]:34225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGvdl-00051M-Qf for 27202@debbugs.gnu.org; Fri, 02 Jun 2017 19:05:58 -0400 Original-Received: by mail-wm0-f45.google.com with SMTP id 123so14474456wmg.1 for <27202@debbugs.gnu.org>; Fri, 02 Jun 2017 16:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XtwYYEX8V5U/DzFBwIMeKPbCM2Zl6zF+0+7e4wNWZLs=; b=qiUZB5WEJIY9Mf1xxMdfhVREtopDT29MC2ftVlnOxgcGrjPhCNPdPxJcdDJCoqflDG tESMuC5bM/3GLi5zzFXMjif7SrDcNB3Gi8wgQJFBuGM6MiM1VWkGM5pjMBTLeBUfw+gQ uvWtkmy0SV6iD7pxW7hjfjF43uRkAok+BYHPdKxR3OHnCiHR2YCDlCYS5vQpSGCos0nq W9MdfMJug95FSGN8dIdOeThLq7v+iuSxrqkeMYVibZNpAVE3tFkjU8IqEeNy2ST9EdsY oWg1dTj8rEcPuU7NBMAfoX4N727R2Rn7mPalJGzECv6K6Z//2edAxPsdXdTlquv+HUtN vz2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XtwYYEX8V5U/DzFBwIMeKPbCM2Zl6zF+0+7e4wNWZLs=; b=q8gecm9OlI/x6d/uz+cfmDPGezluqidP01Zuf4B1Tqvmuank8OwLMY2+JZB6vOR1qo Wb3gCBmx6a1tNQUMhZsbiCvalOV8lqZdLZVKArb/Qed3hROOttRX218GDbIkem3R+TmN +rRDaULS0XMn6a4MzsxHq2vcnSq95wLMoKUTWeqc0PVyVs29lw+NuOEzRXveyudFJJpU UB/mfqBuJGTXysLdf9lWDpWsDt0K3fh6bj2JDD664qjJJoPGoGnhavWoOHJtPSAWzJnN XC19Kip8Xq/t8sP12lrioWA/Q0kP5cH8JR+dCPQO4ixRiUW1Y/hpzOX3E6v805dU4MBt fe0w== X-Gm-Message-State: AODbwcAeoyWK6jKdSeMkz6ErwAccLghCaMY7PjxfKhatjmOPKpZdSD5L HAOCBTOuvcKbbkVmYc4= X-Received: by 10.28.62.81 with SMTP id l78mr884567wma.105.1496444751762; Fri, 02 Jun 2017 16:05:51 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id p139sm4503356wmg.14.2017.06.02.16.05.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 16:05:50 -0700 (PDT) In-Reply-To: <87poemnh1h.fsf@rosalinde> Content-Language: en-US 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" Xref: news.gmane.org gmane.emacs.bugs:133186 Archived-At: On 6/3/17 1:47 AM, Stephen Berman wrote: >> Boostrapping latest master didn't fix it here. > > I manually reverted this part of 2349f1df1b: So basically all of it. > -(define-minor-mode global-eldoc-mode > - "Toggle Global Eldoc mode on or off. > -With a prefix argument ARG, enable Global Eldoc mode if ARG is > -positive, and disable it otherwise. If called from Lisp, enable > -the mode if ARG is omitted or nil, and toggle it if ARG is ‘toggle’. > - > -If Global Eldoc mode is on, `eldoc-mode' will be enabled in all > -buffers where it's applicable. These are buffers that have modes > -that have enabled eldoc support. See `eldoc-documentation-function'." > +(define-globalized-minor-mode global-eldoc-mode eldoc-mode turn-on-eldoc-mode > :group 'eldoc > - :global t > :initialize 'custom-initialize-delay > - :init-value t > - (setq eldoc-last-message nil) > - (if global-eldoc-mode > - (progn > - (add-hook 'post-command-hook #'eldoc-schedule-timer) > - (add-hook 'pre-command-hook #'eldoc-pre-command-refresh-echo-area)) > - (remove-hook 'post-command-hook #'eldoc-schedule-timer) > - (remove-hook 'pre-command-hook #'eldoc-pre-command-refresh-echo-area))) > + :init-value t) > > then rebuilt Emacs (just make, not bootstrap), and now Eldoc in the > modeline works here again. Do you have an explanation why one version of the code works, and another doesn't?