From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: Invalid read syntax: ")" Date: Mon, 7 May 2018 09:14:25 +0900 Message-ID: <248C0FF3-87D2-434A-8478-F2E0A8EFC852@gmail.com> References: <19BA809B-9E7D-409D-95B3-BE016E3A24DD@gmail.com> <87k1sh4dya.fsf@ericabrahamsen.net> <4d91573f-0a6f-46f8-9497-e3febfb3b89c@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1525652013 30347 195.159.176.226 (7 May 2018 00:13:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 May 2018 00:13:33 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 07 02:13:29 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fFTmS-0007kR-H1 for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2018 02:13:28 +0200 Original-Received: from localhost ([::1]:43628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFToZ-0005yS-Au for geh-help-gnu-emacs@m.gmane.org; Sun, 06 May 2018 20:15:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFTnb-0005h0-0a for help-gnu-emacs@gnu.org; Sun, 06 May 2018 20:14:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFTnX-0002wp-1i for help-gnu-emacs@gnu.org; Sun, 06 May 2018 20:14:38 -0400 Original-Received: from mail-pg0-x232.google.com ([2607:f8b0:400e:c05::232]:38601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFTnW-0002vp-OW for help-gnu-emacs@gnu.org; Sun, 06 May 2018 20:14:34 -0400 Original-Received: by mail-pg0-x232.google.com with SMTP id n9-v6so18980941pgq.5 for ; Sun, 06 May 2018 17:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=uOR1lckfLUbzBF9oqAQY7DkQOxawHhIquT73D0XxNVI=; b=pj8DQNvjEQZA890LmU2iD6bzgQ3o79SRgoo8vCpaSRsvnkleQr/unMWhX1ZbK3JtpB lZG00+SvTE/4QUxTKCECFvEiKpFWGGwDl6JyDhRdlWNu5of7x+1lSP9Ubbs1qNOXfZQw itz9ex04VlM/8DwD/z6kA02wTcfF+QWnqokQD0oSTWzkXveoxCxwBWJUaHENunszGXQu sm+16CrlpOYQIgyEwRn5ZKu7JBe6t9z2ud74OLOlLNx6xtprW2QMl7C2REIjTcPl7tel vkUy2bLkjgTvakBtd5Y6iKccDUDSX6FZYR0Vm0sHkQF8phShGaNhArm3UqnLTOgJTiaN HjwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=uOR1lckfLUbzBF9oqAQY7DkQOxawHhIquT73D0XxNVI=; b=QuKtgqczcCLvh7OI2oDF11ETqjy8k1aGqRicBCWIQYJZqzIKJ8zwH3aAmmB9kcp52t 11Tj3RK8P+MvO2QS24kmlRjS09mfWy+mzzETIzIhYtGOzGPje7NFwn6gMd7LwE52Zchw u/Vm9ZGJ9a3t9wM+wIe/QB7RAN4eiAbMoyATSZBnO6l5B8qVGZeAoacwMDZ+udj8yX2B 000SieXLJc8mI7VkAoKCD+NQ+Ap3QvOS+fzYntx8eTe6aRnDany+OZo+oe5aPggCQV+9 BLrThV3BpYCOleU9mWafpVH1B3gBnkC+6JUgSbitz/091TL5ZW/AMqYGpXlSMRL5vAQu ozEQ== X-Gm-Message-State: ALQs6tAu7KSrK5Mk0q2luatK9nMEqA9ozatAhu0wbUSCY7cwjJXXWvbD ziyPfXJBSI/Ozc643ckxb8zL9A== X-Google-Smtp-Source: AB8JxZoeL5ECGvVLkE3oDbDQ+zEIsZAkawVebgVI+hpa+yf3JMLdLoLdl/8lpWabFiesE4DxFTREoA== X-Received: by 10.98.20.195 with SMTP id 186mr17192174pfu.92.1525652073707; Sun, 06 May 2018 17:14:33 -0700 (PDT) Original-Received: from [10.254.2.148] ([210.160.37.43]) by smtp.gmail.com with ESMTPSA id a65sm46664949pfg.40.2018.05.06.17.14.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 17:14:32 -0700 (PDT) X-Priority: 3 In-Reply-To: <4d91573f-0a6f-46f8-9497-e3febfb3b89c@default> X-Mailer: Apple Mail (2.3445.6.18) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::232 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116665 Archived-At: > On May 7, 2018, at 1:03, Drew Adams > wrote: >=20 >>>> I have an Invalid read syntax: ")" when I start emacs. >>>> Any idea how to diagnose that ? >>>=20 >>> "emacs --debug-init" >>> That will at least show you which file the problem is in >>=20 >> But what I get is: >> $ emacs --debug-init >> Invalid read syntax: ")" >=20 > 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 = @brandelune