[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/lua-mode c995c7a 103/468: Use beginning-of-defun-function
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/lua-mode c995c7a 103/468: Use beginning-of-defun-function and end-of-defun-function variables |
Date: |
Thu, 5 Aug 2021 04:58:16 -0400 (EDT) |
branch: elpa/lua-mode
commit c995c7a32d5991dca7e2700f675617f15d12aef0
Author: Leonardo Etcheverry <leo@kalio.net>
Commit: Leonardo Etcheverry <leo@kalio.net>
Use beginning-of-defun-function and end-of-defun-function variables
instead of explicitly binding C-M-a and C-M-e. In addition to being
cleaner, this gives us a working narrow-to-defun for free.
---
lua-mode.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 46066ef..3c90f55 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -182,11 +182,7 @@ If the latter is nil, the keymap translates into
`lua-mode-map' verbatim.")
;; backquote enables evaluating certain symbols by comma
`(("}" . lua-electric-match)
("]" . lua-electric-match)
- (")" . lua-electric-match)
- ("C-M-a" . lua-beginning-of-proc)
- ("C-M-e" . lua-end-of-proc)
- ("C-M-<home>" . lua-beginning-of-proc)
- ("C-M-<end>" . lua-end-of-proc)))
+ (")" . lua-electric-match)))
(define-key result-map [menu-bar lua-mode] (cons "Lua" lua-mode-menu))
;; handle prefix-keyed bindings:
@@ -323,6 +319,9 @@ The following keys are bound:
(setq mode-name "Lua")
(setq comint-prompt-regexp lua-prompt-regexp)
(make-local-variable 'lua-default-command-switches)
+ (set (make-local-variable 'beginning-of-defun-function)
+ 'lua-beginning-of-proc)
+ (set (make-local-variable 'end-of-defun-function) 'lua-end-of-proc)
(set (make-local-variable 'indent-line-function) 'lua-indent-line)
(set (make-local-variable 'comment-start) lua-comment-start)
(set (make-local-variable 'comment-start-skip) lua-comment-start-skip)
- [nongnu] elpa/lua-mode 82daeb5 297/468: Merge pull request #88 from tarsius/master, (continued)
- [nongnu] elpa/lua-mode 82daeb5 297/468: Merge pull request #88 from tarsius/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 7b2c18c 305/468: Merge pull request #99 from tarsius/master, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6f4035a 315/468: Merge pull request #108 from ptrv/patch-1, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode f2915c3 324/468: Add string tab escape test, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 652e299 339/468: gitignore: add cask working dir, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode adb1f3a 334/468: lua_loadstring: fix variables that were made global, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 191eb10 330/468: Makefile: add "nocask" targets, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 25c2535 343/468: test-inferior-process: temporarily disable failing test, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode e97861c 226/468: ert-tests/test-electric-mode.el: add tests for electric indentation, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode ec35884 228/468: Suppress fontification messages in emacs23 test output, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c995c7a 103/468: Use beginning-of-defun-function and end-of-defun-function variables,
Philip Kaludercic <=
- [nongnu] elpa/lua-mode 91b5974 104/468: minor style fixes, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 8be4f4e 108/468: .gitignore: ignore byte-compiled files, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode c69e150 112/468: Makefile: add compile target, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 993e042 113/468: Merge branch 'multiline_literals', Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode d742cae 116/468: lua-mark-all-multiline-literals: comment out debug message, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 5542927 122/468: lua-automark-multiline: add function to enable automatical multiline construct marking when emacs is idle, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode 6beb586 123/468: Add customizable lua-automark-multiline-interval variable, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode eab8fc0 136/468: Move docstrings to the end of constants., Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode a5cc71f 149/468: Bump version & URL, Philip Kaludercic, 2021/08/05
- [nongnu] elpa/lua-mode caa3d0c 162/468: lua-jump-to-traceback: fix compilation warning about goto-line func, Philip Kaludercic, 2021/08/05