delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/18/16:26:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <C9A98ED35114D31197D000805FEA668E027B1DAD@mucexch2.muc.sdm.de>
From: klaus DOT berndl AT sdm DOT de
To: starksb AT ebi DOT ac DOT uk, cygwin AT cygwin DOT com
Subject: AW: New version of cygwin-mount.el
Date: Fri, 18 May 2001 22:25:35 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id QAA04031


> -----Ursprüngliche Nachricht-----
> Von: David Starks-Browning [mailto:starksb AT ebi DOT ac DOT uk]
> Gesendet am: Freitag, 18. Mai 2001 21:35
> An: cygwin AT cygwin DOT com
> Betreff: Re: New version of cygwin-mount.el
> 
> On Friday 18 May 01, Christopher Faylor writes:
> > On Fri, May 18, 2001 at 05:39:46PM +0200, klaus DOT berndl AT sdm DOT de wrote:
> > >This should be not so difficult: NTEmacs stores in the Registry of NT
> > >(Win9X, Millenium analogous) under the key
> > >"HKEY_LOCAL_MACHINE/Software/GNU/Emacs/emacs_dir" the root directory
> > >where NTEmacs is installed, e.g.  D:\Programs\Editor\Emacs.  The
> > >cygwin-setup-script could read this directory and add "site-lisp" and
> > >then store cygwin-mount.el in the resulting directory.  If the
> > >"site-lisp§ subdir does not exist it can savely create it. Example:
> > >Root-directory of NTEmacs from Registry: D:\Programs\Editor\Emacs Then
> > >the script should store cygwin-mount.el in
> > >D:\Programs\Editor\Emacs\site-lisp.
> > >
> > >Would this be possible?
> > 
> > Yep.  DJ's regtool program could read the registry.  The problem is what
> > to do if the person isn't using NTemacs, though?  Should we put the file
> > in a temporary directory?  Delete it?  I dunno.
> 
> With all do respect to Klaus's elisp, this seems to stray a bit far
> from Cygwin's remit.  If an NT-emacs user wants cygwin-mount.el, can't
> they just download it, put it where it belongs, and edit their .emacs
> (or _emacs) file?  Why should we expect setup.exe (or whatever) to
> automate this?
> 
> Or am I missing something?

Maybe you are right. For me it doesn´t matter. Christopher asked if
it could make sense to add cygwin-mount.el to the cygwin standard
setup. I have answered for who it can make sense, namely for all
NTEmacs _and_ cygwin users (unfortunately there is no really good
cygwin-port for GNU Emacs, like for XEmacs).
IMHO most of NTEmacs _and_ cygwin user can profit from cygwin-mount.el,
so why not offer it with the cygwin setup if it is easy possible?

Ok, if it should added to cygwin setup it should be done in the following
manner (thanks also to Ehud Karni):
1. Read with DJ's regtool the value of
   HKEY_LOCAL_MACHINE\Software\GNU\Emacs\EMACSLOADPATH
   (which is a ; separated list of directories)
2. If the key exists (means NTEmacs is installed), then put
   cygwin-mount.el in the first directory of this list.
   If the key does not exist (means NTEmacs is not installed), then
   do not install cygwin-mount.el, means simply ignore the setup for it.

Cygwin-setup could also add at the end of the users .emacs file the following
two lines:
  (require 'cygwin-mount)
  (cygwin-mount-activate)
But i´m not sure if this a good idea and if this should be done automatically???



Klaus

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019