Fix undefined variable in previous commit (bug#73900)
authorYuan Fu <casouri@gmail.com>
Thu, 31 Oct 2024 01:18:50 +0000 (18:18 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 31 Oct 2024 01:18:50 +0000 (18:18 -0700)
I somehow thought allow-auto-fill is a global variable that's
used by cc.  But it's not.  It's just a function param used by
c-indent-new-comment-line.

* lisp/progmodes/c-ts-common.el:
(c-ts-common-comment-indent-new-line): Remove reference to
allow-auto-fill.

lisp/progmodes/c-ts-common.el

index 6972cfa8904a4ed624c6cd535fc4c2d2db96b401..8630598708d6d21ac0c209b8ff6b6397b16fac2a 100644 (file)
@@ -307,7 +307,7 @@ and /* */ comments.  SOFT works the same as in
           (delete-horizontal-space)
           (if soft
               (insert-and-inherit ?\n)
-            (newline (if allow-auto-fill nil 1))))))
+            (newline 1)))))
     (cond
      ;; Line starts with //, or ///, or ////...
      ;; Or //! (used in rust).