bug-global
[Top][All Lists]
Advanced

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

Re: Editor (execute any command) options processing


From: Shigio YAMAGUCHI
Subject: Re: Editor (execute any command) options processing
Date: Mon, 6 May 2024 10:22:47 +0900

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 <masterenoc@tutamail.com> 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 shigio@gnu.org:
>
> > Hello,
> > Could you please explain the specific steps to reproduce the bug?
> >
> > Regards,
> > Shigio
> > --
> > Shigio YAMAGUCHI <shigio@gnu.org>
> > PGP fingerprint:
> > 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
> >
>


-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

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