[Top][All Lists]

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

master 52eca2d: * lisp/progmodes/asm-mode.el (asm-mode-map): Obey electr

From: Stefan Monnier
Subject: master 52eca2d: * lisp/progmodes/asm-mode.el (asm-mode-map): Obey electric-indent-mode
Date: Tue, 26 Nov 2019 09:05:40 -0500 (EST)

branch: master
commit 52eca2d3bdef293e9f5d64aa2b9ca36f1e00e817
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/progmodes/asm-mode.el (asm-mode-map): Obey electric-indent-mode
 lisp/progmodes/asm-mode.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index 017a5b5..04ef043 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -73,8 +73,6 @@
     ;; Note that the comment character isn't set up until asm-mode is called.
     (define-key map ":"                'asm-colon)
     (define-key map "\C-c;"    'comment-region)
-    (define-key map "\C-j"     'newline-and-indent)
-    (define-key map "\C-m"     'newline-and-indent)
     (define-key map [menu-bar asm-mode] (cons "Asm" (make-sparse-keymap)))
     (define-key map [menu-bar asm-mode comment-region]
       '(menu-item "Comment Region" comment-region
@@ -135,7 +133,7 @@ Special commands:
   ;; Make our own local child of asm-mode-map
   ;; so we can define our own comment character.
   (use-local-map (nconc (make-sparse-keymap) asm-mode-map))
-  (local-set-key (vector asm-comment-char) 'asm-comment)
+  (local-set-key (vector asm-comment-char) #'asm-comment)
   (set-syntax-table (make-syntax-table asm-mode-syntax-table))
   (modify-syntax-entry asm-comment-char "< b")
@@ -185,7 +183,7 @@ Special commands:
-(define-obsolete-function-alias 'asm-newline 'newline-and-indent "27.1")
+(define-obsolete-function-alias 'asm-newline #'newline-and-indent "27.1")
 (defun asm-comment ()
   "Convert an empty comment to a `larger' kind, or start a new one.

reply via email to

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