[Bug 4947] New: Editor guessing algorithm should also try /etc/alternatives/editor before vi
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Wed Nov 11 09:16:38 UTC 2015
https://bz.mercurial-scm.org/show_bug.cgi?id=4947
Bug ID: 4947
Summary: Editor guessing algorithm should also try
/etc/alternatives/editor before vi
Product: Mercurial
Version: 3.6.1
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: sasha2048 at gmail.com
CC: mercurial-devel at selenic.com
According to https://www.mercurial-scm.org/wiki/editor, Mercurial tries to pick
which program to call to edit a commit message by trying the following (in
order):
1. HGEDITOR environment variable
2. editor configuration option in [ui] section (in hgrc or passed with --config
ui.editor command-line option).
3. VISUAL environment variable
4. EDITOR environment variable
5. vi, if none of the above is set
I suggest adding editor from https://wiki.debian.org/DebianAlternatives right
before "vi" (between 4 and 5):
* either by trying "editor" from $PATH;
* or by trying /etc/alternatives/editor directly.
This would make behavior more consistent on Debian (i.e.: if I already
configured default system editor, why Mercurial doesn't get it?).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list