changeset 12514:83c518dd26c7

(tcl-mode): Fixes to 19.29 paragraph variables.
author Tom Tromey <tromey@redhat.com>
date Sun, 09 Jul 1995 21:30:32 +0000
parents 7dd018689647
children 33e32dc21948
files lisp/progmodes/tcl.el
diffstat 1 files changed, 15 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/tcl.el	Sun Jul 09 18:52:16 1995 +0000
+++ b/lisp/progmodes/tcl.el	Sun Jul 09 21:30:32 1995 +0000
@@ -6,7 +6,7 @@
 ;; Author: Tom Tromey <tromey@busco.lanl.gov>
 ;;    Chris Lindblad <cjl@lcs.mit.edu>
 ;; Keywords: languages tcl modes
-;; Version: $Revision: 1.36 $
+;; Version: $Revision: 1.37 $
 
 ;; This file is part of GNU Emacs.
 
@@ -51,7 +51,7 @@
 ;; LCD Archive Entry:
 ;; tcl|Tom Tromey|tromey@busco.lanl.gov|
 ;; Major mode for editing Tcl|
-;; $Date: 1995/07/09 01:07:57 $|$Revision: 1.36 $|~/modes/tcl.el.Z|
+;; $Date: 1995/07/09 18:52:16 $|$Revision: 1.37 $|~/modes/tcl.el.Z|
 
 ;; CUSTOMIZATION NOTES:
 ;; * tcl-proc-list can be used to customize a list of things that
@@ -65,6 +65,9 @@
 
 ;; Change log:
 ;; $Log: tcl.el,v $
+;; Revision 1.37  1995/07/09  18:52:16  tromey
+;; (tcl-do-auto-fill): Set fill-prefix.
+;;
 ;; Revision 1.36  1995/07/09  01:07:57  tromey
 ;; (tcl-imenu-create-index-function): Work with imenu from Emacs 19.29
 ;;
@@ -319,7 +322,7 @@
 	   (require 'imenu))
        ()))
 
-(defconst tcl-version "$Revision: 1.36 $")
+(defconst tcl-version "$Revision: 1.37 $")
 (defconst tcl-maintainer "Tom Tromey <tromey@drip.colorado.edu>")
 
 ;;
@@ -897,9 +900,16 @@
   (set-syntax-table tcl-mode-syntax-table)
 
   (make-local-variable 'paragraph-start)
-  (setq paragraph-start (concat "^$\\|" page-delimiter))
   (make-local-variable 'paragraph-separate)
-  (setq paragraph-separate paragraph-start)
+  (if (and tcl-using-emacs-19-23
+	   (>= emacs-minor-version 29))
+      (progn
+	;; In Emacs 19.29, you aren't supposed to start these with a
+	;; ^.
+	(setq paragraph-start "$\\|")
+	(setq paragraph-separate paragraph-start))
+    (setq paragraph-start (concat "^$\\|" page-delimiter))
+    (setq paragraph-separate paragraph-start))
   (make-local-variable 'paragraph-ignore-fill-prefix)
   (setq paragraph-ignore-fill-prefix t)