From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: Please help me debug my Emacs instillation Date: Fri, 01 Mar 2024 13:48:32 -0500 Message-ID: <87a5nhokjj.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="23875"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: gnu.emacs.help@gnu.org To: Davin Pearson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 01 19:50:22 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 1rg7xe-00065Q-Cy for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 01 Mar 2024 19:50:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg7x8-0003Ib-98; Fri, 01 Mar 2024 13:49:50 -0500 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 1rg7x4-0003G5-Fv for help-gnu-emacs@gnu.org; Fri, 01 Mar 2024 13:49:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rg7x3-0002gi-Aq for help-gnu-emacs@gnu.org; Fri, 01 Mar 2024 13:49:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rg7x2-0003kj-0u for gnu.emacs.help@gnu.org; Fri, 01 Mar 2024 13:49:45 -0500 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rg7wy-0002dn-F9 for gnu.emacs.help@gnu.org; Fri, 01 Mar 2024 13:49:43 -0500 Original-Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-42e9144757bso12795971cf.3 for ; Fri, 01 Mar 2024 10:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709318914; x=1709923714; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BhCrPNOLV2KN2k/grxVxy/NexN7yTa4L+zyjWH2Dpks=; b=mJOHvYDCzUYUPIfUq+wesERD57LcN+9QNk2TeUd86iF0Cih+Yx+PKuoPGNeK+74YXx whiuya2Oqmqp+db8zS6rX1vTur7u4c64WZlavl2sPQAw+VMM6PZhaxApKBIGoUB+MC8o JxTTg39Sa59jQpvLAiOmCbwwEZApw5/vpGstipymUuRs4Af6nBNA3nfCOYXuxuTkkflt 1ATCAYwXxbJ9ItZtU4euZUt0Bz6qKdDqp7FlEkgBhienlASXECZ0R8q/h08x91VPBq57 lRFm5SYIUBUuD9oQVHgCtsX3dYI4Z8gPaVQCCyK330zOJ8E0bZEdAkmkr0cFS1GFKvWD XCLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709318914; x=1709923714; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BhCrPNOLV2KN2k/grxVxy/NexN7yTa4L+zyjWH2Dpks=; b=l9kb3IVqm7CbPgpDrajwb6Mg4NHECF0AfhYlNZyXLV0gGDtjMSSo2qxvpMkGXZOmzv wSsftRCcIYOHvq+Vnrl7b+OGLA9d6ywk+vxxyXWHWHg+4sPQTKWCl4dbqmCMgaGDzRXN vM/jsaW1Ky4PdWsTgjOL/IlaT7r/T6v2mxYPpLAtl7Q7TuH0Rrb6I+SDywOxMKZd9HOB /qdeysQyLzp36qibrUn8LZCAlTDWBgVeA/Kt1sJDrefGpoU9YETnTJ/1T3EVsGhsm6b+ 7g5JWnvLNLT+hATGEic866AcZu+VXfiey4eYU05Ga7zyQalhx2i7olmRptong6NCE4jQ GzqQ== X-Gm-Message-State: AOJu0YyxjVz+rxX3EaSw3Ivr0iRgurnWa/VqMMEvlWwdERoDAn/8xUT/ G69ipOy8J/P2MhV6QWN3Z46776Ev3LIQluQCMavLiyYlZQDWRlsP X-Google-Smtp-Source: AGHT+IGDZIXPnTeaQByTatHyawI7C5DCSqMpEfiyMUw3gyU3TJnwmjYnVmDqtVqncjQbhvb/dQhucQ== X-Received: by 2002:ac8:5b8e:0:b0:42e:80ba:691b with SMTP id a14-20020ac85b8e000000b0042e80ba691bmr2759152qta.64.1709318913853; Fri, 01 Mar 2024 10:48:33 -0800 (PST) Original-Received: from t530.local ([2600:8806:a821:2b00::c2a8]) by smtp.gmail.com with ESMTPSA id f12-20020ac8464c000000b0042c70c153f6sm1907007qto.91.2024.03.01.10.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 10:48:33 -0800 (PST) In-Reply-To: (Davin Pearson's message of "Thu, 29 Feb 2024 15:43:36 +1300") Received-SPF: pass client-ip=2607:f8b0:4864:20::832; envelope-from=tpeplt@gmail.com; helo=mail-qt1-x832.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:146012 Archived-At: Davin Pearson writes: > Here is the file runmacs.bat that I use for loading emacs > > date > cd LOCATION > ./src/emacs -q --load ~/dmp-emacs--yes-init-file.el --eval "(setq > debug-on-error t)" --debug-init & > > where LOCATION is the location of your emacs executable file. On my > computer it is: ~/Downloads/emacs-29.1/ > > Please copy the attached files dmp-emacs--yes-file.el and includer.el > to your HOME folder. > > The following commands all give an error message like this: > > byte-code: Recursive =E2=80=98require=E2=80=99 for feature =E2=80=98seman= tic=E2=80=99 > > Here is a list of the commands that generate the above-mentioned error: > > M-% > M-/ > M-. > C-h a > C-s > C-r > M-C-s > M-C-r > > Why doesn't it show a backtrace since I have --debug-init on the command > line? > Having tried those steps, I did not get the resulting error that you are seeing. Instead, there was a different error. I am running Emacs 29.2 on GNU/Linux. Part of the difference in our results could be related to a difference is Emacs versions or operating systems. Some steps for you to try: 1. Start Emacs with $ emacs -q 2. Read the file ~/dmp-emacs--yes-init-file.el: C-x f ~/dmp-emacs--yes-init-file.el RET 3. Note that the major mode for this file Elisp. There will be an entry added to the menu bar for =E2=80=98Emacs-Lisp=E2=80=99. Click on that entr= y and find the sub-entry =E2=80=98Byte-compile This File=E2=80=99. Click on that entr= y to compile your file=E2=80=99s Emacs Lisp code. This will result in a *Compile-Log* buffer that contains a series of warning and/or error messages. What those messages will be depends on the version of Emacs you are running. You should read through that buffer and resolve all error messages. You might also want to resolve the warning messages so that when you compile this file in the future you will not need to scan through warning messages in order to find compilation errors. Note that when you switch your focus to the *Compile-Log* buffer, the menu line will change from displaying an Emacs-Lisp menu entry to a Compile menu entry. You can use this to navigate through the *Compile-Log* message, but a simple practice is to type =E2=80=98n=E2=80=99 (for next message) or = =E2=80=98p=E2=80=99 (for previous message). Unfortunately, these keys are not listed in the =E2=80=98Compile=E2=80=99 menu. 4. Once you have resolved the compiler errors, you should consider running the Emacs linter on the file. This is also available from the =E2=80=98Emacs-Lisp=E2=80=99 menu: Emacs-Lisp -> Linting -> Lint Buffer This will produce both warning and error messages. Some of the warning messages might be safely ignored. 5. After steps 3 and 4, you should be able to "walk through" your file=E2= =80=99s Elisp buffer (C-M-f) and evaluate each one (C-x C-e) and check to see that the expressions give expected results. What order you do this in depends on how you have organized your file. You should start with the least dependent expressions and work up to the more dependent expressions. 6. Add docstrings to your definitions. This will help you in the future when you want to look up what a given definition is expected to do, and if you need to ask for help from others, it will help them to understand what the definitions are intended for. 7. If you have not read the introduction to Emacs Lisp, it is available in the =E2=80=98Help=E2=80=99 entry of the menu line under =E2=80=98More Ma= nuals=E2=80=99 -> =E2=80=98Introduction to Emacs Lisp=E2=80=99. --