[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
smime.p7s
Description: S/MIME Cryptographic Signature
- Re: [PATCH] add emacsclient support to open with file:linum syntax, (continued)
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Kaushal Modi, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Kaushal Modi, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Eli Zaretskii, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Eli Zaretskii, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, John Wiegley, 2016/01/12
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/12
- Re: [PATCH] add emacsclient support to open with file:linum syntax, John Wiegley, 2016/01/12
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/12
- Re: [PATCH] add emacsclient support to open with file:linum syntax,
David Caldwell <=
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Eli Zaretskii, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, David Caldwell, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/08
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/09
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Yuri Khan, 2016/01/10
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/10
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/12
- Re: [PATCH] add emacsclient support to open with file:linum syntax, Jorge Alberto Garcia, 2016/01/08