Doom-emacs: [BUG] File mode specification error: (wrong-type-argument stringp nil)

Created on 12 Dec 2019  ·  10Comments  ·  Source: hlissner/doom-emacs

When I update to commit 5f2e708 and enter the Org Agenda, I get an error:

File mode specification error: (wrong-type-argument stringp nil)

backtrace:


Debugger entered--Lisp error: (wrong-type-argument stringp nil)
re-search-forward(nil nil move)
comment-forward(1)
so-long-detected-long-line-p()
so-long--set-auto-mode(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) auto-minor-mode-set))
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.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) auto-minor-mode-set) nil)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #)(nil t)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
(if (setq doom-large-file-p (and buffer-file-name (not doom-large-file-p) (file-readable-p buffer-file-name) (> (nth 7 (file-attributes buffer-file-name)) (* 1024 1024 (cdr (or (assq major-mode doom-large-file-size-alist) (assq ... doom-large-file-size-alist))))))) (prog1 (apply orig-fn args) (if (memq major-mode doom-large-file-excluded-modes) (setq doom-large-file-p nil) (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(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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) nil t)
apply(doom--optimize-for-large-files-a #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
#f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a)(nil t)
apply(#f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) doom--after-call-ws-butler-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) doom--after-call-ws-butler-h) (nil t))
after-find-file(nil t)
find-file-noselect-1(# "~/org/anniversary.org" nil nil "~/Library/Mobile Documents/iCloud~com~appsonthemove~beorg/Documents/org/anniversary.org" (2640741 16777225))
find-file-noselect("~/org/anniversary.org")
#f(compiled-function (file) "Get an agenda buffer visiting FILE.\nIf the buffer needs to be created, add it to the list of buffers\nwhich might be released later." #)("~/org/anniversary.org")
funcall(#f(compiled-function (file) "Get an agenda buffer visiting FILE.\nIf the buffer needs to be created, add it to the list of buffers\nwhich might be released later." #) "~/org/anniversary.org")
(let ((recentf-exclude (list (function (lambda (_file) t))))) (funcall orig-fn file))
+org--exclude-agenda-buffers-from-recentf-a(#f(compiled-function (file) "Get an agenda buffer visiting FILE.\nIf the buffer needs to be created, add it to the list of buffers\nwhich might be released later." #) "~/org/anniversary.org")
apply(+org--exclude-agenda-buffers-from-recentf-a #f(compiled-function (file) "Get an agenda buffer visiting FILE.\nIf the buffer needs to be created, add it to the list of buffers\nwhich might be released later." #) "~/org/anniversary.org")
org-get-agenda-file-buffer("~/org/anniversary.org")
org-agenda-prepare-buffers(("~/org/anniversary.org" "~/org/diary.org" "~/org/notes.org" "~/org/todo.org" "~/org/work.org"))
org-agenda-prepare("Day/Week")
org-agenda-list(nil)
funcall-interactively(org-agenda-list nil)
call-interactively(org-agenda-list)
org-agenda(nil)
funcall-interactively(org-agenda nil)
call-interactively(org-agenda nil nil)
command-execute(org-agenda)

System information:
Mac OS mojave

EmacsPlus 26.3

:core bug external resolved-temporarily

All 10 comments

Maybe related: I get a similiar error when opening a JSON file. Debugger gives this backtrace:

~
Debugger entered--Lisp error: (wrong-type-argument symbolp "file")
json-serialize((:jsonrpc "2.0" :method "initialize" :params (:processId 36297 :rootPath "/Users/ckruse/Code/termitel/termitool/frontend" :rootUri "file:///Users/ckruse/Code/termitel/termitool/front..." :capabilities ((workspace (workspaceEdit (documentChanges . t) (resourceOperations . ["create" "rename" "delete"])) (applyEdit . t) (symbol (symbolKind (valueSet . ...))) (executeCommand (dynamicRegistration . :json-false)) (didChangeWatchedFiles (dynamicRegistration . t)) (workspaceFolders . t) (configuration . t)) (textDocument (declaration (linkSupport . t)) (definition (linkSupport . t)) (implementation (linkSupport . t)) (typeDefinition (linkSupport . t)) (synchronization (willSave . t) (didSave . t) (willSaveWaitUntil . t)) (documentSymbol (symbolKind (valueSet . ...)) (hierarchicalDocumentSymbolSupport . t)) (formatting (dynamicRegistration . t)) (rangeFormatting (dynamicRegistration . t)) (rename (dynamicRegistration . t)) (semanticHighlightingCapabilities (semanticHighlighting)) (codeAction (dynamicRegistration . t) (codeActionLiteralSupport (codeActionKind ...))) (completion (completionItem (snippetSupport . t) (documentationFormat . ...)) (contextSupport . t)) (signatureHelp (signatureInformation (parameterInformation ...))) (documentLink (dynamicRegistration . t)) (hover (contentFormat . ["markdown" "plaintext"])) (foldingRange (dynamicRegistration . t) (rangeLimit) (lineFoldingOnly . :json-false)))) :initializationOptions (:handledSchemaProtocols ("file" "http" "https"))) :id 1) :null-object nil :false-object :json-false)
lsp--make-message((:jsonrpc "2.0" :method "initialize" :params (:processId 36297 :rootPath "/Users/ckruse/Code/termitel/termitool/frontend" :rootUri "file:///Users/ckruse/Code/termitel/termitool/front..." :capabilities ((workspace (workspaceEdit (documentChanges . t) (resourceOperations . ["create" "rename" "delete"])) (applyEdit . t) (symbol (symbolKind (valueSet . ...))) (executeCommand (dynamicRegistration . :json-false)) (didChangeWatchedFiles (dynamicRegistration . t)) (workspaceFolders . t) (configuration . t)) (textDocument (declaration (linkSupport . t)) (definition (linkSupport . t)) (implementation (linkSupport . t)) (typeDefinition (linkSupport . t)) (synchronization (willSave . t) (didSave . t) (willSaveWaitUntil . t)) (documentSymbol (symbolKind (valueSet . ...)) (hierarchicalDocumentSymbolSupport . t)) (formatting (dynamicRegistration . t)) (rangeFormatting (dynamicRegistration . t)) (rename (dynamicRegistration . t)) (semanticHighlightingCapabilities (semanticHighlighting)) (codeAction (dynamicRegistration . t) (codeActionLiteralSupport (codeActionKind ...))) (completion (completionItem (snippetSupport . t) (documentationFormat . ...)) (contextSupport . t)) (signatureHelp (signatureInformation (parameterInformation ...))) (documentLink (dynamicRegistration . t)) (hover (contentFormat . ["markdown" "plaintext"])) (foldingRange (dynamicRegistration . t) (rangeLimit) (lineFoldingOnly . :json-false)))) :initializationOptions (:handledSchemaProtocols ("file" "http" "https"))) :id 1))
#f(compiled-function (workspace) #)(#s(lsp--workspace :ewoc nil :server-capabilities nil :registered-server-capabilities nil :root "/Users/ckruse/Code/termitel/termitool/frontend" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :extra-client-capabilities nil :status starting :metadata # :watches # :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #))
mapc(#f(compiled-function (workspace) #) (#s(lsp--workspace :ewoc nil :server-capabilities nil :registered-server-capabilities nil :root "/Users/ckruse/Code/termitel/termitool/frontend" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :extra-client-capabilities nil :status starting :metadata # :watches # :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #)))
seq-do(#f(compiled-function (workspace) #) (#s(lsp--workspace :ewoc nil :server-capabilities nil :registered-server-capabilities nil :root "/Users/ckruse/Code/termitel/termitool/frontend" :client #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil) :host-root nil :proc # :cmd-proc # :buffers (#) :semantic-highlighting-faces nil :extra-client-capabilities nil :status starting :metadata # :watches # :workspace-folders nil :last-id 0 :status-string nil :shutdown-action nil :diagnostics #)))
lsp--send-request-async((:jsonrpc "2.0" :method "initialize" :params (:processId 36297 :rootPath "/Users/ckruse/Code/termitel/termitool/frontend" :rootUri "file:///Users/ckruse/Code/termitel/termitool/front..." :capabilities ((workspace (workspaceEdit (documentChanges . t) (resourceOperations . ["create" "rename" "delete"])) (applyEdit . t) (symbol (symbolKind (valueSet . ...))) (executeCommand (dynamicRegistration . :json-false)) (didChangeWatchedFiles (dynamicRegistration . t)) (workspaceFolders . t) (configuration . t)) (textDocument (declaration (linkSupport . t)) (definition (linkSupport . t)) (implementation (linkSupport . t)) (typeDefinition (linkSupport . t)) (synchronization (willSave . t) (didSave . t) (willSaveWaitUntil . t)) (documentSymbol (symbolKind (valueSet . ...)) (hierarchicalDocumentSymbolSupport . t)) (formatting (dynamicRegistration . t)) (rangeFormatting (dynamicRegistration . t)) (rename (dynamicRegistration . t)) (semanticHighlightingCapabilities (semanticHighlighting)) (codeAction (dynamicRegistration . t) (codeActionLiteralSupport (codeActionKind ...))) (completion (completionItem (snippetSupport . t) (documentationFormat . ...)) (contextSupport . t)) (signatureHelp (signatureInformation (parameterInformation ...))) (documentLink (dynamicRegistration . t)) (hover (contentFormat . ["markdown" "plaintext"])) (foldingRange (dynamicRegistration . t) (rangeLimit) (lineFoldingOnly . :json-false)))) :initializationOptions (:handledSchemaProtocols ("file" "http" "https"))) :id 1) #f(compiled-function (response) #) detached nil nil nil)
lsp-request-async("initialize" (:processId 36297 :rootPath "/Users/ckruse/Code/termitel/termitool/frontend" :rootUri "file:///Users/ckruse/Code/termitel/termitool/front..." :capabilities ((workspace (workspaceEdit (documentChanges . t) (resourceOperations . ["create" "rename" "delete"])) (applyEdit . t) (symbol (symbolKind (valueSet . [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26]))) (executeCommand (dynamicRegistration . :json-false)) (didChangeWatchedFiles (dynamicRegistration . t)) (workspaceFolders . t) (configuration . t)) (textDocument (declaration (linkSupport . t)) (definition (linkSupport . t)) (implementation (linkSupport . t)) (typeDefinition (linkSupport . t)) (synchronization (willSave . t) (didSave . t) (willSaveWaitUntil . t)) (documentSymbol (symbolKind (valueSet . [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26])) (hierarchicalDocumentSymbolSupport . t)) (formatting (dynamicRegistration . t)) (rangeFormatting (dynamicRegistration . t)) (rename (dynamicRegistration . t)) (semanticHighlightingCapabilities (semanticHighlighting)) (codeAction (dynamicRegistration . t) (codeActionLiteralSupport (codeActionKind (valueSet . ...)))) (completion (completionItem (snippetSupport . t) (documentationFormat . ["markdown"])) (contextSupport . t)) (signatureHelp (signatureInformation (parameterInformation (labelOffsetSupport . t)))) (documentLink (dynamicRegistration . t)) (hover (contentFormat . ["markdown" "plaintext"])) (foldingRange (dynamicRegistration . t) (rangeLimit) (lineFoldingOnly . :json-false)))) :initializationOptions (:handledSchemaProtocols ("file" "http" "https"))) #f(compiled-function (response) #) :mode detached)
lsp--start-workspace(#s(lsp-session :folders ("/Users/ckruse/Code/termitel/termitool/frontend" "/Users/ckruse/Code/termitel/termitool/backend") :folders-blacklist nil :server-id->folders # :folder->servers # :metadata #) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil) "/Users/ckruse/Code/termitel/termitool/frontend" (:handledSchemaProtocols ("file" "http" "https")))
lsp--start-connection(#s(lsp-session :folders ("/Users/ckruse/Code/termitel/termitool/frontend" "/Users/ckruse/Code/termitel/termitool/backend") :folders-blacklist nil :server-id->folders # :folder->servers # :metadata #) #s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil) "/Users/ckruse/Code/termitel/termitool/frontend")
#f(compiled-function (client) #)(#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil))
mapcar(#f(compiled-function (client) #) (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil)))
-map(#f(compiled-function (client) #) (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil)))
lsp--ensure-lsp-servers(#s(lsp-session :folders ("/Users/ckruse/Code/termitel/termitool/frontend" "/Users/ckruse/Code/termitel/termitool/backend") :folders-blacklist nil :server-id->folders # :folder->servers # :metadata #) (#s(lsp--client :language-id nil :add-on? nil :new-connection (:connect #f(compiled-function (filter sentinel name environment-fn) #) :test\? #f(compiled-function () #)) :ignore-regexps nil :ignore-messages nil :notification-handlers # :request-handlers # :response-handlers # :prefix-function nil :uri-handlers # :action-handlers # :major-modes (json-mode jsonc-mode) :activation-fn nil :priority -1 :server-id json-ls :multi-root nil :initialization-options (:handledSchemaProtocols ("file" "http" "https")) :custom-capabilities nil :library-folders-fn nil :before-file-open-fn nil :initialized-fn #f(compiled-function (w) #) :remote? nil :completion-in-comments? t :path->uri-fn nil :uri->path-fn nil :environment-fn nil :after-open-fn nil)) "/Users/ckruse/Code/termitel/termitool/frontend" nil)
lsp--try-project-root-workspaces(nil nil)
(or (lsp--try-open-in-library-workspace) (lsp--try-project-root-workspaces (equal arg '(4)) (and arg (not (equal arg 1)))))
(set (make-local-variable 'lsp--buffer-workspaces) (or (lsp--try-open-in-library-workspace) (lsp--try-project-root-workspaces (equal arg '(4)) (and arg (not (equal arg 1))))))
(and (buffer-file-name) (set (make-local-variable 'lsp--buffer-workspaces) (or (lsp--try-open-in-library-workspace) (lsp--try-project-root-workspaces (equal arg '(4)) (and arg (not (equal arg 1)))))) (prog1 (lsp-mode 1) (let* ((root (and t (lsp--calculate-root (lsp-session) (buffer-file-name))))) (if root (lsp--info "Guessed project root is %s" (abbreviate-file-name root)) (lsp--info "Could not guess project root."))) (lsp--info "Connected to %s." (apply #'concat (mapcar #'(lambda (it) (format "[%s]" ...)) lsp--buffer-workspaces)))))
+lsp-init-a()
apply(+lsp-init-a nil)
lsp()
lsp--init-if-visible()
#f(compiled-function () #)()
apply(#f(compiled-function () #) nil)
timer-event-handler([t 24050 17731 431977 nil #f(compiled-function () #) nil nil 0])
~

Ha, I can reproduce exactly this error when opening a GPG encrypted file:

~
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
re-search-forward(nil nil move)
comment-forward(1)
so-long-detected-long-line-p()
so-long--set-auto-mode(#f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #))
apply(so-long--set-auto-mode #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) nil)
#f(advice-wrapper :around #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) so-long--set-auto-mode)()
apply(#f(advice-wrapper :around #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) so-long--set-auto-mode) nil)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #)(nil t)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
(if (setq doom-large-file-p (and buffer-file-name (not doom-large-file-p) (file-readable-p buffer-file-name) (> (nth 7 (file-attributes buffer-file-name)) (* 1024 1024 (cdr (or (assq major-mode doom-large-file-size-alist) (assq ... doom-large-file-size-alist))))))) (prog1 (apply orig-fn args) (if (memq major-mode doom-large-file-excluded-modes) (setq doom-large-file-p nil) (so-long-minor-mode 1) (message "Large file detected! Cutting a few corners to impr..."))) (apply orig-fn args))
doom--optimize-for-large-files-a(#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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) nil t)
apply(doom--optimize-for-large-files-a #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
after-find-file(nil t)
find-file-noselect-1(# "~/org/passwords.org.gpg" nil nil "~/org/passwords.org.gpg" (41003601 16777220))
find-file-noselect("~/org/passwords.org.gpg" nil nil nil)
find-file("~/org/passwords.org.gpg")
(closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg"))()
funcall-interactively((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")))
call-interactively((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")) nil nil)
command-execute((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")))
~

Appears to be a bug in the so-long package. Now I understand why it doesn't check text-mode by default. I just updated our so-long mirror. Please update your packages with doom update and see if that addresses your issue.

No change so far.

~
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
re-search-forward(nil nil move)
comment-forward(1)
so-long-detected-long-line-p()
so-long--set-auto-mode(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) auto-minor-mode-set))
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.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) auto-minor-mode-set) nil)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #)(nil t)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
(if (setq doom-large-file-p (and buffer-file-name (not doom-large-file-p) (file-readable-p buffer-file-name) (> (nth 7 (file-attributes buffer-file-name)) (* 1024 1024 (cdr (or (assq major-mode doom-large-file-size-alist) (assq ... doom-large-file-size-alist))))))) (prog1 (apply orig-fn args) (if (memq major-mode doom-large-file-excluded-modes) (setq doom-large-file-p nil) (so-long-minor-mode 1) (message "Large file detected! Cutting a few corners to impr..."))) (apply orig-fn args))
doom--optimize-for-large-files-a(#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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) nil t)
apply(doom--optimize-for-large-files-a #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
#f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a)(nil t)
apply(#f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) doom--after-call-ws-butler-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) doom--after-call-ws-butler-h) (nil t))
after-find-file(nil t)
find-file-noselect-1(# "~/org/passwords.org.gpg" nil nil "~/org/passwords.org.gpg" (41003601 16777220))
find-file-noselect("~/org/passwords.org.gpg" nil nil nil)
find-file("~/org/passwords.org.gpg")
(closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg"))()
funcall-interactively((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")))
call-interactively((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")) nil nil)
command-execute((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")))
~

emacs   version    27.0.50
        features   RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 GMP
        build      Dec 12, 2019
        buildopts  (--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/HEAD-7a498af/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/HEAD-7a498af --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-json --with-modules --with-rsvg --with-ns --disable-ns-self-contained)
        windowsys  ns
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop 5f2e708cd 2019-12-12 03:48:25 -0500
system  type       darwin
        config     x86_64-apple-darwin19.2.0
        shell      /usr/local/bin/zsh
        uname      Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64
        path       (~/.rbenv/shims/ ~/.rbenv/shims/ /usr/local/bin/ /usr/bin/ /bin/ /usr/sbin/ /sbin/ /usr/local/MacGPG2/bin/ /usr/local/opt/go/libexec/bin/ ~/.fzf/bin/ /usr/local/opt/go/libexec/bin/ /usr/local/Cellar/emacs-plus/HEAD-7a498af/libexec/emacs/27.0.50/x86_64-apple-darwin19.2.0/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion company (helm +fuzzy) :ui doom doom-dashboard doom-quit hl-todo indent-guides modeline nav-flash ophints (popup +all +defaults) treemacs unicode vc-gutter window-select :editor file-templates fold (format +onsave) multiple-cursors rotate-text snippets :emacs (dired +icons) vc :tools ansible editorconfig eval flycheck (lookup +docsets) lsp macos magit :lang data erlang (elixir +lsp) emacs-lisp (javascript +lsp) markdown (org +attach +babel +capture +export +habit +present +protocol) (ruby +lsp) (rust +lsp) sh (web +lsp) :config (default +bindings +smartparens))
        packages   (n/a)
        elpa       (n/a)

How about if you add this to your config.el:

(defun doom-buffer-has-long-lines-p ()
  (when buffer-file-name
    (so-long-detected-long-line-p)))
(setq so-long-predicate #'doom-buffer-has-long-lines-p)

Same. Sorry :(

~
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
re-search-forward(nil nil move)
comment-forward(1)
so-long-detected-long-line-p()
(progn (so-long-detected-long-line-p))
(if buffer-file-name (progn (so-long-detected-long-line-p)))
doom-buffer-has-long-lines-p()
so-long--set-auto-mode(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) auto-minor-mode-set))
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.\n\nTo find the right major mode, this function checks for a -- mode tag\nchecks 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 matches\ninhibit-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.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it. In other words\nwe don't actually set it to the same mode the buffer already has." #) auto-minor-mode-set) nil)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #)(nil t)
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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
(if (setq doom-large-file-p (and buffer-file-name (not doom-large-file-p) (file-readable-p buffer-file-name) (> (nth 7 (file-attributes buffer-file-name)) (* 1024 1024 (cdr (or (assq major-mode doom-large-file-size-alist) (assq ... doom-large-file-size-alist))))))) (prog1 (apply orig-fn args) (if (memq major-mode doom-large-file-excluded-modes) (setq doom-large-file-p nil) (so-long-minor-mode 1) (message "Large file detected! Cutting a few corners to impr..."))) (apply orig-fn args))
doom--optimize-for-large-files-a(#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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) nil t)
apply(doom--optimize-for-large-files-a #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) (nil t))
#f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a)(nil t)
apply(#f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) (nil t))
#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) doom--after-call-ws-butler-h)(nil t)
apply(#f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :before #f(advice-wrapper :around #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 an\nerror in reading the file. WARN non-nil means warn if there\nexists 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 ignored\n(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." #) doom--optimize-for-large-files-a) doom--after-call-recentf-h) doom--after-call-saveplace-h) doom--after-call-so-long-h) doom--after-call-ws-butler-h) (nil t))
after-find-file(nil t)
find-file-noselect-1(# "~/org/passwords.org.gpg" nil nil "~/org/passwords.org.gpg" (41003601 16777220))
find-file-noselect("~/org/passwords.org.gpg" nil nil nil)
find-file("~/org/passwords.org.gpg")
(closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg"))()
funcall-interactively((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")))
call-interactively((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")) nil nil)
command-execute((closure (t) nil (interactive) (find-file "~/org/passwords.org.gpg")))
~

Try this instead:

(defun doom-buffer-has-long-lines-p ()
  (when comment-use-syntax
    (so-long-detected-long-line-p)))
(setq so-long-predicate #'doom-buffer-has-long-lines-p)

🎉 this snippet works!

As of c0116d1 this should be resolved. Let me know if that isn't the case and I'll reopen the issue. Thanks for bringing it to my attention!

I'll follow this one up, but it would be very helpful if you could submit bug reports for any "upstream bugs" in Doom which have not yet been reported upstream -- they're unlikely to be addressed if they're unknown, after all.

Was this page helpful?
0 / 5 - 0 ratings