diff options
| author | Eli Zaretskii | 2006-07-22 11:08:55 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-07-22 11:08:55 +0000 |
| commit | 5b01aef2dbc45d734ad5436d10ef1af4c3227bda (patch) | |
| tree | 1e513fa32b7a68bf607ec4da0c4657d3b0eef1c3 | |
| parent | 23310d0e8b4506bce4a07d59866872ffdc6b8eee (diff) | |
| download | emacs-5b01aef2dbc45d734ad5436d10ef1af4c3227bda.tar.gz emacs-5b01aef2dbc45d734ad5436d10ef1af4c3227bda.zip | |
(delphi-fill-comment): Use save-restriction.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/delphi.el | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d49a24a0e8e..cfadb25a5e4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-07-22 Eric Hanchrow <offby1@blarg.net> | ||
| 2 | |||
| 3 | * progmodes/delphi.el (delphi-fill-comment): Use save-restriction. | ||
| 4 | |||
| 1 | 2006-07-22 Micha,Ak(Bl Cadilhac <michael.cadilhac@lrde.org> | 5 | 2006-07-22 Micha,Ak(Bl Cadilhac <michael.cadilhac@lrde.org> |
| 2 | 6 | ||
| 3 | * startup.el (user-mail-address): Initialize from the `EMAIL' | 7 | * startup.el (user-mail-address): Initialize from the `EMAIL' |
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." | |||
| 1767 | An error is raised if not in a comment." | 1767 | An error is raised if not in a comment." |
| 1768 | (interactive) | 1768 | (interactive) |
| 1769 | (save-excursion | 1769 | (save-excursion |
| 1770 | (save-restriction | ||
| 1770 | (let* ((comment (delphi-current-token)) | 1771 | (let* ((comment (delphi-current-token)) |
| 1771 | (comment-kind (delphi-token-kind comment))) | 1772 | (comment-kind (delphi-token-kind comment))) |
| 1772 | (if (not (delphi-is comment-kind delphi-comments)) | 1773 | (if (not (delphi-is comment-kind delphi-comments)) |
| @@ -1845,7 +1846,7 @@ An error is raised if not in a comment." | |||
| 1845 | ;; React to the entire fill change as a whole. | 1846 | ;; React to the entire fill change as a whole. |
| 1846 | (delphi-progress-start) | 1847 | (delphi-progress-start) |
| 1847 | (delphi-parse-region comment-start comment-end) | 1848 | (delphi-parse-region comment-start comment-end) |
| 1848 | (delphi-progress-done)))))) | 1849 | (delphi-progress-done))))))) |
| 1849 | 1850 | ||
| 1850 | (defun delphi-new-comment-line () | 1851 | (defun delphi-new-comment-line () |
| 1851 | "If in a // comment, does a newline, indented such that one is still in the | 1852 | "If in a // comment, does a newline, indented such that one is still in the |