diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2009-09-06 13:29:16 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2009-09-06 13:29:16 +0000 |
commit | 908f39c41143428256bf54b0ecffcf8a3e60ac30 (patch) | |
tree | 656c3b2d4a28b72c606730857fe1f938ddccf146 /lib | |
parent | 0a766df1831e1cf3301d523cc6d9ba1fe85ff103 (diff) |
Make holes-abbrev-complete obey status of minor mode.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/holes.el | 7 |
1 files 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 |