* mail/rmailmm.el (rmail-mime-set-bulk-data):
Silence --without-x compilation.
- * progmodes/gud.el (gud-find-file): Silence --without-x compilation.
+ * progmodes/gud.el (gud-find-file, gud-mode):
+ Silence --without-x compilation.
+ (tooltip-mode): Declare.
* wdired.el (dired-backup-overwrite): Remove declaration.
(wdired-mode-map): Add doc string.
;; Copy `gud-minor-mode' to the found buffer to turn on the menu.
(with-current-buffer buf
(setq-local gud-minor-mode minor-mode)
- (if (boundp 'tool-bar-map)
+ (if (boundp 'tool-bar-map) ; not --without-x
(setq-local tool-bar-map gud-tool-bar-map))
(when (and gud-tooltip-mode
(eq gud-minor-mode 'gdbmi))
(setq mode-line-process '(":%s"))
(define-key (current-local-map) "\C-c\C-l" 'gud-refresh)
(set (make-local-variable 'gud-last-frame) nil)
- (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)
+ (if (boundp 'tool-bar-map) ; not --without-x
+ (setq-local tool-bar-map gud-tool-bar-map))
(make-local-variable 'comint-prompt-regexp)
;; Don't put repeated commands in command history many times.
(set (make-local-variable 'comint-input-ignoredups) t)
;;; Customizable settings
+(defvar tooltip-mode)
+
;;;###autoload
(define-minor-mode gud-tooltip-mode
"Toggle the display of GUD tooltips.