emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 15c7f9f 17/24: targets/avy-init.el: Use the new checkdoc-f


From: Oleh Krehel
Subject: [elpa] master 15c7f9f 17/24: targets/avy-init.el: Use the new checkdoc-file
Date: Thu, 25 Jun 2015 10:17:53 +0000

branch: master
commit 15c7f9fe3909707f1c818c251460e4c70eb06d9c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    targets/avy-init.el: Use the new checkdoc-file
    
    * targets/avy-init.el (checkdoc-file): This function is now available in
      trunk Emacs.
---
 targets/avy-init.el |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/targets/avy-init.el b/targets/avy-init.el
index 21dd0ab..9ce46bb 100644
--- a/targets/avy-init.el
+++ b/targets/avy-init.el
@@ -22,8 +22,11 @@
 (add-to-list 'load-path default-directory)
 (mapc #'byte-compile-file '("avy.el"))
 (require 'avy)
-(require 'checkdoc)
-(with-current-buffer (find-file "avy.el")
-  (checkdoc-current-buffer t))
+(if (fboundp 'checkdoc-file)
+    (checkdoc-file "avy.el")
+  (require 'checkdoc)
+  (with-current-buffer (find-file "avy.el")
+    (checkdoc-current-buffer t)))
+
 (global-set-key (kbd "C-c j") 'avy-goto-char)
 (global-set-key (kbd "C-'") 'avy-goto-char-2)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]