]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/ada-mode/ada-mode.el
packages/fsm: Fix compilation error
[gnu-emacs-elpa] / packages / ada-mode / ada-mode.el
index 3fca118d96982551de8c966007729930c461646f..8fb112a49d0372774cd326e22b4f4f46ce0b8d04 100644 (file)
@@ -2598,8 +2598,8 @@ If POSTFIX and JUSTIFY are non-nil, `ada-fill-comment-postfix' is appended
 to each line filled and justified.
 The paragraph is indented on the first line."
   (interactive "P")
 to each line filled and justified.
 The paragraph is indented on the first line."
   (interactive "P")
-  (if (and (not (ada-in-comment-p))
-          (not (looking-at "[ \t]*--")))
+  (if (not (or (ada-in-comment-p)
+               (looking-at "[ \t]*--")))
       (error "Not inside comment"))
 
   ;; fill-region-as-paragraph leaves comment text exposed (without
       (error "Not inside comment"))
 
   ;; fill-region-as-paragraph leaves comment text exposed (without