Ihor Radchenko <yanta...@gmail.com> writes: > Could you please provide a detailed reproducer?
Sure. I have attached the files "mwe-data.org" and "mwe-export.org". To reproduce, save both files in the same directory. Then open mwe-export.org, navigate to the "Export script" heading, and evaluate (Ctrl-C Ctrl-C) the shell source block. Expected output: a generated html file containing the fruits and vegetables from the mwe-data.org file. Actual output: Lisp error: (wrong-type-argument stringp nil), details as in my first message. Compare on the other hand if you navigate to the "Fruits and vegetables" heading and evaluate the emacs-lisp code block, it outputs a list of fruits and vegetables in a results drawer. > org-agenda-skip should be operating after org-agenda-prepare-buffers, > which, in turn, should call org-mode. org-mode calls > org-setup-comments-handling which must set comment-start-skip to > non-nil. OK, thanks for the insight. I haven't figured out where things are going wrong. But a possibly related issue is that lately, when I open an org file for the first time, org-mode does not load automatically. If I close the file and reopen, org-mode loads as expected. Best regards, Asilata
* Fruits ** Apple ** Banana ** Cantaloupe * Vegetables ** Asparagus ** Broccoli ** Cabbage
#+title: MWE for testing org-agenda-skip bug #+author: Asilata Bapat #+options: toc:nil * Fruits and vegetables #+begin_src emacs-lisp :results value drawer :exports results (defun show-title () (let ((title (org-entry-get nil "ITEM"))) (format "- %s" title))) (string-join (org-map-entries 'show-title "LEVEL=2" '("mwe-data.org")) "\n") #+end_src * Export script :noexport: #+begin_src shell :results silent emacs --batch --visit "mwe-export.org" --eval '(require (quote org))' --eval '(setq org-confirm-babel-evaluate nil)' --eval '(org-html-export-to-html)' #+end_src
signature.asc
Description: PGP signature