diff options
| author | Michael Albinus | 2023-03-12 11:01:22 +0100 |
|---|---|---|
| committer | Michael Albinus | 2023-03-12 11:01:22 +0100 |
| commit | fffbce29349b14daa5f9b9c97ff5ba230b56c247 (patch) | |
| tree | 2e777b98dfe5769fded421c43d2a5a537ac5d4a8 | |
| parent | 8bc12a273624b8cc6fcb43ae51621634a9023dce (diff) | |
| download | emacs-fffbce29349b14daa5f9b9c97ff5ba230b56c247.tar.gz emacs-fffbce29349b14daa5f9b9c97ff5ba230b56c247.zip | |
TRework fix for bug#62106
* lisp/files-x.el (connection-local-set-profiles)
(connection-local-set-profile-variables):
Use `custom-set-variables'. It serves the purpose to not keep
unsaved user options, and it is less invasive than
`customize-save-variable'.
| -rw-r--r-- | lisp/files-x.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/files-x.el b/lisp/files-x.el index eb236c68e52..be27aedf2e2 100644 --- a/lisp/files-x.el +++ b/lisp/files-x.el | |||
| @@ -681,8 +681,8 @@ variables for a connection profile are defined using | |||
| 681 | (setq connection-local-criteria-alist | 681 | (setq connection-local-criteria-alist |
| 682 | (cons (cons criteria (delete-dups profiles)) | 682 | (cons (cons criteria (delete-dups profiles)) |
| 683 | connection-local-criteria-alist)))) | 683 | connection-local-criteria-alist)))) |
| 684 | (customize-save-variable | 684 | (custom-set-variables |
| 685 | 'connection-local-criteria-alist connection-local-criteria-alist)) | 685 | `(connection-local-criteria-alist ',connection-local-criteria-alist))) |
| 686 | 686 | ||
| 687 | (defsubst connection-local-get-profile-variables (profile) | 687 | (defsubst connection-local-get-profile-variables (profile) |
| 688 | "Return the connection-local variable list for PROFILE." | 688 | "Return the connection-local variable list for PROFILE." |
| @@ -702,8 +702,8 @@ variables are set in the server's process buffer according to the | |||
| 702 | VARIABLES list of the connection profile. The list is processed | 702 | VARIABLES list of the connection profile. The list is processed |
| 703 | in order." | 703 | in order." |
| 704 | (setf (alist-get profile connection-local-profile-alist) variables) | 704 | (setf (alist-get profile connection-local-profile-alist) variables) |
| 705 | (customize-save-variable | 705 | (custom-set-variables |
| 706 | 'connection-local-profile-alist connection-local-profile-alist)) | 706 | `(connection-local-profile-alist ',connection-local-profile-alist))) |
| 707 | 707 | ||
| 708 | ;;;###autoload | 708 | ;;;###autoload |
| 709 | (defun connection-local-update-profile-variables (profile variables) | 709 | (defun connection-local-update-profile-variables (profile variables) |