# HG changeset patch # User Eli Zaretskii # Date 1153566482 0 # Node ID cf25c4a644cd2dfefc36d0e1704d5b7c2df7ddfe # Parent 21e42eee763ce6c54b9f7e29122a28e1ea979663 (delphi-fill-comment): Use save-restriction. diff -r 21e42eee763c -r cf25c4a644cd lisp/progmodes/delphi.el --- a/lisp/progmodes/delphi.el Sat Jul 22 10:56:33 2006 +0000 +++ b/lisp/progmodes/delphi.el Sat Jul 22 11:08:02 2006 +0000 @@ -1767,6 +1767,7 @@ 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 @@ ;; 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