[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode b455a556fe 056/153: Add C-M-x, forth-eval-defun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode b455a556fe 056/153: Add C-M-x, forth-eval-defun. |
Date: |
Sat, 29 Jan 2022 08:02:16 -0500 (EST) |
branch: elpa/forth-mode
commit b455a556fe34b67881e0839419275ba59c641a28
Author: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Commit: Lars Brinkhoff <lars.brinkhoff@delphi.com>
Add C-M-x, forth-eval-defun.
---
forth-mode.el | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/forth-mode.el b/forth-mode.el
index 0a09e5b653..cb4e1e8dad 100644
--- a/forth-mode.el
+++ b/forth-mode.el
@@ -13,10 +13,10 @@
(defvar forth-mode-map
(let ((map (make-sparse-keymap)))
- (define-key map (kbd "C-c C-r") #'forth-eval-region)
+ (define-key map (kbd "C-c C-r") 'forth-eval-region)
(define-key map (kbd "C-c C-l") 'forth-load-file)
- (define-key map (kbd "C-c C-s") #'forth-see)
- ;; (define-key map (kbd "C-M-x") #'forth-eval-defun)
+ (define-key map (kbd "C-c C-s") 'forth-see)
+ (define-key map (kbd "C-M-x") 'forth-eval-defun)
;; (define-key map (kbd "C-c C-c") 'eval-buffer)
;; (define-key map (kbd "C-x C-e") #'forth-eval-last-sexp)
;; (define-key map (kbd "C-c :") #'forth-eval-expression)
@@ -146,6 +146,12 @@
(insert (forth-interaction-send "see " word))
(special-mode)))
+(defun forth-eval-defun ()
+ (interactive)
+ (save-excursion
+ (mark-defun)
+ (forth-eval-region (point) (mark))))
+
(defun forth-beginning ()
(goto-char (point-min)))
- [nongnu] branch elpa/forth-mode created (now 38d5152011), ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode fa62b36bf4 001/153: Add readme., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 67a9d94c18 012/153: Minor mode to display stack comments., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 0030189ff8 018/153: Prepare for MELPA., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 8471704670 116/153: Add more font lock keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9300eb75c4 025/153: Remove stubs., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 778470cbcb 014/153: Load a file into an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9855800cb7 053/153: Start a user manual., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 3deee67777 097/153: Emacs 23: Don't test font-lock., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b455a556fe 056/153: Add C-M-x, forth-eval-defun.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 973481a1c5 007/153: Add some autoloads., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 244c416c4d 013/153: Variable for secifying Forth executable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode cdab2e4ec1 038/153: Also recognise .4th., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 695bb04ebc 002/153: A humble beginning., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 24d3d052fe 003/153: More work. Font lock and navigation somewhat usable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 93756ec224 005/153: Some basic and flawed support for block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode bca8f01218 004/153: Make it work in older Emacsen without prog-mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode effb52b8e0 009/153: Load files from load-path., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 3047dfa37a 008/153: Run a subprocess Forth for interaction., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6ab334684b 010/153: Send a string to an interactive Forth session., ELPA Syncer, 2022/01/29