On 2024-05-05, 18:01 +0700, Max Nikulin wrote: > I would consider explicit mention that it is related to Emacs Lisp and > perhaps that the origin of its name is the ~shortdoc-display-group~ user > command. might be a better link. > > This line is rather long though I do not have a link where formatting > conventions are documented. I expanded the description on `org-manual.org' and 'ORG-NEWS'. >> +;;;; "shortdoc" link type >> +(when (version< "27" emacs-version) > > Is it correct? > > 2a7488d42d8 2020-10-11 05:51:16 +0200 Lars Ingebrigtsen: Add support for > displaying short documentation for function groups > > git tag --contains 2a7488d42d8 > emacs-28.0.90 Fixed. > I think, it is enough to use [^:] since next group is started from "::". > You may use use non-capturing group \\(?:::# ...\\) (requires update of > next index below) unless you are going add search code back. I am unsure > concerning your intentions. You dropped search code, but "#" after "::" > is still optional. Thanks. I updated the regexp. I had dropped the search code because I wasn't considering the search option properly. If I understand correctly, both "::" and "::#" should match a function OR a search string? (e.g.: `shortdoc:text-properties::#pos-property' will also search for "pos-property" in the shortdoc buffer). This is the current behavior in the attached patch. > I do not have strong opinion what is better here: `user-error' (used in > earlier revisions) or `error'. However I do not see the point of > capturing original error and signalling another one if it is not > `user-error'. Agreed. I replaced it with `user-error'.