From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ismael Valladolid Torres Newsgroups: gmane.emacs.help Subject: Dump file content into a variable, how to? Date: Tue, 19 Jun 2007 10:17:28 +0200 Message-ID: <20070619081728.GE3082@punkass.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2145406750==" X-Trace: sea.gmane.org 1182241073 11790 80.91.229.12 (19 Jun 2007 08:17:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 08:17:53 +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 Jun 19 10:17:51 2007 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 1I0YuM-0003HV-M7 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jun 2007 10:17:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0YuL-0004gv-Rt for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jun 2007 04:17:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0Yu5-0004fY-3v for help-gnu-emacs@gnu.org; Tue, 19 Jun 2007 04:17:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0Yu3-0004eC-Ic for help-gnu-emacs@gnu.org; Tue, 19 Jun 2007 04:17:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0Yu3-0004e2-DV for help-gnu-emacs@gnu.org; Tue, 19 Jun 2007 04:17:31 -0400 Original-Received: from tidos.tid.es ([193.145.240.2] helo=correo.tid.es) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0Yu2-0002Lj-Gy for help-gnu-emacs@gnu.org; Tue, 19 Jun 2007 04:17:30 -0400 Original-Received: from tid (filvit [192.168.48.202]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0JJV00KETJ14JM@tid.hi.inet> for help-gnu-emacs@gnu.org; Tue, 19 Jun 2007 10:17:29 +0200 (MEST) Original-Received: from palmer.hi.inet ([10.95.14.0]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTPS id <0JJV00KEPJ14JM@tid.hi.inet> for help-gnu-emacs@gnu.org; Tue, 19 Jun 2007 10:17:28 +0200 (MEST) Original-Received: from ismael by palmer.hi.inet with local (Exim 4.63) (envelope-from ) id 1I0Yu0-0001Pj-65; Tue, 19 Jun 2007 10:17:28 +0200 User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Solaris 8 (1) 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:45158 Archived-At: --===============2145406750== Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=eJnRUKwClWJh1Khz Content-disposition: inline --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A hopefully obvious question from a probably Lisp newbie. I want my .emacs to dired on launch a given directory. The name of the directory is stored into a file ~/.removable. So I need to "cat" the file content into a variable, then maybe do a file-directory-p and finally dired the directory. But I don't know how to "cat" a file content into a variable. shell-command will be no useful as I don't need the "cat" output in the echo area nor in another buffer, I need it into a variable. Any ideas welcome. Cordially, Ismael --=20 Ismael Valladolid Torres m. +34679156321 La media hostia j. ivalladt@gmail.com http://lamediahostia.blogspot.com/ --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGd5EY59Nokt5yGvQRAkEhAKDIbVUYqGH/hc24M/rMo2hge25LzACcC8zw 8bRCa7c8pI1+L4g7voT34eM= =UBhe -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz-- --===============2145406750== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============2145406750==--