mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Use obarray-make instead of make-vector to create obarrays
This prepares for the introduction of an actual obarray type. * lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-dynamic-map) (semantic-lex-spp-dynamic-map-stack, semantic-lex-make-spp-table): * lisp/cedet/semantic/lex.el (semantic-lex-make-keyword-table) (semantic-lex-make-type-table): * lisp/completion.el (cmpl-prefix-obarray, cmpl-obarray) (clear-all-completions): * lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info): * lisp/emacs-lisp/eldoc.el (eldoc-message-commands) (eldoc-edit-message-commands): * lisp/mail/mail-extr.el (mail-extr-all-top-level-domains): * lisp/mail/rmailkwd.el (rmail-label-obarray): * lisp/net/dns.el (dns-cache): * lisp/net/eww.el (eww-suggested-uris): * lisp/net/imap.el (imap-open, imap-mailbox-select-1) (imap-message-copyuid-1, imap-message-appenduid-1): * lisp/obsolete/pgg.el (pgg-passphrase-cache, pgg-pending-timers): * lisp/play/cookie1.el (cookie-cache): * lisp/progmodes/cc-defs.el (c-lang-constants, c-define-lang-constant): * lisp/progmodes/cc-langs.el (c-keywords-obarray): * lisp/vc/vc-hooks.el (vc-file-prop-obarray): * test/lisp/obarray-tests.el (obarrayp-test): * test/src/minibuf-tests.el (minibuf-tests--strings-to-obarray): Use obarray-make instead of obarray-make.
This commit is contained in:
parent
32843c7b36
commit
aa82fe9931
17 changed files with 30 additions and 29 deletions
|
|
@ -153,13 +153,13 @@ The search priority is:
|
|||
"Return the dynamic macro map for the current buffer."
|
||||
(or semantic-lex-spp-dynamic-macro-symbol-obarray
|
||||
(setq semantic-lex-spp-dynamic-macro-symbol-obarray
|
||||
(make-vector 13 0))))
|
||||
(obarray-make 13))))
|
||||
|
||||
(defsubst semantic-lex-spp-dynamic-map-stack ()
|
||||
"Return the dynamic macro map for the current buffer."
|
||||
(or semantic-lex-spp-dynamic-macro-symbol-obarray-stack
|
||||
(setq semantic-lex-spp-dynamic-macro-symbol-obarray-stack
|
||||
(make-vector 13 0))))
|
||||
(obarray-make 13))))
|
||||
|
||||
(defun semantic-lex-spp-value-valid-p (value)
|
||||
"Return non-nil if VALUE is valid."
|
||||
|
|
@ -260,7 +260,7 @@ NAME is the name of the spp macro symbol to define.
|
|||
REPLACEMENT a string that would be substituted in for NAME."
|
||||
|
||||
;; Create the symbol hash table
|
||||
(let ((semantic-lex-spp-macro-symbol-obarray (make-vector 13 0))
|
||||
(let ((semantic-lex-spp-macro-symbol-obarray (obarray-make 13))
|
||||
spec)
|
||||
;; fill it with stuff
|
||||
(while specs
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ If optional argument PROPSPECS is non-nil, then interpret it, and
|
|||
apply those properties.
|
||||
PROPSPECS must be a list of (NAME PROPERTY VALUE) elements."
|
||||
;; Create the symbol hash table
|
||||
(let ((semantic-flex-keywords-obarray (make-vector 13 0))
|
||||
(let ((semantic-flex-keywords-obarray (obarray-make 13))
|
||||
spec)
|
||||
;; fill it with stuff
|
||||
(while specs
|
||||
|
|
@ -416,7 +416,7 @@ If optional argument PROPSPECS is non-nil, then interpret it, and
|
|||
apply those properties.
|
||||
PROPSPECS must be a list of (TYPE PROPERTY VALUE)."
|
||||
;; Create the symbol hash table
|
||||
(let* ((semantic-lex-types-obarray (make-vector 13 0))
|
||||
(let* ((semantic-lex-types-obarray (obarray-make 13))
|
||||
spec type tokens token alist default)
|
||||
;; fill it with stuff
|
||||
(while specs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue