From 87ce72956ba5f221b8288b34d126d0345684b555 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Sat, 17 Mar 2018 22:34:14 -0400 Subject: [PATCH] Change the default editor from 'vi' to 'prompter'. Absent any profile environment variable setting, the default editor for commands like 'comp', 'forw', and others is now the nmh program 'prompter'. --- docs/pending-release-notes | 3 +++ man/mh-profile.man | 4 ++-- sbr/geteditor.c | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/pending-release-notes b/docs/pending-release-notes index d6319939..138a909b 100644 --- a/docs/pending-release-notes +++ b/docs/pending-release-notes @@ -4,6 +4,9 @@ Things to add to the release notes for the next full release: NEW FEATURES ------------ +- The default editor has been changed from 'vi' to 'prompter', to align with + historical practice and reduce packaging dependencies on external programs. + ----------------- OBSOLETE FEATURES ----------------- diff --git a/man/mh-profile.man b/man/mh-profile.man index 3b9bdcb4..c33a583d 100644 --- a/man/mh-profile.man +++ b/man/mh-profile.man @@ -166,7 +166,7 @@ for details about private sequences. .RE .PP .BR Editor : -vi +prompter .RS 5 Defines the editor to be used by the commands .BR comp , @@ -175,7 +175,7 @@ Defines the editor to be used by the commands and .BR repl . If not set, the value will be taken from the VISUAL and EDITOR environment -variables. (profile, default: vi) +variables. (profile, default: prompter) .RE .PP .BR Msg\-Protect : diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 3b472ec1..9ef6f5c0 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -22,7 +22,7 @@ get_default_editor(void) if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) && !(str = getenv("EDITOR"))) { - str = "vi"; + str = "prompter"; } return default_editor = str; -- 2.56.0