From unknown Sun Jun 15 08:58:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it Resent-From: Narendra Joshi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2020 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 40185@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15849014544198 (code B ref -1); Sun, 22 Mar 2020 18:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2020 18:24:14 +0000 Received: from localhost ([127.0.0.1]:50902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG5Gg-00015d-Hd for submit@debbugs.gnu.org; Sun, 22 Mar 2020 14:24:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:37339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG5Gf-00015X-AE for submit@debbugs.gnu.org; Sun, 22 Mar 2020 14:24:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56832) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG5Ge-0000ZD-9v for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 14:24:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jG5Gd-0002aF-9T for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 14:24:12 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:44610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jG5Gd-0002Zz-33 for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 14:24:11 -0400 Received: by mail-wr1-x42a.google.com with SMTP id m17so5028805wrw.11 for ; Sun, 22 Mar 2020 11:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=3N3bfXjUwKQB+PcKnhfkeyBVh46exSsc9BMViFNxzPo=; b=HmDGMddYiHGq/ERByO9/m3wjttT9hoPc+brt7tWC/mdidh32DlmAchFI/FLdudS1SY 6RpKdTOze6mFpIdzJ/uSwijNasJo2lnX74ckN6FSblZpDcnC9fSwD8e/nZaYLJSn7s0E qv6krWppL6kP+acNUvisK2g9cJLwp5kz+Z9XeSeKbDiKhPUAVRaoN5SiWPZ3oz8lG9wW QeHv+HmeIFU5qO9sL/qHwMeYFq88AbIn+dA6YkQb1SwQ7QbZtELO42yzOzUpSYQPWa3N OwD9WmxLEUO9EgcEveGlN7pLrGQAJCBY1nb7Dm/q7BCvrUkvmlgIzJqp3NGFqnKpFGqh jV0A== 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:mime-version; bh=3N3bfXjUwKQB+PcKnhfkeyBVh46exSsc9BMViFNxzPo=; b=j/B44Ry5hmqiKnC09+pSnnj3y0hw+tR8KjvsM1dhfXJP9YpA3bXaMQ9/vyMCnHpMMW QZRKKlY1gPXPtMaDxVRJdGu+NTwOdOhBlG3LOm39zhOvPdqlOwD20kkC7akPZFIhE8uh yOkSCjCUKUR4OUfpWkfz8JSNtAjF0zcPWBNSqruXAwLm5mL4KF3nmyhjHd5wcBr9E24P t9Vm50QWFJTU62WAmnadMNUsYHfA/BfYZIAmMYRtZCH+8FEc59YiJtTef2zxyGQAw9Ik YnbCPP21GI0obiEXeLxKvcSaQ+cGpQas4BUbx2WmO3Ugq9km1VZ9ksR6hR9HrNGDr6Fq VdTQ== X-Gm-Message-State: ANhLgQ1DaoFcqj3k9zZuOxRbcjOsYP1aHdvRkjWJvlk4y+vPdqKnr+We LqCtdv1RN5j3OvzSqE/TcHiK2Ekvbg== X-Google-Smtp-Source: ADFU+vsonCoAknXSHznhe1x1r1ygfA0xyT+JrmzKVgLGXRvZ07tpQZ0nb5vEQWJr09SOYNzR83f1LQ== X-Received: by 2002:adf:ed06:: with SMTP id a6mr25041756wro.346.1584901449105; Sun, 22 Mar 2020 11:24:09 -0700 (PDT) Received: from vicarie ([2a02:8109:b640:1e26::a04a]) by smtp.gmail.com with ESMTPSA id f207sm19360533wme.9.2020.03.22.11.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 11:24:08 -0700 (PDT) From: Narendra Joshi Date: Sun, 22 Mar 2020 19:24:05 +0100 Message-ID: <87blooz1ru.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) + Start Emacs Calc with `C-x * *`. + Enter the following formula with: ' (a + b)^3 / c d + Move point to be before "+" and use "j s" to select the sub-formula "(a + b)". + This should have hidden the rest of the formula. But it does not. 3 (a + b) 1* -------- c d Selecting a Calc sub-formula doesn't highlight it. For example, in the stack entry above, I have selected (a + b) but other parts of the formula are still visible. All commands operate on the selected formula and it is selected as evident from the '*' after the number of the stack entry. It is not highlighted. This seems to be working fine in Emacs 26. It's broken in the latest Emacs versions: Emacs 27 and Emacs 28. I can confirm that it is not happening because of any of my configuration because I tried the same thing with `emacs -Q` and the result was the same. Best, -- Narendra Joshi From unknown Sun Jun 15 08:58:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40185: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it References: <87blooz1ru.fsf@gmail.com> In-Reply-To: <87blooz1ru.fsf@gmail.com> Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Mar 2020 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Narendra Joshi Cc: 40185@debbugs.gnu.org Received: via spool by 40185-submit@debbugs.gnu.org id=B40185.15849854207564 (code B ref 40185); Mon, 23 Mar 2020 17:44:02 +0000 Received: (at 40185) by debbugs.gnu.org; 23 Mar 2020 17:43:40 +0000 Received: from localhost ([127.0.0.1]:53490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGR6y-0001xv-HL for submit@debbugs.gnu.org; Mon, 23 Mar 2020 13:43:40 -0400 Received: from mail176c50.megamailservers.eu ([91.136.10.186]:49496 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGR6w-0001xl-K6 for 40185@debbugs.gnu.org; Mon, 23 Mar 2020 13:43:39 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1584985416; bh=ywdVeKKNqrPn01raTnprJRecZbLG34Wqzy6YAx/HU2g=; h=From:Subject:Date:Cc:To:From; b=Nwbi11o7q59BPvOCwcXEqFjRTWeYIyqht8WLLXxRJSmcpYUvugt/jwx3aca4HvYPX TVayQU13WuHlQO4s9oe5w9uEFkplrYzNDb2i2p1Y9D7BaoEZ+o3fY1r5mu7WlLkz/w dvOLd3ve4wlKoNhG6EBwbnViM6gysiV2SGTW9V+M= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 02NHhXvi017519; Mon, 23 Mar 2020 17:43:36 +0000 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: multipart/mixed; boundary="Apple-Mail=_7A4BA94E-496A-445A-A2E3-FEF41C8AEFBF" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> Date: Mon, 23 Mar 2020 18:43:33 +0100 X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A782F1D.5E78F52E.0056, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=bJNo382Z c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=oQIiyUlBDTcA:10 a=M51BFTxLslgA:10 a=Q737g_yIGW8NeP936dQA:9 a=CjuIK1q_8ugA:10 a=8gR3J88kvhQN5SbppdYA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=c9tdXIDLBJEA:10 a=B2y7HmGcmWMA:10 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --Apple-Mail=_7A4BA94E-496A-445A-A2E3-FEF41C8AEFBF Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Thanks for the report. Does this patch help? --Apple-Mail=_7A4BA94E-496A-445A-A2E3-FEF41C8AEFBF Content-Disposition: attachment; filename=calc-selection.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="calc-selection.patch" Content-Transfer-Encoding: 7bit diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 4b2a938a5f..4e4fb67173 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -2927,6 +2927,7 @@ math-div-float +(defvar math-comp-selected) (defvar calc-selection-cache-entry) ;;; Format the number A as a string. [X N; X Z] [Public] (defun math-format-stack-value (entry) --Apple-Mail=_7A4BA94E-496A-445A-A2E3-FEF41C8AEFBF-- From unknown Sun Jun 15 08:58:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40185: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it Resent-From: Narendra Joshi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Mar 2020 19:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 40185@debbugs.gnu.org Received: via spool by 40185-submit@debbugs.gnu.org id=B40185.158499042216051 (code B ref 40185); Mon, 23 Mar 2020 19:08:01 +0000 Received: (at 40185) by debbugs.gnu.org; 23 Mar 2020 19:07:02 +0000 Received: from localhost ([127.0.0.1]:53532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGSPe-0004Ae-Ca for submit@debbugs.gnu.org; Mon, 23 Mar 2020 15:07:02 -0400 Received: from mail-wr1-f45.google.com ([209.85.221.45]:45988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGSPc-0004AG-4F for 40185@debbugs.gnu.org; Mon, 23 Mar 2020 15:07:00 -0400 Received: by mail-wr1-f45.google.com with SMTP id t7so13821495wrw.12 for <40185@debbugs.gnu.org>; Mon, 23 Mar 2020 12:07:00 -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:content-transfer-encoding; bh=Ce0n3Hdr8RnZL/5g6d4gWXJkIAZrvg1068TwNGscuI0=; b=LI5ueU+xelkj/3pZsmtF4VP0lFZGVvOX0h1OVo3ZvhN80BpJ6p9k2JrNeQjOyKBwwy gsdhbChBvvz8cKE3g9VyPH9bRByXwoY33lcuHlUTkr/mZq+Kck1FZIsibUdq7Pk9Qbx8 hw+BZI5oXqsSDgVsvZRaj3YmDdpntptcTuTllBoaT00gRAyWiMNY8+QUKdiNNEBjBqDE b/LsmUtn1d95mqY5/IJaDPntzqm437JXGBaK4sDM2xxMpcFqfJF+kwxwHebD2wqEx7eK ZgrP4550NkkK6ygi+SMnZzhEM6ASEyU9ukDnnJpCKc33L3Zo8xK1yjccRZb03CXLyqNH pBhQ== 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:content-transfer-encoding; bh=Ce0n3Hdr8RnZL/5g6d4gWXJkIAZrvg1068TwNGscuI0=; b=pcL8YbT8qsI7vAO0dlvKWhuyIelUaO7fnxKO2mKLRtG7ntXgfDEo22FVcvl7HpiJHF m+nFf/gL1acY90/YtSWZ4s/GEGRs0hs0smeph738XlLO4RhtH2HLw+cLVvthdjJUa4aL yD7B29CyhgLQNRrM2/ZOnz3LAs268IY88xDl7FPKYAGw96AmKoNqQHmMWfpyN8wZzRJW OKNI+31tMa7IJY2PqqRy3lZt0K45dJO53J5gTjcz0YxjMBHBEMC4xCO71qWAMXOCWFmO DfXbpm7UcCk1anxYdhQQlvatBdXeSTDBE6WnkIZsCsHNcD5yxAdWjOyJGEZ6fULre0gJ IBQg== X-Gm-Message-State: ANhLgQ2zK5gRq/RfuTAdGYagDVfTU001e3vazJYJFlWUygh+GsCfhsNG erRABGcix6wmBDNVvhRc9SGTbj77lA== X-Google-Smtp-Source: ADFU+vva1YPQjmPsZIpL8zVdCrxht4VdCOQcuUiA9MZbIwrvV1AA3+sufPGuKtjUfTriUKcmPOEkqw== X-Received: by 2002:adf:e5d2:: with SMTP id a18mr32560446wrn.334.1584990413863; Mon, 23 Mar 2020 12:06:53 -0700 (PDT) Received: from vicarie ([2a02:8109:b640:1e26::a04a]) by smtp.gmail.com with ESMTPSA id f1sm15370396wrv.37.2020.03.23.12.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 12:06:53 -0700 (PDT) From: Narendra Joshi References: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> Date: Mon, 23 Mar 2020 20:06:51 +0100 In-Reply-To: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Mon, 23 Mar 2020 18:43:33 +0100") Message-ID: <875zeuhovo.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Mattias Engdeg=C3=A5rd writes: Thanks for the quick fix. It seems to be working. Can you please=20 help me understand what exactly the issue was and how declaring the=20 variable fixed it? I see that it is `defvar`ed in `calc-ext.el`. > Thanks for the report. Does this patch help? > > diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el > index 4b2a938a5f..4e4fb67173 100644 > --- a/lisp/calc/calc.el > +++ b/lisp/calc/calc.el > @@ -2927,6 +2927,7 @@ math-div-float >=20=20 >=20=20 >=20=20 > +(defvar math-comp-selected) > (defvar calc-selection-cache-entry) > ;;; Format the number A as a string. [X N; X Z] [Public] > (defun math-format-stack-value (entry) > --=20 Narendra Joshi From unknown Sun Jun 15 08:58:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Narendra Joshi Subject: bug#40185: closed (Re: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it) Message-ID: References: <7F26B461-ABA9-4E84-9DB0-6F9B6832EA28@acm.org> <87blooz1ru.fsf@gmail.com> X-Gnu-PR-Message: they-closed 40185 X-Gnu-PR-Package: emacs Reply-To: 40185@debbugs.gnu.org Date: Mon, 23 Mar 2020 20:38:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1584995882-25227-1" This is a multi-part message in MIME format... ------------=_1584995882-25227-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40185@debbugs.gnu.org. --=20 40185: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40185 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1584995882-25227-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40185-done) by debbugs.gnu.org; 23 Mar 2020 20:37:53 +0000 Received: from localhost ([127.0.0.1]:53605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGTpZ-0006YZ-1l for submit@debbugs.gnu.org; Mon, 23 Mar 2020 16:37:53 -0400 Received: from mail1438c50.megamailservers.eu ([91.136.14.38]:38886 helo=mail263c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGTpW-0006YL-MW for 40185-done@debbugs.gnu.org; Mon, 23 Mar 2020 16:37:51 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1584995864; bh=CC9H27Kn+7NDxNiO8HQ76BOZ06lFphfwS4M4SX6fJwc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=T9rVmt+be3tKI66UyvDZMwXxKFK5iVB9MKFX571rGsL3vWOhUasomScwEquLDcV9r 9dkME1Ssw2N0a9fD9vvTvMRYcy5wqUNi4dj2Q2oR0HV3KwJqPpBpFXhaxW5gvjTBPA ZTWVvtHc/4H36cS0Rnv185SDsHXvtem6gQ0G91z8= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail263c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 02NKbfn3031154; Mon, 23 Mar 2020 20:37:43 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: <875zeuhovo.fsf@gmail.com> Date: Mon, 23 Mar 2020 21:37:40 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <7F26B461-ABA9-4E84-9DB0-6F9B6832EA28@acm.org> References: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> <875zeuhovo.fsf@gmail.com> To: Narendra Joshi X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A782F18.5E791DF6.001E, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=e6d4tph/ c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=oQIiyUlBDTcA:10 a=M51BFTxLslgA:10 a=pGLkceISAAAA:8 a=t9qDhwy-pJSX3iIKUaAA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 23 mars 2020 kl. 20.06 skrev Narendra Joshi : > Can you please help me > understand what exactly the issue was and how declaring the variable > fixed it? I see that it is `defvar`ed in `calc-ext.el`. Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: megamailservers.eu] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-Debbugs-Envelope-To: 40185-done Cc: 40185-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 23 mars 2020 kl. 20.06 skrev Narendra Joshi : > Can you please help me > understand what exactly the issue was and how declaring the variable > fixed it? I see that it is `defvar`ed in `calc-ext.el`. 'defvar' without an initial value is a declaration scoped to the = surrounding lexical scope (or file, if at top level). It appears that = calc.el does not require calc-ext, so that math-comp-selected was = assumed to be lexical where it was bound in math-format-stack-value. = This caused it to have the wrong number further down the call tree (in = math-comp-to-string-flat, I think). In Emacs 26 and earlier, calc.el used dynamic binding. Thanks for verifying! Patch pushed to emacs-27. ------------=_1584995882-25227-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Mar 2020 18:24:14 +0000 Received: from localhost ([127.0.0.1]:50902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG5Gg-00015d-Hd for submit@debbugs.gnu.org; Sun, 22 Mar 2020 14:24:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:37339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG5Gf-00015X-AE for submit@debbugs.gnu.org; Sun, 22 Mar 2020 14:24:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56832) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG5Ge-0000ZD-9v for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 14:24:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jG5Gd-0002aF-9T for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 14:24:12 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:44610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jG5Gd-0002Zz-33 for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2020 14:24:11 -0400 Received: by mail-wr1-x42a.google.com with SMTP id m17so5028805wrw.11 for ; Sun, 22 Mar 2020 11:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=3N3bfXjUwKQB+PcKnhfkeyBVh46exSsc9BMViFNxzPo=; b=HmDGMddYiHGq/ERByO9/m3wjttT9hoPc+brt7tWC/mdidh32DlmAchFI/FLdudS1SY 6RpKdTOze6mFpIdzJ/uSwijNasJo2lnX74ckN6FSblZpDcnC9fSwD8e/nZaYLJSn7s0E qv6krWppL6kP+acNUvisK2g9cJLwp5kz+Z9XeSeKbDiKhPUAVRaoN5SiWPZ3oz8lG9wW QeHv+HmeIFU5qO9sL/qHwMeYFq88AbIn+dA6YkQb1SwQ7QbZtELO42yzOzUpSYQPWa3N OwD9WmxLEUO9EgcEveGlN7pLrGQAJCBY1nb7Dm/q7BCvrUkvmlgIzJqp3NGFqnKpFGqh jV0A== 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:mime-version; bh=3N3bfXjUwKQB+PcKnhfkeyBVh46exSsc9BMViFNxzPo=; b=j/B44Ry5hmqiKnC09+pSnnj3y0hw+tR8KjvsM1dhfXJP9YpA3bXaMQ9/vyMCnHpMMW QZRKKlY1gPXPtMaDxVRJdGu+NTwOdOhBlG3LOm39zhOvPdqlOwD20kkC7akPZFIhE8uh yOkSCjCUKUR4OUfpWkfz8JSNtAjF0zcPWBNSqruXAwLm5mL4KF3nmyhjHd5wcBr9E24P t9Vm50QWFJTU62WAmnadMNUsYHfA/BfYZIAmMYRtZCH+8FEc59YiJtTef2zxyGQAw9Ik YnbCPP21GI0obiEXeLxKvcSaQ+cGpQas4BUbx2WmO3Ugq9km1VZ9ksR6hR9HrNGDr6Fq VdTQ== X-Gm-Message-State: ANhLgQ1DaoFcqj3k9zZuOxRbcjOsYP1aHdvRkjWJvlk4y+vPdqKnr+We LqCtdv1RN5j3OvzSqE/TcHiK2Ekvbg== X-Google-Smtp-Source: ADFU+vsonCoAknXSHznhe1x1r1ygfA0xyT+JrmzKVgLGXRvZ07tpQZ0nb5vEQWJr09SOYNzR83f1LQ== X-Received: by 2002:adf:ed06:: with SMTP id a6mr25041756wro.346.1584901449105; Sun, 22 Mar 2020 11:24:09 -0700 (PDT) Received: from vicarie ([2a02:8109:b640:1e26::a04a]) by smtp.gmail.com with ESMTPSA id f207sm19360533wme.9.2020.03.22.11.24.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 11:24:08 -0700 (PDT) From: Narendra Joshi To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it Date: Sun, 22 Mar 2020 19:24:05 +0100 Message-ID: <87blooz1ru.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) + Start Emacs Calc with `C-x * *`. + Enter the following formula with: ' (a + b)^3 / c d + Move point to be before "+" and use "j s" to select the sub-formula "(a + b)". + This should have hidden the rest of the formula. But it does not. 3 (a + b) 1* -------- c d Selecting a Calc sub-formula doesn't highlight it. For example, in the stack entry above, I have selected (a + b) but other parts of the formula are still visible. All commands operate on the selected formula and it is selected as evident from the '*' after the number of the stack entry. It is not highlighted. This seems to be working fine in Emacs 26. It's broken in the latest Emacs versions: Emacs 27 and Emacs 28. I can confirm that it is not happening because of any of my configuration because I tried the same thing with `emacs -Q` and the result was the same. Best, -- Narendra Joshi ------------=_1584995882-25227-1-- From unknown Sun Jun 15 08:58:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40185: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it Resent-From: Narendra Joshi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Mar 2020 22:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 40185-done@debbugs.gnu.org Received: via spool by 40185-done@debbugs.gnu.org id=D40185.15850030474854 (code D ref 40185); Mon, 23 Mar 2020 22:38:01 +0000 Received: (at 40185-done) by debbugs.gnu.org; 23 Mar 2020 22:37:27 +0000 Received: from localhost ([127.0.0.1]:53663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGVhG-0001GD-Nx for submit@debbugs.gnu.org; Mon, 23 Mar 2020 18:37:26 -0400 Received: from mail-oi1-f172.google.com ([209.85.167.172]:36546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGVhF-0001Fx-9Y for 40185-done@debbugs.gnu.org; Mon, 23 Mar 2020 18:37:25 -0400 Received: by mail-oi1-f172.google.com with SMTP id k18so16610913oib.3 for <40185-done@debbugs.gnu.org>; Mon, 23 Mar 2020 15:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xnQzJVC5EHT3ktzeddvlT4aGVXIW64mjD2T+GR8wvDA=; b=m7M6gZSsxl/gW2jqkhA2ZEnQsXkyz7m8FMoZ9GXihTEFUDC3GcMVuTjTuElCNh6k7l 30PEpffVb+5jJh+ILd70TmKiBCoDJEtED1zgy93tPveBX3gwjEDoeJSv1O7QlY/nhovT xmfwQJ7XZv7TjXke3rRtk4pI45AmsnJoKP8THw8rZgejHYOKnYgdX5abo5Ofr/D1tRto 56s9MvaqJnw0DDKsAaGxlfSgv8Dqyq3OE2xBiLmWFmcINSYhpmynrtipqe8BiuF9bl2M HxoMHn5NSuQ9Q9XkfJ+uHbdOfqlYxIIBiio9zzLtJ2tnVOuAENTjJjvX0Jvv8Y6lFw5J vjqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xnQzJVC5EHT3ktzeddvlT4aGVXIW64mjD2T+GR8wvDA=; b=pA13khOcBMq9vllbH3hyfMyksXoOO2QLfSI3/QdSRY/SezpkrTBFkvYP8Z+Ok084EV AyO3TibUb93+xwY9OPU6yYnvi/N0GXpnAuFcRd3hc0iNwvLRwE3rLLMNLJEap1EbSOK0 0fpUxoGMcEuANwyoedMu0lNGuemp8QbI/Ff85ZebNK0PQlmfFcNUA3tW4b0k2EWoxIOZ wf9s/P+me13YVBep/NtgPK3F9AXwb0rUL44WlBUUGWftUM2Xv6NJmvdTdwvpGwZwXdF1 NVB34y1ov4b5Uju6MF76O7eWum8+nD8bZOAlPNvvOzsYtWcHDHxEPQ1I8soVDipfTw8v Hb2A== X-Gm-Message-State: ANhLgQ3bd58rzpQI/MfIYnTpjCwuuFH3XcwDCKXBPbjq56k0mZKUNFJf 2wN2zLDodacuz8NnOgQFQe6lFBj23dJWemFvXg== X-Google-Smtp-Source: ADFU+vspZiqUEdijufd9bSOPuLzAz8e3mp6Ui6pQYmO8cVnT2acVRBsmwf8w5vIx+KE9WcNQVwzePa1X/MuZuU/A7oU= X-Received: by 2002:aca:ad8f:: with SMTP id w137mr1231662oie.104.1585003039337; Mon, 23 Mar 2020 15:37:19 -0700 (PDT) MIME-Version: 1.0 References: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> <875zeuhovo.fsf@gmail.com> <7F26B461-ABA9-4E84-9DB0-6F9B6832EA28@acm.org> In-Reply-To: <7F26B461-ABA9-4E84-9DB0-6F9B6832EA28@acm.org> From: Narendra Joshi Date: Mon, 23 Mar 2020 23:37:07 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Thanks for the explanation. :) I think I got it. It seems to me that porting a large package like `calc` to use lexical binding everywhere would mean fixing a lot of such bugs. Is the fix also going to be merged to `master` or will it be merged sometime later? - Narendra On Mon, Mar 23, 2020 at 9:37 PM Mattias Engdeg=C3=A5rd w= rote: > > 23 mars 2020 kl. 20.06 skrev Narendra Joshi : > > > Can you please help me > > understand what exactly the issue was and how declaring the variable > > fixed it? I see that it is `defvar`ed in `calc-ext.el`. > > 'defvar' without an initial value is a declaration scoped to the surround= ing lexical scope (or file, if at top level). It appears that calc.el does = not require calc-ext, so that math-comp-selected was assumed to be lexical = where it was bound in math-format-stack-value. This caused it to have the w= rong number further down the call tree (in math-comp-to-string-flat, I thin= k). > > In Emacs 26 and earlier, calc.el used dynamic binding. > > Thanks for verifying! Patch pushed to emacs-27. > From unknown Sun Jun 15 08:58:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40185: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Mar 2020 09:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Narendra Joshi Cc: 40185-done@debbugs.gnu.org Received: via spool by 40185-done@debbugs.gnu.org id=D40185.15850408623371 (code D ref 40185); Tue, 24 Mar 2020 09:08:02 +0000 Received: (at 40185-done) by debbugs.gnu.org; 24 Mar 2020 09:07:42 +0000 Received: from localhost ([127.0.0.1]:53866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGfXC-0000sJ-Kz for submit@debbugs.gnu.org; Tue, 24 Mar 2020 05:07:42 -0400 Received: from mail1476c50.megamailservers.eu ([91.136.14.76]:55552 helo=mail118c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGfXA-0000s2-Fk for 40185-done@debbugs.gnu.org; Tue, 24 Mar 2020 05:07:41 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1585040853; bh=Io6jwwPfji1S19CXF31EDbaYipd9jfU+ZDAxV9FZPZE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=maxOT0/KtJAl4+n97+eA8VoVGDqW9fJR9m7RrDe06pHpvkBXAsp+IooMIC87dxCcR ZINQUbDV/4S3gMKHsCYrA81pSgZk5Oq/pBwhGIfUq9gLcUSa0/Im8bdP54EoJwLSdf eNcCL4Rc3sIYP6I/qoRoUj3ZZ82Wypqu6REXKOHI= Feedback-ID: mattiase@acm.or Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail118c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 02O97S6j025303; Tue, 24 Mar 2020 09:07:32 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= In-Reply-To: Date: Tue, 24 Mar 2020 10:07:27 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <3E4727B6-F177-4734-8C0D-BC5D482696AB@acm.org> References: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> <875zeuhovo.fsf@gmail.com> <7F26B461-ABA9-4E84-9DB0-6F9B6832EA28@acm.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A782F25.5E79CDB3.005C, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=KaGsTjQD c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=oQIiyUlBDTcA:10 a=M51BFTxLslgA:10 a=pGLkceISAAAA:8 a=bHgpCGW2xCHA7o7bHOMA:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 23 mars 2020 kl. 23.37 skrev Narendra Joshi : > Thanks for the explanation. :) I think I got it. It seems to me that > porting a large package like `calc` to use lexical binding everywhere > would mean fixing a lot of such bugs. Yes, currently only a few files have been converted to lexical binding, = and the Calc code relies heavily on dynamic variables everywhere. The = code also uses side-effects a lot. Rewriting it in a more modern, = functional style would do wonders for maintainability and correctness, = but its size and complexity is likely to make it quite an enterprise. > Is the fix also going to be merged to `master` or will it be merged > sometime later? It will be merged in a few days. If not, please send a reminder.