unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Persistence of variables
@ 2018-03-21  6:08 Marcin Borkowski
  2018-03-21  6:55 ` Eli Zaretskii
  0 siblings, 1 reply; 31+ messages in thread
From: Marcin Borkowski @ 2018-03-21  6:08 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

I want to make a variable persistent across Emacs sessions.  How do I do
it?

I know that I can write a form to init-file (or custom-file).  Are there
any facilities in Emacs which support that?  Or should I write them
myself?  A cursorty look at custom-save-all suggests that there are no
high-level functions to "save one particular thing to (custom-file)".
(I could make my variable customizable and use custom-save-variables,
but I do not want to do that - I feel this is too heavy-weight for just
one variable, and I don't even know whether my potential users
know/use/like the customization stuff messing around with their init
file.)

Any ideas?

-- 
Marcin Borkowski
http://mbork.pl



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

end of thread, other threads:[~2018-03-28 19:12 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-21  6:08 Persistence of variables Marcin Borkowski
2018-03-21  6:55 ` Eli Zaretskii
2018-03-21  7:25   ` Marcin Borkowski
2018-03-21  9:13     ` Marcin Borkowski
2018-03-21  9:27       ` tomas
2018-03-21  9:51         ` Marcin Borkowski
2018-03-21 10:23           ` tomas
2018-03-25 17:10             ` Marcin Borkowski
2018-03-21 11:34       ` Emanuel Berg
     [not found]       ` <mailman.11020.1521632103.27995.help-gnu-emacs@gnu.org>
2018-03-21 11:38         ` Emanuel Berg
2018-03-21  9:53     ` Eric Abrahamsen
2018-03-21 10:26       ` Marcin Borkowski
2018-03-21 15:12       ` Drew Adams
2018-03-21 15:19         ` tomas
2018-03-21 22:16           ` Joost Kremers
2018-03-25 17:15             ` Marcin Borkowski
2018-03-25 18:57               ` Drew Adams
     [not found]             ` <mailman.11217.1521998149.27995.help-gnu-emacs@gnu.org>
2018-03-28  0:21               ` Emanuel Berg
2018-03-28  5:05                 ` Marcin Borkowski
     [not found]                 ` <mailman.11329.1522213571.27995.help-gnu-emacs@gnu.org>
2018-03-28 13:09                   ` Emanuel Berg
     [not found]         ` <mailman.11032.1521645579.27995.help-gnu-emacs@gnu.org>
2018-03-21 21:43           ` Emanuel Berg
2018-03-24 23:54           ` Robert L.
2018-03-25 17:12         ` Marcin Borkowski
2018-03-26  1:48         ` Eric Abrahamsen
2018-03-28 19:12           ` Marcin Borkowski
     [not found]       ` <mailman.11031.1521645187.27995.help-gnu-emacs@gnu.org>
2018-03-21 18:00         ` Emanuel Berg
2018-03-21 18:23           ` Eli Zaretskii
     [not found]           ` <mailman.11045.1521656612.27995.help-gnu-emacs@gnu.org>
2018-03-21 21:30             ` Emanuel Berg
2018-03-22  1:36             ` Rolf Ade
2018-03-22  7:02               ` Eli Zaretskii
     [not found]               ` <mailman.11076.1521702135.27995.help-gnu-emacs@gnu.org>
2018-03-24  3:06                 ` Emanuel Berg

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).