Define docstring element for more forms in scheme-mode
* lisp/progmodes/scheme.el: Define docstring element for more forms. (Bug#33117)
This commit is contained in:
parent
6c0caf65af
commit
f01213bc20
1 changed files with 6 additions and 0 deletions
|
|
@ -388,12 +388,18 @@ See `run-hooks'."
|
|||
st))
|
||||
|
||||
(put 'lambda 'scheme-doc-string-elt 2)
|
||||
(put 'lambda* 'scheme-doc-string-elt 2)
|
||||
;; Docstring's pos in a `define' depends on whether it's a var or fun def.
|
||||
(put 'define 'scheme-doc-string-elt
|
||||
(lambda ()
|
||||
;; The function is called with point right after "define".
|
||||
(forward-comment (point-max))
|
||||
(if (eq (char-after) ?\() 2 0)))
|
||||
(put 'define* 'scheme-doc-string-elt 2)
|
||||
(put 'case-lambda 'scheme-doc-string-elt 1)
|
||||
(put 'case-lambda* 'scheme-doc-string-elt 1)
|
||||
(put 'define-syntax-rule 'scheme-doc-string-elt 2)
|
||||
(put 'syntax-rules 'scheme-doc-string-elt 2)
|
||||
|
||||
(defun scheme-syntax-propertize (beg end)
|
||||
(goto-char beg)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue