Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: edit-command-line problem with emacsclient



Hi Bart,

Yes. both emacs and emacsclient accept [+LINE[:COLUMN]] FILENAME, so
that could be used in order to have only one case label for both.

Bests,
Peter


On 09/21/2015 09:00 PM, Bart Schaefer wrote:
> (Including Peter's entire message below because it didn't go to the list.)
> 
> On Sep 21,  8:23pm, Peter Vasil wrote:
> }
> } I think for Emacs the current solution is the best and I would vote to
> } leaving it like it is right now.
> 
> Yes, we'll probably have to add another case-label for emacsclient.
> Except:
> 
> } emacsclient however accepts line and column alogn with the file name
> } like this: emacsclient [+LINE[:COLUMN]] FILENAME
> 
> Ah!  My manual page for emacsclient doesn't mention that.  Emacs also
> accepts that.  So we could replace "-eval (goto-char ...)" in both
> cases, and avoid having to split them?
> 
> 
> 
> 
> --- Forwarded mail from Peter Vasil <mailing_lists@xxxxxxxxxxxxxx>
> 
> Subject: Re: edit-command-line problem with emacsclient
> To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> From: Peter Vasil <mailing_lists@xxxxxxxxxxxxxx>
> Date: Mon, 21 Sep 2015 20:23:01 +0200
> 
> Hi,
> 
> I think for Emacs the current solution is the best and I would vote to
> leaving it like it is right now.
> 
> To be honest, for emacsclient I would rather prefer the simple $EDITOR
> $1 call than the suggested solutions here in this thread. This worked
> out best.
> 
> --create-frame or --tty depends really on the user's context, whether he
> uses the gui version or the terminal version. Do you really want to
> hardcode it in edit-command-line?
> 
> emacsclient however accepts line and column alogn with the file name
> like this: emacsclient [+LINE[:COLUMN]] FILENAME
> 
> Would it be possible to calculate LINE and COLUMN from byteoffset in zsh?
> 
> Bests,
> Peter
> 



Messages sorted by: Reverse Date, Date, Thread, Author