From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Switching sets of variables Date: Tue, 4 May 2010 11:59:23 -0700 Message-ID: <79E975140B7843DBB3FE0BE15049E4A4@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1273046862 25786 80.91.229.12 (5 May 2010 08:07:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 08:07:42 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 10:07:36 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9Zdn-000731-BY for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 10:07:35 +0200 Original-Received: from localhost ([127.0.0.1]:48246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Zdm-0005sa-8a for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 04:07:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9NMz-0001oZ-17 for help-gnu-emacs@gnu.org; Tue, 04 May 2010 15:01:25 -0400 Original-Received: from [140.186.70.92] (port=59268 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9NMx-0001nE-LU for help-gnu-emacs@gnu.org; Tue, 04 May 2010 15:01:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9NMv-0000RZ-LV for help-gnu-emacs@gnu.org; Tue, 04 May 2010 15:01:23 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:53973) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9NMv-0000RJ-EJ for help-gnu-emacs@gnu.org; Tue, 04 May 2010 15:01:21 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o44J1Icc013201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 4 May 2010 19:01:19 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o44J1Fp0004979 for ; Tue, 4 May 2010 19:01:15 GMT Original-Received: from abhmt005.oracle.com by acsmt354.oracle.com with ESMTP id 213921641272999565; Tue, 04 May 2010 11:59:25 -0700 Original-Received: from dradamslap1 (/141.144.160.104) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 04 May 2010 11:59:25 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcrroWFoYWI4FE0JQEipSbqzkvQJfgAANBWg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090209.4BE06F00.0032:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73325 Archived-At: > I want to have two sets of different values for the same > variables and switch between these sets. With Bookmark+ you can easily create a variable-list bookmark for each set. Jumping to such a bookmark just restores that set of variable values. http://www.emacswiki.org/emacs/BookmarkPlus#FunctionSequenceVarlistBookmarks Command `bookmarkp-set-varlist-bookmark' prompts you for the variables to save. They are saved with their current values. If you want to create such variable sets from Lisp using specified values, you can use function `bookmarkp-create-varlist-bookmark'. For example: (bookmarkp-create-varlist-bookmark "Var Set #1" ; NAME '(org-gtd-file ; VARS org-todo-keywords org-tag-alist) '("~/private.org" ; VALUES ((type "NEXT" "WAITING" "APPT" "DONE")) (("OFFICE" . ?o) ("HOME" . ?h) ("READING" . ?r) ("SHOPPING" . ?s))))