branch: elpa/forth-mode
commit 794c9efd014ab604f8d0a0e0e9e0f33b832002ec
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>
Use require and provide instead of load
And remove needless autoload cookies
---
forth-block-mode.el | 4 ++--
forth-mode.el | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/forth-block-mode.el b/forth-block-mode.el
index fd85083db3..856fe013ef 100644
--- a/forth-block-mode.el
+++ b/forth-block-mode.el
@@ -1,4 +1,3 @@
-;;;### autoload
(defun forth-block-p ()
"Guess whether the current buffer is a Forth block file."
(message (format "%s %s" (point-max) (logand (point-max) 1023)))
@@ -78,7 +77,6 @@
(while (> (- (point) (line-beginning-position)) 64)
(delete-backward-char 1))))
-;;;### autoload
(define-minor-mode forth-block-mode
"Minor mode for Forth code in blocks."
:lighter " block"
@@ -90,3 +88,5 @@
#'forth-before-change)
(add-to-list (make-local-variable 'after-change-functions)
#'forth-after-change))
+
+(provide 'forth-block-mode)
diff --git a/forth-mode.el b/forth-mode.el
index b03f9ce9fd..80a17e1da0 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -10,7 +10,7 @@
;;; Code:
-(load-library "forth-block-mode.el")
+(require 'forth-block-mode)
(defvar forth-mode-map
(let ((map (make-sparse-keymap)))