From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Francisco Olarte <folarte@peoplecall.com>
Cc: Ed Avis <eda@waniasset.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date: Tue, 09 Dec 2014 09:42:29 -0500
Message-ID: <661.1418136149@sss.pgh.pa.us> (raw)
In-Reply-To: <20141209135841.GN1768@alvh.no-ip.org>
References: <20141117093434.2479.18410@wrigleys.postgresql.org>
<20141203004050.GA25084@momjian.us>
<26947.1417573493@sss.pgh.pa.us>
<loom.20141208T123007-701@post.gmane.org>
<CA+bJJbx6nY191w6=8YKtAd2bV2EcWxrdAr8LrYNqeW_W=WTMXQ@mail.gmail.com>
<20141209135841.GN1768@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Do we really hardcode more/less? I thought we just used whatever $PAGER
> is set to.
Yeah, if PAGER is set. If not, we fall back to some wired-in default.
But I think the proposal here is to let an emacs-related environment
variable override whether we use a pager at all.
> BTW another thing you could try is
> export PAGER=cat
> from within Emacs.
True. That would have the advantage of fixing more stuff than just psql,
so there's some attraction to doing that instead of hacking psql.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, folarte@peoplecall.com, eda@waniasset.com
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
In-Reply-To: <661.1418136149@sss.pgh.pa.us>
References: <20141117093434.2479.18410@wrigleys.postgresql.org> <20141203004050.GA25084@momjian.us> <26947.1417573493@sss.pgh.pa.us> <loom.20141208T123007-701@post.gmane.org> <CA+bJJbx6nY191w6=8YKtAd2bV2EcWxrdAr8LrYNqeW_W=WTMXQ@mail.gmail.com> <20141209135841.GN1768@alvh.no-ip.org> <661.1418136149@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox