summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-print.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-05-03 16:53:53 +0300
committerEli Zaretskii <eliz@gnu.org>2020-05-03 16:53:53 +0300
commitcb1e73d1bc964f61626955e950e660602f2014f5 (patch)
tree0c2f6be31ee2d17754c996c9973d529d22ff1297 /lisp/emacs-lisp/cl-print.el
parent63268253d21c57d991cba3f3b083d74f154a26fe (diff)
downloademacs-cb1e73d1bc964f61626955e950e660602f2014f5.tar.gz
emacs-cb1e73d1bc964f61626955e950e660602f2014f5.tar.bz2
emacs-cb1e73d1bc964f61626955e950e660602f2014f5.zip
Improve accuracy of apropos commands that search doc strings
It is conceptually wrong for apropos commands that search doc strings to look for matches of several words only on the same line, because division of doc strings between lines is ephemeral. * lisp/apropos.el (apropos-parse-pattern): Accept an optional argument MULTILINE-P, and if that is non-nil, produce regexps that match words in the list even if they are separated by line boundaries. (apropos-value, apropos-local-value, apropos-documentation): Use the new optional argument in apropos commands that search multiline text, such as doc strings. * src/search.c (Fposix_looking_at, Fposix_string_match) (Fposix_search_backward, Fposix_search_forward): Make sure Posix appears in the doc strings near REGEXP, for better matches.
Diffstat (limited to 'lisp/emacs-lisp/cl-print.el')
0 files changed, 0 insertions, 0 deletions