From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Finding and fixing the missing brackets for tcl script with Emacs. Date: Thu, 14 Jan 2021 18:30:20 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="982"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 14 11:31:26 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzzuY-0000Av-4Y for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 11:31:26 +0100 Original-Received: from localhost ([::1]:44640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzzuX-0001bt-5U for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 05:31:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzztk-0001aV-HR for help-gnu-emacs@gnu.org; Thu, 14 Jan 2021 05:30:36 -0500 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:39834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzzti-0007u6-3T for help-gnu-emacs@gnu.org; Thu, 14 Jan 2021 05:30:36 -0500 Original-Received: by mail-lf1-x12e.google.com with SMTP id a12so7317186lfl.6 for ; Thu, 14 Jan 2021 02:30:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0X/OXGTn5l6YYK4t7L4ckLnDLBjgzc/l0OjApBah8Rc=; b=aoLLQwFFofbvlxDm+XRFcIm0tr68wOzwySMaFUtb6mLryOhLeTJPSDiTDfP+QsYGN9 0LOpS0Mf5cE6IwUE/WyzZ2ZNwdqQs+hOfkMQjpJckxnG/fqntyfpq5l/n2ePKhsXY0Zy O8YGoS152Aqk9YU56NpaET58+sL+OEwnTBVMZNVZcLehTuROHyxr/S9ktxhERdMiouYs a0X5qftjPH8NEB0cixFA7rlOJKT6/+ehdSxzr8iPgy9pYCOLaut/4gax1xCDw3T6IjEU xWOUdRS627MtMzWzXGIUMG3Hgy6+wCC41Tkq/8PxYLH5iJJlYMQxlrV2/7lkf8W6GL8/ ua5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0X/OXGTn5l6YYK4t7L4ckLnDLBjgzc/l0OjApBah8Rc=; b=EsIASwTZ8qAp11vR77aus+nBtGuNKoScJTv3cU3j2CWjOPbW9DxdsnE1zmwfrEkORs PXj27DIbwFIXSrxVgKOpyH0/rvoZlGyyyNQPT5A4gw1cY+Pms3rE1IuX15lqQBhr/qXo IOq627NCO+N3LdnLiNT8PKQameBJO6VfiRlN0SNMuTAbeGtQagWTHmhq1lbEGr78Uoqn cjeK+8IIT18OBBvvmVLMD6J4KQKS/CFVFFcPlxmYNNijYa+5oXZCu82z98moFsp6ZM+f 4qdfZgRFg5qtjwIUl3ygoLEd3e5aEWlGGQOyVjrVXoEFMcKDa9RZpFpZKUF6LbvMCsZC KRpw== X-Gm-Message-State: AOAM530K2RVCSjkBvMFM+7nizZ7Mknuab8TOpTT8CcNlKmktVddGcEjk Xsy4w6Q11IAVrLnLQ0/vv6458sTVGcqZFENxM9Og8HSOY/t+TCQI X-Google-Smtp-Source: ABdhPJw/TBfn0jUHqZNC0iiqdcPjXm65Ei339SVu6WPzbgnJPFuIbLMQJWcVdwqQOG/0YY0prCo40Mr9bWM6TF5POyI= X-Received: by 2002:a19:804c:: with SMTP id b73mr3208772lfd.231.1610620231928; Thu, 14 Jan 2021 02:30:31 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127235 Archived-At: 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 Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China