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: Wed, 30 Mar 2016 10:42:32 -0600 Message-ID: References: <8360z3q4bt.fsf@gnu.org> <56FAF35F.8030803@cs.ucla.edu> <56FB0AEF.5040502@cs.ucla.edu> <56FB1FAF.3070202@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 1459356254 17352 80.91.229.3 (30 Mar 2016 16:44:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2016 16:44:14 +0000 (UTC) Cc: Eli Zaretskii , Paul Eggert , Yuri Khan , John Wiegley , Emacs developers To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 30 18:44:12 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 1alJE4-0001xv-5K for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 18:44:12 +0200 Original-Received: from localhost ([::1]:55787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alJE3-0004aH-K0 for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2016 12:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alJDn-0004ZK-Ok for emacs-devel@gnu.org; Wed, 30 Mar 2016 12:43:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alJDm-0003tF-Lt for emacs-devel@gnu.org; Wed, 30 Mar 2016 12:43:55 -0400 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:34721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alJDm-0003sY-Fh; Wed, 30 Mar 2016 12:43:54 -0400 Original-Received: by mail-ob0-x231.google.com with SMTP id kf9so73648838obc.1; Wed, 30 Mar 2016 09:43:54 -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=7PXAe/6CCtL7/zILIcJD5ExuJQfSxfR/gEFwavSxnO0=; b=Qad+K+dmVXBf0R70pmb+lMsfkaEaiRU8LvDttQ/mvp28xFWbjyfgFTMzkr39Op+Ei+ 3GpVwGC+u9ghvwFz3IJOvftNdbI2Ixc5H6Ux5fe6BdF9CRkev1fb8eyvOSVnSOLF08LF DkFj3uqwR5TH02Ae0UFhjf/lKaD3CrWWV+efQ5hShvEO8aaSinWt2nVMiV/rY8NcEHpu tLGv9Q3J5JKSXgMq317wX6/UouguK+8s/btrM0M5T4IreQTEI1QLZ7DBvJkCJJLJlS+8 +/cfJVlKBXxfWh22388ThRZ7zT7a60Rhe8rDFwjwJtGvKUB6yeg6O+cc/WtTgcomH1j9 N8RQ== 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=7PXAe/6CCtL7/zILIcJD5ExuJQfSxfR/gEFwavSxnO0=; b=ZuH6z2Y75JwvLjQeDrP45p+xfs22+MPagsfC9g765LXt6z8fynFXVlSLv3oLpngm6K jAZ0gdgtNrY+kpXB7beuSH8lcf446ly0Ep3u9dBjqNVJM432subPlrRnsQWYYINRIe+W KO55mvIbIG5H1ljBYCfWWD3WMud3LqCCNu6o+wMnAPMVDDWmPI8WwHrT+e4fkJAAAK9U RsVmzpyLROVCoUbTAfm1bU4DDhsFLh5qQSpaqflkqu9qoeYYS2rCWXP1D16/MNvWnHMn XILipo1vn8fzrldhNJWTs4cZgfo3qPNNNe5Mz3BUONZG3MUcmfkB+C1g6SWjY8mFp4MI dWMQ== X-Gm-Message-State: AD7BkJJ7VILNYDOVZx1pfi9rbdHNFNkaDCpvj0gu74d+OEXL4CIkU29E5FbrbmakNEo0vV0dKJxMI9LOvCQaqA== X-Received: by 10.182.242.4 with SMTP id wm4mr5693976obc.85.1459356192326; Wed, 30 Mar 2016 09:43:12 -0700 (PDT) Original-Received: by 10.202.189.9 with HTTP; Wed, 30 Mar 2016 09:42:32 -0700 (PDT) In-Reply-To: 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:202462 Archived-At: On Wed, Mar 30, 2016 at 8:21 AM, Kaushal Modi 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. >> >> 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. >> >> >> Having this patch installed will prevent the need for such workarounds > > > > Jorge, > > Based on the counter arguments provided by Paul, I now tend to agree to what > he says. > > 1. The current method (+LINE FILE and using awk to arrange stuff) has been > working well for me for quite few years. > 2. It makes sense to have users stick to one convention (+LINE FILE) instead > of having users now split between "+LINE FILE" and "FILE:LINE". > > I do not use copy/paste manually but instead make a shell alias using that > awk snippet do things. So with either "+LINE FILE" or "FILE:LINE", I will > need that awk script. > > That said, I appreciate the effort you put in in creating this patch and > this reply, by no means, is intended to discourage you from your future work > (especially in C). Thanks Modi, Folks I agree with Paul, mx-grep is a better way but is not always possible to use it, but use case are different, here you already have a location specified. Emacs users are very diverse, MX-grep/bash not always is present on the same system is a shame but not always is possible/confortable to have a workflow running within emacs. I will not push anymore for this patch but please consider this argument before rejection. -Jorge