aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2007-10-21 07:33:32 +0000
committerDan Nicolaescu2007-10-21 07:33:32 +0000
commit2f42c75fb05cd3c481dc191436e6f1b28669338a (patch)
tree15c1eaeaf0eb47a1ee5175d1cbe79728102e0116
parent3b0664df0333a6a53677afa99495852cf81646fd (diff)
downloademacs-2f42c75fb05cd3c481dc191436e6f1b28669338a.tar.gz
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.
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/diff-mode.el2
-rw-r--r--lisp/eshell/em-unix.el2
-rw-r--r--lisp/eshell/esh-mode.el2
-rw-r--r--lisp/obsolete/fast-lock.el2
-rw-r--r--lisp/progmodes/cc-engine.el3
-rw-r--r--lisp/progmodes/dcl-mode.el2
-rw-r--r--lisp/progmodes/gud.el6
-rw-r--r--lisp/w32-fns.el1
9 files changed, 35 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b4819197172..4573cb38499 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,26 @@
12007-10-21 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * progmodes/gud.el (gud-target-name): Move definition before use.
4
5 * progmodes/dcl-mode.el: Require imenu at compile time.
6
7 * progmodes/cc-engine.el (c-maybe-stale-found-type): Pacify
8 byte-compiler.
9
10 * obsolete/fast-lock.el: Use featurep test instead of
11 string-match.
12
13 * eshell/esh-mode.el (eshell-handle-ansi-color): Require
14 ansi-color at compile time too.
15
16 * eshell/em-unix.el (eshell/info): Require info at compile time
17 too.
18
19 * w32-fns.el: Require w32-vars.
20
21 * diff-mode.el (diff-refine-hunk): Require smerge-mode at compile
22 time too.
23
12007-10-21 Stefan Monnier <monnier@iro.umontreal.ca> 242007-10-21 Stefan Monnier <monnier@iro.umontreal.ca>
2 25
3 * double.el ([ignore]): Use ignore. 26 * double.el ([ignore]): Use ignore.
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 34b116d92c8..9e9eb81797a 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1686,7 +1686,7 @@ For use in `add-log-current-defun-function'."
1686(defun diff-refine-hunk () 1686(defun diff-refine-hunk ()
1687 "Highlight changes of hunk at point at a finer granularity." 1687 "Highlight changes of hunk at point at a finer granularity."
1688 (interactive) 1688 (interactive)
1689 (require 'smerge-mode) 1689 (eval-and-compile (require 'smerge-mode))
1690 (save-excursion 1690 (save-excursion
1691 (diff-beginning-of-hunk 'try-harder) 1691 (diff-beginning-of-hunk 'try-harder)
1692 (let* ((style (diff-hunk-style)) ;Skips the hunk header as well. 1692 (let* ((style (diff-hunk-style)) ;Skips the hunk header as well.
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index aaad664918f..850d51dcac5 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -175,7 +175,7 @@ Otherwise, Emacs will attempt to use rsh to invoke du on the remote machine."
175 'info arg1' => OTHERWISE goes to top info window and then menu item arg1 175 'info arg1' => OTHERWISE goes to top info window and then menu item arg1
176 'info arg1 arg2' => does action for arg1 (either visit-file or menu-item) and then menu item arg2 176 'info arg1 arg2' => does action for arg1 (either visit-file or menu-item) and then menu item arg2
177 etc." 177 etc."
178 (require 'info) 178 (eval-and-compile (require 'info))
179 (let ((file (cond 179 (let ((file (cond
180 ((not (stringp (car args))) 180 ((not (stringp (car args)))
181 nil) 181 nil)
diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index fd3cfb93996..b8f88981b04 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -1078,7 +1078,7 @@ This function could be in the list `eshell-output-filter-functions'."
1078 1078
1079(defun eshell-handle-ansi-color () 1079(defun eshell-handle-ansi-color ()
1080 "Handle ANSI color codes." 1080 "Handle ANSI color codes."
1081 (require 'ansi-color) 1081 (eval-and-compile (require 'ansi-color))
1082 (ansi-color-apply-on-region eshell-last-output-start 1082 (ansi-color-apply-on-region eshell-last-output-start
1083 eshell-last-output-end)) 1083 eshell-last-output-end))
1084 1084
diff --git a/lisp/obsolete/fast-lock.el b/lisp/obsolete/fast-lock.el
index 569771143e3..dd33fe0b461 100644
--- a/lisp/obsolete/fast-lock.el
+++ b/lisp/obsolete/fast-lock.el
@@ -768,7 +768,7 @@ See `fast-lock-get-face-properties'."
768 768
769;; Functions for XEmacs: 769;; Functions for XEmacs:
770 770
771(when (save-match-data (string-match "XEmacs" (emacs-version))) 771(when (featurep 'xemacs)
772 ;; 772 ;;
773 ;; It would be better to use XEmacs' `map-extents' over extents with a 773 ;; It would be better to use XEmacs' `map-extents' over extents with a
774 ;; `font-lock' property, but `face' properties are on different extents. 774 ;; `font-lock' property, but `face' properties are on different extents.
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."
4035 c-found-types) 4035 c-found-types)
4036 (sort type-list 'string-lessp))) 4036 (sort type-list 'string-lessp)))
4037 4037
4038;; Shut up the byte compiler.
4039(defvar c-maybe-stale-found-type)
4040
4038(defun c-trim-found-types (beg end old-len) 4041(defun c-trim-found-types (beg end old-len)
4039 ;; An after change function which, in conjunction with the info in 4042 ;; An after change function which, in conjunction with the info in
4040 ;; c-maybe-stale-found-type (set in c-before-change), removes a type 4043 ;; 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 @@
72;;; Code: 72;;; Code:
73 73
74(require 'tempo) 74(require 'tempo)
75 75(eval-when-compile (require 'imenu))
76 76
77;;; *** Customization ***************************************************** 77;;; *** Customization *****************************************************
78 78
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.")
106 106
107(defvar gdb-ready nil) 107(defvar gdb-ready nil)
108 108
109(defvar gud-target-name "--unknown--"
110 "The apparent name of the program being debugged in a gud buffer.")
111
109;; Use existing Info buffer, if possible. 112;; Use existing Info buffer, if possible.
110(defun gud-goto-info () 113(defun gud-goto-info ()
111 "Go to relevant Emacs info node." 114 "Go to relevant Emacs info node."
@@ -2451,9 +2454,6 @@ comint mode, which see."
2451 :group 'gud 2454 :group 'gud
2452 :type 'boolean) 2455 :type 'boolean)
2453 2456
2454(defvar gud-target-name "--unknown--"
2455 "The apparent name of the program being debugged in a gud buffer.")
2456
2457;; Perform initializations common to all debuggers. 2457;; Perform initializations common to all debuggers.
2458;; The first arg is the specified command line, 2458;; The first arg is the specified command line,
2459;; which starts with the program to debug. 2459;; which starts with the program to debug.
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index f37b4dcb789..3a3695466fa 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -34,6 +34,7 @@
34;; audio bell initialized. 34;; audio bell initialized.
35 35
36;;; Code: 36;;; Code:
37(require 'w32-vars)
37 38
38(defvar explicit-shell-file-name) 39(defvar explicit-shell-file-name)
39 40