emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/ada-mode 04ed297 29/48: * packages/ada-mode/ada-mode.el


From: Stefan Monnier
Subject: [elpa] externals/ada-mode 04ed297 29/48: * packages/ada-mode/ada-mode.el (ada-mode): emacs 26 vs hack-local-variables
Date: Mon, 30 Nov 2020 17:20:42 -0500 (EST)

branch: externals/ada-mode
commit 04ed297fa24b82182ad7c98f12fc72cfbd33e002
Author: Stephen Leake <stephen_leake@stephe-leake.org>
Commit: Stephen Leake <stephen_leake@stephe-leake.org>

    * packages/ada-mode/ada-mode.el (ada-mode): emacs 26 vs hack-local-variables
---
 ada-mode.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/ada-mode.el b/ada-mode.el
index efd2c4f..5e86e14 100755
--- a/ada-mode.el
+++ b/ada-mode.el
@@ -1,12 +1,12 @@
 ;;; ada-mode.el --- major-mode for editing Ada sources  -*- lexical-binding:t 
-*-
 ;;
-;; Copyright (C) 1994, 1995, 1997 - 2017  Free Software Foundation, Inc.
+;; Copyright (C) 1994, 1995, 1997 - 2018  Free Software Foundation, Inc.
 ;;
 ;; Author: Stephen Leake <stephen_leake@stephe-leake.org>
 ;; Maintainer: Stephen Leake <stephen_leake@stephe-leake.org>
 ;; Keywords: languages
 ;;  ada
-;; Version: 5.3.1
+;; Version: 5.3.2
 ;; package-requires: ((wisi "1.1.6") (cl-lib "0.4") (emacs "24.3"))
 ;; url: http://www.nongnu.org/ada-mode/
 ;;
@@ -2933,7 +2933,11 @@ The paragraph is indented on the first line."
 
   (when (< emacs-major-version 25) (syntax-propertize (point-max)))
 
-  (add-hook 'hack-local-variables-hook 'ada-mode-post-local-vars nil t)
+  (if (<= emacs-major-version 25)
+      ;; run-mode-hooks does _not_ call hack-local-variables
+      (add-hook 'hack-local-variables-hook 'ada-mode-post-local-vars nil t)
+    ;; >= 26; run-mode-hooks _does_ call hack-local-variables
+    (ada-mode-post-local-vars))
   )
 
 (defun ada-mode-post-local-vars ()



reply via email to

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