help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding and fixing the missing brackets for tcl script with Emacs.


From: Hongyi Zhao
Subject: Finding and fixing the missing brackets for tcl script with Emacs.
Date: Thu, 14 Jan 2021 18:30:20 +0800

See the following TCL script snippet:

---
set sendcmds [lmap l [split [string trim $sendcmds] \n] {
if {[regexp {^\s*#} $l} continue
string trim $l
}]
---

In the above code snippets, two close brackets are missed. But finding
and fixing this sort of error manually is indeed a tedious and
laborious job. Can Emacs help me find the right spot and fix the
problem quickly for this scenario?

Best,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

[Prev in Thread] Current Thread [Next in Thread]