From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: End of file during parsing Date: Thu, 1 Aug 2024 17:13:38 +0200 Message-ID: References: <87ikwkb8do.fsf@eddie.fios-router.home> Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33416"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Arthur Alinovi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 01 17:14:41 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sZXVp-0008Vp-16 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 01 Aug 2024 17:14:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZXV7-0005rQ-7e; Thu, 01 Aug 2024 11:13:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZXV4-0005k7-7O for help-gnu-emacs@gnu.org; Thu, 01 Aug 2024 11:13:54 -0400 Original-Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZXV2-0003ym-Bt for help-gnu-emacs@gnu.org; Thu, 01 Aug 2024 11:13:53 -0400 Original-Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-2610623f445so4714502fac.1 for ; Thu, 01 Aug 2024 08:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722525230; x=1723130030; darn=gnu.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=47Z/eMwzQq8YkNY+EJdbW3KPk8OR5cnMYndLwYRereA=; b=G4iO6JRFv6x8h9/HqjdWtlo0OVTX7HAQAzaYU3MEvKfUW6tjaGfVzqoluM25JFIBxF ewtJ5+h4wGYk66Wz6lEwKFmZxaeNy29TUGHzZK7+R8eQxjkMGDCy3I4dBkqEn6PX9bzD onmtdNu9zcpXkuE/K9MJ2u1k20hLEn7DveiD8rBknMPiwQzICH+VfuzSArLQ5o5HmwNn I0hsPSL8f8l9S8q0LaTRHP76UZr9EF3xnZvcAZ3S7X993Potht9Wke514vFVFk4TYmfx AJPh/YdtMqRHIFzVNBHsziC9Ccgyc8Zy3qAU4yeavo/2ybwRBLHAU3ivuPdpB7zGGw6w 699Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722525230; x=1723130030; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=47Z/eMwzQq8YkNY+EJdbW3KPk8OR5cnMYndLwYRereA=; b=Y08MlVlduFEl1fIM1LdNMSOu0a6nsiY8aJQ0i+z6IcsV/veGGTI1o8/uHjz6QhybnX WWM/mj5E7RMxSr44jCqPdiBjBGoU57FmdcfreCvo7VllGGBVMmWyIdHv4rpPhRdQsLSQ URruZAt17BPHJSAwvSiwMVz8+t87cdVGw7df0M/QWraFAN7YfgTaZgCGSXsLmdeHCcbm nZIc0oC52yICd+/hYohu82fEi1VLNQaBssCpI1/Ws/I1aRI4KfC3H3DIoRNZQZpH+/p4 hrgBDcfn6XN+cQiaVqxohjbnqUyuY4aaRgv3K0APOHOCX8U5zzYNaTksbBcmc6osL37z +HZQ== X-Gm-Message-State: AOJu0YyinGASCuMiIpQnByasiOFQeliIdC5qdBZWGHH7oXmIhuRFdep5 dfr0OHqieJ1++QdqZ0Y5f0YBatordn2ERk7773T+NyN87PPQbjf6v0nLezrDkGHE2UOcT59AnpN Jn4jlKUZ+htW9rDRslqFVJpFOh01jwPX+W+k= X-Google-Smtp-Source: AGHT+IFJRqtdhEwwFDAXv7+rm0Wm0wEI6zKXxtUSRxtvei7DUQeaJPWhUaf1a6wBh+iXFFPRGTquupfPAMbkGrK7ctQ= X-Received: by 2002:a05:6870:3516:b0:261:537:8d8 with SMTP id 586e51a60fabf-26891ee175dmr430561fac.49.1722525230366; Thu, 01 Aug 2024 08:13:50 -0700 (PDT) In-Reply-To: <87ikwkb8do.fsf@eddie.fios-router.home> Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=thibaut.verron@gmail.com; helo=mail-oa1-x29.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147487 Archived-At: Hi, One thing you can try is to place a closing parenthesis at the end of the file and see which opening paren it closes, if any. Then follow that one, find the parenthesis which you thought would be the closing, see what this one actually closes, etc. until you find the missing close. For example, with the following: > (defun foo (bar) > (if (test arg) > (call) > ;;missing) for if > (othercall) > ) > > (defun other () > (bla)) Placing a closing paren at the end closes the first defun. The closing paren meant for the defun is actually closing the if. And the if is indeed missing its closer. Best wishes, Thibaut On Thu 1 Aug 2024, 16:55 Arthur Alinovi, wrote: > In trying to move/rename a file in dired I get "end of file during > parsing". > > From what I've read I should then use parens-mode to track down an > unmatched parentheses. > > Regretably, I'm not quite sure how this is supposed to work. Having > invoked parens-mode am I then supposed to tab thru each parentheses in > my entire init.el file looking for the unmatched one? > > There has to be an easier way. > > Any hint would be appreciated. > > Thank you > > Arthur > >