]> diplodocus.org Git - nmh/commitdiff
Change the default editor from 'vi' to 'prompter'.
authorKen Hornstein <kenh@pobox.com>
Sun, 18 Mar 2018 02:34:14 +0000 (22:34 -0400)
committerKen Hornstein <kenh@pobox.com>
Sun, 18 Mar 2018 02:34:14 +0000 (22:34 -0400)
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
man/mh-profile.man
sbr/geteditor.c

index d631993..138a909 100644 (file)
@@ -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
 -----------------
index 3b9bdcb..c33a583 100644 (file)
@@ -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 :
index 3b472ec..9ef6f5c 100644 (file)
@@ -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;