[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 0fcfb2b 004/433: Required font-lock and mmm-auto at top le
From: |
Dmitry Gutov |
Subject: |
[elpa] master 0fcfb2b 004/433: Required font-lock and mmm-auto at top level for byte compilation. |
Date: |
Thu, 15 Mar 2018 19:43:24 -0400 (EDT) |
branch: master
commit 0fcfb2b47172f6943332021f34e3d37e6e84e62e
Author: mas <mas>
Commit: mas <mas>
Required font-lock and mmm-auto at top level for byte compilation.
Moved local maps to come before updating hooks for byte compilation.
---
mmm-region.el | 54 ++++++++++++++++++++++++++++--------------------------
1 file changed, 28 insertions(+), 26 deletions(-)
diff --git a/mmm-region.el b/mmm-region.el
index 8845cf0..c8e21c7 100644
--- a/mmm-region.el
+++ b/mmm-region.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2000 by Michael Abraham Shulman
;; Author: Michael Abraham Shulman <address@hidden>
-;; Version: $Id: mmm-region.el,v 1.2 2000/04/30 01:47:04 mas Exp $
+;; Version: $Id: mmm-region.el,v 1.3 2000/04/30 07:53:20 mas Exp $
;;{{{ GPL
@@ -34,8 +34,10 @@
;;; Code:
(require 'cl)
+(require 'font-lock)
(require 'mmm-compat)
(require 'mmm-utils)
+(require 'mmm-auto)
(progn
(require 'mmm-vars))
@@ -281,6 +283,31 @@ mode for it to be a submode or a major mode with submodes."
(mmm-font-lock-mode ,font-lock-mode)))
;;}}}
+;;{{{ Local Maps
+
+;; This is for the benefit of commands such as `vm-mail', which calls
+;; `mail-mode' but then changes the local map afterwards. It's kludgy,
+;; I know, but at the moment I don't have time to think of a neater
+;; solution.
+
+(defvar mmm-local-maps-alist ()
+ "Which local maps have been changed in this buffer.")
+(make-variable-buffer-local 'mmm-local-maps-alist)
+
+;; Save the real function away for our use.
+(fset 'mmm-real-use-local-map (symbol-function 'use-local-map))
+
+(defadvice use-local-map (after mmm-keep-record activate compile)
+ "Keep track of which local maps have been changed in which buffers."
+ (mmm-valid-buffer
+ (mmm-update-current-submode)
+ (let* ((mode (or mmm-current-submode major-mode))
+ (map (assq mode mmm-local-maps-alist)))
+ (if map
+ (setcdr map (current-local-map))
+ (push (cons mode (current-local-map)) mmm-local-maps-alist)))))
+
+;;}}}
;;{{{ Updating Hooks
(defun mmm-update-submode-region ()
@@ -340,31 +367,6 @@ maps, syntax tables, etc. for submodes."
mmm-save-local-variables))
;;}}}
-;;{{{ Local Maps
-
-;; This is for the benefit of commands such as `vm-mail', which calls
-;; `mail-mode' but then changes the local map afterwards. It's kludgy,
-;; I know, but at the moment I don't have time to think of a neater
-;; solution.
-
-(defvar mmm-local-maps-alist ()
- "Which local maps have been changed in this buffer.")
-(make-variable-buffer-local 'mmm-local-maps-alist)
-
-;; Save the real function away for our use.
-(fset 'mmm-real-use-local-map (symbol-function 'use-local-map))
-
-(defadvice use-local-map (after mmm-keep-record activate compile)
- "Keep track of which local maps have been changed in which buffers."
- (mmm-valid-buffer
- (mmm-update-current-submode)
- (let* ((mode (or mmm-current-submode major-mode))
- (map (assq mode mmm-local-maps-alist)))
- (if map
- (setcdr map (current-local-map))
- (push (cons mode (current-local-map)) mmm-local-maps-alist)))))
-
-;;}}}
;; FONT LOCK
;;{{{ Get Submode Regions
- [elpa] master updated (71566ba -> aea8495), Dmitry Gutov, 2018/03/15
- [elpa] master 793c81e 003/433: Loaded CL at top level for byte-compile., Dmitry Gutov, 2018/03/15
- [elpa] master 88e8b9f 002/433: Put all `require's not needed at compile-time into `progn's so the, Dmitry Gutov, 2018/03/15
- [elpa] master cfb0dbc 008/433: Fixed "sub"-insertion specs like <%perl> under <%TAG> not to insert, Dmitry Gutov, 2018/03/15
- [elpa] master 0fcfb2b 004/433: Required font-lock and mmm-auto at top level for byte compilation.,
Dmitry Gutov <=
- [elpa] master 20bdf05 010/433: Changed insertion key of <%doc> to `d' and added insertion of %#, Dmitry Gutov, 2018/03/15
- [elpa] master 47952d1 007/433: Added dependencies on mmm-compat and mmm-vars., Dmitry Gutov, 2018/03/15
- [elpa] master 73dab9f 011/433: Fixed bug: # is not allowed in symbols., Dmitry Gutov, 2018/03/15
- [elpa] master 70899d9 005/433: Changed (progn (require ...)) to (when t (require ...)) because the, Dmitry Gutov, 2018/03/15
- [elpa] master ffdc253 013/433: `require'd mmm-vars at top level for byte-compiling., Dmitry Gutov, 2018/03/15
- [elpa] master aaf649c 016/433: (mmm-version): changed to 0.3.8., Dmitry Gutov, 2018/03/15
- [elpa] master 9b5e8f4 009/433: Distinguished between Perl sections and pseudo-Perl sections. The one, Dmitry Gutov, 2018/03/15
- [elpa] master 4ccebfd 014/433: Moved `require's back to top level for byte-compiling., Dmitry Gutov, 2018/03/15
- [elpa] master da0aa8f 015/433: Moved `require's back to top level for byte-compiling. Added dummy, Dmitry Gutov, 2018/03/15
- [elpa] master 23ff01c 017/433: Pre-added major mode hook to text-mode-hook., Dmitry Gutov, 2018/03/15