Use 'let' for local variable

master
Hollow Man 6 years ago
parent d5279fb18a
commit 3cd2d0f621
No known key found for this signature in database
GPG Key ID: 6CA2A0660F48F7A
  1. 4
      app/mindmap/eaf-mindmap.el

@ -114,10 +114,10 @@
(end-of-line)
(backward-char 1)
(point)))))
(setq loop-times (/ (- (length header-string) 1) 2))
(let ((loop-times (/ (- (length header-string) 1) 2)))
(while (> loop-times 0)
(setq loop-times (- loop-times 1))
(setq header-string (string-remove-prefix "*" header-string)))
(setq header-string (string-remove-prefix "*" header-string))))
(setq org-parse-data (concat org-parse-data (format "%s%s\n" header-string content-string)))))
(with-temp-file org-file-path

Loading…
Cancel
Save