branch: elpa/paredit
commit 961b02fc66ff71370320cfbbcc6d2b0db3516f96
Author: Javier Olaechea <[email protected]>
Commit: Taylor R Campbell <[email protected]>

    Ignore unused argument in paredit-override-check-parens-interactively
    
    The resulting byte code is more compact and the only reason it is
    being used is to avoid the warning about unused arguments.
    
    (disassemble (lambda (condition) condition nil))
    
        byte code:
          args: (condition)
        0       varref    condition
        1       discard
        2       constant  nil
        3       return
    
    (disassemble (lambda (condition) (declare ignore condition) nil))
    
        byte code:
          args: (condition)
        0       constant  nil
        1       return
---
 paredit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paredit.el b/paredit.el
index fe8cf2b..1296a4b 100644
--- a/paredit.el
+++ b/paredit.el
@@ -199,7 +199,7 @@ If point was on indentation, it stays in indentation."
   "Keymap for the paredit minor mode.")
 
 (defvar paredit-override-check-parens-function
-  (lambda (condition) condition nil)
+  (lambda (condition) (declare ignore condition) nil)
   "Function to tell whether unbalanced text should inhibit Paredit Mode.")
 
 ;;;###autoload

Reply via email to