unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* save withing custom
@ 2004-04-29 13:42 Miguel Frasson
  2004-04-29 14:08 ` Klaus Berndl
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel Frasson @ 2004-04-29 13:42 UTC (permalink / raw)



Suppose that I want to to have a variable defined with custom like

  (defcustom foo 1 "testing custom" :type 'integer)

that I have the value remembered. How do I save the variable in custom
without use customize-option? I mean, I want that a program that I make
could save the variable, and customize variable requires me to save the
variable...

Thanks.

Miguel.

-- 
Miguel Vinicius Santini Frasson
http://www.math.leidenuniv.nl/~frasson

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: save withing custom
  2004-04-29 13:42 save withing custom Miguel Frasson
@ 2004-04-29 14:08 ` Klaus Berndl
  2004-04-30  9:33   ` Miguel Frasson
  0 siblings, 1 reply; 3+ messages in thread
From: Klaus Berndl @ 2004-04-29 14:08 UTC (permalink / raw)


On 29 Apr 2004, Miguel Frasson wrote:

>  
>  Suppose that I want to to have a variable defined with custom like
>  
>    (defcustom foo 1 "testing custom" :type 'integer)
>  
>  that I have the value remembered. How do I save the variable in custom
>  without use customize-option? I mean, I want that a program that I make
>  could save the variable, and customize variable requires me to save the
>  variable...

Hmm, I'm not sure that i really understand what are you asking for...

What's the problem with calling (customize-save-variable 'foo 7) from an
elisp-program when the program wants to store the value 7 for option 'foo?

BTW: `customize-save-variable' doesn't store the new value in a file but only
sets the new value for the current session.

Klaus

>  
>  Thanks.
>  
>  Miguel.

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Carl-Wery-Str. 42, 81739 Muenchen, Germany
Tel +49 89 63812-392, Fax -220

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: save withing custom
  2004-04-29 14:08 ` Klaus Berndl
@ 2004-04-30  9:33   ` Miguel Frasson
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel Frasson @ 2004-04-30  9:33 UTC (permalink / raw)


Klaus Berndl <klaus.berndl@sdm.de> writes:

> What's the problem with calling (customize-save-variable 'foo 7) from an
> elisp-program when the program wants to store the value 7 for option 'foo?
> 
> BTW: `customize-save-variable' doesn't store the new value in a file but only
> sets the new value for the current session.

Here it sets the value and saves it for next session, that is what I wanted.

Thanks.

Miguel.

-- 
Miguel Vinicius Santini Frasson
http://www.math.leidenuniv.nl/~frasson

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-30  9:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-29 13:42 save withing custom Miguel Frasson
2004-04-29 14:08 ` Klaus Berndl
2004-04-30  9:33   ` Miguel Frasson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).