Improve prefix handling for dash.el

* lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload):
Don't drop dash's "-<letter>" prefixes.
This commit is contained in:
Stefan Monnier 2017-04-21 12:14:59 -04:00
parent 89898e43c7
commit a3b8618d79

View file

@ -598,7 +598,8 @@ Don't try to split prefixes that are already longer than that.")
(lambda (x)
(let ((prefix (car x)))
(if (or (> (length prefix) 2) ;Long enough!
(string-match ".[[:punct:]]\\'" prefix))
(and (eq (length prefix) 2)
(string-match "[[:punct:]]" prefix)))
prefix
;; Some packages really don't follow the rules.
;; Drop the most egregious cases such as the