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

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

[nongnu] elpa/org-contrib 8d76dd5b43 07/10: lisp/org-checklist.el: Switc


From: ELPA Syncer
Subject: [nongnu] elpa/org-contrib 8d76dd5b43 07/10: lisp/org-checklist.el: Switch to lexical binding
Date: Wed, 17 Jan 2024 07:01:01 -0500 (EST)

branch: elpa/org-contrib
commit 8d76dd5b439643d6811197b031ac7e50cc54d38d
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    lisp/org-checklist.el: Switch to lexical binding
    
    * lisp/org-checklist.el (org-make-checklist-export): Use `nconc'
    instead of `add-to-list' that cannot be used on lexical vars.
---
 lisp/org-checklist.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/org-checklist.el b/lisp/org-checklist.el
index 192f37d036..9040253504 100644
--- a/lisp/org-checklist.el
+++ b/lisp/org-checklist.el
@@ -1,4 +1,4 @@
-;;; org-checklist.el --- org functions for checklist handling
+;;; org-checklist.el --- org functions for checklist handling  -*- 
lexical-binding: t; -*-
 
 ;; Copyright (C) 2008-2014, 2021 James TD Smith
 
@@ -119,7 +119,8 @@ of checkbox items"
              (when (and (org-at-item-checkbox-p)
                         (or (string= (match-string 0) "[ ]")
                             (string= (match-string 0) "[-]")))
-               (add-to-list 'exported-lines (thing-at-point 'line) t))
+                (setq exported-lines
+                      (nconc exported-lines (list (thing-at-point 'line)))))
              (beginning-of-line 2)))
          (set-buffer (get-buffer-create export-file))
          (org-insert-heading)



reply via email to

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