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

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

[nongnu] elpa/go-mode 0c25389 081/495: do not set syntax-propertize-func


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 0c25389 081/495: do not set syntax-propertize-function for emacsen that don't know it (GNU Emacs <24 for one)
Date: Sat, 7 Aug 2021 09:04:48 -0400 (EDT)

branch: elpa/go-mode
commit 0c2538986a9e08eb857e2a493138a2abcd915c6f
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    do not set syntax-propertize-function for emacsen that don't know it (GNU 
Emacs <24 for one)
---
 go-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/go-mode.el b/go-mode.el
index deacd80..0a51fed 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -287,7 +287,8 @@ functions, and some types.  It also provides indentation 
that is
   (set (make-local-variable 'end-of-defun-function) 'go-end-of-defun)
 
   (set (make-local-variable 'parse-sexp-lookup-properties) t)
-  (set (make-local-variable 'syntax-propertize-function) 'go-propertize-syntax)
+  (if (boundp 'syntax-propertize-function)
+      (set (make-local-variable 'syntax-propertize-function) 
'go-propertize-syntax))
 
   (set (make-local-variable 'go-dangling-cache) #s(hash-table test eql))
   (add-to-list 'before-change-functions (lambda (x y) (setq go-dangling-cache 
#s(hash-table test eql))))



reply via email to

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