[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 3710268 350/433: Some compatibiliy tweaks
From: |
Dmitry Gutov |
Subject: |
[elpa] master 3710268 350/433: Some compatibiliy tweaks |
Date: |
Thu, 15 Mar 2018 19:44:34 -0400 (EDT) |
branch: master
commit 3710268ecf8f075c8307c1649c73cb640cf3bd80
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Some compatibiliy tweaks
* Prioritize syntax-begin-function over
font-lock-beginning-of-syntax-function.
* Check if syntax-propertize-function is bound. It isn't in Emacs 23.
---
mmm-region.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/mmm-region.el b/mmm-region.el
index ee97390..927b56e 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -507,9 +507,11 @@ is non-nil, don't quit if the info is already there."
(put mode 'mmm-fontify-region-function
font-lock-fontify-region-function)
(put mode 'mmm-beginning-of-syntax-function
- font-lock-beginning-of-syntax-function)
+ (or syntax-begin-function
+ font-lock-beginning-of-syntax-function))
(put mode 'mmm-syntax-propertize-function
- syntax-propertize-function))
+ (and (boundp 'syntax-propertize-function)
+ syntax-propertize-function)))
;; Get variables
(setq global-vars (mmm-get-locals 'global)
buffer-vars (mmm-get-locals 'buffer)
- [elpa] master 34c3a19 212/433: Updated mode preferences to check fboundp when regions are created., (continued)
- [elpa] master 34c3a19 212/433: Updated mode preferences to check fboundp when regions are created., Dmitry Gutov, 2018/03/15
- [elpa] master 46185e0 232/433: Made C indentation style variables buffer-local., Dmitry Gutov, 2018/03/15
- [elpa] master fee1b52 211/433: Added file with Emacs-related macros from Alan Shutko., Dmitry Gutov, 2018/03/15
- [elpa] master 3c68c28 235/433: * mmm-sample.el (httpd-conf-perl): Added submode class from Rob, Dmitry Gutov, 2018/03/15
- [elpa] master c8cfb89 346/433: * mmm-noweb.el: Qualify the "doesn't work" statement., Dmitry Gutov, 2018/03/15
- [elpa] master 8e7e76b 355/433: Move html-js and html-css classes from mmm-erb to mmm-sample, Dmitry Gutov, 2018/03/15
- [elpa] master 4c51cd9 315/433: Merge pull request #13 from dgutov/master, Dmitry Gutov, 2018/03/15
- [elpa] master 23be0d3 272/433: * mmm-vars.el (mmm-save-local-variables): Updated cc-mode local, Dmitry Gutov, 2018/03/15
- [elpa] master 423ead2 353/433: Say goodbye to Emacs 19, Dmitry Gutov, 2018/03/15
- [elpa] master 5bff562 304/433: Add a few docstrings to make checkdoc happier., Dmitry Gutov, 2018/03/15
- [elpa] master 3710268 350/433: Some compatibiliy tweaks,
Dmitry Gutov <=
- [elpa] master dddd397 245/433: * .cvsignore: Add semantic.cache., Dmitry Gutov, 2018/03/15
- [elpa] master eb8c964 359/433: Add "Maintainer" and some copyright headers, Dmitry Gutov, 2018/03/15
- [elpa] master cc0e3d9 382/433: Merge pull request #35 from knu/fix-html-php, Dmitry Gutov, 2018/03/15
- [elpa] master 389fc1b 246/433: Updated revision date., Dmitry Gutov, 2018/03/15
- [elpa] master 1742b06 362/433: Add mmm-erb.el to lisp_LISP, Dmitry Gutov, 2018/03/15
- [elpa] master 4eeeef0 371/433: Add first test ever, Dmitry Gutov, 2018/03/15
- [elpa] master 0d4108b 345/433: Make README more up-to-date, Dmitry Gutov, 2018/03/15
- [elpa] master f261642 398/433: Merge pull request #50 from syohex/fix-invalid-function-call, Dmitry Gutov, 2018/03/15
- [elpa] master 4085494 402/433: Release 0.5.4, Dmitry Gutov, 2018/03/15
- [elpa] master 99539e8 340/433: Rewrite mmm-regions-alist for performance, Dmitry Gutov, 2018/03/15