From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25559 invoked by alias); 21 Sep 2015 19:09:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36579 Received: (qmail 18010 invoked from network); 21 Sep 2015 19:09:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Subject: Re: edit-command-line problem with emacsclient To: Bart Schaefer , zsh-workers@zsh.org References: <55FE9C92.7030203@petervasil.net> <150920083202.ZM31587@torch.brasslantern.com> <55FF3CE5.9070604@petervasil.net> <150920210629.ZM31859@torch.brasslantern.com> <56004B05.9000703@petervasil.net> <150921120017.ZM426@torch.brasslantern.com> From: Peter Vasil Message-ID: <560055E4.8080204@petervasil.net> Date: Mon, 21 Sep 2015 21:09:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <150921120017.ZM426@torch.brasslantern.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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 > > Subject: Re: edit-command-line problem with emacsclient > To: Bart Schaefer > From: Peter Vasil > 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 >