From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Persistence of variables Date: Wed, 21 Mar 2018 16:19:26 +0100 Message-ID: <20180321151926.GF12393@tuxteam.de> References: <87a7v20xlf.fsf@mbork.pl> <83a7v1lxxz.fsf@gnu.org> <87605p28ma.fsf@mbork.pl> <874ll94uvs.fsf@ericabrahamsen.net> <77e3430c-8533-4962-92fa-3b87e2226563@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed X-Trace: blaine.gmane.org 1521645487 30691 195.159.176.226 (21 Mar 2018 15:18:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2018 15:18:07 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Eric Abrahamsen , help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 16:18:03 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyfV4-0007s3-9Y for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 16:18:02 +0100 Original-Received: from localhost ([::1]:55712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyfX5-0006tB-7g for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 11:20:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyfWb-0006su-4k for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 11:19:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyfWW-00039g-RI for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 11:19:37 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:55797) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyfWW-00032w-H4 for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 11:19:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=20171004; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=nAtvm/MCHs9Akuee9K/nXKFhfsnJkLHFzEyrYjUM01k=; b=LBXrKBqBjRujvakZ1uAcSY4ZRFLJH81kmCjenNsEL+DumHECZzAZsd3qxh/2oiR5S7Xp9TmrFM0Y/xjKfPqKuLaQCbLXWsR2KmW+7xeYRCFmwuhn1Op0x1v0MHNS1e3oNQL31lVDi6bpCBRWoRoVgH0ByFKS4AHPrIeVzDq91sKmefTiE0vZ8g7CixufDLF8YTiI19pQuMDuFdz57NJWn8NVI6fgD+XThQxTVNz2F690Iz2qv4o+xpOulTWaurK4IcFpSzbKLMtF9vUlHZO+vhEREjwOV4zTZUD4JjudeI+3CtUWWb/E7qWgI1PSJLsVTXVvKFWKFHblsXPDxoNYwg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1eyfWQ-0005Nk-Ny; Wed, 21 Mar 2018 16:19:26 +0100 In-Reply-To: <77e3430c-8533-4962-92fa-3b87e2226563@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116242 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Mar 21, 2018 at 08:12:40AM -0700, Drew Adams wrote: > > > But no, way too heavy. I want _one variable_ to persist, and nothing > > > more. > > > > If you already use savehist-mode, you can add your variable to > > savehist-additional-variables. > > There are several possibilities, including these: > > 1. `savehist.el' (what Eric said) > 2. Customize (option value) > 3. Bookmark (e.g., Bookmark+ variable-list bookmark) > 4. Desktop > > If you only want to save one variable, just use an option. Of course! What Drew said. The whole thing was in front of us all, we just had to squint the right way. Thanks, Drew :-) Cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlqyd/4ACgkQBcgs9XrR2kZGKACfU4ufdESxZLM00Rn787cOA0cU mnYAnRpfig07JLzITobvvfOGeLb/rHsg =WmP8 -----END PGP SIGNATURE-----