[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode 1d804f6 279/468: Drop pre-Emacs23 support macros
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode 1d804f6 279/468: Drop pre-Emacs23 support macros |
Date: |
Thu, 5 Aug 2021 04:58:53 -0400 (EDT) |
branch: elpa/lua-mode
commit 1d804f67c3b2e354ea9a9b0c12dcfca02c1995ce
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>
Drop pre-Emacs23 support macros
---
lua-mode.el | 43 +------------------------------------------
1 file changed, 1 insertion(+), 42 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 2555da4..7ec4bde 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -213,47 +213,6 @@ element is itself expanded with `lua-rx-to-string'. "
(defalias 'lua--cl-labels
(if (fboundp 'cl-labels) 'cl-labels 'flet))
- ;; for Emacsen < 22.1
- (defalias 'lua--with-no-warnings
- (if (fboundp 'with-no-warnings) 'with-no-warnings 'progn))
-
- ;; provide backward compatibility for Emacs < 23.2
- ;; called-interactively-p receives an argument starting from Emacs 23.2
- ;; In Emacs 22 & Emacs 23.1 it didn't expect an argument
- ;; In Emacs 21 it was called interactively-p
- (condition-case nil
- (progn (called-interactively-p nil)
- ;; if first call succeeds, make lua-called-interactively-p an
alias
- (defalias 'lua--called-interactively-p 'called-interactively-p))
-
- (wrong-number-of-arguments
- ;; wrong number of arguments means it's 22.1 <= Emacs < 23.2
- ;;
- ;; Newer and smarter Emacsen will warn about obsolete functions
- ;; and/or wrong number of arguments. Turning these warnings off,
- ;; since it's backward-compatibility-oriented code anyway.
- (lua--with-no-warnings
- (defun lua--called-interactively-p (kind)
- "Return t if containing function was called interactively.
-
-This function provides lua-mode backward compatibility for
-pre-23.2 Emacsen."
- (if (eq kind 'interactive)
- (interactive-p)
- (called-interactively-p)))))
-
- ;; if not, it's probably < 22.1, provide partial compatibility
- ;;
- ;; Once again, turning obsolete-function warnings off (see above).
- (error
- (lua--with-no-warnings
- (defun lua--called-interactively-p (&rest opts)
- "Return t if containing function was called interactively.
-
-This function provides lua-mode backward compatibility for pre-22
-Emacsen."
- (interactive-p)))))
-
;; backward compatibility for Emacsen < 23.3
;; Emacs 23.3 introduced with-silent-modifications macro
(if (fboundp 'with-silent-modifications)
@@ -1696,7 +1655,7 @@ When called interactively, switch to the process buffer."
(compilation-shell-minor-mode 1))
;; when called interactively, switch to process buffer
- (if (lua--called-interactively-p 'any)
+ (if (called-interactively-p 'any)
(switch-to-buffer lua-process-buffer)))
(defun lua-get-create-process ()
- [nongnu] elpa/lua-mode 1f596a9 392/468: Merge pull request #161 from tarsiiformes/lexical, (continued)
- [nongnu] elpa/lua-mode 1f596a9 392/468: Merge pull request #161 from tarsiiformes/lexical, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0781d83 404/468: Merge pull request #175 from immerrr/add-lua-backward-up-list-command, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d6dc6fb 406/468: Don't add "continuation line" indentation inside parentheses/brackets, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ed01d35 071/468: Implement proper syntax-status querying: improve precision a lot, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0a1e915 262/468: bug fixes for show/hide process buffer, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6315591 265/468: indentation-test: extend unary op test cases, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6c4f7cb 251/468: lua-default-command-switches: declare buffer-local with make-variable-buffer-local, not make-local-variable, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 9117cfc 269/468: Makefile: add tryout target to start editing test.lua, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 2453e37 272/468: Makefile: account EMACS env variable in 'tryout' target, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 3e8d475 275/468: Fixed broken local variable assignments, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 1d804f6 279/468: Drop pre-Emacs23 support macros,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode d6f7e0b 287/468: lua-documentation-function: New custom variable., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode f2e5c4b 299/468: Merge pull request #90 from Schnouki/lua53, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 625ed2f 281/468: Move credits to AUTHORS, cleanup Commentary section a bit, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 0b41d44 319/468: Merge master into stable, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ea7e35c 321/468: Escape tabs in lua-make-lua-string, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 33097fe 329/468: Merge pull request #123 from zonuexe/fix/auto-mode-alist, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e6faecc 328/468: Use \\' instead of $, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 5640afe 332/468: Merge pull request #128 from immerrr/update-makefile-and-travis-yml, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 56691b8 338/468: Add tests for preserving point location when filling, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6daec31 342/468: utils: update to new buttercup matcher definition logic (#138), Philip Kaludercic, 2021/08/05