From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add emacsclient support to open with file:linum syntax Date: Tue, 29 Mar 2016 16:08:31 -0700 Organization: UCLA Computer Science Department Message-ID: <56FB0AEF.5040502@cs.ucla.edu> References: <837fjkozax.fsf@gnu.org> <8360z3q4bt.fsf@gnu.org> <56FAF35F.8030803@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1459292944 7711 80.91.229.3 (29 Mar 2016 23:09:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 23:09:04 +0000 (UTC) Cc: Jorge Alberto Garcia , Eli Zaretskii , John Wiegley , Yuri Khan , Emacs developers To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 01:08:55 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 1al2ko-0002rN-Rl for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 01:08:54 +0200 Original-Received: from localhost ([::1]:50445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al2ko-0002fB-7j for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2016 19:08:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al2kY-0002ex-Mo for emacs-devel@gnu.org; Tue, 29 Mar 2016 19:08:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1al2kX-0007UP-Pe for emacs-devel@gnu.org; Tue, 29 Mar 2016 19:08:38 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:32817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al2kT-0007Ts-TY; Tue, 29 Mar 2016 19:08:34 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 277C516075E; Tue, 29 Mar 2016 16:08:33 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1Q-EPwiCizMV; Tue, 29 Mar 2016 16:08:32 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3F433161208; Tue, 29 Mar 2016 16:08:32 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HMQ8Dgmu4YHF; Tue, 29 Mar 2016 16:08:32 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2110E16075E; Tue, 29 Mar 2016 16:08:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:202427 Archived-At: 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. 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.