From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Most of Elisp lacks lexical-binding: t Date: Sun, 03 Feb 2019 19:46:57 -0800 Message-ID: References: <15a15e1c-c44b-b978-82f0-7bbb6b1b8ff1@googlemail.com> <20190202145423.GB1067@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="62054"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 04 04:47:20 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqVE7-000G2y-TM for ged-emacs-devel@m.gmane.org; Mon, 04 Feb 2019 04:47:20 +0100 Original-Received: from localhost ([127.0.0.1]:35442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqVE6-00043x-PO for ged-emacs-devel@m.gmane.org; Sun, 03 Feb 2019 22:47:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqVDw-00043n-A2 for emacs-devel@gnu.org; Sun, 03 Feb 2019 22:47:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqVDu-0002IT-Jc for emacs-devel@gnu.org; Sun, 03 Feb 2019 22:47:08 -0500 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:35629) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqVDu-0002HM-C5 for emacs-devel@gnu.org; Sun, 03 Feb 2019 22:47:06 -0500 Original-Received: by mail-pg1-x532.google.com with SMTP id s198so5688758pgs.2 for ; Sun, 03 Feb 2019 19:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fvWf/9kqMZIwq5FzKRf4d9OehHO3l2AvA/dkF0ad8IA=; b=CzjNO/xWr/37hDPK0vKvfGaK1ZBD8xwasodcFyu347NocixJnIgjB8BRKmrBhoYqgD kBjrKnKM5kN0LgsexVg7wCLfTsV+4GO5jTKzsCLKkL4MjRzdkV9ZUMEIIBRda9zk6Ih7 YTJ9FJqbCKU+e64rpOp3ozznyeM1Wj23oE+RJ7dm5s+5vGIQwnQxeT4vf4KQfr7FUzHr sisVaJSVICmJKzTmGsHipYNM/NaVmfqDshsXcD8kR+Wbqf9y4VIUwlCj3stAJEq16rRU nWdtv7NowKF4vypcXxcGbCdUU1lhrEezvhz0k9Oa8zXt7kb3+vU0PTN4za8nkC9DRth9 StTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=fvWf/9kqMZIwq5FzKRf4d9OehHO3l2AvA/dkF0ad8IA=; b=W3eDEZAuRQvpxdIYQPguDaDfkn399gNDSuLfzs02Zd5BFZ6lafO8g8fmzSIZX9bvoH fIcyI3ezyVyXZCgc4Y2/tAk/9ETVEBwMok76OmtXh7MCxwe2TQJtKr7jaAywig0uMyGK mX2DMP9483iG/XqeKadGsioEUaVqQoEE+0C/3HnlUsjziHMSc12VNY9f4+B9kCeS3tY1 /JggcVXdj+KO8UI1KcWTR+H3I1WgSJXJ6pN6r8aoZrVtTgiBCCJ4StGjq9BhkSast9lH Qp7WdoJVGKvqjSRB6x0CDGX48D49hR1PaYDbHOrM3pe4vQAkkg1L/Pv1m+tfhBiY3qMU J2Ag== X-Gm-Message-State: AHQUAuYyRBmb8WoPN749mkMHMuI73xiHewUc8PqGDPZqkAe0EhzgbMuI KQBrhI0V9D103bQ/PwQn225qAidlwHU= X-Google-Smtp-Source: AHgI3Iaxikq1bwLC0Fp2jcPQcJ6QbWSw8N8wkMEXwlPFFKPBeG8U0W+KdkMuFxOmOg3S5LrdgkYyBw== X-Received: by 2002:a63:8f5d:: with SMTP id r29mr11509759pgn.167.1549252021355; Sun, 03 Feb 2019 19:47:01 -0800 (PST) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id p13sm25842pgs.89.2019.02.03.19.46.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Feb 2019 19:46:59 -0800 (PST) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id C8EB3C2006D; Sun, 3 Feb 2019 19:46:57 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sun, 03 Feb 2019 20:36:52 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::532 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232951 Archived-At: Stefan Monnier writes: I did this for emacspeak a few years ago --- and most issues were caught by byte-compiler warnings. That said, the emacspeak codebase over the years has used (cl-declare (special ...)) for special variables, which likely helped with managing spurious byte-compiler warnings. >> My feeling is that most files could just be changed without problems, >> but there will be enough exceptions that it needs to be done carefully. > > FWIW, my local Emacs build is hacked so that it always compiles with > lexical-binding enabled. In practice, it seems that most packages work > just fine with it, but there are indeed very definite exceptions, and > even for those packages that appear to work, the change may introduce > subtle regressions. > > So, yes, it has to be done "by hand" and takes time. Help is > most welcome. The best is to do it with the packages that you use, so > you can more easily test the result. > > > Stefan > > --