From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christopher Browne <cbbrowne@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Ed Avis <eda@waniasset.com>
Cc: PostgreSQL Mailing Lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date: Tue, 09 Dec 2014 16:36:13 -0500
Message-ID: <24746.1418160973@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFNqd5UpMkdukDeX+bG0+jJxg1y_y4j_OL4jUm-u+6PAGB7Nbw@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>
<20141209202406.GC24487@momjian.us>
<CAFNqd5UCy_vw24iWmj4Maycw7UKxjQwamwWTW66xkuwxswWzrg@mail.gmail.com>
<20141209205612.GE24487@momjian.us>
<CAFNqd5UpMkdukDeX+bG0+jJxg1y_y4j_OL4jUm-u+6PAGB7Nbw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Christopher Browne <cbbrowne@gmail.com> writes:
> On 9 December 2014 at 15:56, Bruce Momjian <bruce@momjian.us> wrote:
>> On Tue, Dec 9, 2014 at 03:53:52PM -0500, Christopher Browne wrote:
>>> I'd be really inclined to search INSIDE_EMACS for "comint", as well.
>> I don't understand. Is COMINT an environment variable name? I don't see
>> it in INSIDE_EMACS:
> In that case, you're running a shell in a buffer that is emulating a
> terminal (a not-dumb one), and I think you'll find that more, less, and
> most will work fine as pagers just as they would in an xterm.
The more I read about this, the more I think we should leave well enough
alone. As was pointed out upthread, users can fix this for not just psql
but many other programs by setting PAGER=cat.
Even if you aren't interested in fixing the behavior of any other
programs, I think it's likely that we're going to be tripping over corner
cases for years to come if we fool around with trying to interpret the
contents of INSIDE_EMACS. Said contents are not even documented in the
Emacs manual, let alone is there a list of which buffer modes it'd be
reasonable to suppress pager behavior for.
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, cbbrowne@gmail.com, bruce@momjian.us, eda@waniasset.com
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
In-Reply-To: <24746.1418160973@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> <20141209202406.GC24487@momjian.us> <CAFNqd5UCy_vw24iWmj4Maycw7UKxjQwamwWTW66xkuwxswWzrg@mail.gmail.com> <20141209205612.GE24487@momjian.us> <CAFNqd5UpMkdukDeX+bG0+jJxg1y_y4j_OL4jUm-u+6PAGB7Nbw@mail.gmail.com> <24746.1418160973@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