[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5a34588 028/433: (mmm-overlays-in): Added checks for point
From: |
Dmitry Gutov |
Subject: |
[elpa] master 5a34588 028/433: (mmm-overlays-in): Added checks for point-min and point-max for XEmacs. |
Date: |
Thu, 15 Mar 2018 19:43:29 -0400 (EDT) |
branch: master
commit 5a34588a85fd3b8c44ff56ca1cbe035d1a47aab2
Author: mas <mas>
Commit: mas <mas>
(mmm-overlays-in): Added checks for point-min and point-max for XEmacs.
(use-local-map): Added the advice back in.
---
mmm-region.el | 31 ++++++++++++-------------------
1 file changed, 12 insertions(+), 19 deletions(-)
diff --git a/mmm-region.el b/mmm-region.el
index cfd59d5..d9510dc 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.6 2000/06/08 11:41:30 mas Exp $
+;; Version: $Id: mmm-region.el,v 1.7 2000/06/08 18:24:00 mas Exp $
;;{{{ GPL
@@ -162,7 +162,8 @@ contained in the region, including their delimiters \(if
any)."
(or (not strict)
(>= stop (mmm-back-end ovl))
(<= start (mmm-front-start ovl)))))
- (overlays-in start stop))))
+ (overlays-in (max start (point-min))
+ (min stop (point-max))))))
(defun mmm-sort-overlays (overlays)
"Sort OVERLAYS in order of decreasing priority."
@@ -289,12 +290,6 @@ mode for it to be a submode or a major mode with submodes."
;; I know, but at the moment I don't have time to think of a neater
;; solution.
-;; Actually, `vm-mail' is the only command I know of which does this,
-;; and one could argue that such behavior is noncompliant with Emacs
-;; standards. The advice seems to cause trouble under XEmacs, but I
-;; haven't had any problems with it under Emacs, so until something
-;; goes wrong, I'll leave it in for the latter only.
-
(defvar mmm-local-maps-alist ()
"Which local maps have been changed in this buffer.
Not used under XEmacs.")
@@ -305,17 +300,15 @@ Not used under XEmacs.")
"Shut up the byte compiler")
(fset 'mmm-real-use-local-map (symbol-function 'use-local-map))
-(unless mmm-xemacs
- (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)))))
- )
+(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
- [elpa] master fa54563 027/433: # Updated., (continued)
- [elpa] master fa54563 027/433: # Updated., Dmitry Gutov, 2018/03/15
- [elpa] master fd76a7a 024/433: # Per-buffer local variable saving., Dmitry Gutov, 2018/03/15
- [elpa] master e1532c5 025/433: # Updated., Dmitry Gutov, 2018/03/15
- [elpa] master 2cecadb 030/433: Released 0.3.10., Dmitry Gutov, 2018/03/15
- [elpa] master 537d48a 029/433: # Added .tar.gz files., Dmitry Gutov, 2018/03/15
- [elpa] master 2055dc3 023/433: (use-local-map): Conditioned advice definition on not XEmacs., Dmitry Gutov, 2018/03/15
- [elpa] master 73a2b86 032/433: # Updated documentation strings., Dmitry Gutov, 2018/03/15
- [elpa] master 04e92ed 034/433: (mmm-save-local-variable): Added comment-line-start-skip for Fortran., Dmitry Gutov, 2018/03/15
- [elpa] master 1d1bd23 038/433: # Changed to use mmm-temp-buffer-name, Dmitry Gutov, 2018/03/15
- [elpa] master 0fbe87a 033/433: Added comment about (require 'mmm-mason)., Dmitry Gutov, 2018/03/15
- [elpa] master 5a34588 028/433: (mmm-overlays-in): Added checks for point-min and point-max for XEmacs.,
Dmitry Gutov <=
- [elpa] master 54396d3 036/433: Added setting and clearing local variables with mode on and off., Dmitry Gutov, 2018/03/15
- [elpa] master f4f6842 039/433: # Improved local variable setting, added some new ideas., Dmitry Gutov, 2018/03/15
- [elpa] master 988a3db 035/433: (mmm-save-local-variables): Added extra parameters for saving type and, Dmitry Gutov, 2018/03/15
- [elpa] master 3c44251 047/433: # Added comment about loading supplied classes separately., Dmitry Gutov, 2018/03/15
- [elpa] master faaf000 040/433: # Commented on local variable improvements and version numbers., Dmitry Gutov, 2018/03/15
- [elpa] master 85ced66 041/433: # Reformatting., Dmitry Gutov, 2018/03/15
- [elpa] master 216c602 046/433: Fixed bug saving variables when creating regions; need to set them first., Dmitry Gutov, 2018/03/15
- [elpa] master 854c8a1 049/433: # Updated., Dmitry Gutov, 2018/03/15
- [elpa] master fbf7da0 045/433: # Updated docstring, Dmitry Gutov, 2018/03/15
- [elpa] master c2f2ef7 050/433: # Changed version numbers, Dmitry Gutov, 2018/03/15