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

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

Date: Mon, 13 Sep 2021 11:43:25 -0400

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Charles-André Roy


Hello David,

Thank you for your responses !

1. I looked at the load-path variable and the $HOME directory per se is
not in it.  There are many directories in $HOME/.emacs.d leading to
packages I have installed.

2. I installed notmuch-emacs through the Debian packages
apt list gives notmuch-emacs/now 0.28.4-1 all  [installé, local]
apt list also gives notmuch/stable,now 0.31.4-2 amd64  [installé]

3. After an updatedb I did a locate command and there is no
.notmuch-config.el file on my system.

4. Here is the backtrace of the M-notmuch command with smex turned off.
It is shorter.

==============================

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)
  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" "notmuch")
  funcall-interactively(execute-extended-command nil "notmuch" "notmuch")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

==============================

Regards,


Charles


Date: Mon, 13 Sep 2021 08:51:04 -0300
header}
body{
part{ ID: 1, Content-type: text/plain
David Bremner <david@tethera.net> writes:

>> 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.

Oh, I might know what is happening. notmuch-emacs is trying to load
.notmuch-config.el, and you (maybe?) have $HOME in your emacs load-path.
I guess I would pretty strongly recommmend not having $HOME in your
emacs load-path (at least I just end up with random files in my $HOME).
If it's important to you to have $HOME in your load-path, you can use
the XDG location for your config file: put it in
$HOME/.config/notmuch/default/config.

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

Thread: