From: Seb <spluque@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: slightly OT - Using psql from Emacs with sql.el
Date: Thu, 05 May 2011 17:55:39 -0500
Message-ID: <87ipto21w4.fsf@kolob.sebmags.homelinux.org> (raw)
References: <87sjssajtb.fsf@kolob.sebmags.homelinux.org>
<4DC328ED.1000705@gmail.com>
On Thu, 05 May 2011 16:47:09 -0600,
Rob Sargent <robjsargent@gmail.com> wrote:
[...]
> Doesn't appear to. I use sql-mode alot/daily. The multiple prompts
> never bothers me, though the output not starting at the left kind of
> does.
I've adapted someone's suggestion at the Emacs Wiki for that:
(defun sl/sql-add-newline-before-output (output)
"Add newline to beginning of OUTPUT for `comint-preoutput-filter-functions'"
(concat "\n" output))
(add-hook 'sql-interactive-mode-hook
(lambda ()
(add-hook 'comint-preoutput-filter-functions
'sl/sql-add-newline-before-output)))
... but this breaks navigation (e.g. 'C-c C-p')
--
Seb
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: spluque@gmail.com
Subject: Re: slightly OT - Using psql from Emacs with sql.el
In-Reply-To: <87ipto21w4.fsf@kolob.sebmags.homelinux.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