pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: 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, 9 Dec 2014 10:58:41 -0300
Message-ID: <20141209135841.GN1768@alvh.no-ip.org> (raw)
In-Reply-To: <CA+bJJbx6nY191w6=8YKtAd2bV2EcWxrdAr8LrYNqeW_W=WTMXQ@mail.gmail.com>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Francisco Olarte wrote:

> I've been making some tests with emacs shell mode, and it seems less does
> not work ( expected ) and more works partially ( it seems in shell mode
> emacs does whole lines only, so \040 does not work ). The ONLY problem I
> see with psql is that the more/less usage as default pager seems to be
> undocumented ( I mean, I have not bien able to find it without resorting to
> the source code ).

Do we really hardcode more/less?  I thought we just used whatever $PAGER
is set to.  I just tried
PAGER=most psql

and indeed it uses most rather than less.

BTW another thing you could try is
export PAGER=cat
from within Emacs.

As for Win32 users,
export PAGER="format C:"
might be the thing to do ...

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (27+ messages)  latest in thread

Message-ID: <20141209135841.GN1768@alvh.no-ip.org>
Permalink:  ../20141209135841.GN1768@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141209135841.GN1768@alvh.no-ip.org

 · 

reply

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: 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: <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>

* 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