aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2019-07-07 16:27:26 +0200
committerBasil L. Contovounesios2019-07-10 14:54:39 +0100
commitddc8c2c298d99bc084523786e5deac5ea2e6ee84 (patch)
tree63a2f57881110f3fe56869c04a09a0d76abc8586
parent09c805a40591a73591d6a609cf74ae7ce3ddd93a (diff)
downloademacs-ddc8c2c298d99bc084523786e5deac5ea2e6ee84.tar.gz
emacs-ddc8c2c298d99bc084523786e5deac5ea2e6ee84.zip
Small cleanups in asm-mode.el (Bug#36540)
* lisp/progmodes/asm-mode.el: Remove "tools" from "Keywords" header. Doc fixes. (asm-comment-char, asm-comment): Doc fixes. (asm-newline): Redefine as an obsolete function alias for 'newline-and-indent' instead of using a defalias.
-rw-r--r--lisp/progmodes/asm-mode.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index c56d16e305e..5390ef7cd2a 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Eric S. Raymond <esr@snark.thyrsus.com> 5;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6;; Maintainer: emacs-devel@gnu.org 6;; Maintainer: emacs-devel@gnu.org
7;; Keywords: tools, languages 7;; Keywords: languages
8 8
9;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
10 10
@@ -26,7 +26,7 @@
26;; This mode was written by Eric S. Raymond <esr@snark.thyrsus.com>, 26;; This mode was written by Eric S. Raymond <esr@snark.thyrsus.com>,
27;; inspired by an earlier asm-mode by Martin Neitzel. 27;; inspired by an earlier asm-mode by Martin Neitzel.
28 28
29;; This minor mode is based on text mode. It defines a private abbrev table 29;; This major mode is based on prog mode. It defines a private abbrev table
30;; that can be used to save abbrevs for assembler mnemonics. It binds just 30;; that can be used to save abbrevs for assembler mnemonics. It binds just
31;; five keys: 31;; five keys:
32;; 32;;
@@ -53,7 +53,7 @@
53 :group 'languages) 53 :group 'languages)
54 54
55(defcustom asm-comment-char ?\; 55(defcustom asm-comment-char ?\;
56 "The comment-start character assumed by Asm mode." 56 "The `comment-start' character assumed by Asm mode."
57 :type 'character 57 :type 'character
58 :group 'asm) 58 :group 'asm)
59 59
@@ -187,14 +187,13 @@ Special commands:
187 (delete-horizontal-space) 187 (delete-horizontal-space)
188 (tab-to-tab-stop)))) 188 (tab-to-tab-stop))))
189 189
190;; Obsolete since Emacs-22.1. 190(define-obsolete-function-alias 'asm-newline 'newline-and-indent "27.1")
191(defalias 'asm-newline 'newline-and-indent)
192 191
193(defun asm-comment () 192(defun asm-comment ()
194 "Convert an empty comment to a `larger' kind, or start a new one. 193 "Convert an empty comment to a `larger' kind, or start a new one.
195These are the known comment classes: 194These are the known comment classes:
196 195
197 1 -- comment to the right of the code (at the comment-column) 196 1 -- comment to the right of the code (at the `comment-column')
198 2 -- comment on its own line, indented like code 197 2 -- comment on its own line, indented like code
199 3 -- comment on its own line, beginning at the left-most column. 198 3 -- comment on its own line, beginning at the left-most column.
200 199