Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8967cd6e
Commit
8967cd6e
authored
Aug 22, 1995
by
Tom Tromey
Browse files
(tcl-hilit): New function from "Chris Alfeld" <calfeld@math.utah.edu>
(tcl-mode): Call it
parent
07d1e73a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
lisp/progmodes/tcl.el
lisp/progmodes/tcl.el
+26
-3
No files found.
lisp/progmodes/tcl.el
View file @
8967cd6e
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
;; Author: Tom Tromey <tromey@busco.lanl.gov>
;; Author: Tom Tromey <tromey@busco.lanl.gov>
;; Chris Lindblad <cjl@lcs.mit.edu>
;; Chris Lindblad <cjl@lcs.mit.edu>
;; Keywords: languages tcl modes
;; Keywords: languages tcl modes
;; Version: $Revision: 1.4
5
$
;; Version: $Revision: 1.4
6
$
;; This file is part of GNU Emacs.
;; This file is part of GNU Emacs.
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
;; LCD Archive Entry:
;; LCD Archive Entry:
;; tcl|Tom Tromey|tromey@busco.lanl.gov|
;; tcl|Tom Tromey|tromey@busco.lanl.gov|
;; Major mode for editing Tcl|
;; Major mode for editing Tcl|
;; $Date: 1995/0
7/23 23:51:25
$|$Revision: 1.4
5
$|~/modes/tcl.el.Z|
;; $Date: 1995/0
8/07 16:02:01
$|$Revision: 1.4
6
$|~/modes/tcl.el.Z|
;; CUSTOMIZATION NOTES:
;; CUSTOMIZATION NOTES:
;; * tcl-proc-list can be used to customize a list of things that
;; * tcl-proc-list can be used to customize a list of things that
...
@@ -65,6 +65,10 @@
...
@@ -65,6 +65,10 @@
;; Change log:
;; Change log:
;; $Log: tcl.el,v $
;; $Log: tcl.el,v $
;; Revision 1.46 1995/08/07 16:02:01 tromey
;; (tcl-do-auto-fill): Only fill past fill-column; for 19.29.
;; (tcl-auto-fill-mode): Use force-mode-line-update.
;;
;; Revision 1.45 1995/07/23 23:51:25 tromey
;; Revision 1.45 1995/07/23 23:51:25 tromey
;; (tcl-word-no-props): New function.
;; (tcl-word-no-props): New function.
;; (tcl-figure-type): Use it.
;; (tcl-figure-type): Use it.
...
@@ -278,6 +282,7 @@
...
@@ -278,6 +282,7 @@
;; T. V. Raman <raman@crl.dec.com>
;; T. V. Raman <raman@crl.dec.com>
;; Jesper Pedersen <blackie@imada.ou.dk>
;; Jesper Pedersen <blackie@imada.ou.dk>
;; dfarmer@evolving.com (Doug Farmer)
;; dfarmer@evolving.com (Doug Farmer)
;; "Chris Alfeld" <calfeld@math.utah.edu>
;; KNOWN BUGS:
;; KNOWN BUGS:
;; * indent-region should skip blank lines. (It does in v19, so I'm
;; * indent-region should skip blank lines. (It does in v19, so I'm
...
@@ -350,7 +355,7 @@
...
@@ -350,7 +355,7 @@
(
require
'imenu
))
(
require
'imenu
))
()))
()))
(
defconst
tcl-version
"$Revision: 1.4
5
$"
)
(
defconst
tcl-version
"$Revision: 1.4
6
$"
)
(
defconst
tcl-maintainer
"Tom Tromey <tromey@drip.colorado.edu>"
)
(
defconst
tcl-maintainer
"Tom Tromey <tromey@drip.colorado.edu>"
)
;;
;;
...
@@ -1012,6 +1017,10 @@ Commands:
...
@@ -1012,6 +1017,10 @@ Commands:
(
setq
mode-popup-menu
(
setq
mode-popup-menu
(
cons
(
concat
mode-name
" Mode Commands"
)
tcl-xemacs-menu
)))
(
cons
(
concat
mode-name
" Mode Commands"
)
tcl-xemacs-menu
)))
;; If hilit19 is loaded, add our stuff.
(
if
(
featurep
'hilit19
)
(
tcl-hilit
))
(
run-hooks
'tcl-mode-hook
))
(
run-hooks
'tcl-mode-hook
))
...
@@ -1964,6 +1973,20 @@ Prefix argument means switch to the Tcl buffer afterwards."
...
@@ -1964,6 +1973,20 @@ Prefix argument means switch to the Tcl buffer afterwards."
nil
))
nil
))
(
force-mode-line-update
)))
(
force-mode-line-update
)))
;; hilit19 support from "Chris Alfeld" <calfeld@math.utah.edu>
(
defun
tcl-hilit
()
(
hilit-set-mode-patterns
'
(
tcl-mode
)
'
(
(
"\\(^ *\\|\; *\\)#.*$"
nil
comment
)
(
"[^\\]\\(\\$[A-Za-z0-9\\-\\_./\\(\\)]+\\)"
1
label
)
(
"[^_]\\<\\(append\\|array\\|auto_execok\\|auto_load\\|auto_mkindex\\|auto_reset\\|break\\|case\\|catch\\|cd\\|close\\|concat\\|continue\\|eof\\|error\\|eval\\|exec\\|exit\\|expr\\|file\\|flush\\|for\\|foreach\\|format\\|gets\\|glob\\|global\\|history\\|if\\|incr\\|info\\|join\\|lappend\\|lindex\\|linsert\\|list\\|llength\\|lrange\\|lreplace\\|lsearch\\|lsort\\|open\\|pid\\|proc\\|puts\\|pwd\\|read\\|regexp\\|regsub\\|rename\\|return\\|scan\\|seek\\|set\\|source\\|split\\|string\\|switch\\|tell\\|time\\|trace\\|unknown\\|unset\\|uplevel\\|upvar\\|while\\)\\>[^_]"
1
keyword
)
; tcl keywords
(
"[^_]\\<\\(after\\|bell\\|bind\\|bindtags\\|clipboard\\|destroy\\|fileevent\\|focus\\|grab\\|image\\|lower\\|option\\|pack\\|place\\|raise\\|scale\\|selection\\|send\\|subst\\|tk\\|tk_popup\\|tkwait\\|update\\|winfo\\|wm\\)\\>[^_]"
1
define
)
; tk keywords
(
"[^_]\\<\\(button\\|canvas\\|checkbutton\\|entry\\|frame\\|label\\|listbox\\|menu\\|menubutton\\|message\\|radiobutton\\|scrollbar\\|text\\|toplevel\\)\\>[^_]"
1
decl
)
; tk widgets
(
"[^_]\\<\\(tix\\((ButtonBox\\|Baloon\\|Control\\|DirList\\|ExFileSelectBox\\|ExFileSelectDialog\\|FileEntry\\|HList\\|LabelEntry\\|LabelFrame\\|NoteBook\\|OptionMenu\\|PanedWindow\\|PopupMenu\\|ScrolledHList\\|ScrolledText\\|ScrolledWindow\\|Select\\|StdButtonBox\\)\\)\\>[^_]"
1
defun
)
; tix widgets
(
"[{}\\\"\\(\\)]"
nil
include
)
; misc punctuation
)))
(
defun
tcl-electric-hash
(
&optional
count
)
(
defun
tcl-electric-hash
(
&optional
count
)
"Insert a `#' and quote if it does not start a real comment.
"Insert a `#' and quote if it does not start a real comment.
Prefix arg is number of `#'s to insert.
Prefix arg is number of `#'s to insert.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment