1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00
emacs/test/lisp
Mattias Engdegård 462d8ba813 Add a proper type for obarrays
The new opaque type replaces the previous use of vectors for obarrays.
`obarray-make` now returns objects of this type.  Functions that take
obarrays continue to accept vectors for compatibility, now just using
their first slot to store an actual obarray object.

obarray-size and obarray-default-size now obsolete.

* lisp/obarray.el (obarray-default-size, obarray-size):
Declare obsolete.
(obarray-make, obarrayp, obarray-clear): Remove from here.
* src/fns.c (reduce_emacs_uint_to_hash_hash): Remove from here.
* src/lisp.h (struct Lisp_Obarray, OBARRAYP, XOBARRAY, CHECK_OBARRAY)
(make_lisp_obarray, obarray_size, check_obarray)
(obarray_iter_t, make_obarray_iter, obarray_iter_at_end)
(obarray_iter_step, obarray_iter_symbol, DOOBARRAY, knuth_hash): New.
(reduce_emacs_uint_to_hash_hash): Moved here.
* src/lread.c (check_obarray): Renamed and reworked as...
(checked_obarray_slow): ...this.
(intern_sym, Funintern, oblookup, map_obarray)
(Finternal__obarray_buckets): Adapt to new type.
(obarray_index, allocate_obarray, make_obarray, grow_obarray)
(obarray_default_bits, Fobarray_make, Fobarrayp, Fobarray_clear): New.
* etc/emacs_lldb.py (Lisp_Object):
* lisp/emacs-lisp/cl-macs.el (`(,type . ,pred)):
* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types):
* lisp/emacs-lisp/comp-common.el (comp-known-type-specifiers):
* lisp/emacs-lisp/comp.el (comp-known-predicates):
* src/alloc.c (cleanup_vector, process_mark_stack):
* src/data.c (Ftype_of, syms_of_data):
* src/minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
* src/pdumper.c (dump_obarray_buckets, dump_obarray, dump_vectorlike):
* src/print.c (print_vectorlike_unreadable):
* test/lisp/abbrev-tests.el (abbrev-make-abbrev-table-test):
* test/lisp/obarray-tests.el (obarrayp-test)
(obarrayp-unchecked-content-test, obarray-make-default-test)
(obarray-make-with-size-test):
Adapt to new type.
2024-02-23 13:02:27 +01:00
..
align-resources Support lua-ts-mode in align.el 2023-10-21 12:25:25 +02:00
auth-source-resources
bookmark-resources
calc Fix 'calc-math-read-preprocess-string' test (bug#66944). 2024-01-29 14:50:45 +02:00
calendar Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
cedet Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
custom-resources
dired-resources/insert-directory
emacs-lisp (cl--generic-describe): Fix regression introduced by fix to bug#54628 2024-02-11 18:13:27 -05:00
emulation ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-resources
erc Use modern fallback for channel name detection in ERC 2024-02-16 19:59:38 -08:00
eshell ; Compute the list of symbols for 'eshell-eval-using-options' once 2024-02-13 12:27:38 -08:00
faces-resources ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
files-resources
gnus Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
hfy-cmap-resources
image Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
international Use defvar for variables that are not constant 2024-02-07 11:13:56 -05:00
loadhist-resources ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mail ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mh-e Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
minibuffer-resources
net Add Tramp methods dockercp and podmancp 2024-02-20 12:52:40 +01:00
nxml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
obsolete ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pcmpl-linux-resources
play ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
progmodes Set tty mode to raw when setting up Inferior Python 2024-02-21 15:23:59 +01:00
saveplace-resources
so-long-tests ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
term ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
textmodes Use forward-line instead of next-line in noninteractive test 2024-01-14 14:17:41 +01:00
time-resources
url Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
use-package Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
vc Don't open a new line for long defuns being inserted at column 0 2024-01-29 15:45:47 +08:00
xdg-resources
abbrev-tests.el Add a proper type for obarrays 2024-02-23 13:02:27 +01:00
align-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
allout-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
allout-widgets-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ansi-color-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ansi-osc-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
apropos-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
arc-mode-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
auth-source-pass-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
auth-source-tests.el Use slot names rather than their :initargs 2024-02-07 11:11:38 -05:00
autoinsert-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
autorevert-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
battery-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
bookmark-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
buff-menu-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
button-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
calculator-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
char-fold-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
color-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
comint-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
completion-preview-tests.el ; Fix mid-symbol updating/cycling completion preview 2024-02-21 17:47:12 +01:00
completion-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
cus-edit-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
custom-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dabbrev-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
delim-col-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
descr-text-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
desktop-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dired-aux-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dired-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dired-x-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
dnd-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
dom-tests.el ; Use HTML entities for reserved characters in 'dom-print' 2024-01-20 11:40:22 +02:00
edmacro-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
electric-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
elide-head-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
env-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-config-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
epg-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
faces-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ffap-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
filenotify-tests.el (file-notify--test-wait-event): Rename from file-notify--test-read-event 2024-02-07 11:20:46 -05:00
files-tests.el Support shebang lines with amended environment 2024-02-17 10:31:47 +02:00
files-x-tests.el Handle local default directory in connection-local-value 2024-01-07 12:39:47 +01:00
find-cmd-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
font-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
format-spec-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
help-fns-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
help-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
help-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
hfy-cmap-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hi-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
hl-line-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
htmlfontify-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ibuffer-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ido-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-file-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
image-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
imenu-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
info-tests.el In Info-url-alist, add .html extension to %e format-sequence 2024-02-11 09:25:19 +02:00
info-xref-tests.el Fix info-xref-tests 2024-01-13 20:38:34 +02:00
isearch-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
jit-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
json-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
jsonrpc-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
kmacro-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
loadhist-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
lpr-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ls-lisp-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
man-tests.el Fix man-tests.el 2024-01-11 17:27:04 +02:00
md4-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
minibuffer-tests.el * test/lisp/minibuffer-tests.el (completion-test--pcm-bug38458): New test 2024-02-07 11:15:59 -05:00
misc-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
mouse-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mwheel-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
newcomment-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
obarray-tests.el Add a proper type for obarrays 2024-02-23 13:02:27 +01:00
paren-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
password-cache-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pcmpl-linux-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
pcomplete-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
proced-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
ps-print-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
register-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
repeat-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
replace-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rot13-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
saveplace-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
scroll-lock-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
server-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ses-tests.el Fix recent ses-tests mistakes (bug#5852) 2024-01-14 14:17:41 +01:00
shadowfile-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
shell-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
simple-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
sort-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
soundex-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
startup-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
subr-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
tab-bar-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tabify-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tar-mode-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
tempo-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
term-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
thingatpt-tests.el ; Fix 'thing-at-point' edge case involving overlapping matches 2024-02-10 17:39:26 +01:00
thread-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
time-stamp-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
time-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
timezone-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
uniquify-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
version-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
wdired-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
whitespace-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
wid-edit-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
x-dnd-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xdg-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xml-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
xt-mouse-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
yank-media-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00