X-Loop: help-debbugs@HIDDEN Subject: bug#44465: 28.0.50; tcl-mode mismatched parenthesis for nested [strings] Resent-From: mvar <mvar.40k@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 05 Nov 2020 12:36:02 +0000 Resent-Message-ID: <handler.44465.B.160457973829852 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 44465 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44465 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.160457973829852 (code B ref -1); Thu, 05 Nov 2020 12:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Nov 2020 12:35:38 +0000 Received: from localhost ([127.0.0.1]:51942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kaeUL-0007lP-Tw for submit <at> debbugs.gnu.org; Thu, 05 Nov 2020 07:35:38 -0500 Received: from lists.gnu.org ([209.51.188.17]:57716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mvar.40k@HIDDEN>) id 1kaeUK-0007lI-IK for submit <at> debbugs.gnu.org; Thu, 05 Nov 2020 07:35:37 -0500 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 <mvar.40k@HIDDEN>) id 1kaeUK-0001da-3w for bug-gnu-emacs@HIDDEN; Thu, 05 Nov 2020 07:35:36 -0500 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 <mvar.40k@HIDDEN>) id 1kaeUD-0006VG-Po for bug-gnu-emacs@HIDDEN; Thu, 05 Nov 2020 07:35:35 -0500 Received: by mail-ej1-x629.google.com with SMTP id o9so2394749ejg.1 for <bug-gnu-emacs@HIDDEN>; 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) 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 <bug-gnu-emacs@HIDDEN> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 04:35:26 -0800 (PST) From: mvar <mvar.40k@HIDDEN> X-Google-Original-From: mvar <mvar40k@HIDDEN> Date: Thu, 05 Nov 2020 14:35:24 +0200 Message-ID: <87eel8asmr.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=mvar.40k@HIDDEN; 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-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) 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))
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: mvar <mvar.40k@HIDDEN> Subject: bug#44465: Acknowledgement (28.0.50; tcl-mode mismatched parenthesis for nested [strings]) Message-ID: <handler.44465.B.160457973829852.ack <at> debbugs.gnu.org> References: <87eel8asmr.fsf@HIDDEN> X-Gnu-PR-Message: ack 44465 X-Gnu-PR-Package: emacs Reply-To: 44465 <at> debbugs.gnu.org Date: Thu, 05 Nov 2020 12:36:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 44465 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 44465: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44465 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#44465: Still open after applying fix for #44834 and #44083 References: <87eel8asmr.fsf@HIDDEN> In-Reply-To: <87eel8asmr.fsf@HIDDEN> Resent-From: Anticrisis <anticrisisg@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 22 Jan 2021 19:27:02 +0000 Resent-Message-ID: <handler.44465.B44465.161134357712293 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 44465 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44465 <at> debbugs.gnu.org Received: via spool by 44465-submit <at> debbugs.gnu.org id=B44465.161134357712293 (code B ref 44465); Fri, 22 Jan 2021 19:27:02 +0000 Received: (at 44465) by debbugs.gnu.org; 22 Jan 2021 19:26:17 +0000 Received: from localhost ([127.0.0.1]:33133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1l324W-0003CC-Tj for submit <at> debbugs.gnu.org; Fri, 22 Jan 2021 14:26:17 -0500 Received: from mail-ej1-f44.google.com ([209.85.218.44]:44259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <anticrisisg@HIDDEN>) id 1l324V-0003Bz-4a for 44465 <at> debbugs.gnu.org; Fri, 22 Jan 2021 14:26:15 -0500 Received: by mail-ej1-f44.google.com with SMTP id w1so9207213ejf.11 for <44465 <at> debbugs.gnu.org>; Fri, 22 Jan 2021 11:26:15 -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=H8HNWSmd2kij7TEQopIk4Aa2vfXjSAY+mYsC7Mfm+Oc=; b=YXpD7YtAofvpNpruLYJ3/SaS9RzxabakZZ0YwPenMVoGbAVWHBm6L1DEIhRUPjWra6 THGMftG2/UIMGeCMMV7+MFbsm2FLQzUdAMPvJqMgsItgR6eKZN2o6sALItcxwsjqLnsa 9zpA53ZqXZDOTuQmfYCANhajLhDDS5yVnTPSnye2vnv+J1vlXOOrcSOmIC5ahH+h6DME 78z+4FaQzWCZoxyAVVkrucpFPoCXVDoAZTT1BmEaoDeyTw98bwVyTKzAJF3G9eZ7GuCL LUa2NNcHCCWkWmIcdDhjYdnxa8cL4WmI58yOt2LjS/QRPbW9chdX/VhdJYYXW95leQG3 DOhg== 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=H8HNWSmd2kij7TEQopIk4Aa2vfXjSAY+mYsC7Mfm+Oc=; b=FPy2Ko8eWYdlxqJ2k8xB4qvSYi3eajl96h2ue69X3+6p2s0bdHbZ9R26+1B8cYRPX8 JwQXLUaaMF99COFoeSwi2USn7WMVqYzl8hMZrSNLVBmTvFGtCYCJhukMttd4c0qwxrrK wdKbkgFsazUlVKXw8bgASWo5Dmmuf8DVhk7OpXAh/v2GpKzq6HKOAuMnpsFO7d8DgMK4 w/Y7FNFRGyUe4abpuLYU/CcZDGrUCC8NUM7/NoPdLPxLz4ymBpnIAkR3SaHT1QHxS3uL +LCUPtFBPPWiANZpAcm3pwIzg3m2Hq95gpQvuKJKkrI2RF1KiZHtGBB4VDuLtS8hh0jy x5aQ== X-Gm-Message-State: AOAM531xgeIdQdfx5vpdELzoNuKNdP9HPPsMolYQneFFYCCDh31615Tp LeLsqd2PmIrnzPMSA1NBMmPAl9Lgg1CvbC8rfVH3FP+5Fwo= X-Google-Smtp-Source: ABdhPJwbUYYeAtrBUMwBTuHOyIsGaUAzr12bLRqSwglEvBwP32S4u49O6qlXhLL9p0w8BlIXkBpkJwIasBqRzFyknnU= X-Received: by 2002:a17:906:ecb3:: with SMTP id qh19mr3895426ejb.113.1611343569087; Fri, 22 Jan 2021 11:26:09 -0800 (PST) MIME-Version: 1.0 From: Anticrisis <anticrisisg@HIDDEN> Date: Fri, 22 Jan 2021 09:25:58 -1000 Message-ID: <CAHJtA0yC4c7U0prgbmgoqhQzgDeaikcdNyHJOwr5FeG9XDSsWA@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) This bug is still open after applying the patch in bug#44834. It would be nice to add a failing test to test/lisp/progmodes/tcl-tests.el to catch this, but I don't know how to automate tests for font lock failures.
X-Loop: help-debbugs@HIDDEN Subject: bug#44465: 28.0.50; tcl-mode mismatched parenthesis for nested [strings] Resent-From: mvar <mvar.40k@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 14 Aug 2021 22:24:01 +0000 Resent-Message-ID: <handler.44465.B44465.16289797856119 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 44465 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44465 <at> debbugs.gnu.org Cc: mvar <mvar.40k@HIDDEN>, monnier@HIDDEN Received: via spool by 44465-submit <at> debbugs.gnu.org id=B44465.16289797856119 (code B ref 44465); Sat, 14 Aug 2021 22:24:01 +0000 Received: (at 44465) by debbugs.gnu.org; 14 Aug 2021 22:23:05 +0000 Received: from localhost ([127.0.0.1]:45494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mF23V-0001ac-DM for submit <at> debbugs.gnu.org; Sat, 14 Aug 2021 18:23:05 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:33649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mvar.40k@HIDDEN>) id 1mF23S-0001Zl-PJ for 44465 <at> debbugs.gnu.org; Sat, 14 Aug 2021 18:23:03 -0400 Received: by mail-wr1-f53.google.com with SMTP id r7so18280481wrs.0 for <44465 <at> debbugs.gnu.org>; Sat, 14 Aug 2021 15:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=RIr4Wc0F0yTBaFcPCfFOdCGotI0VDGKZRZv82j3fPvY=; b=LUfoAnV64xcNbqZGOQcGrid6jVdehIHBtfSB5+1eNV13UCRCTUohIebyHKJspK2HNZ wZ1i3eSuxSjPcJtF4txwYGLmCyy5vKBtSAIMgVJP3IEovTtgIuJdexXNaSU5bmsIyXw4 eVPwFqUPMpnXYa/VJhkHNTmSoPs+5Lk4H0nTwOQ4W3fnNdzD9jEmfw8S9gVw8iEgImGn yfLbPXTs/7EedkXCbh4TPvFhRbFEs/mWdFmymFVuqNW5EX7NZKeyWTqbRM1hDGBqMRJw ZkvcVyYMKlfxqkeSAPc4JergDfHACHGMIoDGbdAi5/BgaYRxSdpNATX6zxP1riXxrlZP BFAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=RIr4Wc0F0yTBaFcPCfFOdCGotI0VDGKZRZv82j3fPvY=; b=Hx37iL+vFQKny0fWTCQz37zQYPIvDo9F3FywX2EhyX1BOhwUf1aLzDJ3AktPtL70kg LUci8fSruh+cMJ0FcpXjko+7SZLwhP10i1Doq73f65lxlEd2Lm+5zqAh2OTdz37Gdm5f GAgYetSYSNVV/FUnuoQ6qvg7e0lijJ8b5mDCdSYOoNN4qNq+ZG91klwfDtY3mhGgOPPA B57lhuT+Ks9CxsG0vwXnlrxbFqz0dNref7zV9OVlwbW4Xhb5tCdrt4vT89K4LbbBx/s+ 0wf+JUJ+eI2BFlRR6xSqvmzA9k97Fq2VpOFb9dpeioaEWjwQXC07gseCW4MkKtbybTtC BWIg== X-Gm-Message-State: AOAM5324ojPv983UeVMqfnWusob8npwGl1va+/k6OsF09RyEXjP2Gbob fSSAhRfwBf6kYPfpU6PIKwc= X-Google-Smtp-Source: ABdhPJwVnTurb/E5n7ALTpGLCaURaL4hsy9u1EFpykJLVpOgVI/IEXdSNdKA1FcvD26A5bNu0q90VQ== X-Received: by 2002:adf:f290:: with SMTP id k16mr1306364wro.88.1628979776937; Sat, 14 Aug 2021 15:22:56 -0700 (PDT) Received: from cnu407c2zx.nsn-intra.net (212.251.115.128.dsl.dyn.forthnet.gr. [212.251.115.128]) by smtp.gmail.com with ESMTPSA id z19sm6328052wma.0.2021.08.14.15.22.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Aug 2021 15:22:56 -0700 (PDT) From: mvar <mvar.40k@HIDDEN> X-Google-Original-From: mvar <mvar40k@HIDDEN> References: <87eel8asmr.fsf@HIDDEN> Date: Sun, 15 Aug 2021 01:22:50 +0300 In-Reply-To: <87eel8asmr.fsf@HIDDEN> (mvar's message of "Thu, 05 Nov 2020 14:35:24 +0200") Message-ID: <87zgtjwts5.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) mvar <mvar.40k@HIDDEN> writes: > 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 > % > i've been trying every once in a while to figure out a solution to this bug but keep failing. @Stefan i've added you to cc: in case you can help a bit and provide some tips. In the fix for #39277 you've added tcl--syntax-of-quote and also this comment: (defconst tcl-syntax-propertize-function ;; FIXME: Handle the [...] commands nested inside "..." strings. so my question, is the problem described in this bug report supposed to be fixed as a regexp in the tcl-syntax-propertize-function rules list or should i try to extend tcl--syntax-of-quote to cover this case too? I've failed in both accounts so far, especially the regexp i can't find the proper pattern to fix this and not break something else (which kind of proves the saying "you fix 1 problem with regexp - you now have 2 problems" :) thank you in advance, Michalis
X-Loop: help-debbugs@HIDDEN Subject: bug#44465: 28.0.50; tcl-mode mismatched parenthesis for nested [strings] Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 14 Aug 2021 23:52:01 +0000 Resent-Message-ID: <handler.44465.B44465.162898509814815 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 44465 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: mvar <mvar.40k@HIDDEN> Cc: 44465 <at> debbugs.gnu.org Received: via spool by 44465-submit <at> debbugs.gnu.org id=B44465.162898509814815 (code B ref 44465); Sat, 14 Aug 2021 23:52:01 +0000 Received: (at 44465) by debbugs.gnu.org; 14 Aug 2021 23:51:38 +0000 Received: from localhost ([127.0.0.1]:45506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mF3R8-0003qp-VV for submit <at> debbugs.gnu.org; Sat, 14 Aug 2021 19:51:38 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:39818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1mF3R3-0003qY-Km for 44465 <at> debbugs.gnu.org; Sat, 14 Aug 2021 19:51:33 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 03FD4808A3; Sat, 14 Aug 2021 19:51:23 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BD42280303; Sat, 14 Aug 2021 19:51:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1628985081; bh=NbxmP6bM0vIws/orlW44FYDhxbkebI8Y9TjnSPn3pcc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=meWSvKkO3qP0hpztlQz/pLGM/5WCU8cgclYdyrkE6PSqBY6q7JQJw6l1NdBg9fIF/ nbX96eQcqiU7T/dhYpguBOdlAunh6IbqnOiKdr5U2Zu1aYul280IKR6UaD8Ph/LT5O ikcfRNEsXRACZWLEeZndKkx4Su3ZQ57kPHMXZQi72b7Io3I1rkXetZ7xsz8Ub1uqeZ IqztdRfX9kMnia4ANKS853PbmKiOwxY/Q/dDmrATRdHo+mnPzrjZKTtr4BDYAy7MH2 yZukQhGNaj7Xu47UdHg7F0gHgi952PhBfI8zhbPNd2Tahjs3M77MuTpz6SYfFM2KlR gsUWt1tAltR/A== Received: from alfajor (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 632AF1201C9; Sat, 14 Aug 2021 19:51:21 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwvh7fr7fwm.fsf-monnier+emacs@HIDDEN> References: <87eel8asmr.fsf@HIDDEN> <87zgtjwts5.fsf@HIDDEN> Date: Sat, 14 Aug 2021 19:51:20 -0400 In-Reply-To: <87zgtjwts5.fsf@HIDDEN> (mvar's message of "Sun, 15 Aug 2021 01:22:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.102 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > @Stefan i've added you to cc: in case you can help a bit and provide > some tips. > In the fix for #39277 you've added tcl--syntax-of-quote and also this comment: > > (defconst tcl-syntax-propertize-function > ;; FIXME: Handle the [...] commands nested inside "..." strings. > > so my question, is the problem described in this bug report supposed > to be fixed as a regexp in the tcl-syntax-propertize-function rules > list or should i try to extend tcl--syntax-of-quote to cover this case > too? Good question. My gut tells me not to try and make the regexp more complex. Stefan
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.