From 908f39c41143428256bf54b0ecffcf8a3e60ac30 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Sun, 6 Sep 2009 13:29:16 +0000 Subject: Make holes-abbrev-complete obey status of minor mode. --- lib/holes.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/holes.el b/lib/holes.el index 40bad9a0..eab96275 100644 --- a/lib/holes.el +++ b/lib/holes.el @@ -619,7 +619,8 @@ created. Return the number of holes created." Moves point at beginning of expanded text. Put this function as call-back for your abbrevs, and just expanded \"#\" and \"@{..}\" will become holes." - (holes-replace-string-by-holes-backward-jump last-abbrev-location)) + (if holes-mode + (holes-replace-string-by-holes-backward-jump last-abbrev-location))) ;;;###autoload @@ -721,7 +722,9 @@ KNOWN BUGS it mean anyway?) o Cutting or pasting a hole will not produce new holes, and -undoing on holes cannot make holes re-appear." +undoing on holes cannot make holes re-appear. + + o Turning off holes mode does not remove holes from buffer." nil " Holes" holes-mode-map :group 'holes (if holes-mode -- cgit v1.2.3