From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.help Subject: Re: reading compile.el, modifying settings Date: Thu, 05 May 2011 17:08:00 -0400 Organization: disorganization Message-ID: References: <1933055643.48627.1304431423078.JavaMail.root@aksu.oays-ds.com> <87zkn1ui7y.fsf@member.fsf.org> <87sjstufp9.fsf@member.fsf.org> Reply-To: sds@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304629709 15215 80.91.229.12 (5 May 2011 21:08:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 21:08:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 05 23:08:25 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QI5mX-0000MM-FN for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 23:08:21 +0200 Original-Received: from localhost ([::1]:44739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI5mW-0003zv-Uq for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 17:08:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI5mQ-0003zo-PV for help-gnu-emacs@gnu.org; Thu, 05 May 2011 17:08:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI5mP-0006xh-2x for help-gnu-emacs@gnu.org; Thu, 05 May 2011 17:08:14 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI5mO-0006xU-N5 for help-gnu-emacs@gnu.org; Thu, 05 May 2011 17:08:13 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QI5mM-0000ES-RK for help-gnu-emacs@gnu.org; Thu, 05 May 2011 23:08:10 +0200 Original-Received: from rrcs-24-103-48-205.nyc.biz.rr.com ([24.103.48.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 23:08:10 +0200 Original-Received: from sds by rrcs-24-103-48-205.nyc.biz.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 23:08:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 54 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rrcs-24-103-48-205.nyc.biz.rr.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:DeYc+JrfjpLtyzXmUKWZslUlRPA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80933 Archived-At: Hi Tassilo, > * Tassilo Horn [2011-05-05 21:09:54 +0200]: > Sam Steingold writes: >> However, the _effect_ of setq on a variable defined with defcustom is >> different - it is not respected by emacs on the same level as >> custom-set-variables. >> At least it was not a few years ago, when I had the same problem - my >> setting being ignored - as Paul is having now. > > If that really happens, I'd consider it a bug. Agreed. However, these bugs are hard to reproduce, as you have just discovered yourself. It is much easier to work around them. >> 1. some packages use symbol properties in addition to the symbol value, >> these are modified by custom-set-variables automatically > > ,---- > | ;; foo is not defined before > | (setq foo 17) > | ;; now load its defcustom > | (defcustom foo 111 > | "Bla bla") > | ;; still has my value plus the props of the defcustom > | (cons foo (symbol-plist 'foo)) > | ==> (17 standard-value (111) custom-requests nil variable-documentation "Bla bla") > `---- that's my point - a custom variable is much more than just a symbol-value. >> In short, the rule of thumb is: do not use setq on custom variables, >> use custom-set-variables instead. > > I really don't buy that. That's just as well because I am not selling anything. I wonder, however, if my solution solves Paul's problem. > My emacs is highly customized in plain lisp only, so that I can > comment what I do and structure it according to my likings. Mine too - and I use custom-set-variables for all custom vars in ~/.emacs. And, of course, both setq and custom-set-variables are "plain lisp". -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://www.memritv.org http://camera.org http://mideasttruth.com http://www.PetitionOnline.com/tap12009/ http://iris.org.il http://ffii.org There are 3 kinds of people: those who can count and those who cannot.