emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0a5ebd444a8: ; cperl-mode: Fix a compiler warning caused by my pr


From: Harald Jörg
Subject: master 0a5ebd444a8: ; cperl-mode: Fix a compiler warning caused by my previous commit
Date: Tue, 9 Jan 2024 05:49:21 -0500 (EST)

branch: master
commit 0a5ebd444a820308571a659005d094b2dd93fe3f
Author: Harald Jörg <haj@posteo.de>
Commit: Harald Jörg <haj@posteo.de>

    ; cperl-mode: Fix a compiler warning caused by my previous commit
    
    * lisp/progmodes/cperl-mode.el (cperl-file-style): Replace
    'make-variable-buffer-local' with 'make.local-variable'
---
 lisp/progmodes/cperl-mode.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 5e435f7133e..bfc1742610c 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]