]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix deleting the first line of calc trail
authorWojciech Siewierski <wojciech@siewierski.eu>
Mon, 14 Apr 2025 16:57:28 +0000 (18:57 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 21 Apr 2025 20:32:32 +0000 (22:32 +0200)
* lisp/calc/calc-trail.el (calc-trail-kill): Remove the check
preventing the removal of the first trail line, which is no
longer relevant since commit 8e1376a3912.  (Bug#77816)

(cherry picked from commit 45cf832ac75f8d6fb41a4856d1987062e81dcddb)

lisp/calc/calc-trail.el

index f134a7b16b94be0e2c18af99f3df466f3e9f64f5..433d3983b12a2cff91897d2ea91c328657422f47 100644 (file)
   (interactive "p")
   (calc-with-trail-buffer
    (let ((buffer-read-only nil))
-     (save-restriction
-       (narrow-to-region   ; don't delete "Emacs Trail" header
-       (save-excursion
-         (goto-char (point-min))
-         (forward-line 1)
-         (point))
-       (point-max))
-       (kill-line n)))
+     (kill-line n))
    (calc-trail-here)))
 
 (provide 'calc-trail)