From: Tassilo Horn <tsdh@gnu.org>
To: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: `turn-on-eldoc-mode' obsolete?
Date: Thu, 10 Apr 2014 13:12:46 +0200 [thread overview]
Message-ID: <87r455o2tt.fsf@gnu.org> (raw)
In-Reply-To: <1466870.uFosKEoTT2@descartes> ("Rüdiger Sonderfeld"'s message of "Thu, 10 Apr 2014 13:07:03 +0200")
Rüdiger Sonderfeld <ruediger@c-plusplus.de> writes:
Hi Rüdiger,
> 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
next prev parent reply other threads:[~2014-04-10 11:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 11:07 `turn-on-eldoc-mode' obsolete? Rüdiger Sonderfeld
2014-04-10 11:12 ` Tassilo Horn [this message]
2014-04-10 11:22 ` Rüdiger Sonderfeld
2014-04-10 11:37 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r455o2tt.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=ruediger@c-plusplus.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.