From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#10773: set-variable can't change values of user options Date: Fri, 10 Feb 2012 12:18:56 +0200 Organization: JURTA Message-ID: <87sjijt2jv.fsf@mail.jurta.org> References: <87r4y4fik0.fsf@mail.jurta.org> <5w1uq3lv3z.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328869447 17514 80.91.229.3 (10 Feb 2012 10:24:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 10:24:07 +0000 (UTC) Cc: 10773@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 11:24:06 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rvne9-0000Sl-Fp for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 11:24:06 +0100 Original-Received: from localhost ([::1]:60919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvne8-0008CI-MD for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 05:24:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvne1-00087e-Vw for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:24:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvndv-0006vb-63 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:23:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvndv-0006vW-0w for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:23:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rvnf4-00056q-Nl for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2012 05:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2012 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10773-submit@debbugs.gnu.org id=B10773.132886946219572 (code B ref 10773); Fri, 10 Feb 2012 10:25:02 +0000 Original-Received: (at 10773) by debbugs.gnu.org; 10 Feb 2012 10:24:22 +0000 Original-Received: from localhost ([127.0.0.1]:34561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvneJ-00055X-F5 for submit@debbugs.gnu.org; Fri, 10 Feb 2012 05:24:19 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:49396 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RvneC-000551-Kf for 10773@debbugs.gnu.org; Fri, 10 Feb 2012 05:24:10 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C7316451C84F; Fri, 10 Feb 2012 02:21:34 -0800 (PST) In-Reply-To: <5w1uq3lv3z.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 09 Feb 2012 13:28:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56754 Archived-At: >> Why users are allowed to change the value of `outline-mode-hook', >> but not `outline-minor-mode-hook'? > > The former is defined with (defvar ... "*..."). > The latter is not defined anywhere, but as define-derived-mode says > about hooks and has been covered several times: > > No problems result if this variable is not bound. > `add-hook' automatically binds it. (This is true for all hook variables.) > > I would says it's not very useful to pass a hook to set-variable anyway, > since you need to type a lisp expression, and probably should use > an explicit add-hook statement. Currently William Stevenson is working on converting minor modes to use `define-minor-mode', so more minor mode hooks will lose an ability to be changed using `set-variable'. I don't have an opinion whether this is good or bad. I just discovered the inconsistency between `outline-mode-hook' and `outline-minor-mode-hook' when trying to set temporarily them to the same value with `set-variable'. What I still don't understand is why some hooks have "*" in the docstring.