From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.bugs Subject: bug#40185: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it Date: Mon, 23 Mar 2020 20:06:51 +0100 Message-ID: <875zeuhovo.fsf@gmail.com> References: <0529AD07-A021-4A81-A5A3-EDB9F9465315@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="14364"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40185@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 23 20:08:10 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 1jGSQk-0003eB-AI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Mar 2020 20:08:10 +0100 Original-Received: from localhost ([::1]:38626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGSQj-0005mk-Cr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Mar 2020 15:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41843) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGSQc-0005md-Px for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2020 15:08:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGSQb-0007xi-SB for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2020 15:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47559) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jGSQb-0007xc-PA for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2020 15:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jGSQb-0004C6-Jo for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2020 15:08:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 40185-submit@debbugs.gnu.org id=B40185.158499042216051 (code B ref 40185); Mon, 23 Mar 2020 19:08:01 +0000 Original-Received: (at 40185) by debbugs.gnu.org; 23 Mar 2020 19:07:02 +0000 Original-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 Original-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 Original-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) Original-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) 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") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:177657 Archived-At: 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