This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ITP emacro 2.8.5


On Fri, 12 Dec 2003, Bruce Ingalls wrote:

> Joshua Daniel Franklin wrote:
>
> >Bruce,
> >
> >Please keep replies on the mailing list.
> >
> Oops. I've been spoiled by lists that automatically set the _reply-to:_
> header.
>
> >>>>EMacro is a .emacs system that makes Emacs (and XEmacs) easy.
> >>>>http://emacro.sourceforge.net/cygwin/
> >>>>
> >>>>
> >>>>
> >Since emacro is, if I understand correctly, a configuration system for {,x}emacs, maybe a solution would be to install the /etc/skel files directly, so that they are automatically removed
> >
> Correct. I really did not understand the purpose of /etc/defaults.
> What happens, when I install to /etc/skel, but files of the same name
> exist there?
> Are they silently overwritten?
>
> I originally wanted to copy files to /etc/defaults, then rename the
> .emacs of the installing user, then copy EMacro from /etc/defaults to $HOME.
> In this case, I could have preremove remove EMacro, from $HOME, but not
> try to be clever with the backup .emacsen there.
> Note that a different user might uninstall, so $HOME could be different.
>
> If you are a vim user, you might wish to check out
> http://cream.sourceforge.net/ which would have the same issues. Cream is
> likewise a ~/.vimrc system.

How about you let the users keep their existing .emacs, and simply prepend
a block of text to it in the postinstall script, something like

	;; Check whether EMacro is installed, and if so, source it
	(cond ((file-exists-p "/etc/EMacro.el")
	       (add-to-list 'load-path "/etc")
	       (require 'EMacro)))

if it's not already there.  And then simply upgrade "/etc/EMacro.el" (or,
better yet, make that "/usr/share/emacro/EMacro.el", and change "/etc" to
"/usr/share/emacro").
	Igor
P.S. FWIW, "cream" sounds like a cool package.  Are you going to ITP it?
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]