GNU bug report logs - #24780
26.0.50; describe-mode lexical-binding

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Mon, 24 Oct 2016 09:06:01 UTC

Severity: wishlist

Tags: fixed

Found in version 26.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 24780 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 24780 <at> debbugs.gnu.org
Subject: Re: bug#24780: 26.0.50; describe-mode lexical-binding
Date: Sat, 27 Jul 2019 14:58:53 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> consider it useful if `describe-mode' reports value of var
> `lexical-binding'.

Hm...  That command describes the mode, and whether the current .el file
uses lexical binding or not isn't really tied to the mode, so I think
that sounds a bit confusing.  The user may believe that we're talking
about whether the mode uses lexical binding or not.

> 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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.