Browse Source

Merge pull request #11 from axyz/fix-compilation

fix mayor compilation error and flet deprecation
pull/13/head
Brett Langdon 11 years ago
parent
commit
68109120f5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      jsfmt.el

+ 2
- 2
jsfmt.el View File

@ -40,7 +40,7 @@
;; not modify the kill ring. This solution does depend on the
;; implementation of kill-line, but it's the only viable solution
;; that does not require to write kill-line from scratch.
(flet ((kill-region (beg end)
(cl-flet ((kill-region (beg end)
(delete-region beg end))
(kill-new (s) ()))
(jsfmt--kill-whole-line arg)))
@ -88,7 +88,7 @@ buffer."
(t
(error "invalid rcs patch or internal error in jsfmt--apply-rcs-patch")))))))))
(defun run-jsfmt (save &optional ast &optional)
(defun run-jsfmt (&optional save &optional ast)
"Formats the current buffer according to the jsfmt tool."
(interactive)
(let ((tmpfile (make-temp-file "jsfmt" nil (if ast


Loading…
Cancel
Save