+2006-07-22 Eric Hanchrow <offby1@blarg.net>
+
+ * progmodes/delphi.el (delphi-fill-comment): Use save-restriction.
+
2006-07-22 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
* startup.el (user-mail-address): Initialize from the `EMAIL'
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))
;; 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