]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/tramp-cmds.el, lisp/allout.el: Avoid custom-set-variables
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 8 Nov 2017 01:45:58 +0000 (20:45 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 8 Nov 2017 01:45:58 +0000 (20:45 -0500)
* lisp/net/tramp-cmds.el (tramp-change-syntax):
* lisp/allout.el (allout-init): Avoid custom-set-variables.

lisp/allout.el
lisp/cus-edit.el
lisp/net/tramp-cmds.el
lisp/net/tramp.el

index 15b7b3a8ac53d35558b18809b629989be36b3c69..9e83a2fb2c8ae9ffab5e5904d98b23e142ce065e 100644 (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 ()
index a87783850a34cd4b3959601c5b266b73e5c59404..edf3545cadd6a339cf11385e001eccca808f0982 100644 (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)
index 78ef1a3ef40afd1adc7feaea7a5868dec6ac5321..37a6521680b0a9943223d1f210c77e99cf2fec13 100644 (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."
index e300b3a58ed1c5ce56854d25aca999d0ae2b0164..a23da848112a21cd1bb94df2f554cf2acd4b102d 100644 (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")