Re: Editor (execute any command) options processing
masterenoc--- via Bug reports for GNU GLOBAL <[email protected]> Mon, 6 May 2024 06:48:11 +0200 (CEST)
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <[email protected]> |
Ohh, I did not know about that definition of EDITOR, I thought it could hav= e options.=C2=A0 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=3Dcustom-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=E2=80=AFAM <[email protected]> wrote: > >> >> Yeah, Sure thing. >> >> Modify EDITOR (or CSCOPE_EDITOR) to any editor plus flags and/or argumen= ts. E.g. EDITOR=3D"emacsclient -n" >> Run gtags-cscope. >> Search any symbol or definition and try to edit it. E.g. I used the glob= al source code, just search main and then edit the first option (pressing e= nter 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 >> > >> > > > --=20 > Shigio YAMAGUCHI <[email protected]> > PGP fingerprint: > 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB >