]> code.delx.au - gnu-emacs/commit
Make autoloads populate a new definition-prefixes table
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 May 2016 02:58:18 +0000 (22:58 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 26 May 2016 02:58:18 +0000 (22:58 -0400)
commite971ce6de27f982720ef312637e1d40da80e8d1f
tree6ddb289c64ff223328de649b4411c7398bb4bc72
parent1ee91bf89176251f6e399c8436dca0248cdd6f6b
Make autoloads populate a new definition-prefixes table

* lisp/subr.el (definition-prefixes): New hash table.
(register-definition-prefixes): New function.

* lisp/emacs-lisp/autoload.el (autoload-compute-prefixes): New var.
(autoload--split-prefixes-1, autoload--split-prefixes)
(autoload--make-defs-autoload): New functions.
(autoload-defs-autoload-max-size, autoload-popular-prefixes): New vars.
(autoload-generate-file-autoloads): Obey autoload-compute-prefixes.
(update-directory-autoloads): Don't touch loaddefs.el if the set of
autoloads hasn't changed (i.e. if only the timestamp would change).

* lisp/loadup.el: Purify definition-prefixes.

* lisp/w32-fns.el: Keep name space clean.
(w32-set-default-process-coding-system): Rename from
set-default-process-coding-system.
(w32-set-system-coding-system): Rename from set-w32-system-coding-system.
lisp/emacs-lisp/autoload.el
lisp/loadup.el
lisp/subr.el
lisp/w32-fns.el