summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2007-10-21 07:33:32 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2007-10-21 07:33:32 +0000
commit2f42c75fb05cd3c481dc191436e6f1b28669338a (patch)
tree15c1eaeaf0eb47a1ee5175d1cbe79728102e0116 /lisp/progmodes
parent3b0664df0333a6a53677afa99495852cf81646fd (diff)
downloademacs-2f42c75fb05cd3c481dc191436e6f1b28669338a.tar.gz
emacs-2f42c75fb05cd3c481dc191436e6f1b28669338a.tar.bz2
emacs-2f42c75fb05cd3c481dc191436e6f1b28669338a.zip
* progmodes/gud.el (gud-target-name): Move definition before use.
* progmodes/dcl-mode.el: Require imenu at compile time. * progmodes/cc-engine.el (c-maybe-stale-found-type): Pacify byte-compiler. * obsolete/fast-lock.el: Use featurep test instead of string-match. * eshell/esh-mode.el (eshell-handle-ansi-color): Require ansi-color at compile time too. * eshell/em-unix.el (eshell/info): Require info at compile time too. * w32-fns.el: Require w32-vars. * diff-mode.el (diff-refine-hunk): Require smerge-mode at compile time too.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/cc-engine.el3
-rw-r--r--lisp/progmodes/dcl-mode.el2
-rw-r--r--lisp/progmodes/gud.el6
3 files changed, 7 insertions, 4 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index d1a27d567fd..a019f598918 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -4035,6 +4035,9 @@ comment at the start of cc-engine.el for more info."
c-found-types)
(sort type-list 'string-lessp)))
+;; Shut up the byte compiler.
+(defvar c-maybe-stale-found-type)
+
(defun c-trim-found-types (beg end old-len)
;; An after change function which, in conjunction with the info in
;; c-maybe-stale-found-type (set in c-before-change), removes a type
diff --git a/lisp/progmodes/dcl-mode.el b/lisp/progmodes/dcl-mode.el
index 887416f9069..135d90b21f4 100644
--- a/lisp/progmodes/dcl-mode.el
+++ b/lisp/progmodes/dcl-mode.el
@@ -72,7 +72,7 @@
;;; Code:
(require 'tempo)
-
+(eval-when-compile (require 'imenu))
;;; *** Customization *****************************************************
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index d2384232686..8cde32da422 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -106,6 +106,9 @@ Used to grey out relevant toolbar icons.")
(defvar gdb-ready nil)
+(defvar gud-target-name "--unknown--"
+ "The apparent name of the program being debugged in a gud buffer.")
+
;; Use existing Info buffer, if possible.
(defun gud-goto-info ()
"Go to relevant Emacs info node."
@@ -2451,9 +2454,6 @@ comint mode, which see."
:group 'gud
:type 'boolean)
-(defvar gud-target-name "--unknown--"
- "The apparent name of the program being debugged in a gud buffer.")
-
;; Perform initializations common to all debuggers.
;; The first arg is the specified command line,
;; which starts with the program to debug.