aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2021-12-15 04:05:11 +0300
committerDmitry Gutov2021-12-15 04:05:11 +0300
commita4fcbf46a7bb71c39b22e4f6a865939ee8721d83 (patch)
tree3e84c0811602dec14b5ac7232cd1852f48033a26
parentf88c1d222f17d3483bf6f387dc41be4366a047ab (diff)
downloademacs-a4fcbf46a7bb71c39b22e4f6a865939ee8721d83.tar.gz
emacs-a4fcbf46a7bb71c39b22e4f6a865939ee8721d83.zip
; etc/NEWS: Move the note about Xref EIEIO change to the proper section
-rw-r--r--etc/NEWS28
1 files changed, 14 insertions, 14 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d2565e50e1e..e7d72159023 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1011,20 +1011,6 @@ file:
1011 1011
1012 (add-hook 'foo-mode-hook (lambda () (auto-fill-mode -1)) 1012 (add-hook 'foo-mode-hook (lambda () (auto-fill-mode -1))
1013 1013
1014** Xref migrated from EIEIO to cl-defstruct for its core objects.
1015This means that 'oref' and 'with-slots' no longer works on them, and
1016'make-instance' can no longer be used to create those instances (which
1017wasn't recommended anyway). Packages should restrict themselves to
1018using functions like 'xref-make', 'xref-make-match',
1019'xref-make-*-location', as well as accessor functions
1020'xref-item-summary' and 'xref-item-location'.
1021
1022Among the benefits are better performance (noticeable when there are a
1023lot of matches) and improved flexibility: 'xref-match-item' instances
1024do not require that 'location' inherits from 'xref-location' anymore
1025(that class was removed), so packages can create new location types to
1026use with "match items" without adding EIEIO as a dependency.
1027
1028 1014
1029* Editing Changes in Emacs 28.1 1015* Editing Changes in Emacs 28.1
1030 1016
@@ -3724,6 +3710,20 @@ user option has been renamed to 'find-library-source-path', and
3724--- 3710---
3725** The macro 'vc-call' no longer evaluates its second argument twice. 3711** The macro 'vc-call' no longer evaluates its second argument twice.
3726 3712
3713** Xref migrated from EIEIO to cl-defstruct for its core objects.
3714This means that 'oref' and 'with-slots' no longer works on them, and
3715'make-instance' can no longer be used to create those instances (which
3716wasn't recommended anyway). Packages should restrict themselves to
3717using functions like 'xref-make', 'xref-make-match',
3718'xref-make-*-location', as well as accessor functions
3719'xref-item-summary' and 'xref-item-location'.
3720
3721Among the benefits are better performance (noticeable when there are a
3722lot of matches) and improved flexibility: 'xref-match-item' instances
3723do not require that 'location' inherits from 'xref-location' anymore
3724(that class was removed), so packages can create new location types to
3725use with "match items" without adding EIEIO as a dependency.
3726
3727 3727
3728* Lisp Changes in Emacs 28.1 3728* Lisp Changes in Emacs 28.1
3729 3729