Re: proposal: more practical view on function's source code

From: Steve Atkins <steve(at)blighty(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: more practical view on function's source code
Date: 2010-03-22 21:54:36
Message-ID: 668AB6DA-BC21-4BC8-8F9D-31AAA1F732EB@blighty.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Mar 22, 2010, at 2:23 PM, Peter Eisentraut wrote:

> On sön, 2010-03-21 at 20:40 -0400, Robert Haas wrote:
>>> \ef function-name line-number
>>> with suitable magic to get the editor to place the cursor at that line.
>>> I suspect this wouldn't be too hard to do with emacs --- what do you
>>> think about vi?
>>
>> Well, in vi you can just do "vi +linenum filename".
>
> I think that's a pretty widely spread convention. A quick test shows
> that all of emacs, vi, joe, and nano support this. Of course there are
> editors that don't support it, so we'll have to distinguish that
> somehow, but it won't be too complicated to support a few of the common
> editors.

Would an environment variable be the general
purpose answer? Much the same as TEXEDIT or LESSEDIT.

export PSQLEDIT='mate -w -l %d "%s"'
or
export PSQLEDIT='emacs +%d "%s"'

Cheers,
Steve

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2010-03-22 22:18:32 Re: 9.0 release notes done
Previous Message David Fetter 2010-03-22 21:51:47 Re: 9.0 release notes done