doomemacs / doomemacs

An Emacs framework for the stubborn martian hacker
MIT License
19.57k stars 3.06k forks source link

Fresh install doom emacs 27.1: File mode specification error: (wrong-type-argument hash-table-p nil) #4547

Closed gpetrini closed 3 years ago

gpetrini commented 3 years ago

What did you expect to happen? ... org file export to other formats and fold headings

What actually happened? ... Message error: File mode specification error: (wrong-type-argument hash-table-p nil)

Additional details:

Backtrace:

```
  gethash("brochier_macroeconomics_2017" nil)
  orb-find-note-file("brochier_macroeconomics_2017")
  funcall(orb-find-note-file "brochier_macroeconomics_2017")
  (lambda (fn) (funcall fn entry-key))(orb-find-note-file)
  mapcar((lambda (fn) (funcall fn entry-key)) (orb-find-note-file bibtex-completion-find-note-multiple-files bibtex-completion-find-note-one-file))
  (cl-some #'identity (mapcar #'(lambda (fn) (funcall fn entry-key)) bibtex-completion-find-note-functions))
  (if (cl-some #'identity (mapcar #'(lambda (fn) (funcall fn entry-key)) bibtex-completion-find-note-functions)) (cons (cons "=has-note=" bibtex-completion-notes-symbol) entry) entry)
  (let* ((fields (if fields (progn (append fields (list "=type=" "=key=" "=has-pdf=" "=has-note="))))) (entry (if (and (not do-not-find-pdf) (bibtex-completion-find-pdf entry)) (cons (cons "=has-pdf=" bibtex-completion-pdf-symbol) entry) entry)) (entry-key (cdr (assoc "=key=" entry))) (entry (if (cl-some #'identity (mapcar #'(lambda ... ...) bibtex-completion-find-note-functions)) (cons (cons "=has-note=" bibtex-completion-notes-symbol) entry) entry)) (entry (if fields (let (result) (let ((list entry) (i 0) it it-index) (ignore it it-index) (while list (setq it ... it-index i i ...) (if ... ...))) (nreverse result)) entry))) (setcdr (assoc "=type=" entry) (downcase (cdr (assoc "=type=" entry)))) (bibtex-completion-remove-duplicated-fields entry))
  (progn (let* ((fields (if fields (progn (append fields (list "=type=" "=key=" "=has-pdf=" "=has-note="))))) (entry (if (and (not do-not-find-pdf) (bibtex-completion-find-pdf entry)) (cons (cons "=has-pdf=" bibtex-completion-pdf-symbol) entry) entry)) (entry-key (cdr (assoc "=key=" entry))) (entry (if (cl-some #'identity (mapcar #'... bibtex-completion-find-note-functions)) (cons (cons "=has-note=" bibtex-completion-notes-symbol) entry) entry)) (entry (if fields (let (result) (let (... ... it it-index) (ignore it it-index) (while list ... ...)) (nreverse result)) entry))) (setcdr (assoc "=type=" entry) (downcase (cdr (assoc "=type=" entry)))) (bibtex-completion-remove-duplicated-fields entry)))
  (if entry (progn (let* ((fields (if fields (progn (append fields ...)))) (entry (if (and (not do-not-find-pdf) (bibtex-completion-find-pdf entry)) (cons (cons "=has-pdf=" bibtex-completion-pdf-symbol) entry) entry)) (entry-key (cdr (assoc "=key=" entry))) (entry (if (cl-some #'identity (mapcar ... bibtex-completion-find-note-functions)) (cons (cons "=has-note=" bibtex-completion-notes-symbol) entry) entry)) (entry (if fields (let (result) (let ... ... ...) (nreverse result)) entry))) (setcdr (assoc "=type=" entry) (downcase (cdr (assoc "=type=" entry)))) (bibtex-completion-remove-duplicated-fields entry))))
  bibtex-completion-prepare-entry((("file" . "{Brochier_Silva_2017_THE MACROECONOMIC IMPLICATION...") ("keywords" . "{REVISTO, METADATA}") ("year" . "2017") ("month" . "aug") ("author" . "{Brochier, Lídia and Macedo e Silva, Antonio Carlo...") ("journal" . "{Análise Econômica}") ("number" . "{especial}") ("language" . "{en}") ("abstract" . "{The recent US economic scenario has motivated a s...") ("copyright" . "{Direitos autorais 2017 Análise Econômica}") ("volume" . "35") ("title" . "{The macroeconomics implications of consumption:\n ...") ("=type=" . "article") ("=key=" . "brochier_macroeconomics_2017")) nil nil)
  (reverse (bibtex-completion-prepare-entry (parsebib-read-entry entry-type (point) bibtex-completion-string-hash-table) nil do-not-find-pdf))
  (let ((entry-type (match-string 1))) (reverse (bibtex-completion-prepare-entry (parsebib-read-entry entry-type (point) bibtex-completion-string-hash-table) nil do-not-find-pdf)))
  (if (re-search-forward (concat "^[ \11]*@\\(" parsebib--bibtex-identifier "\\)[[:space:]]*[({][[:space:]]*" (regexp-quote entry-key) "[[:space:]]*,") nil t) (let ((entry-type (match-string 1))) (reverse (bibtex-completion-prepare-entry (parsebib-read-entry entry-type (point) bibtex-completion-string-hash-table) nil do-not-find-pdf))) (progn (display-warning :warning (concat "Bibtex-completion couldn't find entry with key \"" entry-key "\".")) nil))
  (progn (mapc #'insert-file-contents bib) (goto-char (point-min)) (if (re-search-forward (concat "^[ \11]*@\\(" parsebib--bibtex-identifier "\\)[[:space:]]*[({][[:space:]]*" (regexp-quote entry-key) "[[:space:]]*,") nil t) (let ((entry-type (match-string 1))) (reverse (bibtex-completion-prepare-entry (parsebib-read-entry entry-type (point) bibtex-completion-string-hash-table) nil do-not-find-pdf))) (progn (display-warning :warning (concat "Bibtex-completion couldn't find entry with key \"" entry-key "\".")) nil)))
  (unwind-protect (progn (mapc #'insert-file-contents bib) (goto-char (point-min)) (if (re-search-forward (concat "^[ \11]*@\\(" parsebib--bibtex-identifier "\\)[[:space:]]*[({][[:space:]]*" (regexp-quote entry-key) "[[:space:]]*,") nil t) (let ((entry-type (match-string 1))) (reverse (bibtex-completion-prepare-entry (parsebib-read-entry entry-type (point) bibtex-completion-string-hash-table) nil do-not-find-pdf))) (progn (display-warning :warning (concat "Bibtex-completion couldn't find entry with key \"" entry-key "\".")) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (mapc #'insert-file-contents bib) (goto-char (point-min)) (if (re-search-forward (concat "^[ \11]*@\\(" parsebib--bibtex-identifier "\\)[[:space:]]*[({][[:space:]]*" (regexp-quote entry-key) "[[:space:]]*,") nil t) (let ((entry-type (match-string 1))) (reverse (bibtex-completion-prepare-entry (parsebib-read-entry entry-type ... bibtex-completion-string-hash-table) nil do-not-find-pdf))) (progn (display-warning :warning (concat "Bibtex-completion couldn't find entry with key \"" entry-key "\".")) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (mapc #'insert-file-contents bib) (goto-char (point-min)) (if (re-search-forward (concat "^[ \11]*@\\(" parsebib--bibtex-identifier "\\)[[:space:]]*[({][[:space:]]*" (regexp-quote entry-key) "[[:space:]]*,") nil t) (let ((entry-type ...)) (reverse (bibtex-completion-prepare-entry ... nil do-not-find-pdf))) (progn (display-warning :warning (concat "Bibtex-completion couldn't find entry with key \"" entry-key "\".")) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
  (let ((bib (bibtex-completion-normalize-bibliography 'bibtex))) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (mapc #'insert-file-contents bib) (goto-char (point-min)) (if (re-search-forward (concat "^[ \11]*@\\(" parsebib--bibtex-identifier "\\)[[:space:]]*[({][[:space:]]*" ... "[[:space:]]*,") nil t) (let (...) (reverse ...)) (progn (display-warning :warning ...) nil))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))
  bibtex-completion-get-entry1("brochier_macroeconomics_2017")
  (let* ((entry (bibtex-completion-get-entry1 entry-key)) (crossref (bibtex-completion-get-value "crossref" entry)) (crossref (if crossref (progn (bibtex-completion-get-entry1 crossref))))) (bibtex-completion-remove-duplicated-fields (append entry crossref)))
  bibtex-completion-get-entry("brochier_macroeconomics_2017")
  (assoc "=key=" (bibtex-completion-get-entry key))
  (if (string= key "*") t (assoc "=key=" (bibtex-completion-get-entry key)))
  (lambda (key) (if (string= key "*") t (assoc "=key=" (bibtex-completion-get-entry key))))("brochier_macroeconomics_2017")
  mapcar((lambda (key) (if (string= key "*") t (assoc "=key=" (bibtex-completion-get-entry key)))) ("brochier_macroeconomics_2017"))
  (-every\? 'identity (mapcar #'(lambda (key) (if (string= key "*") t (assoc "=key=" (bibtex-completion-get-entry key)))) (split-string keys ",")))
  (let ((bibtex-completion-bibliography (org-ref-find-bibliography))) (-every\? 'identity (mapcar #'(lambda (key) (if (string= key "*") t (assoc "=key=" (bibtex-completion-get-entry key)))) (split-string keys ","))))
  (or (not org-ref-show-broken-links) (let ((bibtex-completion-bibliography (org-ref-find-bibliography))) (-every\? 'identity (mapcar #'(lambda (key) (if (string= key "*") t (assoc "=key=" ...))) (split-string keys ",")))))
  (cond ((or (not org-ref-show-broken-links) (let ((bibtex-completion-bibliography (org-ref-find-bibliography))) (-every\? 'identity (mapcar #'(lambda ... ...) (split-string keys ","))))) 'org-ref-cite-face) (t 'font-lock-warning-face))
  (progn (cond ((or (not org-ref-show-broken-links) (let ((bibtex-completion-bibliography (org-ref-find-bibliography))) (-every\? 'identity (mapcar #'... (split-string keys ","))))) 'org-ref-cite-face) (t 'font-lock-warning-face)))
  (unwind-protect (progn (cond ((or (not org-ref-show-broken-links) (let ((bibtex-completion-bibliography ...)) (-every\? 'identity (mapcar ... ...)))) 'org-ref-cite-face) (t 'font-lock-warning-face))) (set-match-data save-match-data-internal 'evaporate))
  (let ((save-match-data-internal (match-data))) (unwind-protect (progn (cond ((or (not org-ref-show-broken-links) (let (...) (-every\? ... ...))) 'org-ref-cite-face) (t 'font-lock-warning-face))) (set-match-data save-match-data-internal 'evaporate)))
  org-ref-cite-link-face-fn("brochier_macroeconomics_2017")
  org-activate-links(4177)
  font-lock-fontify-keywords-region(1 4177 nil)
  font-lock-default-fontify-region(1 4177 nil)
  font-lock-fontify-region(1 4177 nil)
  font-lock-default-fontify-buffer()
  font-lock-fontify-buffer()
  org-fancy-priorities-mode()
  run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  org-export--prepare-file-contents("/HDD/PhD/Articles/SFC/Introduction.org" nil 0 2 1 # "/HDD/PhD/Articles/SFC/Petrini_Teixeira_2020_SFC.or...")
  org-export-expand-include-keyword()
  #f(compiled-function (backend &optional subtreep visible-only body-only ext-plist) "Transcode current Org buffer into BACKEND code.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.\n\nIf narrowing is active in the current buffer, only transcode its\nnarrowed part.\n\nIf a region is active, transcode that region.\n\nWhen optional argument SUBTREEP is non-nil, transcode the\nsub-tree at point, extracting information from the headline\nproperties first.\n\nWhen optional argument VISIBLE-ONLY is non-nil, don't export\ncontents of hidden elements.\n\nWhen optional argument BODY-ONLY is non-nil, only return body\ncode, without surrounding template.\n\nOptional argument EXT-PLIST, when provided, is a property list\nwith external parameters overriding Org default settings, but\nstill inferior to file-local settings.\n\nReturn code as a string." #)(latex nil nil nil (:output-file "Petrini_Teixeira_2020_SFC.tex"))
  apply(#f(compiled-function (backend &optional subtreep visible-only body-only ext-plist) "Transcode current Org buffer into BACKEND code.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.\n\nIf narrowing is active in the current buffer, only transcode its\nnarrowed part.\n\nIf a region is active, transcode that region.\n\nWhen optional argument SUBTREEP is non-nil, transcode the\nsub-tree at point, extracting information from the headline\nproperties first.\n\nWhen optional argument VISIBLE-ONLY is non-nil, don't export\ncontents of hidden elements.\n\nWhen optional argument BODY-ONLY is non-nil, only return body\ncode, without surrounding template.\n\nOptional argument EXT-PLIST, when provided, is a property list\nwith external parameters overriding Org default settings, but\nstill inferior to file-local settings.\n\nReturn code as a string." #) (latex nil nil nil (:output-file "Petrini_Teixeira_2020_SFC.tex")))
  (let ((old-async-init-file org-export-async-init-file) (org-export-async-init-file (make-temp-file "doom-org-async-export"))) (let ((temp-file org-export-async-init-file) (temp-buffer (generate-new-buffer " *temp file*"))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (prin1 (list 'progn (list ... ... ... ... ...) (cons ... ...) (list ... org-export-async-init-file)) (current-buffer))) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (apply orig-fn args))
  +org--fix-async-export-a(#f(compiled-function (backend &optional subtreep visible-only body-only ext-plist) "Transcode current Org buffer into BACKEND code.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.\n\nIf narrowing is active in the current buffer, only transcode its\nnarrowed part.\n\nIf a region is active, transcode that region.\n\nWhen optional argument SUBTREEP is non-nil, transcode the\nsub-tree at point, extracting information from the headline\nproperties first.\n\nWhen optional argument VISIBLE-ONLY is non-nil, don't export\ncontents of hidden elements.\n\nWhen optional argument BODY-ONLY is non-nil, only return body\ncode, without surrounding template.\n\nOptional argument EXT-PLIST, when provided, is a property list\nwith external parameters overriding Org default settings, but\nstill inferior to file-local settings.\n\nReturn code as a string." #) latex nil nil nil (:output-file "Petrini_Teixeira_2020_SFC.tex"))
  apply(+org--fix-async-export-a #f(compiled-function (backend &optional subtreep visible-only body-only ext-plist) "Transcode current Org buffer into BACKEND code.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.\n\nIf narrowing is active in the current buffer, only transcode its\nnarrowed part.\n\nIf a region is active, transcode that region.\n\nWhen optional argument SUBTREEP is non-nil, transcode the\nsub-tree at point, extracting information from the headline\nproperties first.\n\nWhen optional argument VISIBLE-ONLY is non-nil, don't export\ncontents of hidden elements.\n\nWhen optional argument BODY-ONLY is non-nil, only return body\ncode, without surrounding template.\n\nOptional argument EXT-PLIST, when provided, is a property list\nwith external parameters overriding Org default settings, but\nstill inferior to file-local settings.\n\nReturn code as a string." #) (latex nil nil nil (:output-file "Petrini_Teixeira_2020_SFC.tex")))
  org-export-as(latex nil nil nil (:output-file "Petrini_Teixeira_2020_SFC.tex"))
  #f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #)(latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #))
  apply(#f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) (latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #)))
  (let (before-save-hook after-save-hook) (apply orig-fn args))
  +org--dont-trigger-save-hooks-on-export-a(#f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #))
  apply(+org--dont-trigger-save-hooks-on-export-a #f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) (latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #)))
  #f(advice-wrapper :around #f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) +org--dont-trigger-save-hooks-on-export-a)(latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #))
  apply(#f(advice-wrapper :around #f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) +org--dont-trigger-save-hooks-on-export-a) (latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #)))
  (let ((old-async-init-file org-export-async-init-file) (org-export-async-init-file (make-temp-file "doom-org-async-export"))) (let ((temp-file org-export-async-init-file) (temp-buffer (generate-new-buffer " *temp file*"))) (unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (prin1 (list 'progn (list ... ... ... ... ...) (cons ... ...) (list ... org-export-async-init-file)) (current-buffer))) (save-current-buffer (set-buffer temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))) (apply orig-fn args))
  +org--fix-async-export-a(#f(advice-wrapper :around #f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) +org--dont-trigger-save-hooks-on-export-a) latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #))
  apply(+org--fix-async-export-a #f(advice-wrapper :around #f(compiled-function (backend file &optional async subtreep visible-only body-only ext-plist post-process) "Call `org-export-as' with output to a specified file.\n\nBACKEND is either an export back-end, as returned by, e.g.,\n`org-export-create-backend', or a symbol referring to\na registered back-end.  FILE is the name of the output file, as\na string.\n\nA non-nil optional argument ASYNC means the process should happen\nasynchronously.  The resulting buffer will then be accessible\nthrough the `org-export-stack' interface.\n\nOptional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and\nEXT-PLIST are similar to those used in `org-export-as', which\nsee.\n\nOptional argument POST-PROCESS is called with FILE as its\nargument and happens asynchronously when ASYNC is non-nil.  It\nhas to return a file name, or nil.  Export back-ends can use this\nto send the output file through additional processing, e.g,\n\n  (defun org-latex-export-to-latex\n    (&optional async subtreep visible-only body-only ext-plist)\n    (interactive)\n    (let ((outfile (org-export-output-file-name \".tex\" subtreep)))\n      (org-export-to-file \\='latex outfile\n        async subtreep visible-only body-only ext-plist\n        (lambda (file) (org-latex-compile file)))\n\nThe function returns either a file name returned by POST-PROCESS,\nor FILE." #) +org--dont-trigger-save-hooks-on-export-a) (latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #)))
  org-export-to-file(latex "Petrini_Teixeira_2020_SFC.tex" nil nil nil nil nil #f(compiled-function (file) #))
  org-latex-export-to-pdf(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)
```

System information:

- doom info
```
SYSTEM  type       gnu/linux
    config     x86_64-pc-linux-gnu
    shell      /usr/bin/zsh
    uname      Linux 5.8.0-7630-generic #32~1609193707~20.04~781bb80-Ubuntu SMP Tue Jan 5 21:23:50 UTC 2 x86_64
    path       (~/.local/bin ~/bin /usr/local/bin ~/.local/bin ~/bin /opt/texbin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin /usr/local/libexec/emacs/27.1/x86_64-pc-linux-gnu)
EMACS   dir        ~/.emacs.d/
    version    27.1
    build      jan 19, 2021
    buildopts  --with-modules --with-gnutls
    features   XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP
    traits     (batch server-running)
DOOM    dir        ~/.doom.d/
    version    2.0.9
    build      grafted, HEAD -> develop, origin/develop, origin/HEAD 2ad1eab6 2021-01-18 19:59:18 -0500
    elc-files  0
    modules    (:completion (company +childframe +auto) (ivy +fuzzy +prescient) :ui doom doom-dashboard doom-quit hl-todo indent-guides ligatures modeline ophints (popup +defaults) unicode vc-gutter vi-tilde-fringe (window-select +numbers) workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) snippets :emacs (dired +icons) electric (ibuffer +icons) (undo +tree) vc :checkers syntax spell grammar :tools debugger ein (eval +overlay) (lookup +dictionary) lsp magit pass rgb biblio :lang data emacs-lisp ess julia (latex +latexmk +cdlatex +fold) markdown (org +pretty +dragndrop +roam +jupyter +pandoc +gnuplot +present) python sh :app (rss +org) :config literate (default +bindings +smartparens))
    packages   ((org-ref) (helm-bibtex) (ox-pandoc) (org-download) (org-pretty-table-mode :recipe (:host github :repo Fuco1/org-pretty-table)) (org-pretty-tags) (sublimity) (org-fancy-priorities) (info-colors) (beacon) (exec-path-from-shell) (elfeed) (evil-tutor) (org-bullets) (peep-dired) (rainbow-mode) (writeroom-mode) (ox-reveal) (academic-phrases) (org-fragtog) (citeproc-org) (org-superstar) (async) (elpy) (org-roam-bibtex :recipe (:host github :repo org-roam/org-roam-bibtex)) (org-roam :recipe (:host github :repo org-roam/org-roam)) (org-roam-server) (ess-view) (ess-view-data) (company))
    unpin      (org-roam company-org-roam bibtex-completion helm-bibtex ivy-bibtex)
    elpa       (n/a)
```
gpetrini commented 3 years ago

I've already solved the issue (solution).