From fdacefbd18da5caab1f932d7cfb1e0f8655fbf27 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 9 Jul 1995 21:30:32 +0000 Subject: [PATCH] (tcl-mode): Fixes to 19.29 paragraph variables. --- lisp/progmodes/tcl.el | 20 +++++++++++++++----- 1 file 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 @@ ;; Author: Tom Tromey ;; Chris Lindblad ;; 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 ") ;; @@ -897,9 +900,16 @@ Commands: (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) -- 2.39.2