diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2024-04-12 10:09:45 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2024-04-12 10:09:45 +0200 |
commit | a69890eea946beb0858273a20d260a170485b79a (patch) | |
tree | 5d8a9c244e0da9b5349cbe652c77a69434e58aad /etc | |
parent | 21775a936bd3838adaae38bd5c5ec776434736c1 (diff) | |
download | emacs-a69890eea946beb0858273a20d260a170485b79a.tar.gz |
Improve D-Bus byte-array conversion
* doc/misc/dbus.texi (Type Conversion): Adapt dbus-byte-array-to-string.
* etc/NEWS: D-Bus byte array conversion works over raw UTF-8 bytes.
Fix typos.
* lisp/net/dbus.el (dbus-string-to-byte-array)
(dbus-byte-array-to-string): BYTE-ARRAY must be an UTF-8 raw bytes
sequence. Make optional argument MULTIBYTE obsolete. (Bug#70301)
(dbus-call-method-handler, dbus-register-signal)
(dbus-escape-as-identifier): Use `length=' and `length>'.
* test/lisp/net/dbus-tests.el (dbus--test-method-handler)
(dbus-test09-get-managed-objects): Use `length='.
(dbus-test01-type-conversion): Extend test.
* test/lisp/net/secrets-tests.el (secrets-test03-items): Extend test.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 59 |
1 files changed, 31 insertions, 28 deletions
@@ -70,7 +70,7 @@ more details. ** Mouse wheel events should now always be 'wheel-up/down/left/right'. At those places where the old 'mouse-4/5/6/7' events could still occur -(i.e. X11 input in the absence of XInput2, and 'xterm-mouse-mode'), +(i.e., X11 input in the absence of XInput2, and 'xterm-mouse-mode'), we remap them to the corresponding 'wheel-up/down/left/right' event, according to the new variable 'mouse-wheel-buttons'. The old variables 'mouse-wheel-up-event', 'mouse-wheel-down-event', @@ -81,7 +81,7 @@ obsolete. In order to help the use of those Tree-Sitter modes, they are now declared to have the corresponding non-Tree-Sitter mode as an additional parent. -This way, things like `.dir-locals.el` settings, and YASnippet +This way, things like ".dir-locals.el" settings, and YASnippet collections of snippets automatically apply to the new Tree-Sitter modes. Note that those modes still do not inherit from the non-TS mode, so @@ -126,7 +126,7 @@ to your init: ** 'describe-function' now shows the type of the function object. The text used to say things like "car is is a built-in function" whereas it now says "car is a primitive-function" where "primitive-function" -is the symbol returned by `cl-type-of` and you can click on it to get +is the symbol returned by 'cl-type-of' and you can click on it to get information about that type. ** 'advice-remove' is now an interactive command. @@ -266,7 +266,7 @@ value when installing GNU coreutils using something like ports or Homebrew. +++ -** cl-print +** CL Print +++ *** You can expand the "..." truncation everywhere. @@ -499,7 +499,7 @@ By default this is disabled. --- *** Users in CJK locales can control width of some non-CJK characters. Some characters are considered by Unicode as "ambiguous" with respect -to their display width: either "full-width" (i.e. taking 2 columns on +to their display width: either "full-width" (i.e., taking 2 columns on display) or "narrow" (taking 1 column). The actual width depends on the fonts used for these characters by Emacs or (for text-mode frames) by the terminal emulator. Traditionally, font sets in CJK locales @@ -546,7 +546,7 @@ only to specify the 'mouse-4/5/6/7' events that might still happen to be generated by some old packages (or if 'mouse-wheel-buttons' has been set to nil). -** 'xterm-mouse-mode' +** Xterm Mouse mode This mode now emits 'wheel-up/down/right/left' events instead of 'mouse-4/5/6/7' events for the mouse wheel. It uses the new variable 'mouse-wheel-buttons' to decide which button @@ -568,7 +568,7 @@ This requires the 'lzip' program to be installed on your system. ** New command 'lldb'. Run the LLDB debugger, analogous to the 'gud-gdb' command. -** gdb-mi +** GDB MI --- *** Variable order and truncation can now be configured in 'gdb-many-windows'. @@ -1112,7 +1112,7 @@ would add a duplicate entry to the end of the history list each time. This made it impossible to navigate to the "end" of the history list. Now, navigating through history in EWW simply changes your position in the history list, allowing you to reach the end as expected. In -addition, when browsing to a new page from a "historical" one (i.e. a +addition, when browsing to a new page from a "historical" one (i.e., a page loaded by navigating back through history), EWW deletes the history entries newer than the current page. To change the behavior when browsing from "historical" pages, you can customize @@ -1136,7 +1136,7 @@ display only the readable parts by default. For more details, see When non-nil (the default), calling 'eww-readable' adds a new entry to the EWW page history. -** go-ts-mode +** Go-ts mode +++ *** New command 'go-ts-mode-docstring'. @@ -1265,12 +1265,11 @@ This allows the user to specify command line arguments to the non interactive Python interpreter specified by 'python-interpreter'. ** Scheme mode - -Scheme mode now handles regular expression literal #/regexp/ that is +Scheme mode now handles regular expression literal '#/regexp/' that is available in some Scheme implementations. Also, it should now handle nested sexp-comments. -** use-package +** Use package +++ *** New ':vc' keyword. @@ -1434,13 +1433,13 @@ without specifying a file, like this: ** Image +++ -*** Image :map property is now recomputed when image is transformed. +*** Image ':map' property is now recomputed when image is transformed. Now images with clickable maps work as expected after you run commands -such as `image-increase-size', `image-decrease-size', `image-rotate', -`image-flip-horizontally', and `image-flip-vertically'. +such as 'image-increase-size', 'image-decrease-size', 'image-rotate', +'image-flip-horizontally', and 'image-flip-vertically'. +++ -*** New user option 'image-recompute-map-p' +*** New user option 'image-recompute-map-p'. Set this option to nil to prevent Emacs from recomputing image maps. ** Image Dired @@ -1575,7 +1574,7 @@ buffer method is the default, which preserves previous behavior. *** New user option 'xwidget-webkit-disable-javascript'. This allows disabling JavaScript in xwidget Webkit sessions. -** ls-lisp +** Ls Lisp --- *** 'ls-lisp--insert-directory' supports more long options of 'ls'. @@ -1775,6 +1774,11 @@ Use a float value for the first argument instead. Instead, use 'eshell-process-wait-time', which supports floating-point values. ++++ +** 'dbus-{string-to-byte-array,byte-array-to-string}' are strict UTF-8 conform. +Both work over UTF-8 raw bytes only. The optional parameter MULTIBYTE +of 'dbus-byte-array-to-string' is obsolete now. + * Lisp Changes in Emacs 30.1 @@ -1789,18 +1793,18 @@ This function is like 'type-of' except that it sometimes returns a more precise type. For example, for nil and t it returns 'null' and 'boolean' respectively, instead of just 'symbol'. -** New functions `primitive-function-p` and `cl-functionp`. -`primitive-function-p` is like `subr-primitive-p` except that it returns +** New functions 'primitive-function-p' and 'cl-functionp'. +'primitive-function-p' is like 'subr-primitive-p' except that it returns t only if the argument is a function rather than a special-form, -and `cl-functionp` is like `functionp` except it return nil +and 'cl-functionp' is like 'functionp' except it returns nil for lists and symbols. ** Built-in types have now corresponding classes. -At the Lisp level, this means that things like (cl-find-class 'integer) +At the Lisp level, this means that things like '(cl-find-class 'integer)' will now return a class object, and at the UI level it means that things like 'C-h o integer RET' will show some information about that type. -** New var 'major-mode-remap-defaults' and function 'major-mode-remap'. +** New variable 'major-mode-remap-defaults' and function 'major-mode-remap'. The first is like Emacs-29's 'major-mode-remap-alist' but to be set by packages (instead of users). The second looks up those two variables. @@ -1934,7 +1938,7 @@ capabilities of the 'notifications-notify' function in a manner analogous to 'w32-notification-notify'. ** New variable 'haiku-pass-control-tab-to-system'. -This sets whether Emacs should pass C-TAB on to the system instead of +This sets whether Emacs should pass 'C-TAB' on to the system instead of handling it, fixing a problem where window switching would not activate if an Emacs frame had focus on the Haiku operation system. @@ -2011,7 +2015,6 @@ It returns the last position of a marker in its buffer even if that buffer has been killed. ('marker-position' would return nil in that case.) - ** Functions and variables to transpose sexps +++ @@ -2360,16 +2363,16 @@ is the value of the property to context menus shown when clicking on the text which as this property. --- -** Detecting the end of an iteration of a keyboard macro +** Detecting the end of an iteration of a keyboard macro. 'read-event', 'read-char', and 'read-char-exclusive' no longer return -1 -when called at the end of an iteration of a the execution of a keyboard +when called at the end of an iteration of the execution of a keyboard macro. Instead, they will transparently continue reading available input (e.g., from the keyboard). If you need to detect the end of a macro iteration, check the following condition before calling one of the aforementioned functions: (and (arrayp executing-kbd-macro) - (>= executing-kbd-macro-index (length executing-kbd-macro)))) + (>= executing-kbd-macro-index (length executing-kbd-macro))) +++ ** 'vtable-update-object' updates an existing object with just two arguments. @@ -2394,7 +2397,7 @@ It will now signal 'json-utf8-decode-error' for inputs that are not correctly UTF-8 encoded. --- -*** The parser and encoder now accept arbitarily large integers. +*** The parser and encoder now accept arbitrarily large integers. Previously, they were limited to the range of signed 64-bit integers. ** New tree-sitter functions and variables for defining and using "things" |