Skip to content

Commit 9a9f550

Browse files
committed
Enable lexical binding in all .el files
Upstream Emacs has made lack of the directive a warning. So enable it explicitly everywhere. It provides various benefits such as better introspection by the compiler into the code and optimizations. Fixes a bunch of warnings: Error: file has no ‘lexical-binding’ directive on its first line
1 parent 7eacda3 commit 9a9f550

19 files changed

+19
-18
lines changed

purescript-align-imports.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-align-imports.el --- Align the import lines in a PureScript file
1+
;;; purescript-align-imports.el --- Align the import lines in a PureScript file -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2010 Chris Done
44

purescript-collapse.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-collapse.el --- Collapse expressions
1+
;;; purescript-collapse.el --- Collapse expressions -*- lexical-binding: t -*-
22

33
;; Copyright (c) 2014 Chris Done. All rights reserved.
44

purescript-decl-scan.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-decl-scan.el --- Declaration scanning module for PureScript Mode
1+
;;; purescript-decl-scan.el --- Declaration scanning module for PureScript Mode -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
44
;; Copyright (C) 1997-1998 Graeme E Moss

purescript-font-lock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-font-lock.el --- Font locking module for PureScript Mode
1+
;;; purescript-font-lock.el --- Font locking module for PureScript Mode -*- lexical-binding: t -*-
22

33
;; Copyright 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
44
;; Copyright 1997-1998 Graeme E Moss, and Tommy Thorn

purescript-indent.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-indent.el --- "semi-intelligent" indentation module for PureScript Mode
1+
;;; purescript-indent.el --- "semi-intelligent" indentation module for PureScript Mode -*- lexical-binding: t -*-
22

33
;; Copyright 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
44
;; Copyright 1997-1998 Guy Lapalme

purescript-indentation.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-indentation.el -- indentation module for PureScript Mode -*- lexical-binding: t -*-
1+
;;; purescript-indentation.el -- indentation module for PureScript Mode -*- lexical-binding: t -*- -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2009 Kristof Bastiaensen
44

purescript-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-mode.el --- A PureScript editing mode -*- coding: utf-8 -*-
1+
;;; purescript-mode.el --- A PureScript editing mode -*- coding: utf-8 lexical-binding: t -*-
22

33
;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc
44
;; Copyright (C) 1992, 1997-1998 Simon Marlow, Graeme E Moss, and Tommy Thorn

purescript-move-nested.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-move-nested.el --- Change the column of text nested below a line
1+
;;; purescript-move-nested.el --- Change the column of text nested below a line -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2010 Chris Done
44

purescript-navigate-imports.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-navigate-imports.el --- A function for cycling through PureScript import lists
1+
;;; purescript-navigate-imports.el --- A function for cycling through PureScript import lists -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2010 Chris Done
44

purescript-presentation-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-presentation-mode.el --- Presenting PureScript things
1+
;;; purescript-presentation-mode.el --- Presenting PureScript things -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2013 Chris Done
44

0 commit comments

Comments
 (0)