From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add emacsclient support to open with file:linum syntax Date: Tue, 29 Mar 2016 18:35:38 -0400 Message-ID: References: <838u40qw8j.fsf@gnu.org> <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: multipart/alternative; boundary=001a1140707c5a5a33052f37a8b2 X-Trace: ger.gmane.org 1459290999 11412 80.91.229.3 (29 Mar 2016 22:36:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 22:36:39 +0000 (UTC) Cc: Jorge Alberto Garcia , Eli Zaretskii , John Wiegley , Yuri Khan , Emacs developers To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 00:36:36 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 1al2FW-0007Cw-EB for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 00:36:34 +0200 Original-Received: from localhost ([::1]:50291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al2FV-0006fn-O3 for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2016 18:36:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al2FH-0006fX-MV for emacs-devel@gnu.org; Tue, 29 Mar 2016 18:36:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1al2FG-0008OQ-IR for emacs-devel@gnu.org; Tue, 29 Mar 2016 18:36:19 -0400 Original-Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:34918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1al2FG-0008OI-Bz; Tue, 29 Mar 2016 18:36:18 -0400 Original-Received: by mail-ob0-x229.google.com with SMTP id fp4so31641392obb.2; Tue, 29 Mar 2016 15:36:18 -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=pb14svzC4mxqZsuJdZ1KvQtEK6HYEZtM506ig+O5AWM=; b=zWndwvES2Uv+smwEarsmbq5gTW5kPERE3I6kRH0OO/nCXghyejR6ws9IqN4fB6/vFC vFAzc4kz4LYmTai9BWJYsXoJz3MK/SMNKrMshSF9miYCtiEHpAB3Pz0sIx/vaLCvq5XB pBJ/d4cgN+8GJsTo6z8AOuAfXKjhnmU6UxnK91Nf9k0Sn+t8HUPiUgGA8HC+kvKUotVJ R7s5G02knhJ5W36oT0O7Ro+qo+qCUcZeUDNQeshz0FXM5KhVfcu+Ya50pjJq27olmlGS /96a+dTwL+k85cZDuKGG4Riqcr8G6Rl9FFDrgor9FM7N9rqFAtlkN41tz9Ris8yqkgDP UCmg== 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=pb14svzC4mxqZsuJdZ1KvQtEK6HYEZtM506ig+O5AWM=; b=XcDcYmBi2eYdFb7N6VJ4e5PAYcxmFTLl3iZhYfQM7HKWGGsLLt8EZnDk+q+9S7kPBl jpVwybnqlNOQjIU66JNHVJ/0dLWS5HIWWOjxg4A7scb/7WysA9BjAs3wLtySjqBclyJl pygtNso6XjD4lIKg30Lx6XkaaXMuY8K0+crtmtDEkVv6N3Os4BSrU/iY9vh+KBT87N9+ W56baFazVTIoIrhEj0C/MEfhrKXDTY3PH0W1KtSUyjTVlhhx/t9q6neUk4J1HaTfuaP+ CtVHkiLgL2lstAqVWYkaIgSzv3sxCa38Az1N5ejnQ/DEbNayD9Df7VQoYm4meNVn9rGR QOcQ== X-Gm-Message-State: AD7BkJLDH7Lj4ZpeJ+8uSR7RHSNTfFDak6KGfkPC3Cqfk1locS1l8F5hVpAwGz+GaOE/OSTuxjyih+h9co9/xQ== X-Received: by 10.157.59.119 with SMTP id z110mr2620728otb.164.1459290977750; Tue, 29 Mar 2016 15:36:17 -0700 (PDT) Original-Received: by 10.202.204.2 with HTTP; Tue, 29 Mar 2016 15:35:38 -0700 (PDT) In-Reply-To: <56FAF35F.8030803@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::229 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:202423 Archived-At: --001a1140707c5a5a33052f37a8b2 Content-Type: text/plain; charset=UTF-8 On Tue, Mar 29, 2016 at 5:27 PM, Paul Eggert wrote: > However, I don't see the need to add a new option syntax 'emacsclient > --files-with-line-col FILE:LINE:COLUMN' to mean the same thing. Why not > just use the longstanding syntax? Hi Paul, As discussed earlier in the thread, this patch enables compatibility with tools like ag/grep/etc which use the FILE:LINE format for referencing positions. 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 ). Having this patch installed will prevent the need for such workarounds and we will have a harmony of using FILE:LINE format of position referencing across emacsclient/ag/grep/.. -- Kaushal Modi --001a1140707c5a5a33052f37a8b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Tue, Mar 29, 2016 at 5:27 PM, Paul Eggert <eggert@cs.ucla.edu>= wrote:
However, I don't see the need to add= a new option syntax 'emacsclient --files-with-line-col FILE:LINE:COLUM= N' to mean the same thing. Why not just use the longstanding syntax?

Hi Paul,

As discussed earlier in the thread, this patch enabl= es compatibility with tools like ag/grep/etc which use the FILE:LINE format= for referencing positions. I myself, use an awk script to rearrange the ar= guments to work with the current +LINE FILE format accepted by emacsclient = ( Ref:=C2=A0https://lists.gnu.org/archive/html/emacs-devel/2016-01/ms= g00541.html ).=C2=A0

Having this patch installed will prevent the need for su= ch workarounds and we will have a harmony of using FILE:LINE format of posi= tion referencing across emacsclient/ag/grep/..


--
Kaushal Modi
<= /div>
--001a1140707c5a5a33052f37a8b2--