Mercurial > emacs
changeset 64697:7767f4fb012a
* progmodes/gdb-ui.el (gdb-enable-debug-log): Add autoload cookie.
* progmodes/gud.el (gud-tooltip-mode): Add autoload cookie.
(gud-tooltip-mode): Don't barf if the GUD buffer has been killed.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Mon, 01 Aug 2005 08:29:11 +0000 |
parents | 829e05f2dcaf |
children | 7c5f2d64515d |
files | lisp/progmodes/gdb-ui.el lisp/progmodes/gud.el |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el Mon Aug 01 08:18:10 2005 +0000 +++ b/lisp/progmodes/gdb-ui.el Mon Aug 01 08:29:11 2005 +0000 @@ -201,6 +201,7 @@ (defvar gdb-debug-log nil) +;;;###autoload (defcustom gdb-enable-debug-log nil "Non-nil means record the process input and output in `gdb-debug-log'." :type 'boolean
--- a/lisp/progmodes/gud.el Mon Aug 01 08:18:10 2005 +0000 +++ b/lisp/progmodes/gud.el Mon Aug 01 08:29:11 2005 +0000 @@ -4,7 +4,8 @@ ;; Maintainer: FSF ;; Keywords: unix, tools -;; Copyright (C) 1992,93,94,95,96,1998,2000,02,03,04,05 Free Software Foundation, Inc. +;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001, 2002, 2003, +;; 2004, 2005 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. @@ -3209,6 +3210,7 @@ (define-obsolete-function-alias 'tooltip-gud-toggle-dereference 'toggle-gud-tooltip-dereference "22.1") +;;;###autoload (define-minor-mode gud-tooltip-mode "Toggle the display of GUD tooltips." :global t @@ -3225,7 +3227,11 @@ (remove-hook 'tooltip-hook 'gud-tooltip-tips) (define-key global-map [mouse-movement] 'ignore))) (gud-tooltip-activate-mouse-motions-if-enabled) - (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)) + (if (and + gud-comint-buffer + (buffer-name gud-comint-buffer); gud-comint-buffer might be kille + (with-current-buffer gud-comint-buffer + (memq gud-minor-mode '(gdbmi gdba)))) (if gud-tooltip-mode (progn (dolist (buffer (buffer-list))