diff options
| author | Tom Tromey | 1995-07-09 21:30:32 +0000 |
|---|---|---|
| committer | Tom Tromey | 1995-07-09 21:30:32 +0000 |
| commit | fdacefbd18da5caab1f932d7cfb1e0f8655fbf27 (patch) | |
| tree | f5dec8ef40b41ddcbbeb71163687707425ce6855 | |
| parent | 19759845777093564e7da51ed9679caeefe15e4b (diff) | |
| download | emacs-fdacefbd18da5caab1f932d7cfb1e0f8655fbf27.tar.gz emacs-fdacefbd18da5caab1f932d7cfb1e0f8655fbf27.zip | |
(tcl-mode): Fixes to 19.29 paragraph variables.
| -rw-r--r-- | lisp/progmodes/tcl.el | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index 4c854f58cb3..0ee54c9766e 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Tom Tromey <tromey@busco.lanl.gov> | 6 | ;; Author: Tom Tromey <tromey@busco.lanl.gov> |
| 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.36 $ | 9 | ;; Version: $Revision: 1.37 $ |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | 12 | ||
| @@ -51,7 +51,7 @@ | |||
| 51 | ;; LCD Archive Entry: | 51 | ;; LCD Archive Entry: |
| 52 | ;; tcl|Tom Tromey|tromey@busco.lanl.gov| | 52 | ;; tcl|Tom Tromey|tromey@busco.lanl.gov| |
| 53 | ;; Major mode for editing Tcl| | 53 | ;; Major mode for editing Tcl| |
| 54 | ;; $Date: 1995/07/09 01:07:57 $|$Revision: 1.36 $|~/modes/tcl.el.Z| | 54 | ;; $Date: 1995/07/09 18:52:16 $|$Revision: 1.37 $|~/modes/tcl.el.Z| |
| 55 | 55 | ||
| 56 | ;; CUSTOMIZATION NOTES: | 56 | ;; CUSTOMIZATION NOTES: |
| 57 | ;; * tcl-proc-list can be used to customize a list of things that | 57 | ;; * tcl-proc-list can be used to customize a list of things that |
| @@ -65,6 +65,9 @@ | |||
| 65 | 65 | ||
| 66 | ;; Change log: | 66 | ;; Change log: |
| 67 | ;; $Log: tcl.el,v $ | 67 | ;; $Log: tcl.el,v $ |
| 68 | ;; Revision 1.37 1995/07/09 18:52:16 tromey | ||
| 69 | ;; (tcl-do-auto-fill): Set fill-prefix. | ||
| 70 | ;; | ||
| 68 | ;; Revision 1.36 1995/07/09 01:07:57 tromey | 71 | ;; Revision 1.36 1995/07/09 01:07:57 tromey |
| 69 | ;; (tcl-imenu-create-index-function): Work with imenu from Emacs 19.29 | 72 | ;; (tcl-imenu-create-index-function): Work with imenu from Emacs 19.29 |
| 70 | ;; | 73 | ;; |
| @@ -319,7 +322,7 @@ | |||
| 319 | (require 'imenu)) | 322 | (require 'imenu)) |
| 320 | ())) | 323 | ())) |
| 321 | 324 | ||
| 322 | (defconst tcl-version "$Revision: 1.36 $") | 325 | (defconst tcl-version "$Revision: 1.37 $") |
| 323 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") | 326 | (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>") |
| 324 | 327 | ||
| 325 | ;; | 328 | ;; |
| @@ -897,9 +900,16 @@ Commands: | |||
| 897 | (set-syntax-table tcl-mode-syntax-table) | 900 | (set-syntax-table tcl-mode-syntax-table) |
| 898 | 901 | ||
| 899 | (make-local-variable 'paragraph-start) | 902 | (make-local-variable 'paragraph-start) |
| 900 | (setq paragraph-start (concat "^$\\|" page-delimiter)) | ||
| 901 | (make-local-variable 'paragraph-separate) | 903 | (make-local-variable 'paragraph-separate) |
| 902 | (setq paragraph-separate paragraph-start) | 904 | (if (and tcl-using-emacs-19-23 |
| 905 | (>= emacs-minor-version 29)) | ||
| 906 | (progn | ||
| 907 | ;; In Emacs 19.29, you aren't supposed to start these with a | ||
| 908 | ;; ^. | ||
| 909 | (setq paragraph-start "$\\|") | ||
| 910 | (setq paragraph-separate paragraph-start)) | ||
| 911 | (setq paragraph-start (concat "^$\\|" page-delimiter)) | ||
| 912 | (setq paragraph-separate paragraph-start)) | ||
| 903 | (make-local-variable 'paragraph-ignore-fill-prefix) | 913 | (make-local-variable 'paragraph-ignore-fill-prefix) |
| 904 | (setq paragraph-ignore-fill-prefix t) | 914 | (setq paragraph-ignore-fill-prefix t) |
| 905 | 915 | ||