Re: proposal: more practical view on function's source code
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Pavel Stehule <pavel.stehule@gmail.com>, Craig Ringer <craig@postnewspapers.com.au>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-03-22T21:23:43Z
Lists: pgsql-hackers
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.