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: Fri, 8 Jan 2016 11:38:23 -0500 Message-ID: References: <838u40qw8j.fsf@gnu.org> <837fjkozax.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a04a89330f20528d5393d X-Trace: ger.gmane.org 1452271173 24157 80.91.229.3 (8 Jan 2016 16:39:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2016 16:39:33 +0000 (UTC) Cc: Eli Zaretskii , Yuri Khan , Emacs developers To: Jorge Alberto Garcia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 08 17:39: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 1aHa4F-00067q-3p for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 17:39:11 +0100 Original-Received: from localhost ([::1]:37219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHa4E-0005Gm-DA for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 11:39:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHa49-0005Dr-AE for emacs-devel@gnu.org; Fri, 08 Jan 2016 11:39:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHa48-00043Y-Hq for emacs-devel@gnu.org; Fri, 08 Jan 2016 11:39:05 -0500 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:33963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHa47-00043G-4s; Fri, 08 Jan 2016 11:39:03 -0500 Original-Received: by mail-ob0-x232.google.com with SMTP id wp13so222902640obc.1; Fri, 08 Jan 2016 08:39:02 -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 :cc:content-type; bh=YopjQ7dR7ouJOzDWiQbx9KEYZDx+aBOK4wqXDzIJzv8=; b=pFlqA67KiYrn7A8rT7vUzXiA5DQtKKqA5BgH8v107SWkaZFguM+38tUlXfJDWl5IFa ET9TdhxaWpOi7OyxavyhTaAWWBzQV/s3JTXKqcn0RToIlBppamvVigsGADgq6fs7XLBH bP6/LY92DpHZX7XSM/iU6m/thRdFOQ8yXsELM7IA19iTR2cCTfK65GzLLfF8mKk/uF/g GpwEFkmhtbJMu/J+47jfEiMlpBYQqMfzrlk1/O8vRG70JeNmXpm9+np9roEKhg3L1tFu aZIqq2m2wcJdmVv1SOkYuQWWNePWvDQjSLjX4Z6xeNaubpY4wiYVzEHdyzbj5tlDpcC3 AGjg== X-Received: by 10.60.60.3 with SMTP id d3mr80481594oer.24.1452271142643; Fri, 08 Jan 2016 08:39:02 -0800 (PST) Original-Received: by 10.202.201.78 with HTTP; Fri, 8 Jan 2016 08:38:23 -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::232 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:197837 Archived-At: --089e013a04a89330f20528d5393d Content-Type: text/plain; charset=UTF-8 I personally haven't come across a file whose name end in ":NUM". So I do not have anything against the initial patch. But as other suggested, it's probably not a good idea. > (new) emacsclient + filepath:LINENUM:COL But this idea is not bad IF "emacsclient + filepath" works the same as "emacsclient filepath". Then I can simply set my e2 alias to do "emacsclient -a '' + \!*" and then stuff like below will work rightaway: - e2 FILE & - e2 FILE:LINENUM & - e2 FILE:LINENUM:COLNUM & --089e013a04a89330f20528d5393d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I personally haven't come a= cross a file whose name end in ":NUM". So I do not have anything = against the initial patch. But as other suggested, it's probably not a = good idea.

>=C2=A0(new)=C2=A0 =C2=A0 =C2=A0 e= macsclient=C2=A0 +=C2=A0 filepath:LINENUM:COL

But this idea is not bad IF "emacsclient + fi= lepath" works the same as "emacsclient filepath".
Then I can simply set my e2 alias t= o do "emacsclient -a '' + \!*" and then stuff like below = will work rightaway:

=
- e2 FILE &
- e2 FILE:LINENUM &
- e2 FILE:LINENUM:COLNUM &


=
--089e013a04a89330f20528d5393d--