GNU bug report logs - #44108
calc windows should be marked as dedicated

Previous Next

Package: emacs;

Reported by: Boruch Baum <boruch_baum <at> gmx.com>

Date: Tue, 20 Oct 2020 23:03:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 44108 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Boruch Baum <boruch_baum <at> gmx.com>
Cc: 44108 <at> debbugs.gnu.org
Subject: Re: bug#44108: Patch for this bug
Date: Sat, 31 Oct 2020 09:54:16 +0200
> Date: Thu, 22 Oct 2020 03:45:09 -0400
> From: Boruch Baum <boruch_baum <at> gmx.com>
> 
> diff --git a/calc.el b/calc.el
> index 4bebd5f..90dcce6 100644
> --- a/calc.el
> +++ b/calc.el
> @@ -1472,6 +1472,7 @@ commands given here will actually operate on the *Calculator* stack."
>        (and (windowp full-display)
>             (window-point full-display)
>             (select-window full-display))
> +      (set-window-dedicated-p nil t)
>        (calc-check-defines)
>        (when (and calc-said-hello interactive)
>          (sit-for 2)
> @@ -2136,7 +2137,8 @@ the United States."
>                (if calc-trail-window-hook
>                    (run-hooks 'calc-trail-window-hook)
>                  (let ((w (split-window nil (/ (* (window-width) 2) 3) t)))
> -                  (set-window-buffer w calc-trail-buffer)))
> +                  (set-window-buffer w calc-trail-buffer)
> +                  (set-window-dedicated-p w t)))
>                (calc-wrapper
>                 (setq overlay-arrow-string calc-trail-overlay
>                       overlay-arrow-position calc-trail-pointer)

Thanks.

Would people who routinely use Calc please chime in and comment on
this?  Could this have some adverse consequences in some use cases?
Should we have a user option for controlling this behavior?




This bug report was last modified 4 years and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.