summaryrefslogtreecommitdiffstats
path: root/Auxiliary
diff options
context:
space:
mode:
authorPhilipp Möller <bootsarehax@googlemail.com>2014-01-28 16:54:56 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-28 17:41:11 (GMT)
commitd3db7126e654ac947db7653250030c858070e746 (patch)
tree92fae828a916557c4ea14c56fdbb57e2ed238ebd /Auxiliary
parentfbc3a6f33e41913ca481377418dee8e7f5b9b380 (diff)
downloadCMake-d3db7126e654ac947db7653250030c858070e746.zip
CMake-d3db7126e654ac947db7653250030c858070e746.tar.gz
CMake-d3db7126e654ac947db7653250030c858070e746.tar.bz2
cmake-mode.el: Don't assign to free variable save-point
Drop use of the free variable from unscreamify-cmake-buffer. The proper way to do this would be defvar or let, but it is more sensible to drop the feature completely: replace-match will shift the point and the saved-point will be invalid. More careful coding could avoid this, but seems overkill.
Diffstat (limited to 'Auxiliary')
-rw-r--r--Auxiliary/cmake-mode.el2
1 files changed, 0 insertions, 2 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el
index 7355b7c..eb6e84e 100644
--- a/Auxiliary/cmake-mode.el
+++ b/Auxiliary/cmake-mode.el
@@ -186,7 +186,6 @@ the indentation. Otherwise it retains the same position on the line"
(defun unscreamify-cmake-buffer ()
"Convert all CMake commands to lowercase in buffer."
(interactive)
- (setq save-point (point))
(goto-char (point-min))
(while (re-search-forward "^\\([ \t]*\\)\\(\\w+\\)\\([ \t]*(\\)" nil t)
(replace-match
@@ -195,7 +194,6 @@ the indentation. Otherwise it retains the same position on the line"
(downcase (match-string 2))
(match-string 3))
t))
- (goto-char save-point)
)
;------------------------------------------------------------------------------