mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-01 08:17:38 +00:00
004f2493a5
We generally want types to form not just a DAG but a lattice. If objects can be both `keyword` and `symbol-with-pos`, this means there should be a more precise type describing this intersection. If we ever find the need for such a refinement, we could add such a `keyword-with-pos` type, but here I took the simpler route of treating `keyword` not as a proper built-in type but as a second-class type like `natnum`. While fixing this problem, also fix the problem we had where `functionp` was not quite adequate to characterize objects of type `function`, by introducing a new predicate `cl-functionp` for that. * lisp/emacs-lisp/cl-preloaded.el (cl-functionp): New function. (function): Use it. (keyword): Don't declare it as a built-in type. (user-ptrp): Remove redundant declaration. * lisp/emacs-lisp/cl-generic.el (cl--generic--unreachable-types): Delete constant. (cl-generic-generalizers): Remove corresponding test. * lisp/emacs-lisp/cl-macs.el (cl-deftype-satisfies): Add entry for `keyword` type. * lisp/emacs-lisp/comp.el (comp-known-predicates): Fix type for negative result of `characterp`. Remove duplicate `numberp` entry. Fix types for `keywordp` now that `keyword` is not a built-in type any more. * test/src/data-tests.el (data-tests--cl-type-of): Add a few cases. Remove workaround for `function`. |
||
---|---|---|
.. | ||
charsets | ||
e | ||
forms | ||
gnus | ||
images | ||
nxml | ||
org | ||
refcards | ||
schema | ||
srecode | ||
themes | ||
tutorials | ||
AUTHORS | ||
CALC-NEWS | ||
ChangeLog.1 | ||
compilation.txt | ||
COPYING | ||
DEBUG | ||
DEVEL.HUMOR | ||
DISTRIB | ||
edt-user.el | ||
EGLOT-NEWS | ||
emacs_lldb.py | ||
emacs-buffer.gdb | ||
emacs-mail.desktop | ||
emacs.desktop | ||
emacs.icon | ||
emacs.metainfo.xml | ||
emacs.service | ||
emacsclient-mail.desktop | ||
emacsclient.desktop | ||
enriched.txt | ||
ERC-NEWS | ||
ETAGS.EBNF | ||
ETAGS.README | ||
future-bug | ||
gnus-tut.txt | ||
grep.txt | ||
HELLO | ||
HISTORY | ||
JOKES | ||
MACHINES | ||
MH-E-NEWS | ||
NEWS | ||
NEWS.1-17 | ||
NEWS.18 | ||
NEWS.19 | ||
NEWS.20 | ||
NEWS.21 | ||
NEWS.22 | ||
NEWS.23 | ||
NEWS.24 | ||
NEWS.25 | ||
NEWS.26 | ||
NEWS.27 | ||
NEWS.28 | ||
NEWS.29 | ||
NEXTSTEP | ||
NXML-NEWS | ||
ORG-NEWS | ||
org.gnu.emacs.defaults.gschema.xml | ||
package-keyring.gpg | ||
PROBLEMS | ||
ps-prin0.ps | ||
ps-prin1.ps | ||
publicsuffix.txt | ||
README | ||
rgb.txt | ||
ses-example.ses | ||
spook.lines | ||
TERMS | ||
TODO | ||
w32-feature.el | ||
yow.lines |
This directory contains the architecture-independent files used by or with Emacs. This includes some text files of documentation for GNU Emacs or of interest to Emacs users, and the file of dumped docstrings for Emacs functions and variables. COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES File: emacs.icon Author: Sun Microsystems, Inc Copyright (C) 1999, 2001-2024 Free Software Foundation, Inc. License: GNU General Public License version 3 or later (see COPYING)