-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mode symbol lookup using info-lookup-symbol and help-goto-info.
The mode was not previously providing a mapping between mode symbols and their location in the Info manual. This change adds this mapping allowing info-lookup-symbol and help-goto-info to work with the symbols documented in the manual. Additionally, the formatting of user options in the manual has been changed to be consistent with how they are documented in the Emacs manual.
- Loading branch information
Showing
3 changed files
with
67 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
;; Author: Troy Brown <[email protected]> | ||
;; Created: February 2023 | ||
;; Version: 0.5.3 | ||
;; Version: 0.5.4 | ||
;; Keywords: gpr gnat ada languages tree-sitter | ||
;; URL: https://github.com/brownts/gpr-ts-mode | ||
;; Package-Requires: ((emacs "29.1")) | ||
|
@@ -34,6 +34,7 @@ | |
|
||
;;; Code: | ||
|
||
(require 'info-look) | ||
(require 'lisp-mnt) | ||
(require 'treesit) | ||
(eval-when-compile (require 'rx)) | ||
|
@@ -621,6 +622,12 @@ Return nil if there is no name or if NODE is not a defun node." | |
`(,(rx (or ".gpr" ".cgpr") eos) . gpr-ts-mode)) | ||
(add-to-list 'major-mode-remap-alist '(gpr-mode . gpr-ts-mode))) | ||
|
||
(info-lookup-add-help | ||
:topic 'symbol | ||
:mode '(emacs-lisp-mode . "gpr") | ||
:regexp "\\bgpr-ts-[^][()`'‘’,\" \t\n]+" | ||
:doc-spec '(("(gpr-ts-mode)Variable Index" nil "^ -+ .*: " "\\( \\|$\\)"))) | ||
|
||
(provide 'gpr-ts-mode) | ||
|
||
;;; gpr-ts-mode.el ends here |