all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Jean-Christophe Helary <jean.christophe.helary@gmail.com>,
	Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: RE: Invalid read syntax: ")"
Date: Sun, 6 May 2018 09:03:30 -0700 (PDT)	[thread overview]
Message-ID: <4d91573f-0a6f-46f8-9497-e3febfb3b89c@default> (raw)
In-Reply-To: <C7486160-24F7-4F92-9AA1-3A5765DCDA91@gmail.com>

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

You can comment out selected text (the active region)
using command `comment-region'. (I bind it to `C-x C-;'.)
With `C-u', it removes a level of commenting.  (So if
there are no nested comments then it uncomments.)

Some people use `comment-dwim' (`M-;') or `comment-line'
(the default binding for `C-x C-;'), instead of
`comment-region'.  It's all good.

---

Actually, I bind `C-x C-;' to `comment-region-lines',
from `misc-cmds.el', and I use that.  It's kind of
like `comment-region' combined with `comment-line'.

https://www.emacswiki.org/emacs/download/misc-cmds.el



  reply	other threads:[~2018-05-06 16:03 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 [this message]
2018-05-07  0:14       ` Jean-Christophe Helary
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=4d91573f-0a6f-46f8-9497-e3febfb3b89c@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jean.christophe.helary@gmail.com \
    /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.