diff options
Diffstat (limited to 'etc/NEWS')
| -rw-r--r-- | etc/NEWS | 154 |
1 files changed, 147 insertions, 7 deletions
| @@ -97,9 +97,28 @@ Terminal is automatically initialized to use 24-bit colors if the | |||
| 97 | required capabilities are found in terminfo. See the FAQ node | 97 | required capabilities are found in terminfo. See the FAQ node |
| 98 | "Colors on a TTY" for more information. | 98 | "Colors on a TTY" for more information. |
| 99 | 99 | ||
| 100 | +++ | ||
| 101 | ** Emacs now obeys the X resource "scrollBar" at startup. | ||
| 102 | The effect is similar to that of "toolBar" resource on the tool bar. | ||
| 103 | |||
| 100 | 104 | ||
| 101 | * Changes in Emacs 26.1 | 105 | * Changes in Emacs 26.1 |
| 102 | 106 | ||
| 107 | +++ | ||
| 108 | ** The function 'assoc' now takes an optional third argument 'testfn'. | ||
| 109 | This argument, when non-nil, is used for comparison instead of | ||
| 110 | 'equal'. | ||
| 111 | |||
| 112 | --- | ||
| 113 | ** New variable 'executable-prefix-env' for inserting magic signatures. | ||
| 114 | This variable affects the format of the interpreter magic number | ||
| 115 | inserted by 'executable-set-magic'. If non-nil, the magic number now | ||
| 116 | takes the form "#!/usr/bin/env interpreter", otherwise the value | ||
| 117 | determined by 'executable-prefix', which is by default | ||
| 118 | "#!/path/to/interpreter". By default, 'executable-prefix-env' is nil, | ||
| 119 | so the default behavior is not changed. | ||
| 120 | |||
| 121 | +++ | ||
| 103 | ** The variable 'emacs-version' no longer includes the build number. | 122 | ** The variable 'emacs-version' no longer includes the build number. |
| 104 | This is now stored separately in a new variable, 'emacs-build-number'. | 123 | This is now stored separately in a new variable, 'emacs-build-number'. |
| 105 | 124 | ||
| @@ -353,6 +372,12 @@ variable of this kind to swap modifiers in Emacs. | |||
| 353 | --- | 372 | --- |
| 354 | ** New input methods: 'cyrillic-tuvan', 'polish-prefix'. | 373 | ** New input methods: 'cyrillic-tuvan', 'polish-prefix'. |
| 355 | 374 | ||
| 375 | --- | ||
| 376 | ** The 'dutch' input method no longer attempts to support Turkish too. | ||
| 377 | Also, it no longer converts 'IJ' and 'ij' to the compatibility | ||
| 378 | characters U+0132 LATIN CAPITAL LIGATURE IJ and U+0133 LATIN SMALL | ||
| 379 | LIGATURE IJ. | ||
| 380 | |||
| 356 | +++ | 381 | +++ |
| 357 | ** File name quoting by adding the prefix "/:" is now possible for the | 382 | ** File name quoting by adding the prefix "/:" is now possible for the |
| 358 | local part of a remote file name. Thus, if you have a directory named | 383 | local part of a remote file name. Thus, if you have a directory named |
| @@ -405,10 +430,74 @@ display of raw bytes from octal to hex. | |||
| 405 | ** You can now provide explicit field numbers in format specifiers. | 430 | ** You can now provide explicit field numbers in format specifiers. |
| 406 | For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X". | 431 | For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X". |
| 407 | 432 | ||
| 408 | +++ | ||
| 409 | ** 'comment-indent-function' values may now return a cons to specify a | 433 | ** 'comment-indent-function' values may now return a cons to specify a |
| 410 | range of indentation. | 434 | range of indentation. |
| 411 | 435 | ||
| 436 | +++ | ||
| 437 | ** Emacs now supports optional display of line numbers in the buffer. | ||
| 438 | This is similar to what linum-mode provides, but much faster and | ||
| 439 | doesn't usurp the display margin for the line numbers. Customize the | ||
| 440 | buffer-local variable 'display-line-numbers' to activate this optional | ||
| 441 | display. Alternatively, you can use the `display-line-numbers-mode' | ||
| 442 | minor mode or the global `global-display-line-numbers-mode'. When | ||
| 443 | using these modes, customize `display-line-numbers-type' with the same | ||
| 444 | value as you would use with `display-line-numbers'. | ||
| 445 | |||
| 446 | If `display-line-numbers' is set to t, Emacs will display the number | ||
| 447 | of each line before the line. If set to 'relative', Emacs will | ||
| 448 | display the line number relative to the line showing point, with that | ||
| 449 | line's number displayed as absolute. If set to 'visual', Emacs will | ||
| 450 | display a relative number for every screen line, i.e. it will count | ||
| 451 | screen lines rather than buffer lines. The default is nil, which | ||
| 452 | doesn't display the line numbers. | ||
| 453 | |||
| 454 | In 'relative' and 'visual' modes, the variable | ||
| 455 | 'display-line-numbers-current-absolute' controls what number is | ||
| 456 | displayed for the line showing point. By default, this variable's | ||
| 457 | value is t, which means display the absolute line number for the line | ||
| 458 | showing point. Customizing this variable to a nil value will cause | ||
| 459 | Emacs to show zero instead, which preserves horizontal space of the | ||
| 460 | window in large buffers. | ||
| 461 | |||
| 462 | Line numbers are not displayed at all in minibuffer windows and in | ||
| 463 | tooltips, as they are not useful there. | ||
| 464 | |||
| 465 | The new face 'line-number' is used to display the line numbers. The | ||
| 466 | new face 'line-number-current-line' can be customized to display the | ||
| 467 | current line's number differently from all the other line numbers; by | ||
| 468 | default these two faces are identical. | ||
| 469 | |||
| 470 | You can also customize the new buffer-local variable | ||
| 471 | 'display-line-numbers-width' to specify a fixed minimal with of the | ||
| 472 | area allocated to line-number display. The default is nil, meaning | ||
| 473 | that Emacs will dynamically calculate the area width, enlarging or | ||
| 474 | shrinking it as needed. Setting it to a non-negative integer | ||
| 475 | specifies that as the minimal width; selecting a value that is large | ||
| 476 | enough to display all line numbers in a buffer will then keep the | ||
| 477 | line-number display area of constant width at all times, if that is | ||
| 478 | desired. | ||
| 479 | |||
| 480 | When using `display-line-numbers-mode', you can customize the variable | ||
| 481 | `display-line-numbers-grow-only' to a non-nil value; this means that | ||
| 482 | Emacs may grow the above area width dynamically, but never shrink it. | ||
| 483 | Under this mode, customizing the variable | ||
| 484 | `display-line-numbers-width-start' to a non-nil value will cause Emacs | ||
| 485 | to set `display-line-numbers-width' to the minimum width necessary to | ||
| 486 | display all line numbers in the current buffer when first visiting it. | ||
| 487 | |||
| 488 | Lisp programs can disable line-number display for a particular screen | ||
| 489 | line by putting the 'display-line-numbers-disable' text property or | ||
| 490 | overlay property on the first character of that screen line. This is | ||
| 491 | intended for add-on packages that need a finer control of the display. | ||
| 492 | |||
| 493 | Lisp programs that need to know how much screen estate is used up for | ||
| 494 | line-number display in a window can use the new function | ||
| 495 | 'line-number-display-width'. | ||
| 496 | |||
| 497 | Linum mode and all similar packages are henceforth becoming obsolete. | ||
| 498 | Users and developers are encouraged to switch to this new feature | ||
| 499 | instead. | ||
| 500 | |||
| 412 | 501 | ||
| 413 | * Editing Changes in Emacs 26.1 | 502 | * Editing Changes in Emacs 26.1 |
| 414 | 503 | ||
| @@ -500,11 +589,19 @@ current buffer with the contents of the accessible portion of a | |||
| 500 | different buffer while keeping point, mark, markers, and text | 589 | different buffer while keeping point, mark, markers, and text |
| 501 | properties as intact as possible. | 590 | properties as intact as possible. |
| 502 | 591 | ||
| 592 | +++ | ||
| 593 | ** More user control of reordering bidirectional text for display. | ||
| 594 | The two new variables, 'bidi-paragraph-start-re' and | ||
| 595 | 'bidi-paragraph-separate-re', allow customization of what exactly are | ||
| 596 | paragraphs, for the purposes of bidirectional display. | ||
| 597 | |||
| 503 | 598 | ||
| 504 | * Changes in Specialized Modes and Packages in Emacs 26.1 | 599 | * Changes in Specialized Modes and Packages in Emacs 26.1 |
| 505 | 600 | ||
| 506 | ** Dired | 601 | ** Dired |
| 507 | You can now use '`?`' in 'dired-do-shell-command'; as ' ? ', it gets replaced | 602 | |
| 603 | +++ | ||
| 604 | *** You can now use '`?`' in 'dired-do-shell-command'; as ' ? ', it gets replaced | ||
| 508 | by the current file name. | 605 | by the current file name. |
| 509 | 606 | ||
| 510 | *** html2text is now marked obsolete. | 607 | *** html2text is now marked obsolete. |
| @@ -638,6 +735,18 @@ this is controlled by the 'wdired-create-parent-directories' variable. | |||
| 638 | *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for | 735 | *** 'W' is now bound to 'browse-url-of-dired-file', and is useful for |
| 639 | viewing HTML files and the like. | 736 | viewing HTML files and the like. |
| 640 | 737 | ||
| 738 | ** Grep | ||
| 739 | |||
| 740 | --- | ||
| 741 | *** Grep commands will now use GNU grep's '--null' option if | ||
| 742 | available, which allows distinguishing the filename from contents if | ||
| 743 | they contain colons. This can be controlled by the new custom option | ||
| 744 | 'grep-use-null-filename-separator'. | ||
| 745 | |||
| 746 | *** The grep/rgrep/lgrep functions will now ask about saving files | ||
| 747 | before running. This is controlled by the 'grep-save-buffers' | ||
| 748 | variable. | ||
| 749 | |||
| 641 | ** Edebug | 750 | ** Edebug |
| 642 | 751 | ||
| 643 | *** Edebug can be prevented from pausing 1 second after reaching a | 752 | *** Edebug can be prevented from pausing 1 second after reaching a |
| @@ -702,6 +811,14 @@ Ido mode is active. | |||
| 702 | in question). | 811 | in question). |
| 703 | 812 | ||
| 704 | +++ | 813 | +++ |
| 814 | *** It's now possible to specify aspect-ratio preserving combinations | ||
| 815 | of :width/:max-height and :height/:max-width keywords. In either | ||
| 816 | case, the "max" keywords win. (Previously some combinations would, | ||
| 817 | depending on the aspect ratio of the image, just be ignored and in | ||
| 818 | other instances this would lead to the aspect ratio not being | ||
| 819 | preserved.) | ||
| 820 | |||
| 821 | +++ | ||
| 705 | *** Images inserted with 'insert-image' and related functions get a | 822 | *** Images inserted with 'insert-image' and related functions get a |
| 706 | keymap put into the text properties (or overlays) that span the | 823 | keymap put into the text properties (or overlays) that span the |
| 707 | image. This keymap binds keystrokes for manipulating size and | 824 | image. This keymap binds keystrokes for manipulating size and |
| @@ -978,10 +1095,6 @@ things like forward-word in readline work. | |||
| 978 | ** hideshow mode got four key bindings that are analogous to outline | 1095 | ** hideshow mode got four key bindings that are analogous to outline |
| 979 | mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.' | 1096 | mode bindings: 'C-c @ C-a', 'C-c @ C-t', 'C-c @ C-d', and 'C-c @ C-e.' |
| 980 | 1097 | ||
| 981 | ** The grep/rgrep/lgrep functions will now ask about saving files | ||
| 982 | before running. This is controlled by the 'grep-save-buffers' | ||
| 983 | variable. | ||
| 984 | |||
| 985 | --- | 1098 | --- |
| 986 | ** Customizable variable 'query-replace-from-to-separator' | 1099 | ** Customizable variable 'query-replace-from-to-separator' |
| 987 | now doesn't propertize the string value of the separator. | 1100 | now doesn't propertize the string value of the separator. |
| @@ -1041,6 +1154,10 @@ instead of its first. | |||
| 1041 | renamed to 'lread--old-style-backquotes'. No user code should use | 1154 | renamed to 'lread--old-style-backquotes'. No user code should use |
| 1042 | this variable. | 1155 | this variable. |
| 1043 | 1156 | ||
| 1157 | ** To avoid confusion caused by "smart quotes", the reader no longer | ||
| 1158 | accepts Lisp symbols which begin with the following quotation | ||
| 1159 | characters: ‘’‛“”‟〞"', unless they are escaped with backslash. | ||
| 1160 | |||
| 1044 | +++ | 1161 | +++ |
| 1045 | ** Module functions are now implemented slightly differently; in | 1162 | ** Module functions are now implemented slightly differently; in |
| 1046 | particular, the function 'internal--module-call' has been removed. | 1163 | particular, the function 'internal--module-call' has been removed. |
| @@ -1050,9 +1167,26 @@ break. | |||
| 1050 | 1167 | ||
| 1051 | * Lisp Changes in Emacs 26.1 | 1168 | * Lisp Changes in Emacs 26.1 |
| 1052 | 1169 | ||
| 1170 | +++ | ||
| 1171 | ** New optional argument TESTFN in 'alist-get', 'map-elt' and 'map-put'. | ||
| 1172 | |||
| 1053 | ** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2 | 1173 | ** New function 'seq-set-equal-p' to check if SEQUENCE1 and SEQUENCE2 |
| 1054 | contain the same elements, regardless of the order. | 1174 | contain the same elements, regardless of the order. |
| 1055 | 1175 | ||
| 1176 | ** Checksum/Hash | ||
| 1177 | |||
| 1178 | +++ | ||
| 1179 | ** New function 'secure-hash-algorithms' to list the algorithms that | ||
| 1180 | 'secure-hash' supports. | ||
| 1181 | See the node "(elisp) Checksum/Hash" in the ELisp manual for details. | ||
| 1182 | |||
| 1183 | +++ | ||
| 1184 | ** Emacs now exposes the GnuTLS cryptographic API with the functions | ||
| 1185 | 'gnutls-macs' and 'gnutls-hash-mac'; 'gnutls-digests' and | ||
| 1186 | 'gnutls-hash-digest'; 'gnutls-ciphers' and 'gnutls-symmetric-encrypt' | ||
| 1187 | and 'gnutls-symmetric-decrypt'. | ||
| 1188 | See the node "(elisp) GnuTLS Cryptography" in the ELisp manual for details. | ||
| 1189 | |||
| 1056 | +++ | 1190 | +++ |
| 1057 | ** Emacs now supports records for user-defined types, via the new | 1191 | ** Emacs now supports records for user-defined types, via the new |
| 1058 | functions 'make-record', 'record', and 'recordp'. Records are now | 1192 | functions 'make-record', 'record', and 'recordp'. Records are now |
| @@ -1418,9 +1552,12 @@ For details see the section "Mouse Window Auto-selection" in the Elisp | |||
| 1418 | manual. | 1552 | manual. |
| 1419 | 1553 | ||
| 1420 | --- | 1554 | --- |
| 1421 | ** 'tcl-auto-fill-mode' is now declared obsolete. It's functionality | 1555 | ** 'tcl-auto-fill-mode' is now declared obsolete. Its functionality |
| 1422 | can be replicated simply by setting 'comment-auto-fill-only-comments'. | 1556 | can be replicated simply by setting 'comment-auto-fill-only-comments'. |
| 1423 | 1557 | ||
| 1558 | ** New pcase pattern 'rx' to match against a rx-style regular | ||
| 1559 | expression. | ||
| 1560 | |||
| 1424 | 1561 | ||
| 1425 | * Changes in Emacs 26.1 on Non-Free Operating Systems | 1562 | * Changes in Emacs 26.1 on Non-Free Operating Systems |
| 1426 | 1563 | ||
| @@ -1466,6 +1603,9 @@ debugger has been attached to it. | |||
| 1466 | ** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work | 1603 | ** 'set-mouse-position' and 'set-mouse-absolute-pixel-position' work |
| 1467 | on macOS. | 1604 | on macOS. |
| 1468 | 1605 | ||
| 1606 | ** Emacs can now be run as a GUI application from the command line on | ||
| 1607 | macOS. | ||
| 1608 | |||
| 1469 | 1609 | ||
| 1470 | ---------------------------------------------------------------------- | 1610 | ---------------------------------------------------------------------- |
| 1471 | This file is part of GNU Emacs. | 1611 | This file is part of GNU Emacs. |