From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] add emacsclient support to open with file:linum syntax Date: Fri, 08 Jan 2016 11:03:08 +0200 Message-ID: <838u40qw8j.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452243815 15471 80.91.229.3 (8 Jan 2016 09:03:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2016 09:03:35 +0000 (UTC) Cc: jorge.garcia.gonzalez@gmail.com, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 08 10:03:34 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 1aHSxJ-0003cq-7j for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 10:03:33 +0100 Original-Received: from localhost ([::1]:34587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHSxH-0005FR-6Y for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 04:03:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHSx1-0005FK-DL for emacs-devel@gnu.org; Fri, 08 Jan 2016 04:03:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHSwy-0004YZ-63 for emacs-devel@gnu.org; Fri, 08 Jan 2016 04:03:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHSwy-0004YV-2Q; Fri, 08 Jan 2016 04:03:12 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1146 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aHSww-0002SL-Rw; Fri, 08 Jan 2016 04:03:11 -0500 In-reply-to: (message from Yuri Khan on Fri, 8 Jan 2016 13:42:04 +0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:197807 Archived-At: > From: Yuri Khan > Date: Fri, 8 Jan 2016 13:42:04 +0600 > Cc: Emacs developers > > On Fri, Jan 8, 2016 at 4:35 AM, Jorge Alberto Garcia > wrote: > > > With this you can do this from cmdline: > > $ emacsclient -q -c lib-src/emacsclient.c:1593 > > What if you want to edit a file whose name is literally “emacsclient.c:1593”? > > What if a Windows user wants to edit an NTFS stream named 1593 in file > emacsclient.c? Exactly the questions that went through my head when I read the patch, thanks. I think such a feature, if deemed useful, should be activated by a new command-line option. Otherwise, I don't see how can emacsclient be sure the bunch of digits at the end of a file name is a line number.