emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 53f3f52 31/33: Actually remove the macro


From: Dmitry Gutov
Subject: [elpa] master 53f3f52 31/33: Actually remove the macro
Date: Sun, 12 Jul 2015 22:35:46 +0000

branch: master
commit 53f3f52f8d04a9cbbfac166819dfee2fca237477
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Actually remove the macro
---
 js2-mode.el |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/js2-mode.el b/js2-mode.el
index d3ab885..14e3b72 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -2204,17 +2204,6 @@ Returns nil if element is not found in the list."
 (defsubst js2-flag-not-set-p (flags flag)
   (zerop (logand flags flag)))
 
-(defmacro js2-with-underscore-as-word-syntax (&rest body)
-  "Evaluate BODY with the _ character set to be word-syntax."
-  (declare (indent 0) (debug t))
-  (let ((old-syntax (make-symbol "old-syntax")))
-  `(let ((,old-syntax (string (char-syntax ?_))))
-     (unwind-protect
-         (progn
-           (modify-syntax-entry ?_ "w" js2-mode-syntax-table)
-           ,@body)
-       (modify-syntax-entry ?_ ,old-syntax js2-mode-syntax-table)))))
-
 ;;; AST struct and function definitions
 
 ;; flags for ast node property 'member-type (used for e4x operators)



reply via email to

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