🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #188738

Re: M-x (cmu)shell: (which) PAGER instead of "more" ?

#188738
From: Michael Meissner
Date: Mon, 24 Jun 1991 15:18
25 lines
1812 bytes
In article <9106201947.AA14878@crypto.bellcore.com>
maechler@CRYPTO.BELLCORE.COM (Martin Maechler) writes:

| Most "modern" Unix programs/scripts use $PAGER instead of 'more' if it is
| defined. Some places I know, they use "less" which is even worse:
| It aborts if run within cmushell.
| 
| As a first remedy,
| I would like to do the equivalent of  "PAGER=cat; export PAGER"
| whenever the cmushell is loaded, i.e. in 'cmushell-mode-hook.

If you build gnu emacs with MAINTAIN_ENVIRONMENT defined, this adds a
function called putenv (build you loose the normal process-environment
semantics).  Thus you can do the following in your .emacs file:

	(putenv "PAGER" "cat")

If you do not have putenv defined, you could rumage through the
process-environment list, substituting the appropriate definition for
PAGER.
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID: <MEISSNER.91Jun24111816@tiktok.osf.org>
Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!rpi!think.com!snorkelwacker.mit.edu!paperboy!meissner
References: <9106201947.AA14878@crypto.bellcore.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,99388849e4c92f0b
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-06-24 11:21:09 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!rpi!think.com!snorkelwacker.mit.edu!paperboy!meissner
From: meissner@osf.org (Michael Meissner)
Newsgroups: gnu.emacs.help
Subject: Re: M-x (cmu)shell: (which) PAGER instead of "more" ?
Message-ID: <MEISSNER.91Jun24111816@tiktok.osf.org>
Date: 24 Jun 91 15:18:16 GMT
References: <9106201947.AA14878@crypto.bellcore.com>
Sender: news@OSF.ORG
Followup-To: gnu.emacs.help
Organization: Open Software Foundation
Lines: 25
In-reply-to: maechler@CRYPTO.BELLCORE.COM's message of 20 Jun 91 19:47:51 GMT