GNU bug report logs -
#32504
[PATCH] syntax-is-{comment|string}-p
Previous Next
Reported by: Alex Branham <alex.branham <at> gmail.com>
Date: Wed, 22 Aug 2018 20:20:02 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> I think it would make sense to provide symbolic names for all the
> elements returned by syntax-ppss, maybe like this:
That makes sense to me.
> (cl-defstruct (syntax-state (:constructor nil)
> (:type list))
> depth list-start sexp-end
> string-start comment quoted
> min-depth comment-style comment-or-string-start
> open-parens syntax-sequence)
I'm not a big fan of the docstrings generated by this, is there a way to
change them to be more helpful? For example, syntax-state-comment looks
like this:
syntax-state-comment is a Lisp function.
(syntax-state-comment CL-X)
This function has a compiler macro ‘syntax-state-comment--cmacro’.
Access slot "comment" of ‘(syntax-state (:constructor nil) (:type list))’ struct CL-X.
But it would be a lot better (in my eyes, anyway) if it looked something
like this, had the -p suffix, and made CL-X default to point:
syntax-state-comment-p is a Lisp function.
(syntax-state-comment-p &optional CL-X)
This function has a compiler macro ‘syntax-state-comment-p--cmacro’.
Return non-nil if the syntax of CL-X is a comment. CL-X defaults to point.
This bug report was last modified 5 years and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.