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

Fix #146 - Make suppress messages Emacs 28 compatible #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions aggressive-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ If L and R are provided, use them for finding the start and end of defun."
"Indent current defun unobstrusively.
Like `aggressive-indent-indent-defun', but without errors or
messages. L and R passed to `aggressive-indent-indent-defun'."
(cl-letf (((symbol-function 'message) #'ignore))
(let ((inhibit-message t)
(message-log-max nil))
(ignore-errors (aggressive-indent-indent-defun l r))))

;;; Indenting region
Expand Down Expand Up @@ -382,7 +383,8 @@ then keep indenting until nothing more happens."
"Indent region between L and R, and a bit more.
Like `aggressive-indent-indent-region-and-on', but without errors
or messages."
(cl-letf (((symbol-function 'message) #'ignore))
(let ((inhibit-message t)
(message-log-max nil))
(ignore-errors (aggressive-indent-indent-region-and-on l r))))

;;; Tracking changes
Expand Down