[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from fort
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from forth-mode to forth-block-mode. |
Date: |
Sat, 29 Jan 2022 08:02:14 -0500 (EST) |
branch: elpa/forth-mode
commit 6efdba0686823816f83148ea0cdde8e675745ed6
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Remove dependency from forth-mode to forth-block-mode.
---
forth-block-mode.el | 9 +--------
forth-mode.el | 10 ++++++++--
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/forth-block-mode.el b/forth-block-mode.el
index bb67c4a29b..84be683e35 100644
--- a/forth-block-mode.el
+++ b/forth-block-mode.el
@@ -5,14 +5,6 @@
(goto-char (point-min))
(forward-line (1- n)))
-(defun forth-block-p ()
- "Guess whether the current buffer is a Forth block file."
- (message (format "%s %s" (point-max) (logand (point-max) 1023)))
- (and (eq (logand (point-max) 1023) 1)
- (save-excursion
- (forth-beginning)
- (not (search-forward "\n" 1024 t)))))
-
(defun forth-unblockify ()
(let ((after-change-functions nil))
(save-excursion
@@ -84,6 +76,7 @@
(while (> (- (point) (line-beginning-position)) 64)
(delete-char -1))))
+;;;###autoload
(define-minor-mode forth-block-mode
"Minor mode for Forth code in blocks."
:lighter " block"
diff --git a/forth-mode.el b/forth-mode.el
index de8adcf1c3..0cc5df33f6 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -10,8 +10,6 @@
;;; Code:
-(require 'forth-block-mode)
-
(defvar forth-mode-map
(let ((map (make-sparse-keymap)))
;; (define-key (kbd "C-x C-e") #'forth-eval-last-sexp)
@@ -66,6 +64,14 @@
(defvar forth-font-lock-keywords
'((forth-match-definition 3 font-lock-function-name-face)))
+(defun forth-block-p ()
+ "Guess whether the current buffer is a Forth block file."
+ (message (format "%s %s" (point-max) (logand (point-max) 1023)))
+ (and (eq (logand (point-max) 1023) 1)
+ (save-excursion
+ (forth-beginning)
+ (not (search-forward "\n" 1024 t)))))
+
(unless (fboundp 'prog-mode)
(defalias 'prog-mode 'fundamental-mode))
- [nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests., (continued)
- [nongnu] elpa/forth-mode 715d813c83 062/153: Clean up tests., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode e35317f2f7 093/153: Improve syntax-propertize function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 76e3885c0b 150/153: Remove obsolete Wercker CI build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 443193e02f 071/153: Auto-detect Forth implementation., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode a7a5d4ba05 137/153: Use defcustom to define forth-smie-basic-indent, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 522256d98d 145/153: Adding support for ?of, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 08d891c907 026/153: Use LOCAL argument to add-hook., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 82f746ba54 049/153: Use ERT for some light testing as part of build., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode ad5ce072ca 006/153: GPL3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6f18e1c20e 011/153: Tweak syntax table., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6efdba0686 029/153: Remove dependency from forth-mode to forth-block-mode.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode b69527cdd2 084/153: SwiftForth shouldn't concern itself with terminal settings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 90c1ec5293 032/153: GitHub README., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 813620cae9 034/153: Run hooks before starting an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6dcd29382f 015/153: Make the forth-interaction-send callback optional., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 68d740e7ae 042/153: Empty files are not block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 745e1d8388 039/153: Document key bindings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5df1f95c26 044/153: Speedbar support., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 794c9efd01 021/153: Use require and provide instead of load, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9812d1decd 114/153: Use /interperter to setup terminal personalty, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 5aa3a700b0 016/153: Improve killing an interactive Forth session., ELPA Syncer, 2022/01/29