GNU bug report logs - #15849
24.3.50; lexical-binding in first line ugly

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Sun, 10 Nov 2013 07:26:01 UTC

Severity: wishlist

Tags: wontfix

Merged with 10605, 20640

Found in versions 24.3.50, 24.5

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15849 in the body.
You can then email your comments to 15849 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15849; Package emacs. (Sun, 10 Nov 2013 07:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Eller <eller.helmut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 10 Nov 2013 07:26:02 GMT) Full text and rfc822 format available.

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

From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; lexical-binding in first line ugly
Date: Sun, 10 Nov 2013 08:25:11 +0100
Emacs doesn't let be put the lexical-binding: t at the end of the file.
The manual says in (elisp)Lexical Binding:

  "Note that unlike other such variables, this one must be set in the
   first line of a file."

But in (elisp)Library Headers it says this:

     The very first line should have this format:
  
       ;;; FILENAME --- DESCRIPTION
  
  The description should be contained in one line.  If the file needs a
  `-*-' specification, put it after DESCRIPTION.  If this would make the
  first line too long, use a Local Variables section at the end of the
  file.

Clearly the manual contradicts itself.  My first line is already full
and putting the lexical-binding marker there is just plain ugly.  Please
provide another way to specify lexical binding. Something like a
declaration (IMO, the Right Thing):

  (declaim (lexical-binding t))

or some magic comment like

  ;;;###lexical-binding

that doesn't need to be in the first line.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15849; Package emacs. (Sun, 10 Nov 2013 19:17:03 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 15849 <at> debbugs.gnu.org
Subject: Re: bug#15849: 24.3.50; lexical-binding in first line ugly
Date: Sun, 10 Nov 2013 14:16:46 -0500
Helmut Eller wrote:

> Please provide another way to specify lexical binding.

Dupe of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10605




Forcibly Merged 10605 15849. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 10 Nov 2013 19:18:02 GMT) Full text and rfc822 format available.

Forcibly Merged 10605 15849 20640. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 24 May 2015 23:20:03 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'minor' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 May 2015 03:23:03 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 27 May 2015 03:23:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 10605 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 23 Aug 2019 05:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Sep 2019 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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