]> git.eshelyaron.com Git - emacs.git/commitdiff
gud.el: Generate less unreachable code
authorEshel Yaron <me@eshelyaron.com>
Sat, 19 Oct 2024 19:09:30 +0000 (21:09 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 19 Oct 2024 19:09:30 +0000 (21:09 +0200)
lisp/progmodes/gud.el

index a4e611277e487463da57ec6c02b02056d574f522..716b113c3c7cdf94c68467a1245bb6fbd822f60a 100644 (file)
@@ -440,7 +440,9 @@ we're in the GUD buffer)."
      (defalias ',func (lambda (arg)
        ,@(if doc (list doc))
        (interactive "p")
-       (if (or (not gud-running) (and ,async-ok gud-async-running))
+       (if
+           ,(if (byte-compile-nilconstp async-ok) '(not gud-running)
+              `(or (not gud-running) (and ,async-ok gud-async-running)))
         ,(if (stringp cmd)
              `(gud-call ,cmd arg)
            ;; Unused lexical warning if cmd does not use "arg".