emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] add emacsclient support to open with file:linum syntax


From: David Caldwell
Subject: Re: [PATCH] add emacsclient support to open with file:linum syntax
Date: Fri, 8 Jan 2016 11:19:26 -0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Thunderbird/43.0

On 1/8/16 8:54 AM, Kaushal Modi wrote:
>> Eli,  do you think this would be acceptable ?
> 
> Actually, after I replied, it made me think..
> 
> Instead of a mysterious lonely "+" argument, would it make more sense to
> a descriptive argument like "--files-with-linenum-colnum"?
> 
> Eli and the emacs-dev list, feel free to suggest if this is a good idea
> or if a different argument name is more appropriate.

Why not instead of adding the new option, rearrange the logic so that it
only tries to parse the ":linenum" part if the file doesn't exist?

ie:
emacsclient somefile:1234

tries to open "somefile:1234", then if it fails, looks for the :1234 and
tries to open "somefile" and jump to line 1234. That shouldn't surprise
anyone with weirdly named files and you don't need to learn any new
command line options.

-David



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]