unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33117: master 0e833a1d5f: Improve scheme-imenu-generic-expression
       [not found] ` <20220123131329.F365AC0DA30@vcs2.savannah.gnu.org>
@ 2022-01-23 14:31   ` Stefan Kangas
  2022-01-24  9:10     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Kangas @ 2022-01-23 14:31 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 33117

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#33117: master 0e833a1d5f: Improve scheme-imenu-generic-expression
  2022-01-23 14:31   ` bug#33117: master 0e833a1d5f: Improve scheme-imenu-generic-expression Stefan Kangas
@ 2022-01-24  9:10     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-24  9:10 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 33117

Stefan Kangas <stefankangas@gmail.com> writes:

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

I'm not quite sure I understand, but:

> 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.

Please do go ahead and make any improvements here you want to.  😀

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-24  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <164294360851.10368.3515501518662423030@vcs2.savannah.gnu.org>
     [not found] ` <20220123131329.F365AC0DA30@vcs2.savannah.gnu.org>
2022-01-23 14:31   ` bug#33117: master 0e833a1d5f: Improve scheme-imenu-generic-expression Stefan Kangas
2022-01-24  9:10     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).