summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2013-05-23 23:50:22 -0700
committerGlenn Morris <rgm@gnu.org>2013-05-23 23:50:22 -0700
commit3c29197330b409b01c6782947d386e1e249c3248 (patch)
tree94ad7cb3546e2bc928fc210d1ecf3fac0b21c732 /lisp
parent43cc956bb86b5c6dab117af89c4cfae450b62113 (diff)
downloademacs-3c29197330b409b01c6782947d386e1e249c3248.tar.gz
emacs-3c29197330b409b01c6782947d386e1e249c3248.tar.bz2
emacs-3c29197330b409b01c6782947d386e1e249c3248.zip
Gud tooltip tweak
* tooltip.el (tooltip-use-echo-area): Warn only on 'set. * progmodes/gud.el (gud-gdb-completion-function): Move before use. (gud-tooltip-echo-area): Make obsolete. (gud-tooltip-process-output, gud-tooltip-tips): Also check tooltip-mode.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/gud.el29
-rw-r--r--lisp/tooltip.el2
3 files changed, 23 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c863506ed2d..12fd433e431 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
2013-05-24 Glenn Morris <rgm@gnu.org>
+ * tooltip.el (tooltip-use-echo-area): Warn only on 'set.
+ * progmodes/gud.el (gud-gdb-completion-function): Move before use.
+ (gud-tooltip-echo-area): Make obsolete.
+ (gud-tooltip-process-output, gud-tooltip-tips): Also check tooltip-mode.
+
* progmodes/js.el (js--optimize-arglist): Declare.
* progmodes/ruby-mode.el (ruby-syntax-propertize-expansion): Declare.
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 212d3894091..c549d9eedef 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -716,6 +716,16 @@ The option \"--fullname\" must be included in this value."
(defvar gud-filter-pending-text nil
"Non-nil means this is text that has been saved for later in `gud-filter'.")
+;; One of the nice features of GDB is its impressive support for
+;; context-sensitive command completion. We preserve that feature
+;; in the GUD buffer by using a GDB command designed just for Emacs.
+
+(defvar gud-gdb-completion-function nil
+ "Completion function for GDB commands.
+It receives two arguments: COMMAND, the prefix for which we seek
+completion; and CONTEXT, the text before COMMAND on the line.
+It should return a list of completion strings.")
+
;; If in gdb mode, gdb-mi is loaded.
(declare-function gdb-restore-windows "gdb-mi" ())
@@ -776,16 +786,6 @@ directory and source-file directory for your debugger."
(setq gud-filter-pending-text nil)
(run-hooks 'gud-gdb-mode-hook))
-;; One of the nice features of GDB is its impressive support for
-;; context-sensitive command completion. We preserve that feature
-;; in the GUD buffer by using a GDB command designed just for Emacs.
-
-(defvar gud-gdb-completion-function nil
- "Completion function for GDB commands.
-It receives two arguments: COMMAND, the prefix for which we seek
-completion; and CONTEXT, the text before COMMAND on the line.
-It should return a list of completion strings.")
-
;; The completion process filter indicates when it is finished.
(defvar gud-gdb-fetch-lines-in-progress)
@@ -3352,6 +3352,9 @@ only tooltips in the buffer containing the overlay arrow."
:group 'gud
:group 'tooltip)
+(make-obsolete-variable 'gud-tooltip-echo-area
+ "disable Tooltip mode instead" "24.4" 'set)
+
;;; Reacting on mouse movements
(defun gud-tooltip-change-major-mode ()
@@ -3438,7 +3441,8 @@ With arg, dereference expr if ARG is positive, otherwise do not dereference."
"Process debugger output and show it in a tooltip window."
(remove-function (process-filter process) #'gud-tooltip-process-output)
(tooltip-show (tooltip-strip-prompt process output)
- (or gud-tooltip-echo-area tooltip-use-echo-area)))
+ (or gud-tooltip-echo-area tooltip-use-echo-area
+ (not tooltip-mode))))
(defun gud-tooltip-print-command (expr)
"Return a suitable command to print the expression EXPR."
@@ -3481,7 +3485,8 @@ This function must return nil if it doesn't handle EVENT."
(unless (null define-elt)
(tooltip-show
(cdr define-elt)
- (or gud-tooltip-echo-area tooltip-use-echo-area))
+ (or gud-tooltip-echo-area tooltip-use-echo-area
+ (not tooltip-mode)))
expr))))
(when gud-tooltip-dereference
(setq expr (concat "*" expr)))
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 261e34b440e..657951d7b75 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -151,7 +151,7 @@ This variable is obsolete; instead of setting it to t, disable
:group 'tooltip)
(make-obsolete-variable 'tooltip-use-echo-area
- "disable Tooltip mode instead" "24.1")
+ "disable Tooltip mode instead" "24.1" 'set)
;;; Variables that are not customizable.