From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Unsafe local variable in eglot.el Date: Thu, 09 Mar 2023 13:12:23 +0000 Message-ID: <87356ejcg8.fsf@gmail.com> References: <83mt4m2w23.fsf@gnu.org> <831qly2l5k.fsf@gnu.org> <877cvqyupi.fsf@gnu.org> 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="22366"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org, Sam Steingold To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 09 14:10:57 2023 Return-path: Envelope-to: ged-emacs-devel@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 1paG2r-0005Vr-4L for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Mar 2023 14:10:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paG2R-0006Ma-CT; Thu, 09 Mar 2023 08:10:31 -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 1paG2Q-0006Jb-9W for emacs-devel@gnu.org; Thu, 09 Mar 2023 08:10:30 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paG2O-00081v-Op; Thu, 09 Mar 2023 08:10:29 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id r18so1820068wrx.1; Thu, 09 Mar 2023 05:10:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678367425; 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=zutSIykoJXB2RetNtE/eYRechZ4evtD7NS79jtCkJgM=; b=bSMTnnKzac/EepaqIHQ3ooRvRinukd3BtFMPRJfROlH536ylLg2iYjyXHDwc7WETSw 3ua6hs78KQUm1Vva+SByU2KVp+rNtfPODmoMINiEJMCjCvvgLMem51j80MegvAclGRLt nYU+KeJ+KBpBjjb1k8lVXSluF2ycMc3/0DdIaCJIzThlx3mpXsXRPjWsKNlsWMDy6M+q YGJ56kBY77iTxo7D/dv42q8oOESjj9Kr5bJk3lndCQP/iqqWsQ0UI31TaFu3j5eq5JMx ikkrkPmUJU9laM3aQedyx21glQTpnnakxIittwKgfKZptdG6QczEsc0lI7UddbRgSNIq 7teg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678367425; 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=zutSIykoJXB2RetNtE/eYRechZ4evtD7NS79jtCkJgM=; b=slApipLRSq+RHEfQAG0tpHJkt+3QxNfjpEWukBK0a+vrw61DB4wOXS5Ma2WHLS6j0H ymdKhTjSjWwBmeppmJk09nE5QnbGCA+2epzHrHrEWtp0BJKOnDjwIY/4F/pJxdmquVf/ fSs93sWCNSScvUfBq9JrY1rH1/9pGkEMrTa5Hp+XbqA5mXrTc7hl1AMRalnt0xwn9E1h mMn7Ojr8C1Nzkc61YI2XFnN5unv91qFzrFuqhMAP8cP0xFVDNujpMHpBED4mqU8XTH5d n8jT1QFZRQfn/0rZvgWYim3+p59GBIcum3CpFaRiU8XgIYNw4RI6sLCsqdCZKoXTdpY+ 6lkQ== X-Gm-Message-State: AO0yUKXux+XO+XKXu7JFzZDnzlUXHohv4P8a2sqGHOfjmOebUWPOS4OX 1Wuv/iGrqI+KdylQMqjNfyph+g7+SVE= X-Google-Smtp-Source: AK7set9Iaq3Wh9KATK/K4YuqWqOrhqXxM9xQ55b7gL7eyj7bWXCmZ+qknAfVkPJ8Q3vOpjlxaHVWNQ== X-Received: by 2002:a5d:457c:0:b0:2ce:5106:36ee with SMTP id a28-20020a5d457c000000b002ce510636eemr11781042wrc.27.1678367425584; Thu, 09 Mar 2023 05:10:25 -0800 (PST) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id j18-20020a5d6052000000b002c53f6c7599sm17625742wrt.29.2023.03.09.05.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 05:10:25 -0800 (PST) In-Reply-To: <877cvqyupi.fsf@gnu.org> (Tassilo Horn's message of "Thu, 09 Mar 2023 13:10:15 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x42d.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304201 Archived-At: Tassilo Horn writes: > Not sure what to do here. Maybe adding an autoload-cookie to > eglot--debbugs-or-github-bug-uri does the trick? Of course, then you > cannot find eglot.el without loading it at the same time... See my 01b65d442a commit to Emacs 29. It's autoloading a "progn" block in eglot.el. So visiting the file with bug-reference-mode does trigger a call to the helper function, which now exists. But that call by itself won't cause eglot.el to to be loaded. It's not very elegant, but it does solve the program effectively, I think (and the links work, of course). Jo=C3=A3o