diff options
| author | Dan Nicolaescu | 2007-10-21 00:24:32 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-10-21 00:24:32 +0000 |
| commit | 729f1525da7a8816e655daa51f6f4b2e7d7a043b (patch) | |
| tree | 63be73ceb74026b6c20da50e9a4631f184d2b1f0 | |
| parent | 64b53a1f5a6e4cc53763d3d8879d7509ceae5e6a (diff) | |
| download | emacs-729f1525da7a8816e655daa51f6f4b2e7d7a043b.tar.gz emacs-729f1525da7a8816e655daa51f6f4b2e7d7a043b.zip | |
* textmodes/reftex.el: Move require easymenu before first use.
(reftex-info): Require info at compile too.
* textmodes/org-publish.el (org-publish-org-to-html)
(org-publish-org-to): Require org at compile time too.
(org-publish-attachment): Require at compile time too.
* term/tty-colors.el (w32-tty-standard-colors): Pacify
byte-compiler.
* term/pc-win.el (frame-creation-function-alist): Add to this
instead of setting frame-creation-function.
* play/blackbox.el (bb-up, bb-down): Use forward-line.
* net/rcirc.el (rcirc-markup-text-functions): Move definition
earlier.
* calendar/todo-mode.el: Require calendar at compile time.
* calendar/cal-islam.el: Require diary-lib at compile time.
* calendar/cal-hebrew.el: Require diary-lib and holidays at
compile time.
* w32-vars.el: Provide w32-vars.
* term/w32-win.el: Require w32-vars.
(w32-color-map): Pacify byte-compiler.
* loadup.el: Load w32-wars before term/w32-win.
| -rw-r--r-- | lisp/ChangeLog | 34 | ||||
| -rw-r--r-- | lisp/calendar/cal-hebrew.el | 3 | ||||
| -rw-r--r-- | lisp/calendar/cal-islam.el | 1 | ||||
| -rw-r--r-- | lisp/calendar/todo-mode.el | 3 | ||||
| -rw-r--r-- | lisp/loadup.el | 2 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 28 | ||||
| -rw-r--r-- | lisp/play/blackbox.el | 4 | ||||
| -rw-r--r-- | lisp/term/pc-win.el | 2 | ||||
| -rw-r--r-- | lisp/term/tty-colors.el | 1 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/org-publish.el | 11 | ||||
| -rw-r--r-- | lisp/textmodes/reftex.el | 6 | ||||
| -rw-r--r-- | lisp/w32-vars.el | 1 |
13 files changed, 71 insertions, 27 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 886e8b62f88..d932d49ed9e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,37 @@ | |||
| 1 | 2007-10-21 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * textmodes/reftex.el: Move require easymenu before first use. | ||
| 4 | (reftex-info): Require info at compile too. | ||
| 5 | |||
| 6 | * textmodes/org-publish.el (org-publish-org-to-html) | ||
| 7 | (org-publish-org-to): Require org at compile time too. | ||
| 8 | (org-publish-attachment): Require at compile time too. | ||
| 9 | |||
| 10 | * term/tty-colors.el (w32-tty-standard-colors): Pacify | ||
| 11 | byte-compiler. | ||
| 12 | |||
| 13 | * term/pc-win.el (frame-creation-function-alist): Add to this | ||
| 14 | instead of setting frame-creation-function. | ||
| 15 | |||
| 16 | * play/blackbox.el (bb-up, bb-down): Use forward-line. | ||
| 17 | |||
| 18 | * net/rcirc.el (rcirc-markup-text-functions): Move definition | ||
| 19 | earlier. | ||
| 20 | |||
| 21 | * calendar/todo-mode.el: Require calendar at compile time. | ||
| 22 | |||
| 23 | * calendar/cal-islam.el: Require diary-lib at compile time. | ||
| 24 | |||
| 25 | * calendar/cal-hebrew.el: Require diary-lib and holidays at | ||
| 26 | compile time. | ||
| 27 | |||
| 28 | * w32-vars.el: Provide w32-vars. | ||
| 29 | |||
| 30 | * term/w32-win.el: Require w32-vars. | ||
| 31 | (w32-color-map): Pacify byte-compiler. | ||
| 32 | |||
| 33 | * loadup.el: Load w32-wars before term/w32-win. | ||
| 34 | |||
| 1 | 2007-10-20 Juri Linkov <juri@jurta.org> | 35 | 2007-10-20 Juri Linkov <juri@jurta.org> |
| 2 | 36 | ||
| 3 | * textmodes/fill.el (fill-paragraph): When the region is active, | 37 | * textmodes/fill.el (fill-paragraph): When the region is active, |
diff --git a/lisp/calendar/cal-hebrew.el b/lisp/calendar/cal-hebrew.el index 02cc9bfabb2..5bc61dcbcc3 100644 --- a/lisp/calendar/cal-hebrew.el +++ b/lisp/calendar/cal-hebrew.el | |||
| @@ -45,6 +45,9 @@ | |||
| 45 | (defvar original-date) | 45 | (defvar original-date) |
| 46 | 46 | ||
| 47 | (require 'calendar) | 47 | (require 'calendar) |
| 48 | (eval-when-compile | ||
| 49 | (require 'diary-lib) | ||
| 50 | (require 'holidays)) | ||
| 48 | 51 | ||
| 49 | (defun hebrew-calendar-leap-year-p (year) | 52 | (defun hebrew-calendar-leap-year-p (year) |
| 50 | "t if YEAR is a Hebrew calendar leap year." | 53 | "t if YEAR is a Hebrew calendar leap year." |
diff --git a/lisp/calendar/cal-islam.el b/lisp/calendar/cal-islam.el index c562437fc14..da1ed6fc147 100644 --- a/lisp/calendar/cal-islam.el +++ b/lisp/calendar/cal-islam.el | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | (defvar original-date) | 43 | (defvar original-date) |
| 44 | 44 | ||
| 45 | (require 'cal-julian) | 45 | (require 'cal-julian) |
| 46 | (eval-when-compile (require 'diary-lib)) | ||
| 46 | 47 | ||
| 47 | (defvar calendar-islamic-month-name-array | 48 | (defvar calendar-islamic-month-name-array |
| 48 | ["Muharram" "Safar" "Rabi I" "Rabi II" "Jumada I" "Jumada II" | 49 | ["Muharram" "Safar" "Rabi I" "Rabi II" "Jumada I" "Jumada II" |
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 13ef042f736..5a0a0a45049 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -914,7 +914,8 @@ Number of entries for each category is given by `todo-print-priorities'." | |||
| 914 | 914 | ||
| 915 | (eval-when-compile | 915 | (eval-when-compile |
| 916 | (defvar date) | 916 | (defvar date) |
| 917 | (defvar entry)) | 917 | (defvar entry) |
| 918 | (require 'calendar)) | ||
| 918 | 919 | ||
| 919 | ;; Read about this function in the setup instructions above! | 920 | ;; Read about this function in the setup instructions above! |
| 920 | ;;;###autoload | 921 | ;;;###autoload |
diff --git a/lisp/loadup.el b/lisp/loadup.el index d015f6a1c6d..3bf021b017f 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -194,11 +194,11 @@ | |||
| 194 | (progn | 194 | (progn |
| 195 | (load "international/ccl") | 195 | (load "international/ccl") |
| 196 | (load "international/code-pages") | 196 | (load "international/code-pages") |
| 197 | (load "w32-vars") | ||
| 197 | (load "term/w32-win") | 198 | (load "term/w32-win") |
| 198 | (load "ls-lisp") | 199 | (load "ls-lisp") |
| 199 | (load "disp-table") ; needed to setup ibm-pc char set, see internal.el | 200 | (load "disp-table") ; needed to setup ibm-pc char set, see internal.el |
| 200 | (load "dos-w32") | 201 | (load "dos-w32") |
| 201 | (load "w32-vars") | ||
| 202 | (load "w32-fns"))) | 202 | (load "w32-fns"))) |
| 203 | (if (eq system-type 'ms-dos) | 203 | (if (eq system-type 'ms-dos) |
| 204 | (progn | 204 | (progn |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 14fda445e45..b2ad08d7ccd 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -1281,6 +1281,20 @@ Logfiles are kept in `rcirc-log-directory'." | |||
| 1281 | :type 'boolean | 1281 | :type 'boolean |
| 1282 | :group 'rcirc) | 1282 | :group 'rcirc) |
| 1283 | 1283 | ||
| 1284 | (defvar rcirc-markup-text-functions | ||
| 1285 | '(rcirc-markup-attributes | ||
| 1286 | rcirc-markup-my-nick | ||
| 1287 | rcirc-markup-urls | ||
| 1288 | rcirc-markup-keywords | ||
| 1289 | rcirc-markup-bright-nicks | ||
| 1290 | rcirc-markup-fill) | ||
| 1291 | |||
| 1292 | "List of functions used to manipulate text before it is printed. | ||
| 1293 | |||
| 1294 | Each function takes two arguments, SENDER, RESPONSE. The buffer | ||
| 1295 | is narrowed with the text to be printed and the point is at the | ||
| 1296 | beginning of the `rcirc-text' propertized text.") | ||
| 1297 | |||
| 1284 | (defun rcirc-print (process sender response target text &optional activity) | 1298 | (defun rcirc-print (process sender response target text &optional activity) |
| 1285 | "Print TEXT in the buffer associated with TARGET. | 1299 | "Print TEXT in the buffer associated with TARGET. |
| 1286 | Format based on SENDER and RESPONSE. If ACTIVITY is non-nil, | 1300 | Format based on SENDER and RESPONSE. If ACTIVITY is non-nil, |
| @@ -2083,20 +2097,6 @@ keywords when no KEYWORD is given." | |||
| 2083 | (rcirc-browse-url-at-point (posn-point position))))) | 2097 | (rcirc-browse-url-at-point (posn-point position))))) |
| 2084 | 2098 | ||
| 2085 | 2099 | ||
| 2086 | (defvar rcirc-markup-text-functions | ||
| 2087 | '(rcirc-markup-attributes | ||
| 2088 | rcirc-markup-my-nick | ||
| 2089 | rcirc-markup-urls | ||
| 2090 | rcirc-markup-keywords | ||
| 2091 | rcirc-markup-bright-nicks | ||
| 2092 | rcirc-markup-fill) | ||
| 2093 | |||
| 2094 | "List of functions used to manipulate text before it is printed. | ||
| 2095 | |||
| 2096 | Each function takes two arguments, SENDER, RESPONSE. The buffer | ||
| 2097 | is narrowed with the text to be printed and the point is at the | ||
| 2098 | beginning of the `rcirc-text' propertized text.") | ||
| 2099 | |||
| 2100 | (defun rcirc-markup-timestamp (sender response) | 2100 | (defun rcirc-markup-timestamp (sender response) |
| 2101 | (goto-char (point-min)) | 2101 | (goto-char (point-min)) |
| 2102 | (insert (rcirc-facify (format-time-string rcirc-time-format) | 2102 | (insert (rcirc-facify (format-time-string rcirc-time-format) |
diff --git a/lisp/play/blackbox.el b/lisp/play/blackbox.el index f21a4458665..699aa91abcf 100644 --- a/lisp/play/blackbox.el +++ b/lisp/play/blackbox.el | |||
| @@ -296,14 +296,14 @@ a reflection." | |||
| 296 | (defun bb-up (count) | 296 | (defun bb-up (count) |
| 297 | (interactive "p") | 297 | (interactive "p") |
| 298 | (while (and (> count 0) (> bb-y -1)) | 298 | (while (and (> count 0) (> bb-y -1)) |
| 299 | (previous-line 1) | 299 | (forward-line -1) |
| 300 | (setq bb-y (1- bb-y)) | 300 | (setq bb-y (1- bb-y)) |
| 301 | (setq count (1- count)))) | 301 | (setq count (1- count)))) |
| 302 | 302 | ||
| 303 | (defun bb-down (count) | 303 | (defun bb-down (count) |
| 304 | (interactive "p") | 304 | (interactive "p") |
| 305 | (while (and (> count 0) (< bb-y 8)) | 305 | (while (and (> count 0) (< bb-y 8)) |
| 306 | (next-line 1) | 306 | (forward-line 1) |
| 307 | (setq bb-y (1+ bb-y)) | 307 | (setq bb-y (1+ bb-y)) |
| 308 | (setq count (1- count)))) | 308 | (setq count (1- count)))) |
| 309 | 309 | ||
diff --git a/lisp/term/pc-win.el b/lisp/term/pc-win.el index ca85e824caa..ecbda7d9c1e 100644 --- a/lisp/term/pc-win.el +++ b/lisp/term/pc-win.el | |||
| @@ -130,7 +130,7 @@ | |||
| 130 | (unless success (delete-frame frame))) | 130 | (unless success (delete-frame frame))) |
| 131 | frame)) | 131 | frame)) |
| 132 | 132 | ||
| 133 | (setq frame-creation-function 'make-msdos-frame) | 133 | (add-to-list 'frame-creation-function-alist '(pc . make-msdos-frame)) |
| 134 | 134 | ||
| 135 | ;; --------------------------------------------------------------------------- | 135 | ;; --------------------------------------------------------------------------- |
| 136 | ;; More or less useful imitations of certain X-functions. A lot of the | 136 | ;; More or less useful imitations of certain X-functions. A lot of the |
diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el index 18b07fafc3a..70323e3155b 100644 --- a/lisp/term/tty-colors.el +++ b/lisp/term/tty-colors.el | |||
| @@ -63,6 +63,7 @@ | |||
| 63 | ;;; Code: | 63 | ;;; Code: |
| 64 | 64 | ||
| 65 | (defvar msdos-color-values) | 65 | (defvar msdos-color-values) |
| 66 | (defvar w32-tty-standard-colors) | ||
| 66 | 67 | ||
| 67 | ;; The following list is taken from rgb.txt distributed with X. | 68 | ;; The following list is taken from rgb.txt distributed with X. |
| 68 | ;; | 69 | ;; |
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 51a25482be7..6a2ea13be38 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -79,12 +79,14 @@ | |||
| 79 | (require 'menu-bar) | 79 | (require 'menu-bar) |
| 80 | (require 'dnd) | 80 | (require 'dnd) |
| 81 | (require 'code-pages) | 81 | (require 'code-pages) |
| 82 | (require 'w32-vars) | ||
| 82 | 83 | ||
| 83 | ;; Keep an obsolete alias for w32-focus-frame in case it is used by code | 84 | ;; Keep an obsolete alias for w32-focus-frame in case it is used by code |
| 84 | ;; outside Emacs. | 85 | ;; outside Emacs. |
| 85 | (define-obsolete-function-alias 'w32-focus-frame 'x-focus-frame "23.1") | 86 | (define-obsolete-function-alias 'w32-focus-frame 'x-focus-frame "23.1") |
| 86 | 87 | ||
| 87 | (defvar xlfd-regexp-registry-subnum) | 88 | (defvar xlfd-regexp-registry-subnum) |
| 89 | (defvar w32-color-map) ;; defined in w32fns.c | ||
| 88 | 90 | ||
| 89 | ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles | 91 | ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles |
| 90 | (if (fboundp 'new-fontset) | 92 | (if (fboundp 'new-fontset) |
diff --git a/lisp/textmodes/org-publish.el b/lisp/textmodes/org-publish.el index bc45a7d9941..77b69a1f5a8 100644 --- a/lisp/textmodes/org-publish.el +++ b/lisp/textmodes/org-publish.el | |||
| @@ -443,7 +443,7 @@ nil if not found." | |||
| 443 | "Publish an org file to HTML. | 443 | "Publish an org file to HTML. |
| 444 | PLIST is the property list for the given project. | 444 | PLIST is the property list for the given project. |
| 445 | FILENAME is the filename of the org file to be published." | 445 | FILENAME is the filename of the org file to be published." |
| 446 | (require 'org) | 446 | (eval-and-compile (require 'org)) |
| 447 | (let* ((arg (plist-get plist :headline-levels))) | 447 | (let* ((arg (plist-get plist :headline-levels))) |
| 448 | (progn | 448 | (progn |
| 449 | (find-file filename) | 449 | (find-file filename) |
| @@ -464,7 +464,7 @@ FILENAME is the filename of the org file to be published." | |||
| 464 | "Publish an org file to FORMAT. | 464 | "Publish an org file to FORMAT. |
| 465 | PLIST is the property list for the given project. | 465 | PLIST is the property list for the given project. |
| 466 | FILENAME is the filename of the org file to be published." | 466 | FILENAME is the filename of the org file to be published." |
| 467 | (require 'org) | 467 | (eval-and-compile (require 'org)) |
| 468 | (let* ((arg (plist-get plist :headline-levels))) | 468 | (let* ((arg (plist-get plist :headline-levels))) |
| 469 | (progn | 469 | (progn |
| 470 | (find-file filename) | 470 | (find-file filename) |
| @@ -478,9 +478,10 @@ FILENAME is the filename of the org file to be published." | |||
| 478 | PLIST is the property list for the given project. | 478 | PLIST is the property list for the given project. |
| 479 | FILENAME is the filename of the file to be published." | 479 | FILENAME is the filename of the file to be published." |
| 480 | ;; make sure eshell/cp code is loaded | 480 | ;; make sure eshell/cp code is loaded |
| 481 | (require 'eshell) | 481 | (eval-and-compile |
| 482 | (require 'esh-maint) | 482 | (require 'eshell) |
| 483 | (require 'em-unix) | 483 | (require 'esh-maint) |
| 484 | (require 'em-unix)) | ||
| 484 | (let ((destination (file-name-as-directory (plist-get plist :publishing-directory)))) | 485 | (let ((destination (file-name-as-directory (plist-get plist :publishing-directory)))) |
| 485 | (eshell/cp filename destination))) | 486 | (eshell/cp filename destination))) |
| 486 | 487 | ||
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 519faded548..0c1beb17763 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -281,6 +281,8 @@ | |||
| 281 | ;; Stuff that needs to be there when we use defcustom | 281 | ;; Stuff that needs to be there when we use defcustom |
| 282 | (require 'custom) | 282 | (require 'custom) |
| 283 | 283 | ||
| 284 | (require 'easymenu) | ||
| 285 | |||
| 284 | (defvar reftex-tables-dirty t | 286 | (defvar reftex-tables-dirty t |
| 285 | "Flag showing if tables need to be re-computed.") | 287 | "Flag showing if tables need to be re-computed.") |
| 286 | 288 | ||
| @@ -2425,8 +2427,6 @@ IGNORE-WORDS List of words which should be removed from the string." | |||
| 2425 | (defvar reftex-isearch-minor-mode nil) | 2427 | (defvar reftex-isearch-minor-mode nil) |
| 2426 | (make-variable-buffer-local 'reftex-isearch-minor-mode) | 2428 | (make-variable-buffer-local 'reftex-isearch-minor-mode) |
| 2427 | 2429 | ||
| 2428 | (require 'easymenu) | ||
| 2429 | |||
| 2430 | (easy-menu-define reftex-mode-menu reftex-mode-map | 2430 | (easy-menu-define reftex-mode-menu reftex-mode-map |
| 2431 | "Menu used in RefTeX mode" | 2431 | "Menu used in RefTeX mode" |
| 2432 | `("Ref" | 2432 | `("Ref" |
| @@ -2583,7 +2583,7 @@ IGNORE-WORDS List of words which should be removed from the string." | |||
| 2583 | "Read documentation for RefTeX in the info system. | 2583 | "Read documentation for RefTeX in the info system. |
| 2584 | With optional NODE, go directly to that node." | 2584 | With optional NODE, go directly to that node." |
| 2585 | (interactive) | 2585 | (interactive) |
| 2586 | (require 'info) | 2586 | (eval-and-compile (require 'info)) |
| 2587 | (Info-goto-node (format "(reftex)%s" (or node "")))) | 2587 | (Info-goto-node (format "(reftex)%s" (or node "")))) |
| 2588 | 2588 | ||
| 2589 | ;;; Install the kill-buffer and kill-emacs hooks ------------------------------ | 2589 | ;;; Install the kill-buffer and kill-emacs hooks ------------------------------ |
diff --git a/lisp/w32-vars.el b/lisp/w32-vars.el index 5eaac3ac3cb..d907f6bcf42 100644 --- a/lisp/w32-vars.el +++ b/lisp/w32-vars.el | |||
| @@ -155,6 +155,7 @@ This is in addition to the primary selection." | |||
| 155 | :type 'boolean | 155 | :type 'boolean |
| 156 | :group 'killing) | 156 | :group 'killing) |
| 157 | 157 | ||
| 158 | (provide 'w32-vars) | ||
| 158 | 159 | ||
| 159 | ;;; arch-tag: ee2394fb-9db7-4c15-a8f0-66b47f4a2bb1 | 160 | ;;; arch-tag: ee2394fb-9db7-4c15-a8f0-66b47f4a2bb1 |
| 160 | ;;; w32-vars.el ends here | 161 | ;;; w32-vars.el ends here |