branch: externals/phpinspect
commit 15c175dc6170a396b20725d5750b2ece53f51c74
Author: Hugo Thunnissen <de...@hugot.nl>
Commit: Hugo Thunnissen <de...@hugot.nl>

    Only attempt to byte compile when the handler isn't already compiled
---
 phpinspect.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/phpinspect.el b/phpinspect.el
index 43d59f3e8b..f59dee3d1e 100644
--- a/phpinspect.el
+++ b/phpinspect.el
@@ -345,7 +345,10 @@ You can purge the parser cache with 
\\[phpinspect-purge-parser-cache]."
          #'(lambda (,@arguments)
              ,docstring
              ,@body))
-       (byte-compile (intern ,name phpinspect-handler-obarray)))))
+       (unless (byte-code-function-p
+                (symbol-function
+                 (intern ,name phpinspect-handler-obarray)))
+         (byte-compile (intern ,name phpinspect-handler-obarray))))))
 
 (defun phpinspect-get-parser-create (tree-type &rest parser-parameters)
   "Retrieve a parser for TREE-TYPE from `phpinspect-parser-obarray'.

Reply via email to