diff options
| author | Michael Albinus | 2025-10-05 17:14:59 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-10-05 17:14:59 +0200 |
| commit | a142cc262ecac539dbfb412b9fb09e8205b2bc3e (patch) | |
| tree | 3c29806aa12c503b048a0b1f6f382fc57fa5eadd /etc | |
| parent | 5c459c6084cd91b8b83bae94dd6709a815797c81 (diff) | |
| download | emacs-a142cc262ecac539dbfb412b9fb09e8205b2bc3e.tar.gz emacs-a142cc262ecac539dbfb412b9fb09e8205b2bc3e.zip | |
Add fallback backend in auth-sources
* etc/NEWS: Describe effect of auth-sources being nil.
* lisp/auth-source.el (auth-sources): Add const nil.
(auth-source-ignored-keys): New defconst.
(auth-source-backends, auth-source-keys)
(auth-source-search-keys, auth-source-returned-keys)
(auth-source-search-spec): New macros.
(auth-source-file-name-p, auth-source-search)
(auth-source-specmatchp, auth-source-netrc-create)
(auth-source-secrets-search, auth-source-secrets-create)
(auth-source-macos-keychain-search)
(auth-source-plstore-search, auth-source-plstore-create): Use them
(auth-source-read-passwd-search, auth-source-read-passwd-create):
New defuns.
* test/lisp/auth-source-tests.el
(auth-source-backend-parse-plstore-string)
(auth-source-backend-parse-json-string)
(auth-source-backend-parse-fallback)
(auth-source-test-read-passwd-create-secret): New tests.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 40 |
1 files changed, 21 insertions, 19 deletions
| @@ -216,14 +216,14 @@ different values for completion-affecting variables like | |||
| 216 | applies for the styles configuration in 'completion-category-overrides' | 216 | applies for the styles configuration in 'completion-category-overrides' |
| 217 | and 'completion-category-defaults'. | 217 | and 'completion-category-defaults'. |
| 218 | 218 | ||
| 219 | +++++ | 219 | +++ |
| 220 | *** Navigating "*Completions*" now accommodates 'completions-format'. | 220 | *** Navigating "*Completions*" now accommodates 'completions-format'. |
| 221 | When 'completions-format' is set to 'vertical', typing 'n', '<TAB>' or | 221 | When 'completions-format' is set to 'vertical', typing 'n', 'TAB' or |
| 222 | 'M-<down>' in the "*Completions*" buffer (the latter also in the | 222 | 'M-<down>' in the "*Completions*" buffer (the latter also in the |
| 223 | minibuffer) now moves point to the completion candidate in the next line | 223 | minibuffer) now moves point to the completion candidate in the next line |
| 224 | in the current column, and wraps to the next column when typed on the | 224 | in the current column, and wraps to the next column when typed on the |
| 225 | last completion candidate of the current column. Likewise, typing 'p', | 225 | last completion candidate of the current column. Likewise, typing 'p', |
| 226 | 'S-<TAB>' or 'M-<up>' moves point to the completion candidate in the | 226 | 'S-TAB' or 'M-<up>' moves point to the completion candidate in the |
| 227 | previous line or wraps to the previous column. Previously, these keys | 227 | previous line or wraps to the previous column. Previously, these keys |
| 228 | ignored the vertical format, i.e., moved point only to the item in the | 228 | ignored the vertical format, i.e., moved point only to the item in the |
| 229 | same line of the next or previous column, in accordance with the default | 229 | same line of the next or previous column, in accordance with the default |
| @@ -272,7 +272,7 @@ but as a plain Lisp variable, not a user option.) | |||
| 272 | 272 | ||
| 273 | --- | 273 | --- |
| 274 | *** New mode 'minibuffer-nonselected-mode'. | 274 | *** New mode 'minibuffer-nonselected-mode'. |
| 275 | This mode enabled by default directs the attention to the active | 275 | This mode, enabled by default, directs the attention to the active |
| 276 | minibuffer window using the 'minibuffer-nonselected' face in case | 276 | minibuffer window using the 'minibuffer-nonselected' face in case |
| 277 | when the minibuffer window is no longer selected, but the minibuffer | 277 | when the minibuffer window is no longer selected, but the minibuffer |
| 278 | is still waiting for input. | 278 | is still waiting for input. |
| @@ -280,7 +280,7 @@ is still waiting for input. | |||
| 280 | ** Mouse | 280 | ** Mouse |
| 281 | 281 | ||
| 282 | *** New mode 'mouse-shift-adjust-mode' extends selection with 'S-<mouse-1>'. | 282 | *** New mode 'mouse-shift-adjust-mode' extends selection with 'S-<mouse-1>'. |
| 283 | When enabled, you can use the left mouse button with the <Shift> modifier | 283 | When enabled, you can use the left mouse button with the '<Shift>' modifier |
| 284 | to extend the boundaries of the active region by dragging the mouse pointer. | 284 | to extend the boundaries of the active region by dragging the mouse pointer. |
| 285 | 285 | ||
| 286 | --- | 286 | --- |
| @@ -750,7 +750,7 @@ pair: '("/*" " */" t)'. | |||
| 750 | 750 | ||
| 751 | --- | 751 | --- |
| 752 | ** New user option 'electric-indent-actions'. | 752 | ** New user option 'electric-indent-actions'. |
| 753 | This user options specifies a list of actions to reindent. The possible | 753 | This user option specifies a list of actions to reindent. The possible |
| 754 | elements for this list are: 'yank', reindent the yanked text; | 754 | elements for this list are: 'yank', reindent the yanked text; |
| 755 | 'before-save', indent the whole buffer before saving it. | 755 | 'before-save', indent the whole buffer before saving it. |
| 756 | 756 | ||
| @@ -810,6 +810,9 @@ in such a file; the first usable entry of ‘auth-sources’ is selected as | |||
| 810 | target. If you want also not existing files to be selected, set the | 810 | target. If you want also not existing files to be selected, set the |
| 811 | user option ‘auth-source-ignore-non-existing-file’ to nil. | 811 | user option ‘auth-source-ignore-non-existing-file’ to nil. |
| 812 | 812 | ||
| 813 | --- | ||
| 814 | *** 'auth-sources' set to nil means using the password cache only. | ||
| 815 | |||
| 813 | ** Autoinsert | 816 | ** Autoinsert |
| 814 | 817 | ||
| 815 | +++ | 818 | +++ |
| @@ -823,7 +826,7 @@ with finer grained control. | |||
| 823 | 826 | ||
| 824 | +++ | 827 | +++ |
| 825 | *** New functions 'buffer-to-register' and 'file-to-register'. | 828 | *** New functions 'buffer-to-register' and 'file-to-register'. |
| 826 | These allow users to interactively store file and buffers in registers. | 829 | These allow users to interactively store files and buffers in registers. |
| 827 | Killed buffers stored in a register using 'buffer-to-register' are | 830 | Killed buffers stored in a register using 'buffer-to-register' are |
| 828 | automatically converted to a file-query value if the buffer was visiting | 831 | automatically converted to a file-query value if the buffer was visiting |
| 829 | a file. | 832 | a file. |
| @@ -1010,28 +1013,27 @@ next to the ellipsis. By default this is disabled. | |||
| 1010 | 1013 | ||
| 1011 | +++ | 1014 | +++ |
| 1012 | *** New user option 'hs-show-indicators'. | 1015 | *** New user option 'hs-show-indicators'. |
| 1013 | This user option determines if hideshow should display indicators to | 1016 | This user option determines if Hideshow should display indicators to |
| 1014 | show and toggle the block hiding. If non-nil, the indicators are enabled. | 1017 | show and toggle the block hiding. If non-nil, the indicators are enabled. |
| 1015 | |||
| 1016 | By default this is disabled. | 1018 | By default this is disabled. |
| 1017 | 1019 | ||
| 1018 | *** New user option 'hs-indicator-maximum-buffer-size'. | 1020 | *** New user option 'hs-indicator-maximum-buffer-size'. |
| 1019 | This user option limits the display of hideshow indicators to buffers | 1021 | This user option limits the display of Hideshow indicators to buffers |
| 1020 | that are not too large. By default, buffers larger than 2MB have the | 1022 | that are not too large. By default, buffers larger than 2MB have the |
| 1021 | indicators disabled; the value of nil will activate the indicators | 1023 | indicators disabled; the value of nil will activate the indicators |
| 1022 | regardless of the buffer size. | 1024 | regardless of the buffer size. |
| 1023 | 1025 | ||
| 1024 | +++ | 1026 | +++ |
| 1025 | *** New user option 'hs-indicator-type'. | 1027 | *** New user option 'hs-indicator-type'. |
| 1026 | This user option determine which indicator type should be used for the | 1028 | This user option determines which indicator type should be used for the |
| 1027 | block indicators. | 1029 | block indicators. |
| 1028 | 1030 | ||
| 1029 | The possible values can be: 'fringe', display the indicators in the | 1031 | The possible values can be: 'fringe', display the indicators in the |
| 1030 | fringe (the default); 'margin', display the indicators in the margin; | 1032 | fringe (the default); 'margin', display the indicators in the margin; |
| 1031 | nil, display the indicators at end-of-line. | 1033 | nil, display the indicators at end-of-line. |
| 1032 | 1034 | ||
| 1033 | The new icons 'hs-indicator-show' and 'hs-indicator-hide', can be used | 1035 | The new icons 'hs-indicator-show' and 'hs-indicator-hide' can be used |
| 1034 | for customize the indicators appearance, only if 'hs-indicator-type' is | 1036 | to customize the indicators appearance only if 'hs-indicator-type' is |
| 1035 | set to 'margin' or nil. | 1037 | set to 'margin' or nil. |
| 1036 | 1038 | ||
| 1037 | ** C-ts mode | 1039 | ** C-ts mode |
| @@ -1043,9 +1045,9 @@ are highlighted like other comments. When non-nil, Doxygen comment | |||
| 1043 | blocks are syntax-highlighted if the Doxygen grammar library is | 1045 | blocks are syntax-highlighted if the Doxygen grammar library is |
| 1044 | available. | 1046 | available. |
| 1045 | 1047 | ||
| 1046 | ** Csharp-ts-mode | 1048 | ** Csharp-ts mode |
| 1047 | 1049 | ||
| 1048 | *** Renamed feature in 'treesit-font-lock-feature-list' | 1050 | *** Renamed feature in 'treesit-font-lock-feature-list'. |
| 1049 | The feature 'property' has been renamed to 'attribute', since this is | 1051 | The feature 'property' has been renamed to 'attribute', since this is |
| 1050 | what it is called in the general C# community. | 1052 | what it is called in the general C# community. |
| 1051 | 1053 | ||
| @@ -1491,8 +1493,8 @@ It removes all the buttons in the specified region. | |||
| 1491 | You can now bookmark local and remote shell buffers using the bookmark | 1493 | You can now bookmark local and remote shell buffers using the bookmark |
| 1492 | menu 'bookmark-bmenu-list', or by using the command 'bookmark-set'. | 1494 | menu 'bookmark-bmenu-list', or by using the command 'bookmark-set'. |
| 1493 | Shell bookmarks can be loaded via the menu and by using the command | 1495 | Shell bookmarks can be loaded via the menu and by using the command |
| 1494 | 'bookmark-jump', which open a bookmarked shell, restore its buffer name, | 1496 | 'bookmark-jump', which opens a bookmarked shell, restores its buffer name, |
| 1495 | its current directory, and create a remote connection, if necessary. | 1497 | its current directory, and creates a remote connection, if necessary. |
| 1496 | You can customize 'shell-bookmark-name-function'. | 1498 | You can customize 'shell-bookmark-name-function'. |
| 1497 | 1499 | ||
| 1498 | *** New command to complete the shell history. | 1500 | *** New command to complete the shell history. |
| @@ -3019,8 +3021,8 @@ commands '{next,previous}-column-completion', depending on the value of | |||
| 3019 | 'completions-format'. The latter two commands improve and extend the | 3021 | 'completions-format'. The latter two commands improve and extend the |
| 3020 | previous implementations of '{next,previous}-completion', which better | 3022 | previous implementations of '{next,previous}-completion', which better |
| 3021 | reflect that they only take the (default) horizontal completions format | 3023 | reflect that they only take the (default) horizontal completions format |
| 3022 | into account. Any external code using '{next,previous}-completion' that | 3024 | into account. Any external code using '{next,previous}-completion', that |
| 3023 | assumes the previous implementation must be adjusted accordingly; see | 3025 | assumes the previous implementation, must be adjusted accordingly; see |
| 3024 | 'minibuffer-next-completion' for an example of such an adjustment in | 3026 | 'minibuffer-next-completion' for an example of such an adjustment in |
| 3025 | Emacs core. | 3027 | Emacs core. |
| 3026 | 3028 | ||