It seems to me that keymap.c need to change 'rescan' to 'csfuncalled' in
'static PF cCsc[] = { ... }'.
The reason why I have an impression is that doesn't match between cscope.c,
keymap.c and mg.1.
As you can see as below, cscope.c's comment contains 'C-c s l' keybind.
$ cd /src/usr.bin/mg
$ grep -A 3 -B 5 csfuncalled cscope.c
/*
* Find functions called by this function. Bound to C-c s l
*/
/* ARGSUSED */
int
csfuncalled(int f, int n)
{
return (do_cscope(CSCALLEDFUNCS));
}
$
But, keymap.c and mg.1 do not have 'C-c s l' keybind.
$ grep -A 19 'static PF cCsc' keymap.c
static PF cCsc[] = {
cscallerfuncs, /* c */
csdefinition, /* d */
csegrep, /* e */
csfindfile, /* f */
rescan, /* g */
rescan, /* h */
csfindinc, /* i */
rescan, /* j */
rescan, /* k */
rescan, /* l */
rescan, /* m */
csnextmatch, /* n */
rescan, /* o */
csprevmatch, /* p */
rescan, /* q */
rescan, /* r */
cssymbol, /* s */
csfindtext /* t */
};
$ man mg
(snip)
DEFAULT KEY BINDINGS
Normal editing commands are very similar to GNU Emacs. In the following
examples, C-x means Control-x, and M-x means Meta-x, where the Meta key
may be either a special key on the keyboard or the ALT key; otherwise ESC
followed by the key X works as well.
C-SPC set-mark-command
C-a beginning-of-line
C-b backward-char
C-c s c cscope-find-functions-calling-this-function
C-c s d cscope-find-global-definition
C-c s e cscope-find-egrep-pattern
C-c s f cscope-find-this-file
C-c s i cscope-find-files-including-file
C-c s n cscope-next-symbol
C-c s p cscope-prev-symbol
C-c s s cscope-find-this-symbol
C-c s t cscope-find-this-text-string
C-d delete-char
(snip)
$
OK?
Best regards,
Hajime Edakawa
Index: keymap.c
===================================================================
RCS file: /cvs/src/usr.bin/mg/keymap.c,v
retrieving revision 1.58
diff -u -p -r1.58 keymap.c
--- keymap.c 29 Dec 2015 19:44:32 -0000 1.58
+++ keymap.c 7 Jun 2018 11:31:21 -0000
@@ -55,7 +55,7 @@ static PF cCsc[] = {
csfindinc, /* i */
rescan, /* j */
rescan, /* k */
- rescan, /* l */
+ csfuncalled, /* l */
rescan, /* m */
csnextmatch, /* n */
rescan, /* o */
Index: mg.1
===================================================================
RCS file: /cvs/src/usr.bin/mg/mg.1,v
retrieving revision 1.106
diff -u -p -r1.106 mg.1
--- mg.1 11 Dec 2017 07:27:07 -0000 1.106
+++ mg.1 7 Jun 2018 11:31:06 -0000
@@ -134,6 +134,8 @@ cscope-find-egrep-pattern
cscope-find-this-file
.It C-c s i
cscope-find-files-including-file
+.It C-c s l
+cscope-find-called-functions
.It C-c s n
cscope-next-symbol
.It C-c s p