aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2017-04-04 14:06:25 -0700
committerPaul Eggert2017-04-04 14:07:54 -0700
commit82b9efc869dddcbd5677867b84b20ae155b5b9da (patch)
treec570068c6e5801726a2ea05474a3779bf5cd4fd6 /etc
parent12317ff4fb53f889a69a858a629df6beffacd051 (diff)
downloademacs-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/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index fc076569862..8b17f1648bf 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
844functions 'copy-record', 'make-record', 'record', and 'recordp'.
845Records are now used internally to represent cl-defstruct and defclass
846instances, 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'
844to decide which buffers to ask about, if the PRED argument is nil. 850to decide which buffers to ask about, if the PRED argument is nil.
845The default value of 'save-some-buffers-default-predicate' is nil, 851The default value of 'save-some-buffers-default-predicate' is nil,