From 88b2d0370a3da36ef4a9f64aade67d3735569ec5 Mon Sep 17 00:00:00 2001 From: Clement Calmels Date: Wed, 10 Mar 2021 19:20:39 +0100 Subject: [PATCH] rscope: get symbol-assignments back --- rscope.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rscope.el b/rscope.el index efc985e..01eb1c6 100644 --- a/rscope.el +++ b/rscope.el @@ -221,6 +221,7 @@ The first hook returning a non nil value wins.") (define-prefix-command 'rscope:map) ;; The following line corresponds to be beginning of the "Cscope" menu. (define-key 'rscope:map "s" 'rscope-find-this-symbol) + (define-key 'rscope:map "=" 'rscope-all-symbol-assignments) (define-key 'rscope:map "d" 'rscope-find-global-definition) (define-key 'rscope:map "g" 'rscope-find-global-definition) (define-key 'rscope:map "c" 'rscope-find-functions-calling-this-function) @@ -320,8 +321,8 @@ The first hook returning a non nil value wins.") (defun rscope-all-symbol-assignments (symbol) "Find all the assignments of the symbol" (interactive (rscope-interactive - (list (cons "this don't work due to the bug of cscope, Find all assignments of symbol: " (current-word))))) - (rscope-handle-query (concat "10" symbol "\n"))) + (list (cons "Find all assignments of symbol: " (current-word))))) + (rscope-handle-query (concat "9" symbol "\n"))) (defun rscope-find-calling-hierarchy (symbol depth) "Find all functions calling a function, then functions calling these ones, etc ..."