summaryrefslogtreecommitdiff
path: root/lisp/progmodes/delphi.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2006-07-22 11:08:55 +0000
committerEli Zaretskii <eliz@gnu.org>2006-07-22 11:08:55 +0000
commit5b01aef2dbc45d734ad5436d10ef1af4c3227bda (patch)
tree1e513fa32b7a68bf607ec4da0c4657d3b0eef1c3 /lisp/progmodes/delphi.el
parent23310d0e8b4506bce4a07d59866872ffdc6b8eee (diff)
downloademacs-5b01aef2dbc45d734ad5436d10ef1af4c3227bda.tar.gz
emacs-5b01aef2dbc45d734ad5436d10ef1af4c3227bda.tar.bz2
emacs-5b01aef2dbc45d734ad5436d10ef1af4c3227bda.zip
(delphi-fill-comment): Use save-restriction.
Diffstat (limited to 'lisp/progmodes/delphi.el')
-rw-r--r--lisp/progmodes/delphi.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/delphi.el b/lisp/progmodes/delphi.el
index 03ab24adf47..44a192ab772 100644
--- a/lisp/progmodes/delphi.el
+++ b/lisp/progmodes/delphi.el
@@ -1767,6 +1767,7 @@ it is a routine."
An error is raised if not in a comment."
(interactive)
(save-excursion
+ (save-restriction
(let* ((comment (delphi-current-token))
(comment-kind (delphi-token-kind comment)))
(if (not (delphi-is comment-kind delphi-comments))
@@ -1845,7 +1846,7 @@ An error is raised if not in a comment."
;; React to the entire fill change as a whole.
(delphi-progress-start)
(delphi-parse-region comment-start comment-end)
- (delphi-progress-done))))))
+ (delphi-progress-done)))))))
(defun delphi-new-comment-line ()
"If in a // comment, does a newline, indented such that one is still in the