diff options
| author | Basil L. Contovounesios | 2020-06-03 17:35:59 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2020-06-06 17:24:00 +0100 |
| commit | 8bcc781bc762b4082cfd678b88938e3d03465d91 (patch) | |
| tree | c633ddabe6c442953e08f60eff889966d5214703 /etc | |
| parent | acd2cb28ef63188bff31fc167ab007a051f99c17 (diff) | |
| download | emacs-8bcc781bc762b4082cfd678b88938e3d03465d91.tar.gz emacs-8bcc781bc762b4082cfd678b88938e3d03465d91.zip | |
Un-deprecate oset and oset-default
For discussion see the following threads:
https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00630.html
https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg00674.html
https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00099.html
* lisp/emacs-lisp/eieio.el (oset, oset-default): Un-deprecate.
* lisp/emacs-lisp/eieio-core.el (eieio-oref): Declare gv-setter here
instead of in lisp/emacs-lisp/eieio.el. Suggested by
Stefan Monnier <monnier@iro.umontreal.ca>.
(eieio-oref-default): Add gv-setter declaration.
* etc/NEWS: Announce these changes.
* doc/misc/eieio.texi (Accessing Slots): Document oref and
oref-default as generalized variables. Consistently document
getters before setters.
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Use
lexical-binding.
(eieio-test-13-init-methods): Simplify.
(eieio-test-33-instance-tracker): Declare IT-list as special.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -112,7 +112,12 @@ setting the variable 'auto-save-visited-mode' buffer-locally to nil. | |||
| 112 | ** New bindings in occur-mode, 'next-error-no-select' bound to 'n' and | 112 | ** New bindings in occur-mode, 'next-error-no-select' bound to 'n' and |
| 113 | 'previous-error-no-select' bound to 'p'. | 113 | 'previous-error-no-select' bound to 'p'. |
| 114 | 114 | ||
| 115 | ** EIEIO: 'oset' and 'oset-default' are declared obsolete. | 115 | ** EIEIO |
| 116 | |||
| 117 | +++ | ||
| 118 | *** The macro 'oref-default' can now be used with 'setf'. | ||
| 119 | It is now defined as a generalized variable that can be used with | ||
| 120 | 'setf' to modify the value stored in a given class slot. | ||
| 116 | 121 | ||
| 117 | ** New minor mode 'cl-font-lock-built-in-mode' for `lisp-mode'. | 122 | ** New minor mode 'cl-font-lock-built-in-mode' for `lisp-mode'. |
| 118 | The mode provides refined highlighting of built-in functions, types, | 123 | The mode provides refined highlighting of built-in functions, types, |