[PATCH] Re: FEATURE REQ: Add BZREDITOR

Jari Aalto jari.aalto at cante.net
Sat Sep 17 08:33:02 BST 2005


Aaron Bentley <aaron.bentley at utoronto.ca> writes:

| On Sat, Sep 17, 2005 at 01:14:13AM +0300, Jari Aalto wrote:
| ... I just don't understand your explanation
| of why a config file is inadequate.  Don't you have a separate home
| directory for each set of available editors?

It goes like this for multiple accounts with one shared setup:

  Log into account
  .. login rc files run (.login, .bashrc; split into 20 files)
  ..
  .. examine environment for candidates of good editors
  ..    check if this is account type A, B, C ..
  ..    (quota limits, is this "full" or "light" account setup, what OS is 
  ..     installed here -- it all depends ...)
  ..
  .. configure EDITOR and VISUAL for this system
  .. based on prior checks above
  ..
  .. Okay, now configure suitable editor for bzr: BZREEDITOR
  ..    pick the one that is "feature rich enough" but
  ..    still fast (unlike perhaps EDITOR set above)

In login scripts it's easier to work with environment variables than
with AWK or other scripts to manipulate contents of config files. The
editor may change - like in my Debian sandbox where I install and
remove editors to see what they offer. I cannot use permanent
selections anywhere. The login scripts take care of snooping the setup
for the account.

Jari





More information about the bazaar mailing list