copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.72k stars 122 forks source link

Replace `warn` with `display-warning` #198

Closed blahgeek closed 8 months ago

blahgeek commented 8 months ago

The "size exceeds 'copilot-max-char'" warning message pops up whenever a large buffer is opened and there was no easy way to suppress it. I believe the idiomatic way of doing this is to use display-warning function with type argument (e.g. '(copilot copilot-exceeds-max-char)), so that user can choose to suppress this warning by adding the type to warning-suppress-types