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

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: proposal: more practical view on function's source code
Дата
Msg-id 668AB6DA-BC21-4BC8-8F9D-31AAA1F732EB@blighty.com
обсуждение исходный текст
Ответ на Re: proposal: more practical view on function's source code  (Peter Eisentraut <peter_e@gmx.net>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: 9.0 release notes done
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: An idle thought