From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge Alberto Garcia Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add emacsclient support to open with file:linum syntax Date: Tue, 29 Mar 2016 17:29:27 -0600 Message-ID: References: <837fjkozax.fsf@gnu.org> <8360z3q4bt.fsf@gnu.org> <56FAF35F.8030803@cs.ucla.edu> <56FB0AEF.5040502@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1459294220 26503 80.91.229.3 (29 Mar 2016 23:30:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 23:30:20 +0000 (UTC) Cc: Yuri Khan , Eli Zaretskii , John Wiegley , Emacs developers , Kaushal Modi To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 01:30:19 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1al35W-0003XU-KJ for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 01:30:18 +0200 Original-Received: from localhost ([::1]:50554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al35V-0008Sf-IL for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2016 19:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al35Q-0008Pt-Nm for emacs-devel@gnu.org; Tue, 29 Mar 2016 19:30:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1al35L-00052X-S8 for emacs-devel@gnu.org; Tue, 29 Mar 2016 19:30:12 -0400 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:34348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al35L-00052E-Nq; Tue, 29 Mar 2016 19:30:07 -0400 Original-Received: by mail-ob0-x231.google.com with SMTP id kf9so33963270obc.1; Tue, 29 Mar 2016 16:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=M5xZnSebyzHDP+Ho+6drSksaZFAV5Vm8bfM6c6t6we8=; b=j1F5Rfl5OxstXHakkt8SqjWm4qPTUbwo68rtQS92lnZR/L+3xIU9GEEyUcRknaDVFJ HGCGtYp6PB0o0OWlRLFIW9Q/0lai4LJSdSaV5KBg/VDHGyfNQbGxJlB2/aGqHQ7p+4nz FbLSpA2cCEbq2gRMsi9Btn/cpPfzYxhXHZW8vNWX8ysjFYluY0a4VlDZ84lKlZiiHFY1 cFvV9s2ACwqse0VXOdAy8lLuHnXTYTrF7+Noxr3HfHrqtC5jf+YyGJ0VfSkzfdqNjp2Z Yp4FRASucX4i/t0XUio0eUzWMj4EgVHLL1WBEbv/f0PxVQSBjs1Tjn0tgzgYvYXaC9lQ ONxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=M5xZnSebyzHDP+Ho+6drSksaZFAV5Vm8bfM6c6t6we8=; b=dPeN3lS4FarxwFQRX+4EF4xonkMx4pDWY3Ib6Ej0zSCRrm0ywkJx5fKMC0zHZG6luk NChYVSohZBuh6lxO8Q/ag4M3rGIbDgMH7sINPUgfSJAxN0/SJEC1B+Hmk/bc8CHmiB1+ uGaG8A3ltH+ZcYnu1flZ4RjMrFAVvg8n5gJFQI2n0Di8ERTLpspfV+XjTQ3aFW2tzRV2 HgfGf/U7nKkVW/p2THfd3r7tGXZtnnM8yRc4tm2AeBB3v8aL4y5Zi0IRBbRrRERIqkwH 3KdQ2A7FG3TFciEycANIIm3tUbvtm6yd5wbvs7apj6q86phtDQaiF4NZtCXyM3kfcRVg ZYIA== X-Gm-Message-State: AD7BkJLfuPoFIXXVB7us5kailZBkc72QhKwgQNTtFvtuIhuOKkU6Mb7e2J9ws+5qjuu/9nYj4qvzjvkWxenlcg== X-Received: by 10.60.50.98 with SMTP id b2mr2683002oeo.38.1459294207203; Tue, 29 Mar 2016 16:30:07 -0700 (PDT) Original-Received: by 10.202.189.9 with HTTP; Tue, 29 Mar 2016 16:29:27 -0700 (PDT) In-Reply-To: <56FB0AEF.5040502@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c01::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202428 Archived-At: On Tue, Mar 29, 2016 at 5:08 PM, Paul Eggert wrote: > On 03/29/2016 03:35 PM, Kaushal Modi wrote: >> >> >> I myself, use an awk script to rearrange the arguments to work with the >> current +LINE FILE format accepted by emacsclient ( Ref: >> https://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00541.html ). > > > So the existing emacsclient implementation already works for you. > >> Having this patch installed will prevent the need for such workarounds > > > They are not workarounds, because grep output cannot be used unchanged. Even > with the proposed option syntax, users would need to employ a script such as > yours to pick out the part of the grep output that they need, and use that > information to formulate arguments for emacsclient. It can, you just assumed you need to use a script, If you have this patch you can copy/paste the result paths and use it directly with emacsclient without having to form +line:column and select/copy/paste the path again. > > The longstanding +LINE option syntax is compatible with other popular free > editors such as 'vim' and 'nano', and there is some value in encouraging its > usage rather than reinventing the wheel. The patch does not remove the current +LINE:COL syntax support so it adds compatibility with a new way to specify it.