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, 12 Jan 2016 15:26:04 -0600 Message-ID: References: <838u40qw8j.fsf@gnu.org> <837fjkozax.fsf@gnu.org> <8360z3q4bt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1452634031 29517 80.91.229.3 (12 Jan 2016 21:27:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2016 21:27:11 +0000 (UTC) To: John Wiegley , Eli Zaretskii , Kaushal Modi , jorge alberto garcia gonzalez , Yuri Khan , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 12 22:27:10 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 1aJ6T6-0002fY-SA for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2016 22:27:09 +0100 Original-Received: from localhost ([::1]:34159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ6T5-00079i-Vb for ged-emacs-devel@m.gmane.org; Tue, 12 Jan 2016 16:27:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ6Sm-00079Z-Md for emacs-devel@gnu.org; Tue, 12 Jan 2016 16:26:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ6Sl-0006qF-PQ for emacs-devel@gnu.org; Tue, 12 Jan 2016 16:26:48 -0500 Original-Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:34894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ6Si-0006p2-5U; Tue, 12 Jan 2016 16:26:44 -0500 Original-Received: by mail-ob0-x229.google.com with SMTP id py5so70815939obc.2; Tue, 12 Jan 2016 13:26:44 -0800 (PST) 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 :content-type; bh=6pFMVgxvphy+M/jKlrJPeMi6zObLdwJI3hozdSgXPBI=; b=RJdy6vwJq3dzVlmm5Dr4Nj1x9zwV7Sf2BJjfSnhhbc3dio83JIM/bx5FUeLJNV/pN4 smwW4W1oqsG6FIWfESdabQI7uyl9yNmjBxKeyE8GgK7PbVl6YgFeviUfIeTFR6tDSU2E emRIDFsqConSmheFOfbJOxh1PmHp8febkRgC8aOBrMZEy5GuXpmPeCCxllMnsb1HBnkH GX6FmInMFWCq98x84tHOtTuJ9gf/ZrBLqCJxjz/AIsR3hy8Fs+R+q7TkYlQQjCT8Vw7I HQqDAoSIYqXM1RwwFIXO5ESE9p+/ZpVKHf5bz2XTIj9btFmb4PaqFxFDteN0xlAcakfP +wHg== X-Received: by 10.182.236.3 with SMTP id uq3mr98037069obc.25.1452634003630; Tue, 12 Jan 2016 13:26:43 -0800 (PST) Original-Received: by 10.202.179.7 with HTTP; Tue, 12 Jan 2016 13:26:04 -0800 (PST) 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::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:198101 Archived-At: On Tue, Jan 12, 2016 at 3:04 PM, John Wiegley wrote: >>>>>> Eli Zaretskii writes: > >> Indeed, I think a separate new option is better. There's no need for us to >> invent any clever syntax that is half backward-compatible. > > +1 on everything Eli has said about environment variables being suitable only > for debug options, and using a flag rather than fancy new semantics for names > with colons, and for also having a short option to enable this behavior. > Sure, actually the patch I sent, already follows Eli's suggestion to add a new flag :) + { "files-with-line-col", no_argument, NULL, 'l' }, so we can use either: emacsclient -l somefile:[LINE]:[COLUMN] emacsclient --files-with-line-col somefile:[LINE]:[COLUMN] if no line or column is provided it just open 'somefile' following Kaushal Modi suggestion. > -- > John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F > http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2