Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent infinite recursion when displaying a warning. #1089

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 7, 2021

  1. Prevent infinite recursion when displaying a warning.

    If the *Warnings* buffer has auto-fill enabled and we're about to print the
    warning, `display-warning' would loop back here through `newline' and
    `self-insert-command', causing infinite recursion.
    
    I haven't been able to reproduce this in a noninteractive unit test,
    unfortunately, but the issue happens in interactive mode whenever
    `yas--original-auto-fill-function' is nil and `auto-fill-mode' is enabled in
    the *Warnings* buffer.
    
    * yasnippet.el (yas--auto-fill): Disable `auto-fill-mode' in the *Warnings*
    buffer as well.
    phst committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    80598ba View commit details
    Browse the repository at this point in the history