From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Persistence of variables Date: Wed, 21 Mar 2018 08:12:40 -0700 (PDT) Message-ID: <77e3430c-8533-4962-92fa-3b87e2226563@default> References: <87a7v20xlf.fsf@mbork.pl> <83a7v1lxxz.fsf@gnu.org> <87605p28ma.fsf@mbork.pl> <874ll94uvs.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1521645088 31187 195.159.176.226 (21 Mar 2018 15:11:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2018 15:11:28 +0000 (UTC) To: Eric Abrahamsen , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 16:11:23 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 1eyfOd-00081C-Ob for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 16:11:23 +0100 Original-Received: from localhost ([::1]:55676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyfQg-0003P5-Ng for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 11:13:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyfQE-0003Mc-Af for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 11:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyfQA-000655-Ba for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 11:13:02 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:47624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eyfQA-00064h-2k for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 11:12:58 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2LFCihn128728; Wed, 21 Mar 2018 15:12:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=GpYYXZEahAe3tG1n5XzLCbXQOoIwf6E4TBbPCcxT6nk=; b=TtDsZhQh/FVAEFAtjRkZnrpn/8f8mwziuRag0mev66aprcoADHso2rYWjWNNlAWODB7h a8U4LfP1uQya0D9J8CMp80QMw0HPGBOiUO5XyHcXVdu8LSGjWUdmjC5qB1Eb93BkQnXA y3mUNNH003EyD7FVOuZfZ25BKr5M0kbPSLmswmX2j5zt0NGwwcfe+AjLtirRq6I3Yup0 bPmSDzJG6F3vqSQkrAJsWJLbbYyXpGJHJ7Ba8D3ABs/V2Ew0T4879usqS3ac2oBqvSZp QDssenD/mVA3wvVWB+69xMqPWNO+4W/kSRb6OnaNWdI7UGNQLqTeNytW63qpDXveSUwK 1Q== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2gusu8803v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Mar 2018 15:12:48 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2LFCkjN004722 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Mar 2018 15:12:47 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2LFCk4E008617; Wed, 21 Mar 2018 15:12:46 GMT In-Reply-To: <874ll94uvs.fsf@ericabrahamsen.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4666.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8838 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=728 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803200127 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 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:116241 Archived-At: > > But no, way too heavy. I want _one variable_ to persist, and nothing > > more. >=20 > 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.