]> diplodocus.org Git - nmh/commitdiff
Remove the --with-pager configure option and replace it with a default
authorKen Hornstein <kenh@pobox.com>
Tue, 15 Jan 2013 18:22:13 +0000 (13:22 -0500)
committerKen Hornstein <kenh@pobox.com>
Tue, 15 Jan 2013 18:22:13 +0000 (13:22 -0500)
of "more".

Makefile.am
configure.ac
docs/pending-release-notes
h/nmh.h
man/mh-profile.man
test/common.sh.in
test/mhparam/test-mhparam

index 60600ee87b9c49f94d63e5cd40a13715c01cd042..55886bb9494bd0c42c1393e8effd1f7a91bfd8dd 100644 (file)
@@ -512,8 +512,7 @@ sbr_libmh_a_CPPFLAGS = -I./sbr -DNMHETCDIR='"$(sysconfdir)"' \
                -DMAILSPOOL='"$(mailspool)"' \
                -DSENDMAILPATH='"$(sendmailpath)"' -DNMHBINDIR='"$(bindir)"' \
                -DNMHLIBDIR='"$(libdir)"' \
-               -DDEFAULT_EDITOR='"$(editorpath)"' \
-               -DDEFAULT_PAGER='"$(pagerpath)"'
+               -DDEFAULT_EDITOR='"$(editorpath)"'
 
 sbr_libdtimep_a_SOURCES = sbr/dtimep.l
 sbr_libdtimep_a_CFLAGS = $(sbr_libmh_a_CPPFLAGS) \
@@ -543,7 +542,6 @@ man/man.sed: Makefile
        @echo 's,%mailspool%,$(mailspool),g' >> $@
        @echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
        @echo 's,%default_editor%,$(editorpath),g' >> $@
-       @echo 's,%default_pager%,$(pagerpath),g' >> $@
        @echo 's,%manext1%,$(manext1),g' >> $@
        @echo 's,%manext5%,$(manext5),g' >> $@
        @echo 's,%manext7%,$(manext7),g' >> $@
index cf69894fa516355acc131b92f5a9c4d7c81e4910..15f509f7ad79b9ee548e653676b3999ce77581f5 100644 (file)
@@ -117,20 +117,6 @@ AS_IF([test x"$with_mts" = x"smtp"], [MTS="smtp"],
       [MTS="smtp"])
 AC_SUBST([MTS])dnl
 
-dnl What should be the default pager?
-AC_ARG_WITH([pager],
-  AS_HELP_STRING([--with-pager=PAGER],[specify the default pager]))
-
-AS_IF([test -n "$with_pager"], [pagerpath="$with_pager"])
-
-dnl If a pager is not explicitly specified, then look for one.
-dnl Fall back to `cat', to avoid catastrophic failure of
-dnl `mhshow', et al., if pagerpath is set to `no'.
-AS_IF([test -z "$pagerpath"],
-  [pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
-  AC_PATH_PROGS([pagerpath], [more less most cat], [no], [$pathtmp])])
-AC_SUBST([pagerpath])dnl
-
 dnl What should be the default mail server(s)?
 AC_ARG_WITH([smtpservers],
   [AS_HELP_STRING([--with-smtpservers='SMTPSERVER1@<:@ SMTPSERVER2...@:>@'],
@@ -754,7 +740,6 @@ transport system           : ${MTS}
 file locking type          : ${LOCKTYPE}
 default smtp servers       : ${smtpservers}
 default editor             : ${editorpath}
-default pager              : ${pagerpath}
 SASL support               : ${sasl_support}
 TLS support                : ${tls_support}
 ])])dnl
index c8dd62312848f9fd6622dfe4175bedf4950af48f..63d38bae188319765d91cf23e8ed693aa8350d67 100644 (file)
@@ -71,6 +71,9 @@ OBSOLETE/DEPRECATED FEATURES
 - Support for encoding some characters designated as EBCDIC-unsafe
   via the -ebcdicsafe and -noebcdicsafe switches to mhbuild has
   been removed.
+- The configure flag --with-pager has been removed; the default pager
+  is now hardcoded as "more".  Users are still free to override the
+  default using the PAGER environment variable or entries in .mh_profile.
 
 ---------
 BUG FIXES
diff --git a/h/nmh.h b/h/nmh.h
index 0ab5e5d6771cda7402f88f6fc03ad6a75b5201f8..09683efbb0590042082a87b065bd2fedc10c1366 100644 (file)
--- a/h/nmh.h
+++ b/h/nmh.h
 # endif
 #endif
 
+/*
+ * Defaults for programs if they aren't configured in a user's profile
+ */
+
+#define DEFAULT_PAGER "more"
+
 #include <signal.h>
index d1fcf84837a3025cda73aaa91904ff8284bc1c9e..8d77900d8b3193759cbd7f59f809c1b1414cbdc0 100644 (file)
@@ -417,7 +417,7 @@ new users of
 .RE
 .PP
 .BR lproc :
-%default_pager%
+more
 .RS 5
 This program is used to list the contents of a message in response
 to the
@@ -482,7 +482,7 @@ that is sent to \*(lqBcc:\*(rq recipients.
 .RE
 .PP
 .BR moreproc :
-%default_pager%
+more
 .RS 5
 This is the program used by
 .B mhl
index f7624ca85a70a6663812ea4f8ecf00ed7c569606..390f94f98f8d4753a2c3d7cfe2fcfb28d05b576b 100644 (file)
@@ -13,9 +13,8 @@ test -z "$auxexecdir"  &&  auxexecdir="@libdir@"
 test -z "$bindir"  &&  bindir="@bindir@"
 test -z "$mandir"  &&  mandir="@mandir@"
 test -z "$sysconfdir"  &&  sysconfdir="@sysconfdir@"
-test -z "$pagerpath"  &&  pagerpath="@pagerpath@"
 test -z "$MULTIBYTE_ENABLED"  &&  MULTIBYTE_ENABLED="@MULTIBYTE_ENABLED@"
-export MH_TEST_DIR auxexecdir bindir mandir sysconfdir pagerpath
+export MH_TEST_DIR auxexecdir bindir mandir sysconfdir
 export MULTIBYTE_ENABLED
 
 test -z "$MH_INST_DIR"  &&  MH_INST_DIR="${MH_TEST_DIR}/inst"
index a56945ca9ac0bb1af064fa0190a2012a5d247735..7af2ef6f36f0dac9ed98de2ec489884e9fe25541 100755 (executable)
@@ -84,7 +84,7 @@ $MH_INST_DIR$bindir/refile
 700
 $bindir/inc
 $auxexecdir/install-mh
-$pagerpath
+more
 $bindir/mhmail
 $MH_INST_DIR$auxexecdir/mhl
 cat