branch: elpa/rpm-spec-mode
commit bc5c240faaba118c619135d0bc3dd1cec13b42b7
Author: Björn Bidar <[email protected]>
Commit: Björn Bidar <[email protected]>

    Use setq-local rather than make-localvariable and setq
    
    Signed-off-by: Björn Bidar <[email protected]>
---
 rpm-spec-mode.el | 32 +++++++++++---------------------
 1 file changed, 11 insertions(+), 21 deletions(-)

diff --git a/rpm-spec-mode.el b/rpm-spec-mode.el
index 7cf756b5fa..fff5d62bca 100644
--- a/rpm-spec-mode.el
+++ b/rpm-spec-mode.el
@@ -701,26 +701,16 @@ with no args, if that value is non-nil."
        (setq rpm-spec-build-command "rpm")
        (setq rpm-spec-nobuild-option "--test")))
   
-  (make-local-variable 'paragraph-start)
-  (setq paragraph-start (concat "$\\|" page-delimiter))
-  (make-local-variable 'paragraph-separate)
-  (setq paragraph-separate paragraph-start)
-  (make-local-variable 'paragraph-ignore-fill-prefix)
-  (setq paragraph-ignore-fill-prefix t)
-;  (make-local-variable 'indent-line-function)
-;  (setq indent-line-function 'c-indent-line)
-  (make-local-variable 'require-final-newline)
-  (setq require-final-newline t)
-  (make-local-variable 'comment-start)
-  (setq comment-start "# ")
-  (make-local-variable 'comment-end)
-  (setq comment-end "")
-  (make-local-variable 'comment-column)
-  (setq comment-column 32)
-  (make-local-variable 'comment-start-skip)
-  (setq comment-start-skip "#+ *")
-;  (make-local-variable 'comment-indent-function)
-;  (setq comment-indent-function 'c-comment-indent)
+  (setq-local paragraph-start (concat "$\\|" page-delimiter))
+  (setq-local paragraph-separate paragraph-start)
+  (setq-local paragraph-ignore-fill-prefix t)
+;  (setq-local indent-line-function 'c-indent-line)
+  (setq-local require-final-newline t)
+  (setq-local comment-start "# ")
+  (setq-local comment-end "")
+  (setq-local comment-column 32)
+  (setq-local comment-start-skip "#+ *")
+;  (setq-local comment-indent-function 'c-comment-indent)
   ;;Initialize font lock for GNU emacs.
   (make-local-variable 'font-lock-defaults)
   (font-lock-add-keywords nil rpm-spec-font-lock-keywords)
@@ -1491,6 +1481,6 @@ If ARG is non-nil increase by ARG or 1 if not"
 (provide 'rpm-spec-mode)
 ;;;###autoload
 (define-compilation-mode rpmbuild-mode "RPM build" ""
-  (set (make-local-variable 'compilation-disable-input) t))
+  (setq-local compilation-disable-input t))
 
 ;;; rpm-spec-mode.el ends here

Reply via email to