From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mvar Newsgroups: gmane.emacs.bugs Subject: bug#44465: 28.0.50; tcl-mode mismatched parenthesis for nested [strings] Date: Thu, 05 Nov 2020 14:35:24 +0200 Message-ID: <87eel8asmr.fsf@cnu407c2zx.nsn-intra.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="823"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 44465@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 05 13:48:00 2020 Return-path: Envelope-to: geb-bug-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 1kaegK-000067-Do for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 13:48:00 +0100 Original-Received: from localhost ([::1]:47264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaegJ-0007zH-Fd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 07:47:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaeUl-0002Wi-0t for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 07:36:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaeUk-0006nl-KP for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 07:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kaeUk-0007m6-H4 for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 07:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: mvar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Nov 2020 12:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44465 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160457973829852 (code B ref -1); Thu, 05 Nov 2020 12:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2020 12:35:38 +0000 Original-Received: from localhost ([127.0.0.1]:51942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaeUL-0007lP-Tw for submit@debbugs.gnu.org; Thu, 05 Nov 2020 07:35:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaeUK-0007lI-IK for submit@debbugs.gnu.org; Thu, 05 Nov 2020 07:35:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaeUK-0001da-3w for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 07:35:36 -0500 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:34186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaeUD-0006VG-Po for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 07:35:35 -0500 Original-Received: by mail-ej1-x629.google.com with SMTP id o9so2394749ejg.1 for ; Thu, 05 Nov 2020 04:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=vEWP03Slv8QGuaHNsU7f1+qr0WjrHp2HSNowQker8cI=; b=dyr2MUtGm6csC149ayekIIPvxKOP1b6A5xSzn5GRGmMaz49r3PZsu5ZrUHdqcKAMfZ dbsI3WsGIDc8C1TKgCKUn7zqnTmx3M8x1q9095CVgnp5h+cpVYk2FXfooqMvaytIYD6u y1du4WQM4zt+FYADpzzGUfBQO2U9AXlF4+xT0nLgQ++6yeUVyJh3gTmG6Lnh7r2fkDw3 gLKAWHhimzlGHObcdRUFhoaTj8ATUmsBOGqUNfMM38yS5cQrCoqhGL5PqyHU0u5dwO/p rHNgYCX3AN9VKwzYQNziwiZyLzhCj+8YFm2F3Azg6xzokjap9po3JozsC+coKIm0h3+Q hMeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=vEWP03Slv8QGuaHNsU7f1+qr0WjrHp2HSNowQker8cI=; b=SwhoUViEkhwKVlBlc+MPF7tqjb9VUSWxwfJRHi8WSjE6lgtUIb6xDkw4rylFhLSV+x VS/2QOQUJmjp3C44rP5cz/EBsa5RTswhQXHczoPDhfyrehFtqP3JG3rF5yuxapkHcB1o MAb7Wj2YkRx+c4YxFl6+ruyyQZjeybn/IJoXRm+pMaDRWZiZ0t1E6aas1LZgSpwjUvJf 0uClNuouixxqRob2SgNU3lpq0TYbXA2JiZmKRB2IyX3ZhGsRP2zkKbfAiCOEhdEgaTn2 4eelp+X7xxXdfCULLACZWuMTOG6SLX4v2nppD2JlMGdlV2MthvazNWSBGsJvl1iGUl2V fmYg== X-Gm-Message-State: AOAM530rXmKCdsOXVqhok4xJcGT9D8w5HR4alUy4nN1xnTe1zIpjMSig GTwh04cFOQr27Nvry9B2MGlASgVvwxE= X-Google-Smtp-Source: ABdhPJycW7FjJ27Nbdbp3mCtUJWi5t5XqXzU3lOMrH00yFTEIWdh6jjiEaXygSBs5O+D39uAZg4m7g== X-Received: by 2002:a17:906:7210:: with SMTP id m16mr2184238ejk.490.1604579727417; Thu, 05 Nov 2020 04:35:27 -0800 (PST) Original-Received: from cnu407c2zx.nsn-intra.net ([2a02:2149:8883:1d00:fe15:b4ff:fee9:4f35]) by smtp.gmail.com with ESMTPSA id 22sm872339ejw.27.2020.11.05.04.35.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 04:35:26 -0800 (PST) X-Google-Original-From: mvar Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=mvar.40k@gmail.com; helo=mail-ej1-x629.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192710 Archived-At: After the applied fix in #39277, font locking fails in the following case: set a "Testing: [split "192.168.1.1/24" "/"] address" the last bracket ] reports "no matching parenthesis found" this part: 192.168.1.1/24" is not locked as a string, but "/" is. Note that the whole argument is evaluated properly by tclsh as a single contiguous string: % set a "Testing: [split "192.168.1.1/24" "/"] address" Testing: 192.168.1.1 24 address i can't find a way around this behavior even with escaping the double quotes or using single quotes, because doing that will change how the argument is evaluated by tcl (array instead of string): % set b "Testing: [split '192.168.1.1/24' '/'] address" Testing: {} 192.168.1.1 24 {} address % set a "Testing: [split \"192.168.1.1/24\" \"/\"] address" Testing: {} 192.168.1.1 24 {} address % -- there's also another case of font locking failure, unrelated to the #39277 changes: puts {#test} anything following # until end of line is locked as comment. But this one is ok: puts {a#test} the inner a#test string is not locked as string but at least the open-close brackets are marked properly. In GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2020-11-04 built on localhost Repository revision: 2668bb47b03230400f94855a58b81a516b46acc5 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Red Hat Enterprise Linux Client 7.3 (Maipo) Configured using: 'configure --prefix=/opt/emacs-28_latest' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Tcl Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tcl easymenu comint ansi-color ring tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 56454 12331) (symbols 48 7150 1) (strings 32 20173 1496) (string-bytes 1 673817) (vectors 16 12950) (vector-slots 8 174548 13602) (floats 8 23 28) (intervals 56 216 0) (buffers 992 12) (heap 1024 14579 1030))