From: robert.thorpe@antenova.com
Subject: Re: setq and setq-default
Date: 13 Sep 2006 09:29:56 -0700 [thread overview]
Message-ID: <1158164996.335560.182180@i3g2000cwc.googlegroups.com> (raw)
In-Reply-To: <ee96kr$5t3$1@news.yaako.com>
jronald wrote:
> I studied them for a while, but without details and examples.
>
> For example, what is the difference of the two below:
> (setq-default tab-width 8)
This is the general way to set the default value of a variable. If you
put (setq-default foo 9) then in the context of every buffer you create
foo will be 9 unless the buffer has it's own value for that variable.
> (setq default-tab-width 8)
This means the same thing, except it is a mechanism specific to
tab-width, not all variables have a special "default" form associated
with them. Only a handful have them, I don't know why, perhaps
setq-default didn't exist in very early Emacs.
next prev parent reply other threads:[~2006-09-13 16:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 15:03 setq and setq-default jronald
2006-09-13 16:29 ` robert.thorpe [this message]
2006-09-13 18:26 ` jronald
2006-09-14 18:42 ` robert.thorpe
2006-09-14 18:57 ` David Kastrup
2006-09-15 11:00 ` robert.thorpe
[not found] <ee94hs$48u$1@news.yaako.com>
2006-09-13 15:31 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1158164996.335560.182180@i3g2000cwc.googlegroups.com \
--to=robert.thorpe@antenova.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.