* 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.
+2007-10-21 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * 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.
+
2007-10-21 Stefan Monnier <monnier@iro.umontreal.ca>
* double.el ([ignore]): Use ignore.
(defun diff-refine-hunk ()
"Highlight changes of hunk at point at a finer granularity."
(interactive)
- (require 'smerge-mode)
+ (eval-and-compile (require 'smerge-mode))
(save-excursion
(diff-beginning-of-hunk 'try-harder)
(let* ((style (diff-hunk-style)) ;Skips the hunk header as well.
'info arg1' => OTHERWISE goes to top info window and then menu item arg1
'info arg1 arg2' => does action for arg1 (either visit-file or menu-item) and then menu item arg2
etc."
- (require 'info)
+ (eval-and-compile (require 'info))
(let ((file (cond
((not (stringp (car args)))
nil)
(defun eshell-handle-ansi-color ()
"Handle ANSI color codes."
- (require 'ansi-color)
+ (eval-and-compile (require 'ansi-color))
(ansi-color-apply-on-region eshell-last-output-start
eshell-last-output-end))
\f
;; Functions for XEmacs:
-(when (save-match-data (string-match "XEmacs" (emacs-version)))
+(when (featurep 'xemacs)
;;
;; It would be better to use XEmacs' `map-extents' over extents with a
;; `font-lock' property, but `face' properties are on different extents.
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
;;; Code:
(require 'tempo)
-
+(eval-when-compile (require 'imenu))
;;; *** Customization *****************************************************
(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."
: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.
;; audio bell initialized.
;;; Code:
+(require 'w32-vars)
(defvar explicit-shell-file-name)