[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2f66cb0 007/215: Make realugd:process-filter-save buffer l
From: |
Rocky Bernstein |
Subject: |
[elpa] master 2f66cb0 007/215: Make realugd:process-filter-save buffer local |
Date: |
Sat, 30 Jul 2016 14:48:48 +0000 (UTC) |
branch: master
commit 2f66cb09145716087d6ea03731f975c5e5232a72
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Make realugd:process-filter-save buffer local
---
realgud/common/eval.el | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/realgud/common/eval.el b/realgud/common/eval.el
index 0d8ebb0..1ba52a4 100644
--- a/realgud/common/eval.el
+++ b/realgud/common/eval.el
@@ -34,6 +34,10 @@
(declare-function realgud-cmdbuf-pat 'realgud-send)
(declare-function realgud:strip 'realgud-utils)
+(make-variable-buffer-local
+ (defvar realgud:process-filter-save nil
+ "realgud saves/restores the previous process filter here"))
+
(defun realgud:tooltip-eval (event)
"Show tip for identifier or selection under the mouse.
The mouse must either point at an identifier or inside a selected
@@ -49,19 +53,22 @@ This function must return nil if it doesn't handle EVENT."
(setq process (get-buffer-process cmdbuf))
(posn-point (event-end event))
)
- (let ((expr (tooltip-expr-to-print event))
- (original-filter (process-filter process)))
+ (let ((expr (tooltip-expr-to-print event)))
(when expr
- (set-process-filter process 'realgud:eval-process-output)
+ (with-current-buffer cmdbuf
+ (setq realgud:process-filter-save (process-filter process))
+ (set-process-filter process 'realgud:eval-process-output))
(realgud:cmd-eval expr)
))
)))
(defun realgud:eval-process-output (process output-str)
"Process debugger output and show it in a tooltip window."
- (set-process-filter process 'comint-output-filter)
+ (set-process-filter process
+ (or realgud:process-filter-save 'comint-output-filter))
(with-current-buffer (realgud-get-cmdbuf)
(goto-char (process-mark process))
+ (setq comint-last-input-end (process-mark process))
(insert output-str)
(set-marker (process-mark process) (point)))
(setq comint-last-output-start
- [elpa] master updated (5f5f2bb -> 8edfb04), Rocky Bernstein, 2016/07/30
- [elpa] master fc84e01 002/215: In pdb, for to evaluate an expression use "p", Rocky Bernstein, 2016/07/30
- [elpa] master 015358a 001/215: Experimental: mouse2 runs eval, Rocky Bernstein, 2016/07/30
- [elpa] master 1994f09 004/215: Move test helper into test, Rocky Bernstein, 2016/07/30
- [elpa] master f153e3f 008/215: gdb's "eval" is "print"., Rocky Bernstein, 2016/07/30
- [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 <=
- [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, 2016/07/30
- [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