From f2f94fcdf2ae27acc86bf48e73d32db36c295ecb Mon Sep 17 00:00:00 2001 From: dickmao Date: Thu, 19 Mar 2020 08:02:35 -0400 Subject: [PATCH] save a length call --- lisp/ein-worksheet.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ein-worksheet.el b/lisp/ein-worksheet.el index 67bc31c..1c83983 100644 --- a/lisp/ein-worksheet.el +++ b/lisp/ein-worksheet.el @@ -190,7 +190,7 @@ Normalize `buffer-undo-list' by removing extraneous details, and update the ein: (eq (nth 1 entry) bogey)))) (or (check entry 'activate-cursor-for-undo) (check entry 'deactivate-cursor-after-undo)))) - (cl-subseq buffer-undo-list 0 (min (length buffer-undo-list) 30)))) + (cl-subseq buffer-undo-list 0 (min len-buffer-undo-list 30)))) (fill (- len-buffer-undo-list len-which-cell))) (cond ((and (not multiple-cursors-p) (> (abs fill) 1)) (let ((msg (format "Undo failure diagnostic %s %s | %s"