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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

purescript-show.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-show.el --- A pretty printer for PureScript Show values
1+
;;; purescript-show.el --- A pretty printer for PureScript Show values -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2011 Chris Done
44

purescript-simple-indent.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-simple-indent.el --- Simple indentation module for PureScript Mode
1+
;;; purescript-simple-indent.el --- Simple indentation module for PureScript Mode -*- lexical-binding: t -*-
22

33
;; Copyright (C) 1998 Heribert Schuetz, Graeme E Moss
44

purescript-sort-imports.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-sort-imports.el --- Sort the list of PureScript imports at the point alphabetically
1+
;;; purescript-sort-imports.el --- Sort the list of PureScript imports at the point alphabetically -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2010 Chris Done
44

purescript-str.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-str.el --- PureScript related string utilities
1+
;;; purescript-str.el --- PureScript related string utilities -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2013 Herbert Valerio Riedel
44

purescript-string.el

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
;;; purescript-string.el --- string manipulation utilties -*- lexical-binding: t -*-
12
;;;###autoload
23
(defun purescript-trim (string)
34
(replace-regexp-in-string

purescript-unicode-input-method.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-unicode-input-method.el --- PureScript Unicode helper functions -*- coding: utf-8 -*-
1+
;;; purescript-unicode-input-method.el --- PureScript Unicode helper functions -*- coding: utf-8 lexical-binding: t -*-
22

33
;; Copyright (C) 2010-2011 Roel van Dijk
44

purescript-utils.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-utils.el --- General utility functions used by purescript-mode modules
1+
;;; purescript-utils.el --- General utility functions used by purescript-mode modules -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2013 Herbert Valerio Riedel
44

purescript-yas.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-yas.el --- Customization support for Luke Hoersten's yasnippets
1+
;;; purescript-yas.el --- Customization support for Luke Hoersten's yasnippets -*- lexical-binding: t -*-
22

33
;; Copyright (C) 2013 John Wiegley, Luke Hoersten
44

tests/haskell-sort-imports-tests.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; purescript-sort-imports-tests.el --- Unit tests for purescript-sort-imports
1+
;;; purescript-sort-imports-tests.el --- Unit tests for purescript-sort-imports -*- lexical-binding: t -*-
22

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

0 commit comments

Comments
 (0)