[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 170394c: * packages/ada-mode/ada-mode.el (ada-mode): emacs
From: |
Stephen Leake |
Subject: |
[elpa] master 170394c: * packages/ada-mode/ada-mode.el (ada-mode): emacs 26 vs hack-local-variables |
Date: |
Wed, 14 Nov 2018 14:03:31 -0500 (EST) |
branch: master
commit 170394cefd5bf4512337b1114c1d5f8a80a549e3
Author: Stephen Leake <address@hidden>
Commit: Stephen Leake <address@hidden>
* packages/ada-mode/ada-mode.el (ada-mode): emacs 26 vs hack-local-variables
---
packages/ada-mode/ada-mode.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/packages/ada-mode/ada-mode.el b/packages/ada-mode/ada-mode.el
index efd2c4f..5e86e14 100755
--- a/packages/ada-mode/ada-mode.el
+++ b/packages/ada-mode/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 <address@hidden>
;; Maintainer: Stephen Leake <address@hidden>
;; 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 ()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 170394c: * packages/ada-mode/ada-mode.el (ada-mode): emacs 26 vs hack-local-variables,
Stephen Leake <=