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: Wed, 22 Feb 2012 02:16:10 +0200 Organization: JURTA Message-ID: <87mx8bvi2d.fsf@mail.jurta.org> References: <87r4y4fik0.fsf@mail.jurta.org> <87mx8dt2mt.fsf@mail.jurta.org> <6E2C6DFEC18A42E98A69D5044CF56936@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329869930 13631 80.91.229.3 (22 Feb 2012 00:18:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 00:18:50 +0000 (UTC) Cc: 10773@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 01:18:48 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 1Rzzuy-00065R-6C for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2012 01:18:48 +0100 Original-Received: from localhost ([::1]:41446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rzzux-0005X9-Ep for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2012 19:18:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rzzut-0005WQ-Ss for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2012 19:18:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rzzut-00012j-1F for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2012 19:18:43 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rzzus-00012f-Ue for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2012 19:18:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rzzx7-0002Q7-Or for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2012 19:21:01 -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: Wed, 22 Feb 2012 00:21:01 +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.13298700289259 (code B ref 10773); Wed, 22 Feb 2012 00:21:01 +0000 Original-Received: (at 10773) by debbugs.gnu.org; 22 Feb 2012 00:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:49430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzzwZ-0002PH-Nk for submit@debbugs.gnu.org; Tue, 21 Feb 2012 19:20:28 -0500 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:47585 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzzwX-0002PA-WF for 10773@debbugs.gnu.org; Tue, 21 Feb 2012 19:20:26 -0500 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 557EE451C749; Tue, 21 Feb 2012 16:16:31 -0800 (PST) In-Reply-To: <6E2C6DFEC18A42E98A69D5044CF56936@us.oracle.com> (Drew Adams's message of "Tue, 21 Feb 2012 07:26:57 -0800") 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:57058 Archived-At: >> In my opinion, the best way to eliminate the distinction >> between user variables (with the leading '*' in the docstring) >> and customizable variables in 24.2 is: >> >> 1. Make `user-variable-p' an alias for `custom-variable-p'. >> >> 2. Remove the `user-variable-p' condition from `set-variable'. >> >> This will fix the reported case where `set-variable' can change >> the value of `outline-mode-hook', but not `outline-minor-mode-hook'; >> and many other similar cases. > > And how will that help code that uses > (defvar foo "*A user variable.")? IIUC, the plan is to deprecate this feature, to not maintain two parallel systems of user customizable variables. > Users have always been able to set such a user variable using `set-variable'. With the proposed change above, users can continue to set variables using `set-variable'.