Removed --with-{editor,pager} configure options.
authormarkus schnalke <meillo@marmaro.de>
Wed, 5 Oct 2011 09:28:46 +0000 (11:28 +0200)
committermarkus schnalke <meillo@marmaro.de>
Wed, 5 Oct 2011 09:28:46 +0000 (11:28 +0200)
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.

INSTALL
Makefile.in
config/Makefile.in
config/config.c
configure.ac
man/Makefile.in
man/mh-profile.man
uip/mhparam.c

diff --git a/INSTALL b/INSTALL
index d4f7f24..6811964 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -171,14 +171,6 @@ Options for configure
 --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",
@@ -205,11 +197,6 @@ Options for configure
      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
index 89cd54e..85dbf10 100644 (file)
@@ -38,12 +38,6 @@ mailspool   = @mailspool@
 # 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@
@@ -58,8 +52,7 @@ MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
 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@
index 79d54d5..1f1d5aa 100644 (file)
@@ -17,8 +17,6 @@ bindir      = @bindir@
 libdir      = @libdir@
 etcdir      = @sysconfdir@
 
 libdir      = @libdir@
 etcdir      = @sysconfdir@
 
-default_editor = @editorpath@
-default_pager  = @pagerpath@
 sendmailpath   = @sendmailpath@
 
 CC         = @CC@
 sendmailpath   = @sendmailpath@
 
 CC         = @CC@
@@ -26,7 +24,6 @@ CFLAGS     = @CFLAGS@
 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)
index 1a7b72f..82e72ae 100644 (file)
@@ -222,7 +222,7 @@ char *installproc = nmhlibdir (/install-mh);
  * draft message.
  */
 
  * draft message.
  */
 
-char *lproc = DEFAULT_PAGER;
+char *lproc = "more";
 
 /*
  * This is the path for the Bell equivalent mail program.
 
 /*
  * This is the path for the Bell equivalent mail program.
@@ -236,7 +236,7 @@ char *mailproc = nmhbindir (/mhmail);
  * 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
@@ -350,7 +350,7 @@ char *backup_prefix = ",";
  * 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
index 274e08d..542fbde 100644 (file)
@@ -78,14 +78,6 @@ fi],
 AC_DEFINE(LOCALE)
 )
 
 AC_DEFINE(LOCALE)
 )
 
-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@:>@],
@@ -269,17 +261,6 @@ if test "$lspath" != "no"; then
   fi])
 fi
 
   fi])
 fi
 
-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])
@@ -288,13 +269,6 @@ dnl Look for `vi'
 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 ----------------------------------------------------------
@@ -890,9 +864,7 @@ library install path   : ${nmhlib}
 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}
index 5e99542..c822d4a 100644 (file)
@@ -24,9 +24,6 @@ manext8     = 8
 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@
 
@@ -101,8 +98,6 @@ man.sed: Makefile
        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' >> $@
index 93eaa8f..b7e24ca 100644 (file)
@@ -140,7 +140,7 @@ Defines the editor to be used by the commands
 .BR forw ,
 and
 .BR repl .
 .BR forw ,
 and
 .BR repl .
-(profile, default: %default_editor%)
+(profile, default: vi)
 .RE
 .PP
 .BR Sendmail :
 .RE
 .PP
 .BR Sendmail :
@@ -418,7 +418,7 @@ new users of
 .RE
 .PP
 .BR lproc :
 .RE
 .PP
 .BR lproc :
-%default_pager%
+more
 .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
@@ -484,7 +484,7 @@ that is sent to \*(lqBcc:\*(rq recipients.
 .RE
 .PP
 .BR moreproc :
 .RE
 .PP
 .BR moreproc :
-%default_pager%
+more
 .RS 5
 This is the program used by
 .B mhl
 .RS 5
 This is the program used by
 .B mhl
index 49c9220..80b52a1 100644 (file)
@@ -42,6 +42,7 @@ static struct proc procs [] = {
      { "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 },