Re: [cedet-semantic] semantic-symref question
Brought to you by:
zappo
From: Eric L. <er...@si...> - 2019-11-25 16:07:14
|
On 11/25/19 10:40 AM, Dmitry Gutov wrote: > On 25.11.2019 17:32, Eric Ludlam wrote: > >> They already are minor modes. You have to turn them on, and they >> happen to depend on CEDET. > > I meant to make them not depend on CEDET, and move into core Emacs, for > instance. CEDET could still configure resulting modes (when installed) > via hooks. > Several are all in core Emacs already. Not sure how they could not depend on CEDET. They are all about using the data it provides. This is my setup with nothing extra installed: (require 'semantic) (add-to-list 'semantic-new-buffer-setup-functions '(emacs-lisp-mode . semantic-default-elisp-setup) t) ;; Enable Semantic (semantic-mode 1) (global-semantic-stickyfunc-mode 1) (global-semantic-idle-summary-mode 1) (global-semantic-highlight-func-mode 1) (global-semantic-decoration-mode 1) (global-semantic-show-unmatched-syntax-mode 0) ;;(global-semantic-highlight-edits-mode 1) >> The bookmark feature takes a different angle on it, being more about >> remembering where semantically you are, vs some exact line. > > That's interesting, but a complex topic. I'm generally dissatisfied with > different navigation tools offered by Emacs, especially the basics like > mark rings. Xref marker ring is better, but also limited in terms of modes of navigation. You could try the one that comes with semantic to see what you think. If you use the above, also add this: (global-semantic-mru-bookmark-mode 1) This is stealthy. It tracks where you edit code. Then use C-xB (capital B) and scroll through places you've been by name of function and select a place to go. Eric |