diff options
| author | Richard M. Stallman | 2002-02-20 22:33:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-02-20 22:33:35 +0000 |
| commit | 0472b23ea79094d7c91543ccbbda8ffd86a843c7 (patch) | |
| tree | 4439b43f88b98be3c18a8c66c7d4dfa6d9883c4c | |
| parent | 94ddbe6d9ec955c1f63d7bb0df10744657007df1 (diff) | |
| download | emacs-0472b23ea79094d7c91543ccbbda8ffd86a843c7.tar.gz emacs-0472b23ea79094d7c91543ccbbda8ffd86a843c7.zip | |
(tcl-do-fill-paragraph): Find and fill on more
natural paragraph boundaries. Don't fail at beginning of buffer.
| -rw-r--r-- | lisp/progmodes/tcl.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index cf43669a2cf..60efed8c168 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | ;;; tcl.el --- Tcl code editing commands for Emacs | 1 | ;;; tcl.el --- Tcl code editing commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: Tom Tromey <tromey@busco.lanl.gov> | 5 | ;; Maintainer: Tom Tromey <tromey@redhat.com> |
| 6 | ;; Author: Tom Tromey <tromey@busco.lanl.gov> | 6 | ;; Author: Tom Tromey <tromey@redhat.com> |
| 7 | ;; Chris Lindblad <cjl@lcs.mit.edu> | 7 | ;; Chris Lindblad <cjl@lcs.mit.edu> |
| 8 | ;; Keywords: languages tcl modes | 8 | ;; Keywords: languages tcl modes |
| 9 | ;; Version: $Revision: 1.64 $ | 9 | ;; Version: $Revision: 1.65 $ |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | 12 | ||
| @@ -1269,14 +1269,14 @@ simpler version that is often right, and works in Emacs 18." | |||
| 1269 | p-start p-end) | 1269 | p-start p-end) |
| 1270 | ;; Search backwards. | 1270 | ;; Search backwards. |
| 1271 | (save-excursion | 1271 | (save-excursion |
| 1272 | (while (looking-at "^[ \t]*#") | 1272 | (while (and (looking-at "^[ \t]*#[ \t]*[^ \t\n]") |
| 1273 | (not (bobp))) | ||
| 1273 | (forward-line -1)) | 1274 | (forward-line -1)) |
| 1274 | (forward-line) | ||
| 1275 | (setq p-start (point))) | 1275 | (setq p-start (point))) |
| 1276 | 1276 | ||
| 1277 | ;; Search forwards. | 1277 | ;; Search forwards. |
| 1278 | (save-excursion | 1278 | (save-excursion |
| 1279 | (while (looking-at "^[ \t]*#") | 1279 | (while (looking-at "^[ \t]*#[ \t]*[^ \t\n]") |
| 1280 | (forward-line)) | 1280 | (forward-line)) |
| 1281 | (setq p-end (point))) | 1281 | (setq p-end (point))) |
| 1282 | 1282 | ||