On Sat, Mar 01, 2008 at 12:17:33PM +0100, Jens Peter Secher wrote: > It is somewhat unclear what you write in the bug report. Do you want > the bindings of lua-beginning-of-proc and lua-end-of-proc changed or > removed; and what has that to do with comment-region?
In short, I am proposing the attached patch. It should probably be pushed upstream, too.
diff -ud /tmp/with-temp-dir.e15081/lua-mode-20071122/lua-mode.el /tmp/buffer-content-27251SYA
--- /tmp/with-temp-dir.e15081/lua-mode-20071122/lua-mode.el 2007-11-23 00:54:03.000000000 +1100
+++ /tmp/buffer-content-27251SYA 2008-03-02 01:38:32.059690287 +1100
@@ -370,9 +370,13 @@
lua-mode-map)))
;; communication
- (define-key map "\M-[" 'lua-beginning-of-proc)
- (define-key map "\M-]" 'lua-end-of-proc)
- (define-key map "\C-c" 'comment-region)
+ (define-key map (kbd "C-M-a") 'lua-beginning-of-proc)
+ (define-key map (kbd "C-M-e") 'lua-end-of-proc)
+ ;; This isn't appropriate for a mode-local binding; let users
+ ;; add it with global-set-key if they want it. Most users
+ ;; won't, because they can use C-SPC C-SPC (to set the
+ ;; transient mark), then M-; (to comment the region).
+ ; (define-key map "\C-c" 'comment-region)
(define-key map "\C-l" 'lua-send-buffer)
(define-key map "\C-f" 'lua-search-documentation)
(if lua-prefix-key
Diff finished. Sun Mar 2 01:38:32 2008
signature.asc
Description: Digital signature

