diff options
| author | Michael Heerdegen | 2018-02-21 11:15:37 +0100 |
|---|---|---|
| committer | Michael Heerdegen | 2018-03-06 15:47:05 +0100 |
| commit | af4697faa1f5b643f63a9ea61aa205a4c1432e23 (patch) | |
| tree | 3b0e3e687d9bbcce246fc938fbd80bb398061ed9 /etc | |
| parent | ec79bdc53fd75ea48c1451b0d83b0b41a0345bc6 (diff) | |
| download | emacs-af4697faa1f5b643f63a9ea61aa205a4c1432e23.tar.gz emacs-af4697faa1f5b643f63a9ea61aa205a4c1432e23.zip | |
Define if-let* and derivatives as aliases for if-let etc
This commit reverts declaring `if-let' and `when-let' obsolete in
favor of the new `if-let*' and `when-let*' versions because of the
compiler warning mess (Bug#30039). Instead we make foo-let* aliases
for foo-let. The old single-tuple variable spec case is still
supported for backward compatibility.
* lisp/emacs-lisp/subr-x.el (if-let, when-let): Don't declare
obsolete. Tweak edebug specs.
(and-let): Renamed from `and-let*' for compatibility with the names
`if-let' and `when-let'.
(if-let*, when-let*, and-let*): Define as aliases for `if-let',
`when-let' and `and-let'.
* test/lisp/emacs-lisp/subr-x-tests.el (if-let-single-tuple-case-test)
(when-let-single-tuple-case-test): New tests for the single-binding
tuple case.
In the whole file, prefer the names without "*".
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -1301,12 +1301,10 @@ current buffer or the self-insertion takes place within a comment. | |||
| 1301 | ** The alist 'ucs-names' is now a hash table. | 1301 | ** The alist 'ucs-names' is now a hash table. |
| 1302 | 1302 | ||
| 1303 | --- | 1303 | --- |
| 1304 | ** 'if-let' and 'when-let' are subsumed by 'if-let*' and 'when-let*'. | 1304 | ** The new macro 'and-let' is an implementation of the Scheme SRFI-2 |
| 1305 | The incumbent 'if-let' and 'when-let' are now marked obsolete. | 1305 | syntax. 'if-let' and 'when-let' now also accept the same binding |
| 1306 | 'if-let*' and 'when-let*' do not accept the single tuple special case. | 1306 | syntax as 'and-let'. 'if-let*', 'when-let*' and 'and-let*' are new |
| 1307 | New macro 'and-let*' is an implementation of the Scheme SRFI-2 syntax | 1307 | aliases for 'if-let', 'when-let' and 'and-let'. |
| 1308 | of the same name. 'if-let*' and 'when-let*' now accept the same | ||
| 1309 | binding syntax as 'and-let*'. | ||
| 1310 | 1308 | ||
| 1311 | --- | 1309 | --- |
| 1312 | ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term | 1310 | ** 'C-up', 'C-down', 'C-left' and 'C-right' are now defined in term |