Personal emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
447 B

  1. (load-file "lua-mode.el")
  2. (defmacro add-trace-for (fn)
  3. (let ((trace-fn-name (intern (concat "trace--" (symbol-name fn)))))
  4. `(progn
  5. (defun ,trace-fn-name (&rest args)
  6. (message "%s was called with: %S" #',fn args))
  7. (add-function :before (symbol-function #',fn) #',trace-fn-name))))
  8. ;; (add-trace-for font-lock-fontify-region)
  9. ;; (add-trace-for font-lock-unfontify-region)
  10. ;; (add-trace-for lua--propertize-multiline-bounds)