Skip to content

Commit

Permalink
enable lexical binding
Browse files Browse the repository at this point in the history
  • Loading branch information
fxbois committed Mar 3, 2018
1 parent 8f08f4d commit 5d71ab4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web-mode.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; web-mode.el --- major mode for editing web templates
;;; -*- coding: utf-8 -*-
;;; -*- coding: utf-8; lexical-binding: t; -*-

;; Copyright 2011-2018 François-Xavier Bois

Expand Down Expand Up @@ -2530,7 +2530,12 @@ another auto-completion with different ac-sources (e.g. ac-php)")
(if (fboundp 'prog-mode)
(put 'web-mode 'derived-mode-parent 'prog-mode))

;;(web-mode-trace "end")
(cond
((not (buffer-file-name))
)
((string-match-p "web-mode-benchmark.html" (buffer-file-name))
(web-mode-trace "end"))
) ;cond

)

Expand Down Expand Up @@ -13289,7 +13294,7 @@ extended to support more filetypes by customizing

(defun web-mode-trace (msg)
(let (sub)
;; (when (null web-mode-time) (setq web-mode-time (current-time)))
(when (null web-mode-time) (setq web-mode-time (current-time)))
(setq sub (time-subtract (current-time) web-mode-time))
(when nil
(save-excursion
Expand Down

0 comments on commit 5d71ab4

Please sign in to comment.