From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 05:36:49 2020 Received: (at submit) by debbugs.gnu.org; 12 Aug 2020 09:36:49 +0000 Received: from localhost ([127.0.0.1]:42891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5nBh-0000Yn-Bj for submit@debbugs.gnu.org; Wed, 12 Aug 2020 05:36:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:51080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5nBd-0000Yc-2b for submit@debbugs.gnu.org; Wed, 12 Aug 2020 05:36:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5nBc-0007W7-R5 for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 05:36:44 -0400 Received: from mxout5.interscholz.de ([2a01:1e8:8:141::72]:58408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5nBa-00061T-Kv for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 05:36:44 -0400 Received: from localhost (mxout5 [127.0.0.1]) by mxout5.interscholz.de (Postfix) with ESMTP id C1D4F215BC for ; Wed, 12 Aug 2020 11:36:38 +0200 (CEST) X-Virus-Scanned: interscholz amavisd-new at mxout5.interscholz.de Received: from server.web01.interscholz.net (server.web01.interscholz.net [85.236.196.138]) by mxout5.interscholz.de (Postfix) with ESMTP id A3C2E202C5 for ; Wed, 12 Aug 2020 11:36:34 +0200 (CEST) Received: from pointsman2 (p57b4e3e6.dip0.t-ipconnect.de [87.180.227.230]) by server.web01.interscholz.net (Postfix) with ESMTPSA id 776A0340293; Wed, 12 Aug 2020 11:36:34 +0200 (CEST) From: Rolf Ade To: bug-gnu-emacs@gnu.org Subject: 26.2; Calculator Trail display fuzziness Date: Wed, 12 Aug 2020 11:36:33 +0200 Message-ID: <87wo242oke.fsf@pointsman.de> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2a01:1e8:8:141::72; envelope-from=rolf@pointsman.de; helo=mxout5.interscholz.de X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -3.3 (---) By default, calc starts with the *Calc Trail* buffer displayed: emacs -Q M-x calc RET There is a variable to customize this: C-h v calc-display-trail RET Though, things are not that simple and clear: emacs -Q C-x 3 M-x calc RET doesn't display the *Calc Trail* buffer, although calc-display-trail has the (default) value t. There's this code in calc: (with-current-buffer (calc-trail-buffer) (and calc-display-trail (= (window-width) (frame-width)) (calc-trail-display 1 t))) Display of the *Calc Trail* buffer depends on calc-trail-display *and* the window isn't splitted with split-window-right. Nowadays we enjoy large Monitors. It's easily possible to have four buffers displayed side by side each with a (window-width) > 80. I, for example, use by default a frame-width of 180 and have plenty of room for other windows left and right. I don't see why I don't can see the Calculator trail even if the (window-width) of the buffer has plenty of room for it. And emacs rates displaying the Calculator Trail importantly enough displayed it by default. I suppose something like this would improve emacs behaviour in this detail: >From d259f101202d086a00b7906ff584015544cea702 Mon Sep 17 00:00:00 2001 From: Rolf Ade Date: Wed, 12 Aug 2020 11:15:46 +0200 Subject: [PATCH] Suppress Calculator Trail only, if window is too small. If the user want to see the Calculator Trail (calc-display-trail non nil) suppress display of the Calculator Trail only if the window width of the buffer is below the value of the new variable calc-display-trail-threshold. * lisp/calc/calc (calc): New Calculator Trail buffer display logic. Copyright-paperwork-exempt: yes --- lisp/calc/calc.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 09b4962107..ad962e6b40 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -738,6 +738,9 @@ calc-window-height (defcalcmodevar calc-display-trail t "If non-nil, M-x calc creates a window to display Calculator trail.") +(defcalcmodevar calc-display-trail-threshold 80 + "Minimum windows width to display Calculator trail window.") + (defcalcmodevar calc-show-selections t "If non-nil, selected sub-formulas are shown by obscuring rest of formula. If nil, selected sub-formulas are highlighted by obscuring the sub-formulas.") @@ -1433,7 +1436,7 @@ calc (pop-to-buffer (current-buffer))))))) (with-current-buffer (calc-trail-buffer) (and calc-display-trail - (= (window-width) (frame-width)) + (>= (window-width) calc-display-trail-threshold) (calc-trail-display 1 t))) (message "Welcome to the GNU Emacs Calculator! Press `?' or `h' for help, `q' to quit") (run-hooks 'calc-start-hook) -- 2.11.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 17 04:04:55 2020 Received: (at 42825) by debbugs.gnu.org; 17 Oct 2020 08:04:55 +0000 Received: from localhost ([127.0.0.1]:33221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kThCx-0008BJ-8K for submit@debbugs.gnu.org; Sat, 17 Oct 2020 04:04:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kThCt-0008B3-HA for 42825@debbugs.gnu.org; Sat, 17 Oct 2020 04:04:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=klDiF6h4xaAW6GFfJIVUZRgejN3EnY/+gi3H/Od4geg=; b=bZAb9eXxjEd8vy/wt98r06Yfnm x3GlNIR3hpoyGXGf7unWZ4qWcPiJQm6kIep9zVGunKNRWI+kMg06o4iE7brxjxBlsspuDdBfSuv8u cmNjYUR/C7czNAsqkkC27GLU3tmyL6fwI4jSRVX3q6DAyQxpVA1CxMO4YpC/U7C7V7+A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kThCl-00015V-5J; Sat, 17 Oct 2020 10:04:45 +0200 From: Lars Ingebrigtsen To: Rolf Ade Subject: Re: bug#42825: 26.2; Calculator Trail display fuzziness References: <87wo242oke.fsf@pointsman.de> X-Now-Playing: Thomas Mery's _Les couleurs, les ombres_: =?utf-8?Q?=22?= =?utf-8?Q?=C3=87a=22?= Date: Sat, 17 Oct 2020 10:04:42 +0200 In-Reply-To: <87wo242oke.fsf@pointsman.de> (Rolf Ade's message of "Wed, 12 Aug 2020 11:36:33 +0200") Message-ID: <87eelxwa5h.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Rolf Ade writes: > doesn't display the *Calc Trail* buffer, although calc-display-trail has > the (default) value t. > > There's this code in calc: > > (with-current-buffer (calc-trail-buffer) > (and calc-display-trai [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42825 Cc: 42825@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: -1.0 (-) Rolf Ade writes: > doesn't display the *Calc Trail* buffer, although calc-display-trail has > the (default) value t. > > There's this code in calc: > > (with-current-buffer (calc-trail-buffer) > (and calc-display-trail > (= (window-width) (frame-width)) > (calc-trail-display 1 t))) This has been changed in Emacs 28: (with-current-buffer (calc-trail-buffer) (and calc-display-trail (calc-trail-display 1 t))) So now it always heeds the variable, no matter what the frame width. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 17 04:04:58 2020 Received: (at control) by debbugs.gnu.org; 17 Oct 2020 08:04:58 +0000 Received: from localhost ([127.0.0.1]:33224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kThD0-0008BY-I2 for submit@debbugs.gnu.org; Sat, 17 Oct 2020 04:04:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kThCz-0008B9-2L for control@debbugs.gnu.org; Sat, 17 Oct 2020 04:04:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=INxrWY/zIUmMOsXRy0g1/T7c949TYpLMzvMoXK9hNlM=; b=rUCxJSxaYWu9EnC+lbKSXn+e44 FzSRzHNlTjCHAfAEn05QCFy6wwVYNv3BoVJlfP7N8sQhEV+36p9l0Sw38V7w2SSW1vBWYEuoPNLk+ pDgR3eL05q+5o8jT5/Lwrl6BSCVQtGRnz9P9HxWyuAj7RvpkmFG1uzUbDCKNUPwA4V3A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kThCr-00015g-9t for control@debbugs.gnu.org; Sat, 17 Oct 2020 10:04:51 +0200 Date: Sat, 17 Oct 2020 10:04:48 +0200 Message-Id: <87d01hwa5b.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42825 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: close 42825 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) close 42825 quit From unknown Sat Jun 21 12:15:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 14 Nov 2020 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator