From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: `turn-on-eldoc-mode' obsolete? Date: Thu, 10 Apr 2014 13:12:46 +0200 Message-ID: <87r455o2tt.fsf@gnu.org> References: <1466870.uFosKEoTT2@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1397128434 23397 80.91.229.3 (10 Apr 2014 11:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2014 11:13:54 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 10 13:13:47 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 1WYCvO-0006Ce-RI for ged-emacs-devel@m.gmane.org; Thu, 10 Apr 2014 13:13:42 +0200 Original-Received: from localhost ([::1]:50307 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYCvO-0005Ku-B0 for ged-emacs-devel@m.gmane.org; Thu, 10 Apr 2014 07:13:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYCvF-00059L-C0 for emacs-devel@gnu.org; Thu, 10 Apr 2014 07:13:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYCv9-0007cJ-1b for emacs-devel@gnu.org; Thu, 10 Apr 2014 07:13:33 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:58976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYCv8-0007cE-Qz for emacs-devel@gnu.org; Thu, 10 Apr 2014 07:13:26 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id A60291A8405; Thu, 10 Apr 2014 13:13:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8CKY0vttr8YI; Thu, 10 Apr 2014 13:13:25 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p (dhcp17.uni-koblenz.de [141.26.71.17]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 4CB481A83FB; Thu, 10 Apr 2014 13:13:25 +0200 (CEST) Mail-Followup-To: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld , emacs-devel@gnu.org, monnier@iro.umontreal.ca In-Reply-To: <1466870.uFosKEoTT2@descartes> (=?utf-8?Q?=22R=C3=BCdiger?= Sonderfeld"'s message of "Thu, 10 Apr 2014 13:07:03 +0200") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 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:171382 Archived-At: R=C3=BCdiger Sonderfeld writes: Hi R=C3=BCdiger, > in r116095 the function `turn-on-eldoc-mode' was replaced by an alias > for `eldoc-mode' and marked obsolete. There was no entry in the > ChangeLog for this and I don't understand the reason. It seems > several minor modes provide a `turn-on' function to avoid the toggling > behaviour of the minor mode command (e.g., turn-on-auto-fill, > turn-on-flyspell, etc.). Which is quite useful for mode hooks. It used to be but not anymore. Now all minor-modes defined with `define-minor-mode' (which see) are turned on when passed no argument. Thus (add-hook 'some-mode-hook #'some-minor-mode) will always enable some-minor-mode. The toggling behavior is only active in interactive calls or from lisp if you provide 'toggle as argument. Bye, Tassilo