]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "; * lisp/subr.el (setq-local): Doc fix (bug#78644)."
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 May 2025 08:08:45 +0000 (11:08 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 19:53:59 +0000 (21:53 +0200)
This reverts commit cb9556d669c037c4e2f1a9c80adacad55948c706.
Some of its parts were not supposed to be installed.

(cherry picked from commit 1bb88a86cb38d47006b257fa18a150f23345ad56)

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

index a5abe9e2b96191afff3d1cb4a30c2ccfe8ad338c..ec894ab8ee5bbd6a24ea976eb7b5842a75914fb3 100644 (file)
   (error nil))
 
 (condition-case nil
-    (unless (featurep 'cus-start)
-      (require 'cus-start))
+    (require 'cus-start)
   (error nil))
 
 (put 'custom-define-hook 'custom-type 'hook)
index c7a1c354ee32dfa8312d58f77ab946d5a4585f82..048e4a55c72baf9f5365611a28a2d48a4f248dbe 100644 (file)
@@ -702,8 +702,7 @@ The result is that the change is treated as having been made through Custom."
       (ignore-errors
         (require 'cus-load))
       (ignore-errors
-        (unless (featurep 'cus-start)
-          (require '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 97717eff07b9335a2f941b1a2a6b94199f0b6e81..d6f05ab4d6c554af30ae147fdcc348c441c62cfc 100644 (file)
@@ -161,12 +161,11 @@ of previous VARs.
     `(progn . ,(nreverse exps))))
 
 (defmacro setq-local (&rest pairs)
-  "Make each VARIABLE local to current buffer and set it to corresponding VALUE.
+  "Make each VARIABLE buffer-local and assign to it the corresponding VALUE.
 
 The arguments are variable/value pairs.  For each VARIABLE in a pair,
-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.
+make VARIABLE buffer-local 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