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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers