]> code.delx.au - gnu-emacs-elpa/commitdiff
Remove unused macro.
authorArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 25 Mar 2015 18:04:15 +0000 (18:04 +0000)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Wed, 25 Mar 2015 18:04:15 +0000 (18:04 +0000)
aggressive-indent.el

index b33e20f3e66984922d5532b1328cf4f374ae56e5..eabe0fa011bce2e806e9b7e2dcec226911145ea1 100644 (file)
 (require 'cl-lib)
 (require 'names)
 
-(defmacro aggressive-indent--do-softly (&rest body)
-  "Execute BODY unobstrusively.
-This means:
- 1. Do nothing in several situations, specified by
-    `aggressive-indent-dont-indent-if' and
-    `aggressive-indent--internal-dont-indent-if'.
- 2. Silence all messages.
- 3. Never throw errors.
-Meant for use in functions which go in hooks."
-  (declare (debug t))
-  `(unless (or (run-hook-wrapped
-                'aggressive-indent--internal-dont-indent-if
-                #'eval)
-               (aggressive-indent--run-user-hooks))
-     (cl-letf (((symbol-function 'message) #'ignore))
-       (ignore-errors ,@body))))
-
 ;;;###autoload
 (define-namespace aggressive-indent- :group indent