aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/asm-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index 94ac76c0686..c98dbdac892 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -204,7 +204,8 @@ repeatedly until you are satisfied with the kind of comment."
204 (let (comempty comment) 204 (let (comempty comment)
205 (save-excursion 205 (save-excursion
206 (beginning-of-line) 206 (beginning-of-line)
207 (setq comment (comment-search-forward (line-end-position) t)) 207 (with-no-warnings
208 (setq comment (comment-search-forward (line-end-position) t)))
208 (setq comempty (looking-at "[ \t]*$"))) 209 (setq comempty (looking-at "[ \t]*$")))
209 210
210 (cond 211 (cond