aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2007-12-13 22:14:42 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2007-12-13 22:14:42 +0000
commit2033f94996af8bae44346ce8257446802029daa4 (patch)
treedeab4ca93cb04509bc93f387639b1b75aa89783b
parentcc920688fde5eefac2201a07d894ee9b66e4d1fc (diff)
mmm-insert-by-key: add an indicator to holes.el to prevent it adding holes
-rw-r--r--mmm/mmm-cmds.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/mmm/mmm-cmds.el b/mmm/mmm-cmds.el
index e192101d..c564fe89 100644
--- a/mmm/mmm-cmds.el
+++ b/mmm/mmm-cmds.el
@@ -268,7 +268,10 @@ MODIFIERS, the dotted list becomes simply BASIC-KEY."
(multiple-value-bind (class skel str) (mmm-get-insertion-spec key)
(when skel
(let ((after-change-functions nil)
- (old-undo buffer-undo-list) undo)
+ (old-undo buffer-undo-list) undo
+ ;; da: Proof General patch for compatibility with holes.el,
+ ;; bind this variable to prevent inserting holes here.
+ mmm-inside-insert-by-key)
;; XEmacs' skeleton doesn't manage positions by itself, so we
;; have to do it.
(if mmm-xemacs (setq skeleton-positions nil))