[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a02f3cd 006/215: Bind RET in shortkey to repeat-last; add
From: |
Rocky Bernstein |
Subject: |
[elpa] master a02f3cd 006/215: Bind RET in shortkey to repeat-last; add FSF (C) |
Date: |
Sat, 30 Jul 2016 14:48:48 +0000 (UTC) |
branch: master
commit a02f3cdda61d42f81e965d7c2d4e8ff68ceaaeab
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Bind RET in shortkey to repeat-last; add FSF (C)
---
realgud/common/buffer/backtrace.el | 27 ++++++++++++++++++++++++---
realgud/common/cmds.el | 12 +++++++++---
realgud/common/eval.el | 9 +++++++--
realgud/common/key.el | 27 ++++++++++++++++++++++++++-
4 files changed, 66 insertions(+), 9 deletions(-)
diff --git a/realgud/common/buffer/backtrace.el
b/realgud/common/buffer/backtrace.el
index 7eb11bd..08a3faa 100644
--- a/realgud/common/buffer/backtrace.el
+++ b/realgud/common/buffer/backtrace.el
@@ -1,5 +1,27 @@
;;; Backtrace buffer
-;;; Copyright (C) 2010-2015 Rocky Bernstein <address@hidden>
+
+;; Author: Rocky Bernstein <address@hidden>
+;; Version: 1.1
+;; Keywords: internal
+;; URL: http://github.com/rocky/emacs-load-relative
+;; Compatibility: GNU Emacs 24.x
+
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; This program is free software: you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see
+;; <http://www.gnu.org/licenses/>.
+
(require 'load-relative)
(eval-when-compile (require 'cl-lib))
(require-relative-list
@@ -28,8 +50,7 @@
(declare-function realgud:cmd-frame 'realgud-buffer-command)
(declare-function realgud-get-cmdbuf(&optional opt-buffer))
-(declare-function realgud-command (fmt &optional arg no-record?
- frame-switch? realgud-prompts?))
+(declare-function realgud-command 'realgud-send)
(make-variable-buffer-local (defvar realgud-backtrace-info))
diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 49a546b..9ecc759 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -7,7 +7,7 @@
(declare-function buffer-killed? 'helper)
(declare-function realgud-cmdbuf-info-in-srcbuf?= 'realgud-buffer-command)
(declare-function realgud-cmdbuf? 'realgud-buffer-command)
-(declare-function realgud-command 'realgud-cmd)
+(declare-function realgud-command 'realgud-send)
(declare-function realgud-get-cmdbuf 'realgud-buffer-helper)
(declare-function realgud-get-command 'realgud-buffer-command)
(declare-function realgud-get-bpnum-from-line-num 'realgud-buffer-source)
@@ -170,15 +170,21 @@ With a numeric argument move that many levels back."
(realgud:cmd-remap arg "up" "up %p" ">" t t)
)
+(defun realgud:cmd-repeat-last(&optional arg)
+ "Repeat the last command (or generally what <enter> does."
+ (interactive "")
+ (realgud:cmd-remap arg "repeat-last" "\n" "." 't nil 't)
+)
+
(defun realgud:cmd-restart(&optional arg)
"Restart execution."
- (interactive "MRestart args: ")
+ (interactive "")
(realgud:cmd-remap arg "restart" "run" "R" 't nil 't)
)
(defun realgud:cmd-shell(&optional arg)
"Restart execution."
- (interactive "p")
+ (interactive "")
(realgud:cmd-remap arg "shell" "shell" "S")
)
diff --git a/realgud/common/eval.el b/realgud/common/eval.el
index 0137941..0d8ebb0 100644
--- a/realgud/common/eval.el
+++ b/realgud/common/eval.el
@@ -1,7 +1,12 @@
;; show expressions using tooltip
-;; Copyright (C) 2015 Free Software Foundation, Inc
;; Author: Rocky Bernstein <address@hidden>
+;; Version: 1.1
+;; Keywords: internal
+;; URL: http://github.com/rocky/emacs-load-relative
+;; Compatibility: GNU Emacs 24.x
+
+;; Copyright (C) 2015 Free Software Foundation, Inc
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -26,7 +31,7 @@
(declare-function realgud:cmd-eval 'realgud-cmd)
(declare-function realgud-get-cmdbuf 'realgud-helper)
-(declare-function realgud-cmdbuf-pat 'realgud-command)
+(declare-function realgud-cmdbuf-pat 'realgud-send)
(declare-function realgud:strip 'realgud-utils)
(defun realgud:tooltip-eval (event)
diff --git a/realgud/common/key.el b/realgud/common/key.el
index 75e7797..e166881 100644
--- a/realgud/common/key.el
+++ b/realgud/common/key.el
@@ -1,4 +1,27 @@
-;;; Copyright (C) 2010-2011, 2014-2015 Rocky Bernstein <address@hidden>
+;; Author: Rocky Bernstein <address@hidden>
+;; Version: 1.1
+;; Keywords: internal
+;; URL: http://github.com/rocky/emacs-load-relative
+;; Compatibility: GNU Emacs 24.x
+
+;; Copyright (C) 2015 Free Software Foundation, Inc
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+(provide 'key)
+;;; key.el ends here
+
(require 'load-relative)
(require-relative "custom" nil "realgud-")
@@ -83,6 +106,8 @@ Nor does it touch prefix keys; for that see
`realgud-populate-keys-standard'"
(define-key map "b" 'realgud:cmd-break)
(define-key map "D" 'realgud:cmd-delete)
(define-key map [delete] 'realgud:cmd-delete)
+ (define-key map [enter] 'realgud:cmd-repeat-last)
+ (define-key map (kbd "RET") 'realgud:cmd-repeat-last)
(define-key map " " 'realgud:cmd-step)
(define-key map "f" 'realgud:cmd-finish)
(define-key map "n" 'realgud:cmd-next)
- [elpa] master f71fd11 003/215: Remove another warning, (continued)
- [elpa] master f71fd11 003/215: Remove another warning, Rocky Bernstein, 2016/07/30
- [elpa] master 7be15d2 011/215: Try to fix travis #2, Rocky Bernstein, 2016/07/30
- [elpa] master 4208a33 010/215: Fix logic for finding region to work on in tracking, Rocky Bernstein, 2016/07/30
- [elpa] master f55c074 018/215: Fix downcase., Rocky Bernstein, 2016/07/30
- [elpa] master 2f66cb0 007/215: Make realugd:process-filter-save buffer local, Rocky Bernstein, 2016/07/30
- [elpa] master 3e9e1ac 005/215: Work on filtering eval output, Rocky Bernstein, 2016/07/30
- [elpa] master b7adbc0 019/215: DRY Comment no longer relvant, Rocky Bernstein, 2016/07/30
- [elpa] master 1924ded 012/215: Try to fix travis #3, Rocky Bernstein, 2016/07/30
- [elpa] master 67ccb9c 009/215: Reassign copyright to FSF in recently change files, Rocky Bernstein, 2016/07/30
- [elpa] master 6e2a612 017/215: Need more stringent cmdbuf setup, Rocky Bernstein, 2016/07/30
- [elpa] master a02f3cd 006/215: Bind RET in shortkey to repeat-last; add FSF (C),
Rocky Bernstein <=
- [elpa] master 345c67c 014/215: eval.el: issue #40, Rocky Bernstein, 2016/07/30
- [elpa] master 9e2656a 029/215: Correct nodejs/init.el bugs - sync with master, Rocky Bernstein, 2016/07/30
- [elpa] master 9cf5e4d 028/215: Add breakpoint set to nodejs, Rocky Bernstein, 2016/07/30
- [elpa] master 3993d13 020/215: Respect shortkey mode setting, Rocky Bernstein, 2016/07/30
- [elpa] master 3a0b837 022/215: Update README.md to note that we can use in eshell, Rocky Bernstein, 2016/07/30
- [elpa] master 886f741 024/215: Make sure we go into realgud-track mode when we have custom mode, Rocky Bernstein, 2016/07/30
- [elpa] master dc0b45b 034/215: Revert "Squelch one of the many compiler warnings", Rocky Bernstein, 2016/07/30
- [elpa] master b8d8686 032/215: Squelch one of the many compiler warnings, Rocky Bernstein, 2016/07/30
- [elpa] master 266e5df 021/215: Small error message grammar correction, Rocky Bernstein, 2016/07/30
- [elpa] master e2c3271 015/215: Minimal support for running under eshell, Rocky Bernstein, 2016/07/30