unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: emacs-devel@gnu.org
Cc: monnier@iro.umontreal.ca, Tassilo Horn <tsdh@gnu.org>
Subject: Re: `turn-on-eldoc-mode' obsolete?
Date: Thu, 10 Apr 2014 13:22:04 +0200	[thread overview]
Message-ID: <1546802.XA6dIj1tU7@descartes> (raw)
In-Reply-To: <87r455o2tt.fsf@gnu.org>

Hi,

On Thursday 10 April 2014 13:12:46 Tassilo Horn wrote:
> 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.

that makes sense.  So all `turn-on-*' functions should eventually be removed?

Regards,
Rüdiger




  reply	other threads:[~2014-04-10 11:22 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
2014-04-10 11:22   ` Rüdiger Sonderfeld [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1546802.XA6dIj1tU7@descartes \
    --to=ruediger@c-plusplus.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=tsdh@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).