home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / alt / lucidem / help / 387 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.9 KB  |  63 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Sun, 6 Sep 1992 13:44:34 EDT
  2. From: danny@amil.co.il (Danny Bar-Dov)
  3. Message-ID: <9209061558.AA00943@amil.co.il>
  4. Subject: Lucid or not?
  5. References: <1992Sep6.120912.5392@corax.udac.uu.se>
  6. Date: Sun, 6 Sep 1992 17:44:35 GMT
  7. Newsgroups: alt.lucid-emacs.help
  8. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  9. Sender: help-lucid-emacs-request@lucid.com
  10. Lines: 51
  11.  
  12. Henrik B}kman  CSD writes:
  13.  > What is the preferable way to check if you are running Lucid-emacs or
  14.  > not, in an elisp-file?
  15.  > 
  16.  > -- 
  17.  > ----------------------------------------------------------------------
  18.  > Henrik Bakman           Adress: Box 520          Tel: +46 18 181044
  19.  > System Manager                  751 20 UPPSALA   Fax: +46 18 521270
  20.  > Computing Science Dep.          SWEDEN           Email: hb@csd.uu.se
  21.  > Uppsala University
  22.  
  23. And once upon a time jwz wrote:
  24. I think the easiest way to do this is
  25.  
  26.  >    (cond ((not (string-lessp emacs-version "19"))
  27.  >           ;; for any 19-vintage emacs
  28.  >           )
  29.  >
  30.  >          ((not (string-lessp emacs-version "19.2"))
  31.  >           ;; for versions of emacs at 19.2 or above
  32.  >           )
  33.  >
  34.  >          ((string-match "Lucid" emacs-version)
  35.  >           ;; for any Lucid Emacs
  36.  >           )
  37.  >
  38.  >          ((and (string-match "Lucid" emacs-version)
  39.  >            (not (string-lessp emacs-version "19.2")))
  40.  >           ;; for lemacs 19.2 or greater, but not FSF's 19.2
  41.  >           ))
  42.  >
  43.  >But having a set of integer variables would be nice as well.  But the problem
  44.  >with that is that Emacs 18 didn't have it, and FSF's 19 might not have it,
  45.  >which means you'd have to use the above code or something like it anyway.
  46.  >
  47.  >    -- Jamie
  48.  >
  49.  
  50. --
  51. Danny.
  52.  
  53. -------------------------------
  54. Dan Bar Dov
  55.  
  56. Applied Materials (Israel)
  57.  
  58. Email:        danny@amil.co.il
  59. Phone: office 972-3-499573
  60.        home   972-3-5469625
  61. TimeZone:     GMT+2
  62. -------------------------------
  63.