From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Incorporating caching into defgroup/defcustom/defvar for Emacs 25 Date: Mon, 2 Feb 2015 06:24:48 -0800 (PST) Message-ID: References: <6AD4DF07-EFCD-48F4-AEE6-333F8D27BA87@seanallred.com> <87a90xqfxg.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422887143 25387 80.91.229.3 (2 Feb 2015 14:25:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 14:25:43 +0000 (UTC) Cc: Sean Allred , emacs-devel To: bruce.connor.am@gmail.com, "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 15:25:38 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YIHwW-0000cp-Ea for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 15:25:36 +0100 Original-Received: from localhost ([::1]:54958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIHwV-0007Tf-Pl for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 09:25:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIHvu-00075u-1A for emacs-devel@gnu.org; Mon, 02 Feb 2015 09:24:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIHvq-000765-Ru for emacs-devel@gnu.org; Mon, 02 Feb 2015 09:24:57 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:46794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIHvq-00075x-Mp for emacs-devel@gnu.org; Mon, 02 Feb 2015 09:24:54 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t12EOpJe019316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Feb 2015 14:24:52 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t12EOngW013886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 2 Feb 2015 14:24:50 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t12EOnPs026223; Mon, 2 Feb 2015 14:24:49 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182255 Archived-At: > sessions are only saved/loaded if desktop-mode is enabled Only saved/loaded _automatically_ if `desktop-mode' is enabled. Or if other code explicitly does the same thing automatically. Desktop files can be saved/loaded at any time, by code, users, bookmarks, etc. Wrt automatically caching selected variables, another way to do that is to create a variables-list bookmark and automatically update it (e.g. on exit from Emacs or whatever). (Var-list bookmarks are available with Bookmark+, and could be trivially added to vanilla Emacs. Likewise, desktop bookmarks.) Caveat: I haven't been following this thread. Just pointing out that `desktop-mode' is not a requirement for saving/loading desktop files.