From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Darren Hoo Newsgroups: gmane.emacs.devel Subject: Re: Eldoc mode in eval-minibuffer Date: Wed, 22 Jan 2014 18:28:54 +0800 Message-ID: References: <83bnz6iqtr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390386560 15820 80.91.229.3 (22 Jan 2014 10:29:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jan 2014 10:29:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 22 11:29:27 2014 Return-path: Envelope-to: ged-emacs-devel@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 1W5v3m-0005tn-3e for ged-emacs-devel@m.gmane.org; Wed, 22 Jan 2014 11:29:26 +0100 Original-Received: from localhost ([::1]:34555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5v3l-0001L4-JH for ged-emacs-devel@m.gmane.org; Wed, 22 Jan 2014 05:29:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5v3c-0001Ke-FQ for emacs-devel@gnu.org; Wed, 22 Jan 2014 05:29:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5v3V-0006Tv-4v for emacs-devel@gnu.org; Wed, 22 Jan 2014 05:29:16 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5v3U-0006Tn-Uz for emacs-devel@gnu.org; Wed, 22 Jan 2014 05:29:09 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5v3T-0005lp-VI for emacs-devel@gnu.org; Wed, 22 Jan 2014 11:29:07 +0100 Original-Received: from 107.170.252.195 ([107.170.252.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 11:29:07 +0100 Original-Received: from darren.hoo by 107.170.252.195 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 11:29:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 107.170.252.195 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) Cancel-Lock: sha1:63TbeHNCIrOB939GCPbryJyTjCg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168881 Archived-At: Leo Liu writes: > On 2014-01-21 10:05 +0800, Stefan Monnier wrote: >> I think the way to get rid of that FIXME is to remove the `add-hook' >> but without replacing it with a mandatory call to eldoc-mode in >> read--expression. > > Yes, I think we eventually come back to this. > >> As for how to best enable eldoc-mode in the minibuffer, it's a good >> question. If the user enables (a hypothetical) global-eldoc-mode, then >> read--expression could check global-eldoc-mode to decide whether to >> enable eldoc-mode. > > I don't mind how it is enabled post-24.4 ;) > I like this feature very much. It's a pity it won't go into 24.4 BTW, if we define this global-eldoc-mode as simple as lines follow that turns on eldoc mode on all buffers (including the minibuffer) if enabled, then this feature is brought back without even changes to read--expression on the trunk now. ;;;###autoload (define-globalized-minor-mode global-eldoc-mode eldoc-mode eldoc-mode :initialize 'custom-initialize-delay :init-value (not noninteractive) :group 'eldoc :version "24.4")