From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nurullah Akkaya Newsgroups: gmane.emacs.help Subject: Reading and Writing list to/from a file. Date: Sun, 1 Mar 2009 15:10:11 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6409b3407c6e604640e6c75 X-Trace: ger.gmane.org 1235913057 11434 80.91.229.12 (1 Mar 2009 13:10:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2009 13:10:57 +0000 (UTC) To: Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 14:12:13 2009 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.50) id 1LdlSh-0002RG-N0 for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 14:12:07 +0100 Original-Received: from localhost ([127.0.0.1]:58328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdlRM-0003LN-Kw for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 08:10:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdlQu-0003IM-OE for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 08:10:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdlQt-0003F1-5i for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 08:10:16 -0500 Original-Received: from [199.232.76.173] (port=46627 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdlQs-0003Eg-W9 for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 08:10:15 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.247]:40340) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdlQr-00069V-J4 for help-gnu-emacs@gnu.org; Sun, 01 Mar 2009 08:10:14 -0500 Original-Received: by an-out-0708.google.com with SMTP id b6so1196766ana.21 for ; Sun, 01 Mar 2009 05:10:12 -0800 (PST) Original-Received: by 10.100.9.19 with SMTP id 19mr4055644ani.8.1235913011611; Sun, 01 Mar 2009 05:10:11 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62490 Archived-At: --0016e6409b3407c6e604640e6c75 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I would like to keep a elisp list between sessions. What is the correct way of storing it? so that i don't have to parse it line by line. How can i save it as a list and evaluate the file after opening? -- Nurullah Akkaya http://nakkaya.com --0016e6409b3407c6e604640e6c75 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I would like to keep a elisp list between sessions.
What is the correct way of storing it? so that i don't have to parse it line by line.
How can i save it as a list and evaluate the file after opening?

--
Nurullah Akkaya
http://nakkaya.com
--0016e6409b3407c6e604640e6c75-- From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Reading and Writing list to/from a file. Date: Mon, 02 Mar 2009 10:54:49 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1235987742 4782 80.91.229.12 (2 Mar 2009 09:55:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2009 09:55:42 +0000 (UTC) Cc: Emacs Help List To: Nurullah Akkaya Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 02 10:56:57 2009 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.50) id 1Le4tB-0007tC-Uy for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 10:56:46 +0100 Original-Received: from localhost ([127.0.0.1]:53269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le4rq-0006mG-SH for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 04:55:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Le4rQ-0006ia-2I for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 04:54:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Le4rN-0006g6-SE for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 04:54:55 -0500 Original-Received: from [199.232.76.173] (port=52540 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Le4rN-0006fr-Kp for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 04:54:53 -0500 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:56066) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Le4rN-0003QI-6w for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 04:54:53 -0500 Original-Received: from thursday (g226193070.adsl.alicedsl.de [92.226.193.70]) by dd18200.kasserver.com (Postfix) with ESMTP id 48849180ACA8E; Mon, 2 Mar 2009 10:54:52 +0100 (CET) In-Reply-To: (Nurullah Akkaya's message of "Sun, 1 Mar 2009 15:10:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62508 Archived-At: Nurullah Akkaya wrote: > I would like to keep a elisp list between sessions. What is the > correct way of storing it? so that i don't have to parse it line by > line. How can i save it as a list and evaluate the file after > opening? As far as I know, there is no complete library for this. But look at what `recentf-save-list' in recentf.el does. The list still has do be parsed, but `load' can take care of it. regards, Nikolaj Schumacher From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Reading and Writing list to/from a file. Date: Mon, 02 Mar 2009 21:02:53 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236053026 7355 80.91.229.12 (3 Mar 2009 04:03:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2009 04:03:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 05:05:02 2009 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.50) id 1LeLsL-0002gm-VD for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2009 05:05:02 +0100 Original-Received: from localhost ([127.0.0.1]:47785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeLr1-0003Ay-1D for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2009 23:03:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LeLqe-0003Af-CY for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 23:03:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LeLqb-0003AT-UH for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 23:03:15 -0500 Original-Received: from [199.232.76.173] (port=43109 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LeLqb-0003AQ-MG for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 23:03:13 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:53518 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LeLqb-0004po-4g for help-gnu-emacs@gnu.org; Mon, 02 Mar 2009 23:03:13 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LeLqU-0000AS-Dl for help-gnu-emacs@gnu.org; Tue, 03 Mar 2009 04:03:06 +0000 Original-Received: from c-67-190-36-32.hsd1.co.comcast.net ([67.190.36.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2009 04:03:06 +0000 Original-Received: from kevin.d.rodgers by c-67-190-36-32.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2009 04:03:06 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-67-190-36-32.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:62536 Archived-At: Nikolaj Schumacher wrote: > Nurullah Akkaya wrote: > I would like to > keep a elisp list between sessions. What is the > correct way of > storing it? so that i don't have to parse it line by > line. How can i > save it as a list and evaluate the file after > opening? > As far as I know, there is no complete library for this. > > But look at what `recentf-save-list' in recentf.el does. > The list still has do be parsed, but `load' can take care of it. recentf-save-list uses recentf-dump-variable, which uses insert. Does anyone know why recentf-dump-variable doesn't use print? -- Kevin Rodgers Denver, Colorado, USA