* "Ricardo kozmate.net" <
[email protected]>
| Em 14/11/22 17:42, Ralf Fassel escreveu:
| > In tcl-mode, the following code leads to incorrect indentation after the
| > 'method' line:
| > # --- cut here/1 ---
| > proc xxx {} {
| > yyy {
| > method zzz
| > }
| > # previous line should indent like this, but stays at beginning of line
| > # --- cut here/1 ---
| Same here, also with emacs 27.2 (over Linux OpenSuse Leap 15.4)
As Joerg Mertens mentioned in the other message, this seems to be fixed
in 28.2. I just downloaded the 28.2 tarball, extracted tcl.el and indeed,
this also works in 27.2. Since I don't want to mess with local copies
of system files, I just wait for the next release, too.
For those interested, I solved my 'problem' like this:
(add-hook 'tcl-mode-hook
(lambda ()
;; bug in 27.2 indenting, just remove the whole proc recognition thingy
(if (equal emacs-version "27.2")
(progn
(setq tcl-proc-list nil)
(tcl-set-proc-regexp)
(tcl-set-font-lock-keywords)))))
R'
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)