From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#54550: Debugging elisp files Date: Fri, 25 Mar 2022 09:30:34 +0100 Message-ID: <877d8iwi1h.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54550@debbugs.gnu.org To: goncholden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 25 09:31:33 2022 Return-path: Envelope-to: geb-bug-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 1nXfM4-0001xH-Q3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 09:31:32 +0100 Original-Received: from localhost ([::1]:49494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXfM3-0006Ax-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Mar 2022 04:31:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXfLb-00069P-AX for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 04:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56125) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXfLa-0004GG-5s for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 04:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXfLZ-0008GR-To for bug-gnu-emacs@gnu.org; Fri, 25 Mar 2022 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Mar 2022 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54550 X-GNU-PR-Package: emacs Original-Received: via spool by 54550-submit@debbugs.gnu.org id=B54550.164819704431746 (code B ref 54550); Fri, 25 Mar 2022 08:31:01 +0000 Original-Received: (at 54550) by debbugs.gnu.org; 25 Mar 2022 08:30:44 +0000 Original-Received: from localhost ([127.0.0.1]:50022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXfLI-0008Fy-4y for submit@debbugs.gnu.org; Fri, 25 Mar 2022 04:30:44 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:46830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXfLG-0008Fj-5u for 54550@debbugs.gnu.org; Fri, 25 Mar 2022 04:30:43 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id p184-20020a1c29c1000000b0037f76d8b484so3926807wmp.5 for <54550@debbugs.gnu.org>; Fri, 25 Mar 2022 01:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=rUKeE7RpD5TIFpqA+ilY0OSs3yJFQ7hywC5QN7/FLzg=; b=L6rgcUN18sdUwSMyXMkIcZBJLeJNaIIS1ciRoUW8pctueDIVOy7mwxCjbAy2X61mO9 hojbJ2zJapD4+yl8QiVOPqI16Ro7IJQk7gmGQpVzap2oXtsfsQm1rwe/U3F94mLdMOHM 4WdTK5fk7fPxw/lrd+2lItvtg0Lxd0/xAdOxY1GfuNkxSCKstx+5p7PAjTgFMvnXdwTu ULrWbSi4Orrm1OOJhOGGquKlvbVOaSCbWpnaWstFRwoBplMCC4Dtc5TqGFymNnsVWHoM KXa09L/ys1I4VMEbhKOjSDL56XK2yeq0eWGuw20/QqsRE+FgQKNA+lz2cRWuPmvveyfk VBGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=rUKeE7RpD5TIFpqA+ilY0OSs3yJFQ7hywC5QN7/FLzg=; b=8Cfohvplw/cuRYgcKl6FMAccaBhAXU9QcPvCEiNe9xXIg81KMW2y3BK3FXQ/SmyWxM XEBItJJg+h6FEb/fslGEFpryXaP13GEfWtjzf7Rjl2eExEUYCRU5/7M92PG7MojgQBRT PpXzX1tlvFc3Q8y+JgR+QvfF04mYZTREpSNN4OqJ3fky5ZOiBqXI6j0PCo0inGYg9V/h YbTPeiVBbJN+VuUI5sA2geClCBBOfVt/RSniKwa66/CzyRHCIAeEWntKz4zcK9+rrdML bRY4U8Ch4pFSlqbH2PFPsRgXBMMLPvNrv8JvcyV5caxJVcFeOlUVN2dJFMAVoKWo138T E9Eg== X-Gm-Message-State: AOAM53037xBJXD1BVyQMKXiwmRhKINVEK90s4yzsKQUjFNMSV76A71Co uNeg36NkzAHUIYP/1HaqdSYrmFLiD7I= X-Google-Smtp-Source: ABdhPJxTTJm0NOdhhbNZB4a9fm1pXImPTzng7yXp2hGfVT8soZQrpgHRS+WzoRNwlm46IkAjosirUQ== X-Received: by 2002:a05:600c:1c82:b0:38c:a750:56e7 with SMTP id k2-20020a05600c1c8200b0038ca75056e7mr8650763wms.188.1648197035792; Fri, 25 Mar 2022 01:30:35 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:ef35:1a5:b5fa:992a]) by smtp.gmail.com with ESMTPSA id b3-20020adfd1c3000000b00205820686dasm5319372wrd.5.2022.03.25.01.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 01:30:35 -0700 (PDT) In-Reply-To: (goncholden via's message of "Thu, 24 Mar 2022 18:19:13 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228913 Archived-At: >>>>> On Thu, 24 Mar 2022 18:19:13 +0000, goncholden via "Bug reports for G= NU Emacs, the Swiss army knife of text editors" sai= d: >> I am debugging a large file because of the following error, >> Warning (initialization): An error occurred while loading =E2=80=98/= home/goncho/.emacs=E2=80=99: >> Invalid read syntax: ) One way to work with this is to put point at the beginning of .emacs and eval (while t (forward-sexp)) That will error and tell you at what character position it=CA=BCs failing. >> In texinfo, there exists the "@ignore" and "@end ignore" tags that >> comment out sections of texinfo code. This makes it much easier to >> debug texinfo files, because one does not have to constantly comment >> every line, and with the advantage that one can leave the file almost >> intact. You can wrap blocks of code in (when nil) to achieve the same. Robert --=20