diff options
| author | Paul Eggert | 2015-10-20 18:16:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-10-20 18:22:48 -0700 |
| commit | e9af822ac3ddf9644aa4a68e56b0580e133449b2 (patch) | |
| tree | 55b2ae836adac54903d43ee77e2730a0e2ac86bd /etc | |
| parent | 513fe25a501b41f9f2aac67f73c8e8730aed81b0 (diff) | |
| download | emacs-e9af822ac3ddf9644aa4a68e56b0580e133449b2.tar.gz emacs-e9af822ac3ddf9644aa4a68e56b0580e133449b2.zip | |
(/ N) now returns the reciprocal of N
This is more compatible with Common Lisp and XEmacs (Bug#21690). See:
http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg01053.html
* lisp/color.el (color-hue-to-rgb, color-hsl-to-rgb)
(color-xyz-to-srgb, color-xyz-to-lab):
* lisp/emacs-lisp/cl-extra.el (cl-float-limits):
* lisp/net/shr-color.el (shr-color-hue-to-rgb)
(shr-color-hsl-to-rgb-fractions):
Exploit the change to simplify the code a bit.
* lisp/emacs-lisp/bytecomp.el (byte-compile-quo):
Don’t complain about single-argument calls to ‘/’.
* src/data.c (arith_driver, float_arith_driver):
Implement the change.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -1008,6 +1008,12 @@ dynamically. | |||
| 1008 | dynamically. Any third-party code that changes these templates should | 1008 | dynamically. Any third-party code that changes these templates should |
| 1009 | be updated accordingly. | 1009 | be updated accordingly. |
| 1010 | 1010 | ||
| 1011 | +++ | ||
| 1012 | ** ‘(/ N)’ is now equivalent to ‘(/ 1 N)’ rather than to ‘(/ N 1)’. | ||
| 1013 | The new behavior is compatible with Common Lisp and with XEmacs. | ||
| 1014 | This change does not affect Lisp code intended to be portable to | ||
| 1015 | Emacs 24.2 and earlier, which did not support unary ‘/’. | ||
| 1016 | |||
| 1011 | 1017 | ||
| 1012 | * Lisp Changes in Emacs 25.1 | 1018 | * Lisp Changes in Emacs 25.1 |
| 1013 | 1019 | ||