emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106938: Doc fix for lexical-binding


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106938: Doc fix for lexical-binding being in line one.
Date: Wed, 25 Jan 2012 22:30:49 -0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106938
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2012-01-25 22:30:49 -0800
message:
  Doc fix for lexical-binding being in line one.
  
  Ref http://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00543.html
  
  * doc/lispref/variables.texi (Using Lexical Binding):
  Mention that lexical-binding should be set in the first line.
  
  * src/lread.c (syms_of_lread): Doc fix.
  
  * lisp/emacs-lisp/tabulated-list.el, lisp/progmodes/f90.el:
  Move lexical-binding file-local to line one.
  
  * etc/NEWS: lexical-binding should be ine the first line.
modified:
  doc/lispref/ChangeLog
  doc/lispref/variables.texi
  etc/NEWS
  lisp/emacs-lisp/tabulated-list.el
  lisp/progmodes/f90.el
  src/ChangeLog
  src/lread.c
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2012-01-26 00:02:02 +0000
+++ b/doc/lispref/ChangeLog     2012-01-26 06:30:49 +0000
@@ -1,3 +1,8 @@
+2012-01-26  Glenn Morris  <address@hidden>
+
+       * variables.texi (Using Lexical Binding):
+       Mention that lexical-binding should be set in the first line.
+
 2012-01-26  Lars Ingebrigtsen  <address@hidden>
 
        * macros.texi (Defining Macros): Don't claim that `declare' only

=== modified file 'doc/lispref/variables.texi'
--- a/doc/lispref/variables.texi        2012-01-24 16:08:00 +0000
+++ b/doc/lispref/variables.texi        2012-01-26 06:30:49 +0000
@@ -1047,6 +1047,8 @@
 below.)  If @code{nil}, dynamic binding is used for all local
 variables.  This variable is typically set for a whole Emacs Lisp
 file, as a file local variable (@pxref{File Local Variables}).
+Note that unlike other such variables, this one must be set in the
+first line of a file.
 @end defvar
 
 @noindent

=== modified file 'etc/NEWS'
--- a/etc/NEWS  2012-01-23 06:52:18 +0000
+++ b/etc/NEWS  2012-01-26 06:30:49 +0000
@@ -1026,8 +1026,8 @@
 
 ** Code can now use lexical scoping by default instead of dynamic scoping.
 The `lexical-binding' variable lets code use lexical scoping for local
-variables.  It is typically set via file-local variables, in which case it
-applies to all the code in that file.
+variables.  It is typically set via a file-local variable in the first
+line of the file, in which case it applies to all the code in that file.
 
 *** `eval' takes a new optional argument `lexical' to choose the new lexical
 binding instead of the old dynamic binding mode.

=== modified file 'lisp/emacs-lisp/tabulated-list.el'
--- a/lisp/emacs-lisp/tabulated-list.el 2012-01-05 09:46:05 +0000
+++ b/lisp/emacs-lisp/tabulated-list.el 2012-01-26 06:30:49 +0000
@@ -1,4 +1,4 @@
-;;; tabulated-list.el --- generic major mode for tabulated lists.
+;;; tabulated-list.el --- generic major mode for tabulated lists -*- 
lexical-binding: t -*-
 
 ;; Copyright (C) 2011-2012 Free Software Foundation, Inc.
 
@@ -362,7 +362,6 @@
 
 ;; Local Variables:
 ;; coding: utf-8
-;; lexical-binding: t
 ;; End:
 
 ;;; tabulated-list.el ends here

=== modified file 'lisp/progmodes/f90.el'
--- a/lisp/progmodes/f90.el     2012-01-19 07:21:25 +0000
+++ b/lisp/progmodes/f90.el     2012-01-26 06:30:49 +0000
@@ -1,4 +1,4 @@
-;;; f90.el --- Fortran-90 mode (free format)
+;;; f90.el --- Fortran-90 mode (free format)  -*- lexical-binding: t -*-
 
 ;; Copyright (C) 1995-1997, 2000-2012  Free Software Foundation, Inc.
 
@@ -2319,7 +2319,6 @@
 
 ;; Local Variables:
 ;; coding: utf-8
-;; lexical-binding: t
 ;; End:
 
 ;;; f90.el ends here

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-01-25 05:55:01 +0000
+++ b/src/ChangeLog     2012-01-26 06:30:49 +0000
@@ -1,3 +1,7 @@
+2012-01-26  Glenn Morris  <address@hidden>
+
+       * lread.c (syms_of_lread): Doc fix.
+
 2012-01-25  HIROSHI OOTA  <address@hidden>  (tiny change)
 
        * coding.c (encode_designation_at_bol): Change return value to

=== modified file 'src/lread.c'
--- a/src/lread.c       2012-01-19 07:21:25 +0000
+++ b/src/lread.c       2012-01-26 06:30:49 +0000
@@ -4595,7 +4595,8 @@
 Non-nil means that the code in the current buffer should be evaluated
 with lexical binding.
 This variable is automatically set from the file variables of an
-interpreted Lisp file read using `load'.  */);
+interpreted Lisp file read using `load'.  Unlike other file local
+variables, this must be set in the first line of a file.  */);
   Fmake_variable_buffer_local (Qlexical_binding);
 
   DEFVAR_LISP ("eval-buffer-list", Veval_buffer_list,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]