From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#24780: 26.0.50; describe-mode lexical-binding Date: Tue, 11 Aug 2020 18:06:39 -0700 Message-ID: References: <20190727121902.22177.qmail@mail.muc.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="28280"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 24780@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 03:08:16 2020 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 1k5fFX-0007E2-I4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 03:08:15 +0200 Original-Received: from localhost ([::1]:42798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5fFW-0006Qt-Jy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 21:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5fFK-0006Ny-MR for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 21:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5fFK-0001Tw-CW for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 21:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5fFK-0001Af-8U for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 21:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 01:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24780 X-GNU-PR-Package: emacs Original-Received: via spool by 24780-submit@debbugs.gnu.org id=B24780.15971944234389 (code B ref 24780); Wed, 12 Aug 2020 01:08:02 +0000 Original-Received: (at 24780) by debbugs.gnu.org; 12 Aug 2020 01:07:03 +0000 Original-Received: from localhost ([127.0.0.1]:42160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5fE8-000181-Bw for submit@debbugs.gnu.org; Tue, 11 Aug 2020 21:07:03 -0400 Original-Received: from mail-yb1-f180.google.com ([209.85.219.180]:38544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5fE4-00017k-Ru for 24780@debbugs.gnu.org; Tue, 11 Aug 2020 21:06:47 -0400 Original-Received: by mail-yb1-f180.google.com with SMTP id e187so464660ybc.5 for <24780@debbugs.gnu.org>; Tue, 11 Aug 2020 18:06:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=JLIFL7uOkHIZK15PW1Gl/7psGBV+cc4YYk5ec665jLE=; b=SUKdbd1xI0hZcdQVuqz6TrDTckG4AbbaWV6iF/Pn5NNrIj+ExtEA1SQPKI2mgIO/k9 JKljJY8vvElB8e7TJte5CDrrg+pc7Ns/KH96jSAAD9VTnzNnPlyRr1h1/TQUFrXvBUGB 8Qo0A+LysCC+bDtDRBemJO7V/OUkngDBoi8LY5tJ2x3KxiYT10lXr/UJg5TufQPYwMM0 wKeQf7zVQ4pxDSSoQMfGlIm49o0qbz36MUDG1FL0TL05GfDCGznKDxzNKWkBwQ2+YRLu fPwK+rzwDm3Qud4fvrkdhfKBTtem9h2laGpbZVxZoK/3hIysuseh+KNuREC0C9Ot+isj z8Dg== X-Gm-Message-State: AOAM531ud3JqUpsZul/ENkVoOwR7uh6uZKa/g63pmVG/LT17mm03TmFC LFC45ET2kyZ5pbIKVgle1j5F7gRSQKH0w0Kpyo0= X-Google-Smtp-Source: ABdhPJzBC15RbdIdTH8MpNHU2mPtmUyABMYMhaXPOZe9LMGNOa6uW1ciz3QqPN+h/Vr2ZEJ3K/8p0cY+0UexTAOGggQ= X-Received: by 2002:a25:880e:: with SMTP id c14mr53507499ybl.181.1597194399439; Tue, 11 Aug 2020 18:06:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Aug 2020 18:06:39 -0700 In-Reply-To: <20190727121902.22177.qmail@mail.muc.de> (Alan Mackenzie's message of "27 Jul 2019 12:19:02 -0000") 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" Xref: news.gmane.io gmane.emacs.bugs:184709 Archived-At: Alan Mackenzie writes: >> Andreas R=C3=B6hler writes: > >>> consider it useful if `describe-mode' reports value of var >>> `lexical-binding'. [...] >>> Even displaying it in mode-line might be an option. > >> That does sound more useful -- I often find jumping back to the start of >> the buffer to check. > >> `emacs-lisp-mode' could display that somewhere in the mode line, I >> guess? But where? Perhaps among the U:**- thing at the start? Or in >> the mode stuff? > >> So instead of > >> (Emacs-Lisp) > >> we'd get > >> (Emacs-Lisp Lexical) > >> when we have lexical binding in the current buffer? Does anybody have >> an opinion here? > > Yes. "Lexical" is too long, considering its relative lack of > importance. Space on the mode line is precious, particularly when > running Follow Mode. Also, "Lexical" isn't really a minor mode, so > shouldn't look like one. > > How about, instead, > > (Emacs-Lisp/L) > > or > > (Emacs-Lisp/D) How about: (Emacs-Lisp) And: (Emacs-Lisp/D) This would indicate the legacy nature of dynamic binding, and gently nudge users to move to lexical-binding. > ? Even that is going to be a nuisance to some people, so it really > needs a user option to turn it off. I wouldn't add a user option. The correct way to get rid of the "/D", if it bothers you, would then be to convert the code to lexical-binding. Best regards, Stefan Kangas