unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Dump file content into a variable, how to?
@ 2007-06-19  8:17 Ismael Valladolid Torres
  2007-06-19  9:16 ` Juanma Barranquero
  0 siblings, 1 reply; 5+ messages in thread
From: Ismael Valladolid Torres @ 2007-06-19  8:17 UTC (permalink / raw)
  To: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]

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
-- 
Ismael Valladolid Torres  m. +34679156321
La media hostia           j. ivalladt@gmail.com

http://lamediahostia.blogspot.com/

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-19 11:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2375.1182241055.32220.help-gnu-emacs@gnu.org>
2007-06-19  9:23 ` Dump file content into a variable, how to? Thien-Thi Nguyen
2007-06-19  8:17 Ismael Valladolid Torres
2007-06-19  9:16 ` Juanma Barranquero
2007-06-19 11:20   ` Ismael Valladolid Torres
2007-06-19 11:48     ` Juanma Barranquero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).