all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Invalid read syntax: ")"
Date: Mon, 7 May 2018 09:14:25 +0900	[thread overview]
Message-ID: <248C0FF3-87D2-434A-8478-F2E0A8EFC852@gmail.com> (raw)
In-Reply-To: <4d91573f-0a6f-46f8-9497-e3febfb3b89c@default>



> On May 7, 2018, at 1:03, Drew Adams <drew.adams@oracle.com <mailto:drew.adams@oracle.com>> wrote:
> 
>>>> I have an Invalid read syntax: ")" when I start emacs.
>>>> Any idea how to diagnose that ?
>>> 
>>> "emacs --debug-init"
>>> That will at least show you which file the problem is in
>> 
>> But what I get is:
>> $ emacs --debug-init
>> Invalid read syntax: ")"
> 
> As Oscar suggested, _bisect your init file_ to find the
> culprit.  This a binary search, so it is quick, even if
> it does not seem so at first.

I understand what a binary search is, but I was first wondering if among the hundreds of thousands of functions in emacs, there would not be one that does the trick. Like actually giving the expression that is not properly closed. If a manual binary search can do it, surely an automatic binary search (if one ought to exist) can...

Also, the man page says about emacs --debug-init:

      -debug-init
               Enable Emacs Lisp debugger during the processing  of  the  user
               init  file  ~/.emacs.  This is useful for debugging problems in
               the init file.

If the only information it gives in that case is the same as when running "emacs", I don't find that particularly useful.

Ok, so on with the binary search.


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> @brandelune




  reply	other threads:[~2018-05-07  0:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-06  4:09 Invalid read syntax: ")" Jean-Christophe Helary
2018-05-06  4:15 ` Eric Abrahamsen
2018-05-06  4:46   ` Eric Abrahamsen
2018-05-06  8:26     ` Noam Postavsky
2018-05-06 15:32   ` Jean-Christophe Helary
2018-05-06 16:03     ` Drew Adams
2018-05-07  0:14       ` Jean-Christophe Helary [this message]
2018-05-07  0:33         ` Noam Postavsky
2018-05-07  3:54           ` Jean-Christophe Helary
2018-05-07  4:05             ` Jean-Christophe Helary
2018-05-07 17:55             ` Eli Zaretskii
2018-05-08  0:43               ` Jean-Christophe Helary
2018-05-07  0:33         ` Óscar Fuentes
2018-05-07  1:13           ` Óscar Fuentes
2018-05-06  4:28 ` Óscar Fuentes
2018-05-06 18:36 ` Joost Kremers
  -- strict thread matches above, loose matches on Subject: below --
2012-01-27 13:07 Invalid read syntax "#"? Alan Schmitt
2012-01-27 15:24 ` Nick Dokos
2012-01-27 15:37   ` Nick Dokos
2012-01-28 15:55 ` Bastien
2012-01-30 13:15   ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=248C0FF3-87D2-434A-8478-F2E0A8EFC852@gmail.com \
    --to=jean.christophe.helary@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.