Subject: Re: #40185: 28.0.50; Emacs Calc selection of a sub-formula doesn't highlight it

From: Narendra Joshi <[email-masked]>
Date: Mon, 23 Mar 2020 20:06:51 +0100

Mattias Engdegård <[email-masked]> writes:

Thanks for the quick fix. It seems to be working. 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`.

> 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
>  
>  
>  
> +(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)
>

-- 
Narendra Joshi