Re: slightly OT - Using psql from Emacs with sql.el

From: Seb <spluque(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: slightly OT - Using psql from Emacs with sql.el
Date: 2011-05-05 22:55:39
Message-ID: 87ipto21w4.fsf@kolob.sebmags.homelinux.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 05 May 2011 16:47:09 -0600,
Rob Sargent <robjsargent(at)gmail(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rob Sargent 2011-05-05 23:15:41 Re: slightly OT - Using psql from Emacs with sql.el
Previous Message Rob Sargent 2011-05-05 22:47:09 Re: slightly OT - Using psql from Emacs with sql.el