all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.