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: eglot: "File mode specification error: (void-variable =?utf-8?Q?=C2=8B=29=22?= Date: Tue, 13 Aug 2024 14:02:25 -0400 Message-ID: <87v8048fny.fsf@gmail.com> References: <4WhYR75BbMz9rxN@submission02.posteo.de> 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="12903"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 13 20:03:17 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 1sdvrZ-0003Bl-FC for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Aug 2024 20:03:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdvqr-0003K5-Nb; Tue, 13 Aug 2024 14:02:33 -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 1sdvqo-0003Jk-D9 for help-gnu-emacs@gnu.org; Tue, 13 Aug 2024 14:02:30 -0400 Original-Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdvqm-0002eO-Ot for help-gnu-emacs@gnu.org; Tue, 13 Aug 2024 14:02:30 -0400 Original-Received: by mail-qv1-xf2d.google.com with SMTP id 6a1803df08f44-6b7b349a98aso41798466d6.3 for ; Tue, 13 Aug 2024 11:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723572147; x=1724176947; 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=ORhfx9GNs27rmNCPemx421IxOM1fuBgNCzuEVVuDcO8=; b=BEXFl5ZcJ1zGb8UWua4ynsRvw7Qylw3KQ0hP40+SUsOe49N2mQmfuQ56fzoYdgYydl nQ7/0OeYo8CgCzijM8dDroOf4pR5sTTbFT1UJrD+jraSz50v9dqjPwhW/S6X6LF8cFxx GmcKpSn81cEdTZkN29AIZWe8EdOe9TbNRCXFmvE/rK5YNdo2XJ6CFCU5sTJn3sXOQfFw XAsDhkZg16jmrfACvU/XEpRcBYMFMNfoa83npo2DHorE6dJZqRco7T4SdW1dRbwNyrXY kJPTX2fEHo9u069//AKv1z9SI5aasMpMrppb/3tLdX/LHhqvRpdiBm2/hGn53wkbpudn 3TGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723572147; x=1724176947; 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=ORhfx9GNs27rmNCPemx421IxOM1fuBgNCzuEVVuDcO8=; b=chPQWOonnf6VAk2pTZW0pE/nH2AcJN8j4tToesSQNVgyRXmcN2EwxJZ9+3KYwcjDMY sjjWtpL9wpJohMpjwajYGCKFNCHL2ReE2Y1uhwyysh+ynUZm5nI4Es67CSJfisZz2CO1 oiN/iITMwoDLOodR1/JgJ7LoUUVYIfO4y02lc7jmL7WiJ4FJojOutjIHv4J2sJsUEmYD FuM7gIFCETzFFnWLhsJjzI8hDtMlwr9dLvw+AsE58FEW3YDeTzwR51lJv+EOMhI6aXFi quuc8SeqN0liQypytmgZUuYUirxZDx8a5KRG1Eu1k+Wa3sOLQXwIcbuqKm0QulJ5KYEc 3ptA== X-Gm-Message-State: AOJu0YzbDqtHRUfkQMHcb0oX6a373P77P1q1L+EYQHDPGQpPS+XrUp16 7drjqAvRACbu2T8UCy/wYG1tuc5lTKZd6/GRZH3EHvsMGI2K46wJWInGDg== X-Google-Smtp-Source: AGHT+IEG/PEv2S4um9XpIE7mLjoYyH0QgOxZjpyGrVVsjsfLC4uDGFLTBm0YOlhp1wsR37LTzoeErg== X-Received: by 2002:a05:6214:5bc1:b0:6b5:4865:948f with SMTP id 6a1803df08f44-6bf5d264db7mr3146376d6.27.1723572146773; Tue, 13 Aug 2024 11:02:26 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a801:3150:6232:a925:a650:ba8c]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bf431a2bfdsm20118476d6.75.2024.08.13.11.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 11:02:26 -0700 (PDT) In-Reply-To: <4WhYR75BbMz9rxN@submission02.posteo.de> (c. buhtz's message of "Sun, 11 Aug 2024 10:14:22 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=tpeplt@gmail.com; helo=mail-qv1-xf2d.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:147659 Archived-At: writes: > Hello, > > my question was blocked on r/Emacs maybe it is to stupid? Beside > solving this problem I am also interested in how I can solve things > like this in the future myself. Lisp is very hard for me. > Emacs comes with an introduction to Emacs Lisp that can be read in Emacs. To read it, look for the menu item "More Manuals" in the Help menu. That menu item will include a sub-menu that has an entry titled "Introduction to Emacs Lisp". Or, evaluate the following expression in Emacs: (info "(eintr) Top") > I do get this error (Emacs 29 from Debian 12 backports) after updating > all my packages after a long while: > > File mode specification error: (void-variable =C2=8B) > This is likely too little information for anyone to help you know what caused this error. If you can produce a recipe of steps, including the expressions that are being evaluated before the problem is reported, then others will be more likely to be able to provide a reason for the problem or how to resolve it. > I am not sure but I think I identified the error causing lines (see > `:hook`) in the init.el. > > ``` > (use-package python > :ensure nil ; in-build! > :hook > (python-mode . (lambda () > (if (not (string-equal (system-name) "quark")) > (eglot-ensure))) > ) > (python-mode . ws-butler-mode) > (python-mode . hs-minor-mode) > :custom > (python-shell-interpreter "python3") > ) > ``` > > The intention of that hook is to start "eglot" only if the current > systems name is not "quark". I do share this init.el between several > machines and "quark" is a RaspberryPi4 not able to run eglot and its > backend in a performant way. This worked well a long time until I > upgrade my emacs packages. > > When I remove that hook and just add "(python-mode ensure-eglot)" it > works fine. But I still want the exception for the "quark" machine. > It looks as though it is possible that something has changed so that the function =E2=80=98system-name=E2=80=99 is not returning the expected string= "quark" when the expression (system-name) is evaluated. You might try evaluating that function on that computer before you see the problem that you=E2=80=99= re having. M-: (system-name) --=20 The lyf so short, the craft so long to lerne. - Geoffrey Chaucer, The Parliament of Birds.