]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/subr.el (setq-local): Doc fix (bug#78644).
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 May 2025 07:05:06 +0000 (10:05 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 19:53:57 +0000 (21:53 +0200)
(cherry picked from commit cb9556d669c037c4e2f1a9c80adacad55948c706)

lisp/cus-edit.el
lisp/custom.el
lisp/subr.el

index ec894ab8ee5bbd6a24ea976eb7b5842a75914fb3..a5abe9e2b96191afff3d1cb4a30c2ccfe8ad338c 100644 (file)
   (error nil))
 
 (condition-case nil
-    (require 'cus-start)
+    (unless (featurep 'cus-start)
+      (require 'cus-start))
   (error nil))
 
 (put 'custom-define-hook 'custom-type 'hook)
index 048e4a55c72baf9f5365611a28a2d48a4f248dbe..c7a1c354ee32dfa8312d58f77ab946d5a4585f82 100644 (file)
@@ -702,7 +702,8 @@ The result is that the change is treated as having been made through Custom."
       (ignore-errors
         (require 'cus-load))
       (ignore-errors
-        (require 'cus-start))
+        (unless (featurep 'cus-start)
+          (require 'cus-start)))
       (dolist (load (get symbol 'custom-loads))
         (cond ((symbolp load) (ignore-errors (require load)))
              ;; This is subsumed by the test below, but it's much faster.
index d6f05ab4d6c554af30ae147fdcc348c441c62cfc..97717eff07b9335a2f941b1a2a6b94199f0b6e81 100644 (file)
@@ -161,11 +161,12 @@ of previous VARs.
     `(progn . ,(nreverse exps))))
 
 (defmacro setq-local (&rest pairs)
-  "Make each VARIABLE buffer-local and assign to it the corresponding VALUE.
+  "Make each VARIABLE local to current buffer and set it to corresponding VALUE.
 
 The arguments are variable/value pairs.  For each VARIABLE in a pair,
-make VARIABLE buffer-local and assign to it the corresponding VALUE
-of the pair.  The VARIABLEs are literal symbols and should not be quoted.
+make VARIABLE buffer-local in the current buffer and assign to it the
+corresponding VALUE of the pair.  The VARIABLEs are literal symbols
+and should not be quoted.
 
 The VALUE of the Nth pair is not computed until after the VARIABLE
 of the (N-1)th pair is set; thus, each VALUE can use the new VALUEs