Re: Cannot Start Notmuch (invalid-read-syntax "#")

Subject: Re: Cannot Start Notmuch (invalid-read-syntax "#")

Date: Mon, 13 Sep 2021 08:45:46 -0300

To: Charles-André Roy, notmuch@notmuchmail.org

Cc:

From: David Bremner


Charles-André Roy <caroy47@videotron.ca> writes:

> I am using Debian.  I recently installed Bullseye with Emacs 27.1.  Now
> I cannot start Notmuch in emacs anymore.  I can download my mail and
> send them.  The commands in the terminal work as usual.

How is notmuch installed? Have you installed both CLI and emacs
front-end from source?

> I also have a problem with "cl library deprecated" but judging from my
> searches on the Web this would be a different issue.

I don't think those messages are notmuch related, since (current)
notmuch uses cl the "modern" way by requiring cl-lib. One possibility is
old .elc files. 

> Debugger entered--Lisp error: (invalid-read-syntax "#")
>   read(#<buffer  *load*>)
>   eval-buffer(#<buffer  *load*> nil "/home/charles/.notmuch-config" nil t)  ; Reading at buffer position 2
>   load-with-code-conversion("/home/charles/.notmuch-config" "/home/charles/.notmuch-config" t t)
>   load("~/.notmuch-config" t t nil t)

The emacs function load is for lisp files. $HOME/.notmuch-config is an
INI style config file, which does indeed have many '#' in it by
default. Why emacs is trying to run .notmuch-config as lisp is currently
a mystery to me.

>   byte-code("\303\20\304\305!\210\11\203\22\0\306\n\307\211\310\307%\210\310\207" [mail-user-agent init-file-user notmuch-init-file notmuch-user-agent provide notmuch load t nil] 6)
>   autoload-do-load((autoload "notmuch" "notmuch mail" t nil) notmuch)
>   command-execute(notmuch record)
>   execute-extended-command(nil "notmuch")
>   smex-read-and-run(("notmuch" "byte-compile-file" "package-delete" "list-packages" "man" "shell" "package-list-packages" "eshell" "nomPrenom" "spam" "battery" "olivetti-mode" "lbdb" "locate" "widen" "replace-string" "info" "emojify-mode" "count-matches" "séparateur" "eww" "calendar" "query-replace" "emms" "Info-menu" "now" "org-sort" "goto-char" "lisp-interaction-mode" "car--nettoyerFicheCarnetAdresses" "abbrev-mode" "sunrise-sunset" "insert-kbd-macro" "tramp-unload-tramp" "pdf-tools-customize" "org-element-update-syntax" "customize" "suiviPortions" "package-autoremove" "transient-mark-mode" "variable-pitch-mode" "term" "dired" "compile" "bookmark-set" "lunar-phases" "bookmark-save" "epa-list-keys" "2C-two-columns" "pdf-tools-help" ...))
>   smex()
>   funcall-interactively(smex)
>   call-interactively(smex nil nil)
>   command-execute(smex)

To narrow things down, can you try without smex? It's probably not the
issue, but it might simplify the backtrace.

David
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: