Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b8022b35580d12123db37612a833022342e6226a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <lynx AT mages.ath.cx>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (b8022b35580d12123db37612a833022342e6226a)
  • Date: Fri, 2 Feb 2007 22:59:22 +0100

On Friday 02 of February 2007 22:51:00 Eric Sandall wrote:
> On Friday 02 February 2007 10:31:30 Jaka Kranjc wrote:
> > > I don't think this will work as you intend. The first editor installed
> > > will put in /etc/profile.d/editor.sh, and then none of the others will
> > > install one as that file will exist (correct?).
> >
> > correct, imho this is wanted behaviour, a user will probably have more
> > than one editor installed.
>
> Correct, but the first editor installed (possibly nano or ed (see below) as
> they're most likely already installed) would be their default forever
> (well, without user intervention).
Yes. This will be a bit better once new sorcery is out and confmeld will get
used.

> > > If they do overwrite
> > > the prior editor.sh, then the prior spell will now be broken for
> > > cleanse.
> >
> > Will it? I gave it a brief thought and just assumed that it will see the
> > file is modified and assume it is from the SA. How could it be ammended?
>
> It wouldn't be modified by the SA if its used as intended: cast the editor
> you want, and it'll be default. It'll only be marked as modified if the
> user modfies /etc/profile.d/editors.sh after the spell that installed it is
> cast. If they don't modify the file installed by, say, ed, and then install
> vim, install_config_file will (I believe) see that editors.sh already
> exists and leave it alone, or that it differs from the file about to be
> installed, and also won't install the new file.
I tested with nano/joe and the classic query came up nicely.

>
> > > Another fun thing is that (almost) everyone will have tetex
> > > installed (for documention, if not TeX itself), which depends on ed.
> >
> > I don't get this part - how is it relevant?
>
> Well, if the other statements are true, then everyone would either always
> have ed as their default editor (if editors.sh is always overwritten) or
> they're editor would always be the last editor cast.
ed isn't a TEXT-EDITOR provider, that is e3. ;)

--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org

Attachment: pgpFOsmmHg2O_.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page