Ohh, I did not know about that definition of EDITOR, I thought it could have 
options. 

Thank you, the bash script in better idea.

5 mai 2024, 19:23 de [email protected]:

> Thank you. I understand.
> I tried it on original cscope, same result.
>
> Looking at some online manuals, EDITOR is described as follows:
>  cscope: EDITOR Preferred editor, which defaults to vi.
>  csh:    EDITOR  The pathname to a default editor.
> This does not appear to include options.
>
> Your suggestion is very useful, but I think it falls outside
> this definition (or convention). So even if the feature is
> valid for gtags-cscope, it may not be valid for other tools.
>
> Instead, how about the following method?
>
> [custom-emacsclient]
> +------------------------------
> |#!/bin/sh
> |emacsclient -n $@
> +------------------------------
>
> $ EDITOR=custom-emacsclient
> $ gtags-cscope
>
> The advantage of this method is that it follows the definition
> (or convention) of EDITOR, so it can be used with any tool.
> What do you think?
>
> Regards,
> Shigio
>
> On Mon, May 6, 2024 at 1:06 AM <[email protected]> wrote:
>
>>
>> Yeah, Sure thing.
>>
>> Modify EDITOR (or CSCOPE_EDITOR) to any editor plus flags and/or arguments. 
>> E.g. EDITOR="emacsclient -n"
>> Run gtags-cscope.
>> Search any symbol or definition and try to edit it. E.g. I used the global 
>> source code, just search main and then edit the first option (pressing enter 
>> in gtags-cscope).
>> gtags-cscope should complain that "emacsclient -n" cannot be executed.
>>
>>
>> May 5, 2024, 09:08 by [email protected]:
>>
>> > Hello,
>> > Could you please explain the specific steps to reproduce the bug?
>> >
>> > Regards,
>> > Shigio
>> > --
>> > Shigio YAMAGUCHI <[email protected]>
>> > PGP fingerprint:
>> > 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
>> >
>>
>
>
> -- 
> Shigio YAMAGUCHI <[email protected]>
> PGP fingerprint:
> 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
>


Reply via email to