Package: most

The most manual says:

   MOST_EDITOR, SLANG_EDITOR
      Either of these environment variables specify an editor for most
      to invoke to edit  a  file. The value can contain %s and %d
      formatting descriptors that represent the file name and line
      number, respectively.  For example, if JED is your editor, then
      set MOST_EDITOR to  'jed  %s -g %d'.

but this does not work as expected, the editor name is only passed if
it's before the line number, making it useless for any editor that gets
the line number arg like emacs (e.g. "+N filename").

$ export $MOST_EDITOR="zile +%d %s"
$ most .zshrc

# hitting 'e' for edit I get:
sh: Syntax error: "(" unexpected

## If I try without %s for the file name:
$ export $MOST_EDITOR="zile +%d"
$ most .zshrc

most will say:
Unsupported Editor definition

## then trying

$ export MOST_EDITOR="echo '%d %s'"
$ most .zshrc
5 (null)

$ export MOST_EDITOR="echo '%s %d'"
$ most .zshrc
.zshrc 5

                       ----- # ------

best regards,
-- 
Francisco Borges



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to