From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.help Subject: Re: When is setq-default a bad idea? (It seems to simplify things over plain old setq.) Date: Mon, 12 Jan 2004 20:34:40 +0100 Organization: Le Petomane Appreciation Society Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llodgdv3.fsf@home.se> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073938296 2671 80.91.224.253 (12 Jan 2004 20:11:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2004 20:11:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 12 21:11:28 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ag8PI-0005iL-00 for ; Mon, 12 Jan 2004 21:11:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ag8xN-00078S-G9 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jan 2004 15:46:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!h244n2fls32o1112.telia.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: h244n2fls32o1112.telia.com (213.65.65.244) Original-X-Trace: news.uni-berlin.de 1073936111 12454381 213.65.65.244 ([125297]) X-Now-Playing: Sizzla - Better Tomorrow User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:8EL3iGw8cI85f4y100QrO/d7B38= Original-Xref: shelby.stanford.edu gnu.emacs.help:120009 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:15947 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15947 seberino@spawar.navy.mil (Christian Seberino) writes: > If I use setq then I have to worry about minor modes and major modes > overwriting my settings. Only local variables are possibly overridden by modes. See the node "Locals" in the Emacs manual for a comprehensive explanation of local variables. > It seems like setq-default is more comprehensive and overrides any > attempted changes to variables elsewhere. Not really. setq-default simply sets a default value of a variable, it doesn't prevent changing that value later. > When is it a problem if I use setq-default exclusively? It's rather pointless with non-local variables, and uses more memory.