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 14:34:11 -0400 Organization: disorganization Message-ID: References: <1933055643.48627.1304431423078.JavaMail.root@aksu.oays-ds.com> <87zkn1ui7y.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 1304620481 24109 80.91.229.12 (5 May 2011 18:34:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 18:34:41 +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 20:34:36 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 1QI3Ng-0004M0-CM for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 20:34:32 +0200 Original-Received: from localhost ([::1]:58134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI3Nf-0008Ig-O6 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 14:34:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI3Na-0008Ia-Si for help-gnu-emacs@gnu.org; Thu, 05 May 2011 14:34:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QI3NZ-000620-Lp for help-gnu-emacs@gnu.org; Thu, 05 May 2011 14:34:26 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QI3NZ-00061t-Ex for help-gnu-emacs@gnu.org; Thu, 05 May 2011 14:34:25 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QI3NX-0004Ip-Td for help-gnu-emacs@gnu.org; Thu, 05 May 2011 20:34:23 +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 20:34:23 +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 20:34:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 31 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:GrlE3OaDkSoxTrHlmD1U0ym/5nU= 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:80929 Archived-At: Hi Tassilo, > * Tassilo Horn [2011-05-05 20:15:29 +0200]: > Sam Steingold writes: >> >> compilation-error-regexp-alist is defined with defcustom, so it should >> be modified with custom-set-variables, not with setq. Don't ask. > > No, that's not true. You can setq any defcustom as if it was a defvar. Sure. You can setq any symbol. 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. 1. some packages use symbol properties in addition to the symbol value, these are modified by custom-set-variables automatically 2. some custom variables have fancy setters which are called by custom-set-variables but not by setq (like symbol macros in CL) In short, the rule of thumb is: do not use setq on custom variables, use custom-set-variables instead. -- Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031 http://honestreporting.com http://camera.org http://palestinefacts.org http://ffii.org http://www.PetitionOnline.com/tap12009/ http://truepeace.org "Syntactic sugar causes cancer of the semicolon." -Alan Perlis