]> git.eshelyaron.com Git - emacs.git/commitdiff
; cperl-mode: Fix a compiler warning caused by my previous commit
authorHarald Jörg <haj@posteo.de>
Tue, 9 Jan 2024 10:44:43 +0000 (11:44 +0100)
committerHarald Jörg <haj@posteo.de>
Tue, 9 Jan 2024 10:44:43 +0000 (11:44 +0100)
* lisp/progmodes/cperl-mode.el (cperl-file-style): Replace
'make-variable-buffer-local' with 'make.local-variable'

lisp/progmodes/cperl-mode.el

index 5e435f7133ee41652037ada8a305e19f5b4520be..bfc1742610cd491db61f444bd560c275f6c9748c 100644 (file)
@@ -6556,10 +6556,8 @@ and \"Whitesmith\"."
   (dolist (setting (cdr (assoc style cperl-style-alist)) style)
     (let ((option (car setting))
           (value (cdr setting)))
-      (make-variable-buffer-local option)
-      (set option value)))
-  (make-variable-buffer-local 'cperl-file-style)
-  (setq cperl-file-style style))
+      (set (make-local-variable option) value)))
+  (set (make-local-variable 'cperl-file-style) style))
 
 (declare-function Info-find-node "info"
                  (filename nodename &optional no-going-back strict-case