diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2011-04-22 20:44:26 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2011-04-22 20:44:26 +0200 |
commit | e02f48d76bfd57f014ffbe3ba56b62f2d5ccc794 (patch) | |
tree | d27a2d9fd6838d6e619c824deb12a568ceac54f6 /lisp/progmodes/antlr-mode.el | |
parent | 7ede3b6577ae99a3e7ac45baa7cace439bf5070c (diff) | |
download | emacs-e02f48d76bfd57f014ffbe3ba56b62f2d5ccc794.tar.gz |
lisp/progmodes/*.el: Lexical-binding cleanup.
Diffstat (limited to 'lisp/progmodes/antlr-mode.el')
-rw-r--r-- | lisp/progmodes/antlr-mode.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el index c5207139014..d1ff1aead10 100644 --- a/lisp/progmodes/antlr-mode.el +++ b/lisp/progmodes/antlr-mode.el @@ -82,7 +82,7 @@ ;;; Code: -(eval-when-compile +(eval-when-compile (require 'cl)) (require 'easymenu) @@ -93,7 +93,7 @@ (declare-function cond-emacs-xemacs-macfn "antlr-mode" (args &optional msg)) ;; General Emacs/XEmacs-compatibility compile-time macros -(eval-when-compile +(eval-when-compile (defmacro cond-emacs-xemacs (&rest args) (cond-emacs-xemacs-macfn args "`cond-emacs-xemacs' must return exactly one element")) @@ -1073,7 +1073,7 @@ Used for `antlr-slow-syntactic-context'.") (read-from-minibuffer prompt initial-input nil nil (or history 'shell-command-history))) -(defunx antlr-with-displaying-help-buffer (thunk &optional name) +(defunx antlr-with-displaying-help-buffer (thunk &optional _name) :xemacs-and-try with-displaying-help-buffer "Make a help buffer and call `thunk' there." (with-output-to-temp-buffer "*Help*" @@ -1092,7 +1092,7 @@ Used for `antlr-slow-syntactic-context'.") ;;;(defvar antlr-statistics-cache 0) ;;;(defvar antlr-statistics-inval 0) -(defunx antlr-invalidate-context-cache (&rest dummies) +(defunx antlr-invalidate-context-cache (&rest _dummies) ;; checkdoc-params: (dummies) "Invalidate context cache for syntactical context information." :XEMACS ; XEmacs bug workaround @@ -1670,7 +1670,7 @@ Return \(LEVEL OPTION LOCATION)." table))) (list level input (cdr kind)))))) -(defun antlr-options-menu-filter (level menu-items) +(defun antlr-options-menu-filter (level _menu-items) "Return items for options submenu of level LEVEL." ;; checkdoc-params: (menu-items) (let ((active (if buffer-read-only @@ -2072,7 +2072,7 @@ Used inside `antlr-options-alists'." nil table '(("false") ("true")))) -(defun antlr-language-option-extra (phase &rest dummies) +(defun antlr-language-option-extra (phase &rest _dummies) ;; checkdoc-params: (dummies) "Change language according to the new value of the \"language\" option. Call `antlr-mode' if the new language would be different from the value @@ -2088,7 +2088,7 @@ Called in PHASE `after-insertion', see `antlr-options-alists'." (antlr-mode) (and font-lock (null font-lock-mode) (font-lock-mode 1))))))) -(defun antlr-c++-mode-extra (phase option &rest dummies) +(defun antlr-c++-mode-extra (phase option &rest _dummies) ;; checkdoc-params: (option dummies) "Warn if C++ option is used with the wrong language. Ask user \(\"y or n\"), if a C++ only option is going to be inserted but @@ -2260,7 +2260,7 @@ called interactively, the buffers are always saved, see also variable (or saved (save-some-buffers (not antlr-ask-about-save))) (let ((default-directory (file-name-directory file))) (compilation-start (concat command " " (file-name-nondirectory file)) - nil #'(lambda (mode-name) "*Antlr-Run*")))) + nil (lambda (_mode-name) "*Antlr-Run*")))) (defun antlr-run-tool-interactive () ;; code in `interactive' is not compiled @@ -2592,7 +2592,7 @@ the default language." ;; FIXME: Since it uses cc-mode, it bumps into c-update-modeline's ;; limitation to mode-name being a string. ;; '("Antlr." (:eval (cadr (assq antlr-language antlr-language-alist)))) - "Antlr" + "Antlr" "Major mode for editing ANTLR grammar files." :abbrev-table antlr-mode-abbrev-table (c-initialize-cc-mode) ; cc-mode is required |