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

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

Re: System operating detection


From: Andrea Crotti
Subject: Re: System operating detection
Date: Wed, 11 Aug 2010 12:19:10 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

Richard Riley <address@hidden> writes:

>
> I think you need to show your usage patterns for the variables you have
> defined for a better answer. How are you using the results?
>
> That said, maybe just define sysop and then load-library a filename stub
> concat'ed with the sysop along the lines of
>
> (load-library (concat "os-specific-" sysop))
>
> is a better approach? And then os-specific-win etc all contain their OS
> specific details.


Well actually I only have some
--8<---------------cut here---------------start------------->8---
(when mac
      (do something))

(when linux
      (do something else))
--8<---------------cut here---------------end--------------->8---

A library with the os-specific stuff might be better, but now I have
everything in the org-file divided by "chapter" (windows, buffers,
frames etc). Doing "system" libraries like that would break a little bit
this model.




reply via email to

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