all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Klaus Berndl <Klaus.Berndl@sdm.de>
Subject: Re: writing an own version of setq?
Date: 09 Oct 2002 15:48:00 +0200	[thread overview]
Message-ID: <u3crfg1v3.fsf@sdm.de> (raw)
In-Reply-To: 3da42ab1$0$12906$3b214f66@news.univie.ac.at

On Wed, 09 Oct 2002, Thomas Link wrote:



> > OK, calls like (setq-save 'klaus (+ 1 2)) work fine but I'm not really
> > satisfied because i want to write (setq-save klaus (+ 1 2)). Note the
> > missing quote! How can i achieve this?
>  
>  You could possibly replace ,option with (quote ,option) like in:
>  
>  (defmacro setq-save (option value)
>     "Sets OPTION to VALUE if and only if OPTION is not already saved by
>    customize."
>     `(and (not (custom-saved-p ,option))
>  	(set (quote ,option) ,value)))
>  
>  (setq-save x 1)

Yes, (quote ...) works, thanks!


>  Setting the variable with setq or defvar is ok for you?

Hmm, what do you mean? I do not understand...

Ciao,
Klaus

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220

  reply	other threads:[~2002-10-09 13:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-09 10:34 writing an own version of setq? Klaus Berndl
2002-10-09 13:09 ` Thomas Link
2002-10-09 13:48   ` Klaus Berndl [this message]
2002-10-09 14:20     ` Thomas Link
2002-10-09 14:44       ` Klaus Berndl
2002-10-10 11:53 ` Dave Pearson

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=u3crfg1v3.fsf@sdm.de \
    --to=klaus.berndl@sdm.de \
    /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.