* lisp/net/tramp-cmds.el, lisp/allout.el: Avoid custom-set-variables

* lisp/net/tramp-cmds.el (tramp-change-syntax):
* lisp/allout.el (allout-init): Avoid custom-set-variables.
This commit is contained in:
Stefan Monnier 2017-11-07 20:45:58 -05:00
parent 48f149b40b
commit 83dc3f0e9b
4 changed files with 5 additions and 5 deletions

View file

@ -1687,7 +1687,7 @@ from what it did before, for backwards compatibility.
MODE is the activation mode - see `allout-auto-activation' for
valid values."
(declare (obsolete allout-auto-activation "23.3"))
(custom-set-variables (list 'allout-auto-activation (format "%s" mode)))
(customize-set-variable 'allout-auto-activation (format "%s" mode))
(format "%s" mode))
;;;_ > allout-setup-menubar ()

View file

@ -986,7 +986,7 @@ If given a prefix (or a COMMENT argument), also prompt for a comment."
current-prefix-arg))
(custom-load-symbol variable)
(custom-push-theme 'theme-value variable 'user 'set (custom-quote value))
(funcall (or (get variable 'custom-set) 'set-default) variable value)
(funcall (or (get variable 'custom-set) #'set-default) variable value)
(put variable 'customized-value (list (custom-quote value)))
(cond ((string= comment "")
(put variable 'variable-comment nil)

View file

@ -49,7 +49,7 @@ SYNTAX can be one of the symbols `default' (default),
(unless (string-equal input "")
(list (intern input)))))
(when syntax
(custom-set-variables `(tramp-syntax ',syntax))))
(customize-set-variable 'tramp-syntax syntax)))
(defun tramp-list-tramp-buffers ()
"Return a list of all Tramp connection buffers."

View file

@ -670,8 +670,8 @@ It can have the following values:
`simplified' -- Ange-FTP like syntax
`separate' -- Syntax as defined for XEmacs originally
Do not change the value by `setq', it must be changed only by
`custom-set-variables'. See also `tramp-change-syntax'."
Do not change the value by `setq', it must be changed only via
Customize. See also `tramp-change-syntax'."
:group 'tramp
:version "26.1"
:package-version '(Tramp . "2.3.3")