help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Operating system in an emacs variable?


From: Kevin Rodgers
Subject: Re: Operating system in an emacs variable?
Date: Fri, 21 Mar 2003 16:15:31 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Barman Brakjoller wrote:

Oh? What a disapointment! The subject of this thread sounded really
really cool; imagine putting a whole operating system into an emacs
variable! That would have been really cool!

(defvar system
 (with-temp-buffer
   (insert-file-contents-literally
    (cond ((file-executable-p "/etc/init") "/etc/init")
           ((file-executable-p "C:\\sys\\windows.exe")        ; or whatever
            "C:\\sys\\windows.exe")))
   (buffer-string))
 "The current operating system.")


--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]