bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33117: master 0e833a1d5f: Improve scheme-imenu-generic-expression


From: Stefan Kangas
Subject: bug#33117: master 0e833a1d5f: Improve scheme-imenu-generic-expression
Date: Sun, 23 Jan 2022 14:31:46 +0000

Lars Ingebrigtsen <larsi@gnus.org> writes:

> branch: master
> commit 0e833a1d5f93d3028ef1ea133174636b46bc64f1
> Author: Alex Kost <alezost@gmail.com>
> Commit: Lars Ingebrigtsen <larsi@gnus.org>
>
>     Improve scheme-imenu-generic-expression
>
>     * lisp/progmodes/scheme.el (scheme-imenu-generic-expression):
>     Improve so that we match `define-public' etc (bug#33117).

BTW, I think there were also these additions, commented out below in a
WIP patch of mine wallowing on a local branch:

  @@ -156,6 +197,8 @@ scheme-mode-variables
             nil t (("+-*/.<>=!?$%_&~^:" . "w") (?#. "w 14"))
             beginning-of-defun
             (font-lock-mark-block-function . mark-defun)))
  +  ;; (setq-local font-lock-syntactic-face-function
  +  ;;             'lisp-font-lock-syntactic-face-function)
     (setq-local prettify-symbols-alist lisp-prettify-symbols-alist)
     (setq-local lisp-doc-string-elt-property 'scheme-doc-string-elt))

  @@ -359,6 +402,12 @@ scheme-sexp-comment-syntax-table
          ;; 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 'lambda* '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)

I think I got stuck with the `font-lock-syntactic-face-function' part,
because IIRC, someone (maybe Stefan Monnier? I forget) had removed those
lines in an earlier patch.  And then I got distracted...

But the doc-string parts should be easy enough to add.

I'm not sure if this is something you'd want to look into or not, but I
thought I'd let you know.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]