emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type fun


From: Richard Stallman
Subject: Re: turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions
Date: Sun, 04 Apr 2010 13:36:56 -0400

      I don't expect this to be the
    most common use case, so if we don't want to leave in/create more
    turn-off-minor-mode functions, we could perhaps provide explicit
    instructions for a turn-off in hook form in the documentation?

If advising people to write

  (add-hook hook (lambda () (foo-minor-mode 0))))

is not convenient enough, we could provide this function:

(defun hook-turn-off-minor-mode (hook minor-mode)
  (add-hook hook `(lambda () (,minor-mode 0))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]