[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to save custom variable programmatically?
From: |
Robert Pluim |
Subject: |
Re: How to save custom variable programmatically? |
Date: |
Tue, 10 Nov 2020 11:43:54 +0100 |
Jean Louis <bugs@gnu.support> writes:
> I would like to use custom variables in such way to ask user
> pragmatically, not through customize interface, to change a
> variable. This could be for example user's location.
>
> Upon changing it, I would like programatically to save it for future.
>
> Should I use below function? Or maybe something else is recommended?
>
> (defun customize-save-variable (variable value &optional comment)
>
Thatʼs what lots of code in Emacs uses.
> This way it is not working:
>
> (require 'cus-edit)
> (customize-save hyperscope-default-server "localhost")
What's not working apart from the fact that customize-save doesnʼt
exist? Or did you mean
(customize-save-variable 'hyperscope-default-server "localhost")
Robert
- How to save custom variable programmatically?, Jean Louis, 2020/11/10
- Re: How to save custom variable programmatically?,
Robert Pluim <=
- Re: How to save custom variable programmatically?, Michael Heerdegen, 2020/11/10
- Re: How to save custom variable programmatically?, Jean Louis, 2020/11/10
- Re: How to save custom variable programmatically?, Michael Heerdegen, 2020/11/10
- Re: How to save custom variable programmatically?, Jean Louis, 2020/11/10
- Re: How to save custom variable programmatically?, Marcin Borkowski, 2020/11/10
- Re: How to save custom variable programmatically?, Jean Louis, 2020/11/10
- Re: How to save custom variable programmatically?, Marcin Borkowski, 2020/11/11
- Re: How to save custom variable programmatically?, Michael Heerdegen, 2020/11/10
- Re: How to save custom variable programmatically?, Jean Louis, 2020/11/10