emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/toc-org 9efeec690c 111/128: Remove the "backup" variable


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org 9efeec690c 111/128: Remove the "backup" variable
Date: Sun, 2 Jan 2022 09:59:14 -0500 (EST)

branch: elpa/toc-org
commit 9efeec690c268971b0aeed64bb39bd3b03756ed4
Author: Hugo Thiessard <htsr@pm.me>
Commit: Hugo Thiessard <htsr@pm.me>

    Remove the "backup" variable
---
 toc-org.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/toc-org.el b/toc-org.el
index 1d7f64a79c..a05196ebb9 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -183,15 +183,13 @@ auxiliary text."
 
       ;; strip COMMENT headlines
       (goto-char (point-min))
-      (let (backup-case-fold-search case-fold-search)
-        (setq case-fold-search nil)
+      (let ((case-fold-search nil))
         (while (re-search-forward toc-org-COMMENT-regexp nil t)
           (let ((skip-depth (concat (match-string 1) "*")))
             (while (progn
                      (beginning-of-line)
                      (delete-region (point) (min (1+ (line-end-position)) 
(point-max)))
-                     (string-prefix-p skip-depth (or (current-word) ""))))))
-        (setq case-fold-search backup-case-fold-search))
+                     (string-prefix-p skip-depth (or (current-word) "")))))))
 
       ;; strip headings with :noexport: tag
       (goto-char (point-min))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]