Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: Ed Avis <eda(at)waniasset(dot)com>
Cc: "tgl(at)sss(dot)pgh(dot)pa(dot)us" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "bruce(at)momjian(dot)us" <bruce(at)momjian(dot)us>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date: 2014-12-06 12:28:35
Message-ID: CA+bJJbzp002QgUNexhJSVipPsN+KrMTXp6RAzM5wB0Uktc5BXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Dec 5, 2014 at 8:08 PM, Ed Avis <eda(at)waniasset(dot)com> wrote:

> OK, I think Tom Lane's position is reasonable. There could be other 'dumb'
> terminals out there we have not considered, and some of them might even run
> psql. I will check for a way to detect running inside emacs shell buffers.
>

Although I am an emacs user, and have been bitten by the unwanted pager
problem inside shell buffers, I would vote against making psql detect
running inside emacs and change behaviour, specially considering it may
open the gates to also detect vi, netbeans, eclipse or whatever program can
run it as a subprocess, specially when any reasonable shell used inside the
buffer supports things like {alias psqlemacs='psql --pset=pager=off'} or
functions or scripts which easily avoid the problem.

Francisco Olarte.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2014-12-08 09:26:03 Re: pg_restore crashes passing NULL to strcmp (9.4 rc1)
Previous Message Justin Pryzby 2014-12-06 06:11:52 pg_restore crashes passing NULL to strcmp (9.4 rc1)