From 7981d89f173d44c543ae876388938a998e8cf68e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 15 Dec 2000 16:25:51 +0000 Subject: [PATCH] (delete-trailing-whitespace): Remove extraneous let. --- lisp/ChangeLog | 4 ++++ lisp/simple.el | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 044270f56b7..c16ab3fba57 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2000-12-16 Miles Bader + + * simple.el (delete-trailing-whitespace): Remove extraneous let. + 2000-12-15 Miles Bader * comint.el (comint-send-string, comint-send-region): Also accept diff --git a/lisp/simple.el b/lisp/simple.el index b145a4a0f92..21118aa5c91 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -232,11 +232,10 @@ This respects narrowing, created by \\[narrow-to-region] and friends." (interactive "*") (save-match-data (save-excursion - (let (eol bol) (goto-char (point-min)) (while (re-search-forward "\\s-$" nil t) (skip-syntax-backward "-" (save-excursion (forward-line 0) (point))) - (delete-region (point) (match-end 0))))))) + (delete-region (point) (match-end 0)))))) (defun newline-and-indent () "Insert a newline, then indent according to major mode. -- 2.39.2