What did you expect to happen?
Open org file with LaTeX preview at startup correctly.
What actually happened?
Can't open an org file with inline LaTeX preview at startup.
Additional details:

M-x
view-echo-area-messages to see it).Creating LaTeX previews in buffer...
File mode specification error: (error Invalid face)
Debugger entered--Lisp error: (error "Invalid face")
internal-get-lisp-face-attribute(nil :foreground nil)
face-attribute(nil :foreground nil default)
org-format-latex("/home/sjm/GitHub/emacs.d/doom/.local/cache/org-latex/org-ltximg" 1 1417 "/home/sjm/org/test/" overlays nil forbuffer dvipng)
org--latex-preview-region(1 1417)
org-latex-preview((16))
org-mode()
set-auto-mode-0(org-mode nil)
#f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.nnTo find the right major mode, this function checks for a -- mode tagnchecks for a mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed ininterpreter-mode-alist',nmatches the buffer beginning against magic-mode-alist',\ncompares the filename against the entries inauto-mode-alist',nthen matches the buffer beginning against magic-fallback-mode-alist'.\n\nIfenable-local-variables' is nil, or if the file name matchesninhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file. Iflocal-enable-local-variables'nis nil, then the only mode: tag that can be relevant is a -- one.nnIf the optional argument KEEP-MODE-IF-SAME is non-nil, then wenset the major mode only if that would change it. In other wordsnwe don't actually set it to the same mode the buffer already has." #
apply(#f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.nnTo find the right major mode, this function checks for a -- mode tagnchecks for a mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed ininterpreter-mode-alist',nmatches the buffer beginning against magic-mode-alist',\ncompares the filename against the entries inauto-mode-alist',nthen matches the buffer beginning against magic-fallback-mode-alist'.\n\nIfenable-local-variables' is nil, or if the file name matchesninhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file. Iflocal-enable-local-variables'nis nil, then the only mode: tag that can be relevant is a -- one.nnIf the optional argument KEEP-MODE-IF-SAME is non-nil, then wenset the major mode only if that would change it. In other wordsnwe don't actually set it to the same mode the buffer already has." #
#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.nnTo find the right major mode, this function checks for a -- mode tagnchecks for a mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed ininterpreter-mode-alist',nmatches the buffer beginning against magic-mode-alist',\ncompares the filename against the entries inauto-mode-alist',nthen matches the buffer beginning against magic-fallback-mode-alist'.\n\nIfenable-local-variables' is nil, or if the file name matchesninhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file. Iflocal-enable-local-variables'nis nil, then the only mode: tag that can be relevant is a -- one.nnIf the optional argument KEEP-MODE-IF-SAME is non-nil, then wenset the major mode only if that would change it. In other wordsnwe don't actually set it to the same mode the buffer already has." #
apply(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.nnTo find the right major mode, this function checks for a -- mode tagnchecks for a mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed ininterpreter-mode-alist',nmatches the buffer beginning against magic-mode-alist',\ncompares the filename against the entries inauto-mode-alist',nthen matches the buffer beginning against magic-fallback-mode-alist'.\n\nIfenable-local-variables' is nil, or if the file name matchesninhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file. Iflocal-enable-local-variables'nis nil, then the only mode: tag that can be relevant is a -- one.nnIf the optional argument KEEP-MODE-IF-SAME is non-nil, then wenset the major mode only if that would change it. In other wordsnwe don't actually set it to the same mode the buffer already has." #
so-long--set-auto-mode(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.nnTo find the right major mode, this function checks for a -- mode tagnchecks for a mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed ininterpreter-mode-alist',nmatches the buffer beginning against magic-mode-alist',\ncompares the filename against the entries inauto-mode-alist',nthen matches the buffer beginning against magic-fallback-mode-alist'.\n\nIfenable-local-variables' is nil, or if the file name matchesninhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file. Iflocal-enable-local-variables'nis nil, then the only mode: tag that can be relevant is a -- one.nnIf the optional argument KEEP-MODE-IF-SAME is non-nil, then wenset the major mode only if that would change it. In other wordsnwe don't actually set it to the same mode the buffer already has." #
apply(so-long--set-auto-mode #f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.nnTo find the right major mode, this function checks for a -- mode tagnchecks for a mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed ininterpreter-mode-alist',nmatches the buffer beginning against magic-mode-alist',\ncompares the filename against the entries inauto-mode-alist',nthen matches the buffer beginning against magic-fallback-mode-alist'.\n\nIfenable-local-variables' is nil, or if the file name matchesninhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file. Iflocal-enable-local-variables'nis nil, then the only mode: tag that can be relevant is a -- one.nnIf the optional argument KEEP-MODE-IF-SAME is non-nil, then wenset the major mode only if that would change it. In other wordsnwe don't actually set it to the same mode the buffer already has." #
set-auto-mode()
normal-mode(t)
#f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
(if (setq doom-large-file-p (and buffer-file-name (not doom-large-file-p) (file-exists-p buffer-file-name) (> (nth 7 (file-attributes buffer-file-name)) (* 1024 1024 (assoc-default buffer-file-name doom-large-file-size-alist (function string-match-p)))))) (prog1 (apply orig-fn args) (if (memq major-mode doom-large-file-excluded-modes) (setq doom-large-file-p nil) (if (fboundp (quote so-long-minor-mode)) (progn (so-long-minor-mode 1))) (message "Large file detected! Cutting a few corners to improve performance..."))) (apply orig-fn args))
doom--optimize-for-large-files-a(#f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(doom--optimize-for-large-files-a #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #f(advice-wrapper :before #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.nSets buffer mode, parses file-local and directory-local variables.nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was annerror in reading the file. WARN non-nil means warn if therenexists an auto-save file more recent than the visited file.nNOAUTO means don't mess with auto-save mode.nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignoredn(see revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions infind-file-hook'nunless NOMODES is non-nil." #
after-find-file(nil t)
find-file-noselect-1(#
find-file-noselect("~/org/test/reproduce.org" nil nil nil)
find-file("~/org/test/reproduce.org")
#f(compiled-function (f) #
ivy-call()
#f(compiled-function (arg1 arg2 &rest rest) "Read a string in the minibuffer, with completion.nnPROMPT is a string, normally ending in a colon and a space.nivy-count-format' is prepended to PROMPT during completion.\n\nCOLLECTION is either a list of strings, a function, an alist, or\na hash table, supplied forminibuffer-completion-table'.nnPREDICATE is applied to filter out the COLLECTION immediately.nThis argument is for compatibility with completing-read'.\n\nWhen REQUIRE-MATCH is non-nil, only members of COLLECTION can be\nselected.\n\nIf INITIAL-INPUT is non-nil, then insert that input in the\nminibuffer initially.\n\nHISTORY is a name of a variable to hold the completion session\nhistory.\n\nKEYMAP is composed withivy-minibuffer-map'.nnPRESELECT, when non-nil, determines which one of the candidatesnmatching INITIAL-INPUT to select initially. An integer standsnfor the position of the desired candidate in the collection,ncounting from zero. Otherwise, use the first occurrence ofnPRESELECT in the collection. Comparison is first done withnequal'. If that fails, and when applicable, match PRESELECT as\na regular expression.\n\nDEF is for compatibility withcompleting-read'.nnUPDATE-FN is called each time the candidate list is re-displayed.nnWhen SORT is non-nil, ivy-sort-functions-alist' determines how\nto sort candidates before displaying them.\n\nACTION is a function to call after selecting a candidate.\nIt takes one argument, the selected candidate. If COLLECTION is\nan alist, the argument is a cons cell, otherwise it's a string.\n\nMULTI-ACTION, when non-nil, is called instead of ACTION when\nthere are marked candidates. It takes the list of candidates as\nits only argument. When it's nil, ACTION is called on each marked\ncandidate.\n\nUNWIND is a function of no arguments to call before exiting.\n\nRE-BUILDER is a function transforming input text into a regex\npattern.\n\nMATCHER is a function which can override how candidates are\nfiltered based on user input. It takes a regex pattern and a\nlist of candidates, and returns the list of matching candidates.\n\nDYNAMIC-COLLECTION is a boolean specifying whether the list of\ncandidates is updated after each input by calling COLLECTION.\n\nEXTRA-PROPS can be used to store collection-specific\nsession-specific data.\n\nCALLER is a symbol to uniquely identify the caller toivy-read'.nIt is used, along with COLLECTION, to determine whichncustomizations apply to the current completion session." #
apply(#f(compiled-function (arg1 arg2 &rest rest) "Read a string in the minibuffer, with completion.nnPROMPT is a string, normally ending in a colon and a space.nivy-count-format' is prepended to PROMPT during completion.\n\nCOLLECTION is either a list of strings, a function, an alist, or\na hash table, supplied forminibuffer-completion-table'.nnPREDICATE is applied to filter out the COLLECTION immediately.nThis argument is for compatibility with completing-read'.\n\nWhen REQUIRE-MATCH is non-nil, only members of COLLECTION can be\nselected.\n\nIf INITIAL-INPUT is non-nil, then insert that input in the\nminibuffer initially.\n\nHISTORY is a name of a variable to hold the completion session\nhistory.\n\nKEYMAP is composed withivy-minibuffer-map'.nnPRESELECT, when non-nil, determines which one of the candidatesnmatching INITIAL-INPUT to select initially. An integer standsnfor the position of the desired candidate in the collection,ncounting from zero. Otherwise, use the first occurrence ofnPRESELECT in the collection. Comparison is first done withnequal'. If that fails, and when applicable, match PRESELECT as\na regular expression.\n\nDEF is for compatibility withcompleting-read'.nnUPDATE-FN is called each time the candidate list is re-displayed.nnWhen SORT is non-nil, ivy-sort-functions-alist' determines how\nto sort candidates before displaying them.\n\nACTION is a function to call after selecting a candidate.\nIt takes one argument, the selected candidate. If COLLECTION is\nan alist, the argument is a cons cell, otherwise it's a string.\n\nMULTI-ACTION, when non-nil, is called instead of ACTION when\nthere are marked candidates. It takes the list of candidates as\nits only argument. When it's nil, ACTION is called on each marked\ncandidate.\n\nUNWIND is a function of no arguments to call before exiting.\n\nRE-BUILDER is a function transforming input text into a regex\npattern.\n\nMATCHER is a function which can override how candidates are\nfiltered based on user input. It takes a regex pattern and a\nlist of candidates, and returns the list of matching candidates.\n\nDYNAMIC-COLLECTION is a boolean specifying whether the list of\ncandidates is updated after each input by calling COLLECTION.\n\nEXTRA-PROPS can be used to store collection-specific\nsession-specific data.\n\nCALLER is a symbol to uniquely identify the caller toivy-read'.nIt is used, along with COLLECTION, to determine whichncustomizations apply to the current completion session." #
ivy-posframe--read(#f(compiled-function (arg1 arg2 &rest rest) "Read a string in the minibuffer, with completion.nnPROMPT is a string, normally ending in a colon and a space.nivy-count-format' is prepended to PROMPT during completion.\n\nCOLLECTION is either a list of strings, a function, an alist, or\na hash table, supplied forminibuffer-completion-table'.nnPREDICATE is applied to filter out the COLLECTION immediately.nThis argument is for compatibility with completing-read'.\n\nWhen REQUIRE-MATCH is non-nil, only members of COLLECTION can be\nselected.\n\nIf INITIAL-INPUT is non-nil, then insert that input in the\nminibuffer initially.\n\nHISTORY is a name of a variable to hold the completion session\nhistory.\n\nKEYMAP is composed withivy-minibuffer-map'.nnPRESELECT, when non-nil, determines which one of the candidatesnmatching INITIAL-INPUT to select initially. An integer standsnfor the position of the desired candidate in the collection,ncounting from zero. Otherwise, use the first occurrence ofnPRESELECT in the collection. Comparison is first done withnequal'. If that fails, and when applicable, match PRESELECT as\na regular expression.\n\nDEF is for compatibility withcompleting-read'.nnUPDATE-FN is called each time the candidate list is re-displayed.nnWhen SORT is non-nil, ivy-sort-functions-alist' determines how\nto sort candidates before displaying them.\n\nACTION is a function to call after selecting a candidate.\nIt takes one argument, the selected candidate. If COLLECTION is\nan alist, the argument is a cons cell, otherwise it's a string.\n\nMULTI-ACTION, when non-nil, is called instead of ACTION when\nthere are marked candidates. It takes the list of candidates as\nits only argument. When it's nil, ACTION is called on each marked\ncandidate.\n\nUNWIND is a function of no arguments to call before exiting.\n\nRE-BUILDER is a function transforming input text into a regex\npattern.\n\nMATCHER is a function which can override how candidates are\nfiltered based on user input. It takes a regex pattern and a\nlist of candidates, and returns the list of matching candidates.\n\nDYNAMIC-COLLECTION is a boolean specifying whether the list of\ncandidates is updated after each input by calling COLLECTION.\n\nEXTRA-PROPS can be used to store collection-specific\nsession-specific data.\n\nCALLER is a symbol to uniquely identify the caller toivy-read'.nIt is used, along with COLLECTION, to determine whichncustomizations apply to the current completion session." #
apply(ivy-posframe--read #f(compiled-function (arg1 arg2 &rest rest) "Read a string in the minibuffer, with completion.nnPROMPT is a string, normally ending in a colon and a space.nivy-count-format' is prepended to PROMPT during completion.\n\nCOLLECTION is either a list of strings, a function, an alist, or\na hash table, supplied forminibuffer-completion-table'.nnPREDICATE is applied to filter out the COLLECTION immediately.nThis argument is for compatibility with completing-read'.\n\nWhen REQUIRE-MATCH is non-nil, only members of COLLECTION can be\nselected.\n\nIf INITIAL-INPUT is non-nil, then insert that input in the\nminibuffer initially.\n\nHISTORY is a name of a variable to hold the completion session\nhistory.\n\nKEYMAP is composed withivy-minibuffer-map'.nnPRESELECT, when non-nil, determines which one of the candidatesnmatching INITIAL-INPUT to select initially. An integer standsnfor the position of the desired candidate in the collection,ncounting from zero. Otherwise, use the first occurrence ofnPRESELECT in the collection. Comparison is first done withnequal'. If that fails, and when applicable, match PRESELECT as\na regular expression.\n\nDEF is for compatibility withcompleting-read'.nnUPDATE-FN is called each time the candidate list is re-displayed.nnWhen SORT is non-nil, ivy-sort-functions-alist' determines how\nto sort candidates before displaying them.\n\nACTION is a function to call after selecting a candidate.\nIt takes one argument, the selected candidate. If COLLECTION is\nan alist, the argument is a cons cell, otherwise it's a string.\n\nMULTI-ACTION, when non-nil, is called instead of ACTION when\nthere are marked candidates. It takes the list of candidates as\nits only argument. When it's nil, ACTION is called on each marked\ncandidate.\n\nUNWIND is a function of no arguments to call before exiting.\n\nRE-BUILDER is a function transforming input text into a regex\npattern.\n\nMATCHER is a function which can override how candidates are\nfiltered based on user input. It takes a regex pattern and a\nlist of candidates, and returns the list of matching candidates.\n\nDYNAMIC-COLLECTION is a boolean specifying whether the list of\ncandidates is updated after each input by calling COLLECTION.\n\nEXTRA-PROPS can be used to store collection-specific\nsession-specific data.\n\nCALLER is a symbol to uniquely identify the caller toivy-read'.nIt is used, along with COLLECTION, to determine whichncustomizations apply to the current completion session." #
ivy-read("Recentf: " ("~/GitHub/emacs.d/doom/.local/etc/workspaces/autosave" "~/org/test/reproduce.org" "~/org/test/learn-orgmode.org" "~/GitHub/emacs.d/doom/modules/lang/org/README.org" "~/GitHub/emacs.d/doom/modules/lang/latex/README.org" "~/.config/doom/init.el" "~/.config/doom/config.el" "~/GitHub/emacs.d/doom/.local/straight/repos/org-mode/lisp/org.el" "~/org/test/org-mode.org" "~/GitHub/emacs.d/doom/modules/ui/window-select/config.el" "~/GitHub/emacs.d/spacemacs/layers/+distributions/spacemacs-bootstrap/packages.el" "~/GitHub/emacs.d/spacemacs/README.md" "~/GitHub/emacs.d/spacemacs/core/" "~/GitHub/emacs.d/doom/modules/config/default/+evil-bindings.el" "~/GitHub/emacs.d/doom/modules/editor/evil/+everywhere.el" "~/GitHub/emacs.d/doom/core/core-editor.el" "~/GitHub/emacs.d/doom/modules/ui/window-select/README.org" "~/GitHub/emacs.d/doom/modules/emacs/ibuffer/config.el" "~/GitHub/emacs.d/doom/modules/emacs/ibuffer/packages.el" "~/GitHub/emacs.d/doom/modules/emacs/ibuffer/README.org" "~/GitHub/emacs.d/doom/modules/emacs/dired/packages.el" "~/GitHub/emacs.d/doom/modules/emacs/dired/README.org" "~/Pictures/Screenshot from 2020-01-01 11-44-52.png" "~/Pictures/Screenshot from 2020-01-01 11-44-25.png" "~/Pictures/Screenshot from 2020-01-01 11-38-09.png" "~/Pictures/Screenshot from 2020-01-01 11-32-31.png" "~/Pictures/Screenshot from 2020-01-01 11-31-46.png" "~/Pictures/Screenshot from 2019-12-31 21-36-31.png" "~/Pictures/Screenshot from 2019-12-31 21-35-58.png" "~/Pictures/Screenshot from 2019-12-31 00-01-09.png" "~/Pictures/Screenshot from 2019-12-31 00-00-38.png" "~/Pictures/Screenshot from 2019-12-31 00-00-21.png" "~/Pictures/Screenshot from 2019-12-30 23-58-52.png" "~/Pictures/Screenshot from 2019-12-30 23-57-23.png" "~/Pictures/Screenshot from 2019-12-30 16-06-25.png" "~/Pictures/Screenshot from 2019-12-30 15-03-21.png" "~/Pictures/Screenshot from 2019-12-30 14-51-29.png" "~/Pictures/Screenshot from 2019-12-30 14-48-34.png" "~/Pictures/Screenshot from 2019-12-26 16-05-46.png" "~/Pictures/Screenshot from 2019-12-26 16-03-59.png" "~/Pictures/Screenshot from 2019-12-06 10-50-09.png" "~/Pictures/Screenshot from 2018-11-26 14-54-03.png" "~/Pictures/Screenshot from 2018-08-28 09-35-01.png" "~/Pictures/" "~/" "~/Pictures/Screenshot from 2020-02-09 22-25-56.png" "~/Pictures/wallpaper-2818415.jpg" "~/Pictures/Screenshot from 2020-01-30 18-01-00.png" "~/Pictures/Screenshot from 2020-01-30 18-00-56.png" "~/Pictures/Screenshot from 2020-01-06 10-40-02.png" ...) :action #f(compiled-function (f) #
counsel-recentf()
funcall-interactively(counsel-recentf)
call-interactively(counsel-recentf nil nil)
command-execute(counsel-recentf)
Steps to reproduce:
#+TITLE: Learning Org-mode
#+STARTUP: latexpreview
* Org-babel
** LaTeX
#+BEGIN_SRC latex
\begin{equation}
E = mc^2
\end{equation}
#+END_SRC
* LaTeX
** Equation
\begin{equation}
x=\sqrt{b}
\end{equation}
If $a^2=b$ and \( b=2 \), then the solution must be
either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
another equation:
\begin{equation}
E = mc^2
\end{equation}
For example: $\iint\limits_{(x,y)\in D} f(x) \mathrm{d}x\mathrm{d}y$
\begin{equation*}
\iint\limits_{(x,y)\in D} f(x) \mathrm{d}x\mathrm{d}y
\end{equation*}
** Table
\begin{table}[]
\begin{tabular}{llr}
\hline
\multicolumn{2}{c}{Item} & \\ \cline{1-2}
Animal & Description & Price (\$) \\ \hline
Gnat & per gram & 13.65 \\
& each & 0.01 \\
Gnu & stuffed & 92.50 \\
Emu & stuffed & 33.33 \\
Armadillo & frozen & 8.99 \\ \hline
\end{tabular}
\end{table}
System information:
emacs version 26.3
features XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2
build Sep 17, 2019
buildopts (--build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=26 --with-modules --with-file-notification=inotify --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets --with-lcms2 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs26-TP6iDo/emacs26-26.3~1.git96dd019=. -fstack-protector-strong -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie')
windowsys x
daemonp server-running
doom version 2.0.9
build HEAD -> develop, origin/develop, origin/HEAD a5c6a253c 2020-02-05 23:01:24 -0500
dir ~/.config/doom/
system type gnu/linux
config x86_64-pc-linux-gnu
shell /usr/bin/zsh
uname Linux 4.18.0-15-generic #16~18.04.1-Ubuntu SMP Thu Feb 7 14:06:04 UTC 2019 x86_64
path (~/.local/linuxbrew/bin ~/.emacs.d/bin ~/anaconda3/bin ~/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin ~/.fzf/bin /usr/lib/x86_64-linux-gnu/emacs/26.3/x86_64-linux-gnu/)
config envfile envvar-file
elc-files 0
modules (:completion (company +childframe) (ivy +childframe) :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe (window-select +numbers) workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets :emacs (dired +ranger) electric (ibuffer +icons) vc :term vterm :checkers (syntax +childframe) :tools ein (eval +overlay) (lookup +docsets) lsp magit pdf :lang (cc +lsp) data emacs-lisp markdown (org +dragndrop +present) (python +lsp +conda) sh :email notmuch :app calendar irc :config (default +bindings +smartparens))
packages (n/a)
elpa (n/a)
unpin (n/a)
I cannot reproduce this. Can you reproduce this in the sandbox with C-c C-p?
Yes, I can reproduce in the sandbox with C-c C-p

If I remove #+STARTUP: latexpreview, then everything is OK. And I can toggle latex preview in the org file.
However, with latexpreview option, Doom run into this problem.
I'm experiencing the same behavior on 2 different machines running Arch and Manjaro. Adding +STARTUP: latexpreview results in File mode specification error: (error Invalid face).
Most helpful comment
Yes, I can reproduce in the sandbox with

C-c C-pIf I remove
#+STARTUP: latexpreview, then everything is OK. And I can toggle latex preview in the org file.However, with
latexpreviewoption, Doom run into this problem.