emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smie-auto-fill doesn’t respect comment-auto-fill-only-comments


From: Stefan Monnier
Subject: Re: Smie-auto-fill doesn’t respect comment-auto-fill-only-comments
Date: Mon, 22 May 2017 15:12:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>    (let (compos comin)
> -    ;; If we are not inside a comment and we only auto-fill comments,
> -    ;; don't do anything (unless no comment syntax is defined).
> +    ;; If we are not inside a comment don't do anything (unless no
> +    ;; comment syntax is defined).
>      (unless (and comment-start
> -              comment-auto-fill-only-comments
>                (not (called-interactively-p 'interactive))
>                (not (save-excursion
>                       (prog1 (setq compos (comment-beginning))

I think we want to remove the whole test: this `unless` is there
specifically in order to do nothing if we're outside of comments and
comment-auto-fill-only-comments is non-nil.  But now the
"comment-auto-fill-only-comments is non-nil" case is already handled
outside, so we can just always do the auto-fill as if
comment-auto-fill-only-comments were nil.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]