From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 13 07:00:32 2024 Received: (at submit) by debbugs.gnu.org; 13 Jun 2024 11:00:33 +0000 Received: from localhost ([127.0.0.1]:42990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHiC0-0007Uu-EE for submit@debbugs.gnu.org; Thu, 13 Jun 2024 07:00:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:33452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHiBx-0007UD-04 for submit@debbugs.gnu.org; Thu, 13 Jun 2024 07:00:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHhmK-0007vA-9B for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2024 06:34:00 -0400 Received: from forward401a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:db02]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sHhmH-00027o-FE for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2024 06:34:00 -0400 Received: from mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0d:3621:0:640:20a5:0]) by forward401a.mail.yandex.net (Yandex) with ESMTPS id 1C4B661C3C for ; Thu, 13 Jun 2024 13:33:50 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id gXdqHZ2Xv8c0-Q2cExD2G; Thu, 13 Jun 2024 13:33:47 +0300 X-Yandex-Fwd: 1 Authentication-Results: mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net; dkim=pass From: Ashwin Kafle To: bug-gnu-emacs@gnu.org Subject: 30.0.50; [PATCH] Calc: fix calc-trail-here on initial line of trail. Date: Thu, 13 Jun 2024 10:33:20 +0000 Message-ID: <85wmmtb09b.fsf@ashwink.com.np> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a02:6b8:c0e:500:1:45:d181:db02; envelope-from=ashwin@ashwink.com.np; helo=forward401a.mail.yandex.net 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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.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: -2.3 (--) --=-=-= Content-Type: text/plain Hello, On Calc-trail, you cannot access the first element of trail using ``t ['' or going to the first line and doing (calc-trail-here). This is because the check of empty buffer has small error. Attached is a simple fix for that. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Fix-calc-trail-here-for-first-line-of-trail.patch >From ea1822bf39aa5236368567f067064b1a2c2c6361 Mon Sep 17 00:00:00 2001 From: Ashwin Kafle Date: Thu, 13 Jun 2024 16:06:38 +0545 Subject: [PATCH] Fix calc-trail-here for first line of trail. * lisp/calc/calc.el(calc-trail-here): change 'or' to 'and' since (bobp) return true even if the buffer is not empty. --- lisp/calc/calc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index e6448625cee..f92e4958e33 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -2184,7 +2184,7 @@ calc-trail-here (beginning-of-line) (if (eobp) (forward-line -1)) - (if (or (bobp) (eobp)) + (if (and (bobp) (eobp)) (setq overlay-arrow-position nil) ; trail is empty (set-marker calc-trail-pointer (point) (current-buffer)) (setq calc-trail-overlay (concat (buffer-substring (point) -- 2.45.1 --=-=-= Content-Type: text/plain Cheers! --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 15 07:02:17 2024 Received: (at 71533-done) by debbugs.gnu.org; 15 Jun 2024 11:02:17 +0000 Received: from localhost ([127.0.0.1]:35222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIRAn-0005gy-9e for submit@debbugs.gnu.org; Sat, 15 Jun 2024 07:02:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIRAl-0005gf-Nv for 71533-done@debbugs.gnu.org; Sat, 15 Jun 2024 07:02:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIRAe-00014l-Ri; Sat, 15 Jun 2024 07:02:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mdt6UU55jQl9AxBqaWx116qzyQpfU0OLt7SQsEWGdmA=; b=FL4EI/IHAD0j I5kYq+jLcJ/QUwRYRtHe6F5xeLH2UFl8HN+Jkq2rbT3xkNLOLtlcTT3SX7+5Eci7r+XKkMXGzUjCK KEyhb2XmuWALpTYa7u1MxGV6U6YJzZzjdFNbjioJaBUlg4Qrr3n0csWzGpmAifjp8A9lGogjLXZ0R qaB8a3EkJhBVYwoynK8HYvq3YtUMJSooV5/3tl3D659kuBbjC5yVliI7TOaKIAOL1InGa8FzOqeYg toFLQy1R/HmnHPQCq5KOKr6bA+x9LH1Y6A6YKOMCq2k70Ar8u9EU/PqTcPzFvKMeMG5z+N1dFa/sN YqgxwVPYPNW+A43Trjyk5w==; Date: Sat, 15 Jun 2024 14:02:04 +0300 Message-Id: <861q4yv58z.fsf@gnu.org> From: Eli Zaretskii To: Ashwin Kafle In-Reply-To: <85wmmtb09b.fsf@ashwink.com.np> (message from Ashwin Kafle on Thu, 13 Jun 2024 10:33:20 +0000) Subject: Re: bug#71533: 30.0.50; [PATCH] Calc: fix calc-trail-here on initial line of trail. References: <85wmmtb09b.fsf@ashwink.com.np> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71533-done Cc: 71533-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: -3.3 (---) > From: Ashwin Kafle > Date: Thu, 13 Jun 2024 10:33:20 +0000 > > On Calc-trail, you cannot access the first element of trail using ``t > ['' or going to the first line and doing (calc-trail-here). This is > because the check of empty buffer has small error. > > Attached is a simple fix for that. Thanks, installed on the master branch, and closing the bug. From unknown Mon Aug 18 14:26:36 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, 13 Jul 2024 11:24:08 +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