From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#66706: [PATCH] Automatic elisp dialect insertion Date: Thu, 26 Oct 2023 10:32:47 +0200 Message-ID: <206B0014-2E05-4AFB-B538-A3725E5FBBF5@gmail.com> References: <17C83052-7946-45DE-B660-DA7EB82001B0@gmail.com> <83sf61mb54.fsf@gnu.org> <98CD592C-0E82-4795-8168-2B5E597FF7A7@gmail.com> <8334xzlvy9.fsf@gnu.org> <87pm131pq6.fsf@yahoo.com> <83o7gmkiyn.fsf@gnu.org> <83o7gmit1z.fsf@gnu.org> <1AADAFCC-F55E-4FD2-BBC1-3564E52AAEC7@gmail.com> <83bkcmim0i.fsf@gnu.org> <98071F94-880A-4617-8733-EC91E2D4E6D4@gmail.com> <1d059dfe-ca63-7277-e46f-ff1f0e764b01@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, Eli Zaretskii , stefankangas@gmail.com, 66706@debbugs.gnu.org, monnier@iro.umontreal.ca To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 26 10:33:52 2023 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 1qvvoO-0008Hb-3C for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 10:33:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvvo6-0003bL-1z; Thu, 26 Oct 2023 04:33:34 -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 1qvvo3-0003au-6n for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 04:33:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvvo2-0003pC-Tp for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 04:33:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvvoX-00036E-I5 for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 04:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2023 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66706-submit@debbugs.gnu.org id=B66706.169830920811862 (code B ref 66706); Thu, 26 Oct 2023 08:34:01 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 26 Oct 2023 08:33:28 +0000 Original-Received: from localhost ([127.0.0.1]:60562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvvo0-00035G-3c for submit@debbugs.gnu.org; Thu, 26 Oct 2023 04:33:28 -0400 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:56812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvvny-000351-7v for 66706@debbugs.gnu.org; Thu, 26 Oct 2023 04:33:27 -0400 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-507c8316abcso681291e87.1 for <66706@debbugs.gnu.org>; Thu, 26 Oct 2023 01:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698309169; x=1698913969; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=vi01nSVwUzyBTyconWIxgckBI6LWSRNEbgCPxNroMwQ=; b=Me1+fCwGOl9U6L6cbOVJCZMxpLsmZxFiwvR7cd6tS98Q6qZYxTV00g718AaK2rfMS2 bZ3RmiGGusi83Oz6FJZLmdKYd04ZKOGR2ZdDUGg8QhsD/3GEPMwJ3mD8mn0BE2KtD+Rd LPymGgx9qrH9XdwQ0HQPoD1ts3DLpMq6DDd7mM701P0fEEZ8YkeDOEVHVoejpo5vNh9j ITMVZqJ5cZ6Yw2DPGurDCa8qIRZjSG3uAsttXk5ABn1UNIFksgt6myLoEFasSv1w3gJ8 hwyCdVIduZ+vKRB1MXobhOhmEUAEG7y5E+LTkNZnQi6SOeiFMz3YsgJ4cVgoWjNVF/63 IgPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698309169; x=1698913969; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vi01nSVwUzyBTyconWIxgckBI6LWSRNEbgCPxNroMwQ=; b=QX6SKHYZ1aB2Ob3sCYh9ncU/Yk11hD6Q8WT5CjiR/46VbS/raFtFAofSjICCXmGC15 zA651iSHLH0qEv0ywXTkCNFgUhSWHec7vMhmpiqaGbiCeW4lPCbfeTXEZeKIHNH9k4gH 29H+9ZGatOYmcykBgW19eVYgU7/mwukNyh1mCstsGO5IhcpDBSt2yNXspUkvHqJEJFJl iz/BBIUtqnUJR1srhOBTIDsAO7XM4Wa0pwEK2BWb/x9BMT3uciENJQShcumaoR221Vlj CgOeFoRiW55R0qMaKabKF8pKtqIDfxnJbw+vB6dDS9LNZsEZ3FBSuSeb/tboVHQtvHXc grjw== X-Gm-Message-State: AOJu0YzBC/WJafKMqn5+0qD2ThMJc18TIwmLVmuj2AdtKwauM3FmHwWq /UqD5wvtiUEAkNRSpMCpoJ0= X-Google-Smtp-Source: AGHT+IFYy5WjMRBjyZG/F7thWURYTD2zUm1jC4e1pDTFTnuoHbw344kmj9gsjpfNEi3zB/EDbQixoQ== X-Received: by 2002:a19:914a:0:b0:507:9b4a:21c0 with SMTP id y10-20020a19914a000000b005079b4a21c0mr11904431lfj.42.1698309168956; Thu, 26 Oct 2023 01:32:48 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id w17-20020ac25991000000b00500cede2786sm2898715lfn.65.2023.10.26.01.32.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2023 01:32:48 -0700 (PDT) In-Reply-To: <1d059dfe-ca63-7277-e46f-ff1f0e764b01@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.15) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273253 Archived-At: 26 okt. 2023 kl. 02.07 skrev Jim Porter : > Assuming we don't want to flip the default for 'lexical-binding' just = yet, would it be possible to warn the user any time they load = interpreted code that uses dynamic binding? If you mean .el files without a cookie, then definitely yes. > We could potentially do the same for .elc files that were implicitly = compiled with dynamic binding (i.e. without a "lexical-binding: nil" = cookie), but in my opinion it would suffice to warn users when they = recompile that file. Not sure how you would detect that. Ideally we should try to find a way to recompile code (and emit = warnings) without inconveniencing the user too much. > Or we could just flip the default now. If we had a modest pot of money, we could sponsor young and coming (or = old and going) programmers for converting code using dynamic binding = that is still in regular use.