diff options
| author | Paul Eggert | 2017-04-04 14:06:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2017-04-04 14:07:54 -0700 |
| commit | 82b9efc869dddcbd5677867b84b20ae155b5b9da (patch) | |
| tree | c570068c6e5801726a2ea05474a3779bf5cd4fd6 /etc | |
| parent | 12317ff4fb53f889a69a858a629df6beffacd051 (diff) | |
| download | emacs-82b9efc869dddcbd5677867b84b20ae155b5b9da.tar.gz emacs-82b9efc869dddcbd5677867b84b20ae155b5b9da.zip | |
Minor simplifications and doc for records
* doc/lispref/records.texi (Records): Mention size limit.
* etc/NEWS: Mention records.
* src/alloc.c (allocate_pseudovector, allocate_record):
Prefer 'PSEUDOVECTOR_SIZE_MASK' to its definiens.
(allocate_record): Check arg range here, not in callers, as this
simplifies the code. Use allocate_vectorlike instead of
allocate_vector, to avoid duplicate runtime tests.
(Fmake_record, record): Don't mention PSEUDOVECTOR_SIZE_BITS in
the doc string, as it is not visible to the user.
(Fmake_record, record, Fcopy_record):
Prefer make_lisp_ptr to XSETVECTOR.
(record): Broaden memcpy to copy the type, too.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -840,6 +840,12 @@ instead of its first. | |||
| 840 | * Lisp Changes in Emacs 26.1 | 840 | * Lisp Changes in Emacs 26.1 |
| 841 | 841 | ||
| 842 | +++ | 842 | +++ |
| 843 | ** Emacs now supports records for user-defined types, via the new | ||
| 844 | functions 'copy-record', 'make-record', 'record', and 'recordp'. | ||
| 845 | Records are now used internally to represent cl-defstruct and defclass | ||
| 846 | instances, for example. | ||
| 847 | |||
| 848 | +++ | ||
| 843 | ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate' | 849 | ** 'save-some-buffers' now uses 'save-some-buffers-default-predicate' |
| 844 | to decide which buffers to ask about, if the PRED argument is nil. | 850 | to decide which buffers to ask about, if the PRED argument is nil. |
| 845 | The default value of 'save-some-buffers-default-predicate' is nil, | 851 | The default value of 'save-some-buffers-default-predicate' is nil, |