We keep defaulting to vi and more, but search in PATH at run time.
Nowadays, both programs should be available via PATH everywhere.
Otherwise, the the path in the profile.
--enable-mhe (DEFAULT)
Add support for the Emacs front-end `mhe'.
--enable-mhe (DEFAULT)
Add support for the Emacs front-end `mhe'.
---with-editor=EDITOR (DEFAULT is vi)
- specify the full path of the default editor to use. If this
- option is not given, then the configuration process will search
- for the `vi' command and use it as the default. If you wish to
- specify an interface which is compatible with MH, then use the
- nmh command `prompter'. If you specify `prompter', then you don't
- need to give the full pathname.
-
--with-locking=LOCKTYPE (DEFAULT is dot)
Specify the locking mechanism when attempting to "inc" or
"msgchk" a local mail spool. Valid options are "dot",
--with-locking=LOCKTYPE (DEFAULT is dot)
Specify the locking mechanism when attempting to "inc" or
"msgchk" a local mail spool. Valid options are "dot",
If either of these options is given then the other must also be
specified.
If either of these options is given then the other must also be
specified.
---with-pager=PAGER (DEFAULT is more)
- Specify the default pager (file lister) to use. If this option
- is not given, then the configuration process will search for the
- command `more' and use it as the default.
-
--
The nmh team
nmh-workers@nongnu.org
--
The nmh team
nmh-workers@nongnu.org
# location of mail transport agent
sendmailpath = @sendmailpath@
# location of mail transport agent
sendmailpath = @sendmailpath@
-# default editor
-default_editor = @editorpath@
-
-# default pager
-default_pager = @pagerpath@
-
CC = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@ @OURDEFS@
CC = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@ @OURDEFS@
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
etcdir='$(etcdir)' libdir='$(libdir)' mandir='$(mandir)' \
-mailspool='$(mailspool)' sendmailpath='$(sendmailpath)' \
-default_editor='$(default_editor)' default_pager='$(default_pager)'
+mailspool='$(mailspool)' sendmailpath='$(sendmailpath)'
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
libdir = @libdir@
etcdir = @sysconfdir@
libdir = @libdir@
etcdir = @sysconfdir@
-default_editor = @editorpath@
-default_pager = @pagerpath@
sendmailpath = @sendmailpath@
CC = @CC@
sendmailpath = @sendmailpath@
CC = @CC@
DEFS = @DEFS@
INCLUDES = -I.. -I$(top_srcdir) @CPPFLAGS@
CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
DEFS = @DEFS@
INCLUDES = -I.. -I$(top_srcdir) @CPPFLAGS@
CONFIGDEFS = -DNMHBINDIR='"$(bindir)"' -DNMHETCDIR='"$(etcdir)"' -DNMHLIBDIR='"$(libdir)"' \
- -DDEFAULT_EDITOR='"$(default_editor)"' -DDEFAULT_PAGER='"$(default_pager)"' \
-DSENDMAILPATH='"$(sendmailpath)"'
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-DSENDMAILPATH='"$(sendmailpath)"'
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
-char *lproc = DEFAULT_PAGER;
/*
* This is the path for the Bell equivalent mail program.
/*
* This is the path for the Bell equivalent mail program.
* or message parts of type text/plain.
*/
* or message parts of type text/plain.
*/
-char *moreproc = DEFAULT_PAGER;
+char *moreproc = "more";
/*
* This is the program (mhl) used to filter messages. It is
/*
* This is the program (mhl) used to filter messages. It is
* editor, such as vi or emacs, but any editor will work.
*/
* editor, such as vi or emacs, but any editor will work.
*/
-char *defaulteditor = DEFAULT_EDITOR;
+char *defaulteditor = "vi";
/*
* This is the global nmh alias file. It is somewhat obsolete, since
/*
* This is the global nmh alias file. It is somewhat obsolete, since
-dnl What should be the default editor?
-AC_ARG_WITH(editor,
- AS_HELP_STRING([--with-editor=EDITOR],[specify the default editor]))
-
-if test -n "$with_editor"; then
- editorpath="$with_editor"
-fi
-
dnl What method of locking to use?
AC_ARG_WITH(locking,
AS_HELP_STRING([--with-locking=@<:@dot|fcntl|flock|lockf@:>@],
dnl What method of locking to use?
AC_ARG_WITH(locking,
AS_HELP_STRING([--with-locking=@<:@dot|fcntl|flock|lockf@:>@],
-dnl Look for `more'
-pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
-AC_PATH_PROG(morepath, more, no, [$pathtmp])
-
-dnl If pager is not specified yet,
-dnl then use `more' as the default.
-if test -z "$pagerpath"; then
- pagerpath="$morepath"
-fi
-AC_SUBST(pagerpath)dnl
-
dnl Look for `sendmail'
pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
AC_PATH_PROG(sendmailpath, sendmail, /usr/sbin/sendmail, [$pathtmp])
dnl Look for `sendmail'
pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
AC_PATH_PROG(sendmailpath, sendmail, /usr/sbin/sendmail, [$pathtmp])
pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
AC_PATH_PROG(vipath, vi, /bin/vi, [$pathtmp])
pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
AC_PATH_PROG(vipath, vi, /bin/vi, [$pathtmp])
-dnl If editor is not specified yet,
-dnl then use `vi' as the default.
-if test -z "$editorpath"; then
- editorpath="$vipath"
-fi
-AC_SUBST(editorpath)dnl
-
dnl ----------------------------------------------------------
dnl FIND MAIL SPOOL AND SEE IF WE NEED TO MAKE inc SETGID MAIL
dnl ----------------------------------------------------------
dnl ----------------------------------------------------------
dnl FIND MAIL SPOOL AND SEE IF WE NEED TO MAKE inc SETGID MAIL
dnl ----------------------------------------------------------
config install path : ${nmhsysconf}
man page install path : ${nmhman}
config install path : ${nmhsysconf}
man page install path : ${nmhman}
-default editor : ${editorpath}
-default pager : ${pagerpath}
-sendmail : ${sendmailpath}
+sendmail path : ${sendmailpath}
file locking type : ${LOCKTYPE}
email address masq. : ${masquerade}
file locking type : ${LOCKTYPE}
email address masq. : ${masquerade}
mailspool = @mailspool@
sendmailpath = @sendmailpath@
mailspool = @mailspool@
sendmailpath = @sendmailpath@
-default_editor = @editorpath@
-default_pager = @pagerpath@
-
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
echo 's,%mandir%,$(mandir),g' >> $@
echo 's,%mailspool%,$(mailspool),g' >> $@
echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
echo 's,%mandir%,$(mandir),g' >> $@
echo 's,%mailspool%,$(mailspool),g' >> $@
echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
- echo 's,%default_editor%,$(default_editor),g' >> $@
- echo 's,%default_pager%,$(default_pager),g' >> $@
echo 's,%manext1%,$(manext1),g' >> $@
echo 's,%manext5%,$(manext5),g' >> $@
echo 's,%manext8%,$(manext8),g' >> $@
echo 's,%manext1%,$(manext1),g' >> $@
echo 's,%manext5%,$(manext5),g' >> $@
echo 's,%manext8%,$(manext8),g' >> $@
.BR forw ,
and
.BR repl .
.BR forw ,
and
.BR repl .
-(profile, default: %default_editor%)
.RS 5
This program is used to list the contents of a message in response
to the
.RS 5
This program is used to list the contents of a message in response
to the
.RS 5
This is the program used by
.B mhl
.RS 5
This is the program used by
.B mhl
{ "context", &context },
{ "mh-sequences", &mh_seq },
{ "buildmimeproc", &buildmimeproc },
{ "context", &context },
{ "mh-sequences", &mh_seq },
{ "buildmimeproc", &buildmimeproc },
+ { "editor", &defaulteditor },
{ "faceproc", &faceproc },
{ "fileproc", &fileproc },
{ "foldprot", &foldprot },
{ "faceproc", &faceproc },
{ "fileproc", &fileproc },
{ "foldprot", &foldprot },