diff options
| author | Vinicius Jose Latorre | 2007-08-03 13:53:03 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-08-03 13:53:03 +0000 |
| commit | e418ca84688c6e48343bf8952bf2e70a6fd19dfb (patch) | |
| tree | d2a1ba4ac71c4270171ad5ff90173656ee1eb72d | |
| parent | cd4a9dc128ebd8e126483274bfdea88e1ffb250a (diff) | |
| download | emacs-e418ca84688c6e48343bf8952bf2e70a6fd19dfb.tar.gz emacs-e418ca84688c6e48343bf8952bf2e70a6fd19dfb.zip | |
Evaluate require only during compilation
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/printing.el | 23 |
2 files changed, 20 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8d35fa06ac5..05dfd642365 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2007-08-03 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * printing.el: Evaluate require only during compilation. | ||
| 4 | (pr-version): New version 6.9.1. | ||
| 5 | (deactivate-mark): Replace (defvar VAR nil) by (defvar VAR). | ||
| 6 | (pr-global-menubar): Fix code. | ||
| 7 | |||
| 1 | 2007-08-03 Jay Belanger <jay.p.belanger@gmail.com> | 8 | 2007-08-03 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 9 | ||
| 3 | * calc/calc-ext.el (math-get-value,math-get-sdev) | 10 | * calc/calc-ext.el (math-get-value,math-get-sdev) |
diff --git a/lisp/printing.el b/lisp/printing.el index 7b45d166aa3..98cb442ed00 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -6,11 +6,11 @@ | |||
| 6 | ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> | 6 | ;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 7 | ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> | 7 | ;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 8 | ;; Keywords: wp, print, PostScript | 8 | ;; Keywords: wp, print, PostScript |
| 9 | ;; Version: 6.9 | 9 | ;; Version: 6.9.1 |
| 10 | ;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre | 10 | ;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre |
| 11 | 11 | ||
| 12 | (defconst pr-version "6.9" | 12 | (defconst pr-version "6.9.1" |
| 13 | "printing.el, v 6.9 <2007/02/11 vinicius> | 13 | "printing.el, v 6.9.1 <2007/08/02 vinicius> |
| 14 | 14 | ||
| 15 | Please send all bug fixes and enhancements to | 15 | Please send all bug fixes and enhancements to |
| 16 | Vinicius Jose Latorre <viniciusjl@ig.com.br> | 16 | Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| @@ -1025,8 +1025,9 @@ Please send all bug fixes and enhancements to | |||
| 1025 | ;;; Code: | 1025 | ;;; Code: |
| 1026 | 1026 | ||
| 1027 | 1027 | ||
| 1028 | (require 'lpr) | 1028 | (eval-when-compile |
| 1029 | (require 'ps-print) | 1029 | (require 'lpr) |
| 1030 | (require 'ps-print)) | ||
| 1030 | 1031 | ||
| 1031 | 1032 | ||
| 1032 | (and (string< ps-print-version "6.6.4") | 1033 | (and (string< ps-print-version "6.6.4") |
| @@ -1306,7 +1307,7 @@ If SUFFIX is non-nil, add that at the end of the file name." | |||
| 1306 | (defalias 'pr-f-read-string 'read-string) | 1307 | (defalias 'pr-f-read-string 'read-string) |
| 1307 | 1308 | ||
| 1308 | ;; GNU Emacs | 1309 | ;; GNU Emacs |
| 1309 | (defvar deactivate-mark nil) | 1310 | (defvar deactivate-mark) |
| 1310 | 1311 | ||
| 1311 | ;; GNU Emacs | 1312 | ;; GNU Emacs |
| 1312 | (defun pr-keep-region-active () | 1313 | (defun pr-keep-region-active () |
| @@ -1326,7 +1327,6 @@ If SUFFIX is non-nil, add that at the end of the file name." | |||
| 1326 | 1327 | ||
| 1327 | ;; GNU Emacs | 1328 | ;; GNU Emacs |
| 1328 | ;; Menu binding | 1329 | ;; Menu binding |
| 1329 | (require 'easymenu) | ||
| 1330 | ;; Replace existing "print" item by "Printing" item. | 1330 | ;; Replace existing "print" item by "Printing" item. |
| 1331 | ;; If you're changing this file, you'll load it a second, | 1331 | ;; If you're changing this file, you'll load it a second, |
| 1332 | ;; third... time, but "print" item exists only in the first load. | 1332 | ;; third... time, but "print" item exists only in the first load. |
| @@ -1335,6 +1335,7 @@ If SUFFIX is non-nil, add that at the end of the file name." | |||
| 1335 | ;; GNU Emacs 20 | 1335 | ;; GNU Emacs 20 |
| 1336 | ((< emacs-major-version 21) | 1336 | ((< emacs-major-version 21) |
| 1337 | (defun pr-global-menubar (pr-menu-spec) | 1337 | (defun pr-global-menubar (pr-menu-spec) |
| 1338 | (require 'easymenu) | ||
| 1338 | (easy-menu-change '("tools") "Printing" pr-menu-spec pr-menu-print-item) | 1339 | (easy-menu-change '("tools") "Printing" pr-menu-spec pr-menu-print-item) |
| 1339 | (when pr-menu-print-item | 1340 | (when pr-menu-print-item |
| 1340 | (easy-menu-remove-item nil '("tools") pr-menu-print-item) | 1341 | (easy-menu-remove-item nil '("tools") pr-menu-print-item) |
| @@ -1345,6 +1346,7 @@ If SUFFIX is non-nil, add that at the end of the file name." | |||
| 1345 | ;; GNU Emacs 21 & 22 | 1346 | ;; GNU Emacs 21 & 22 |
| 1346 | (t | 1347 | (t |
| 1347 | (defun pr-global-menubar (pr-menu-spec) | 1348 | (defun pr-global-menubar (pr-menu-spec) |
| 1349 | (require 'easymenu) | ||
| 1348 | (let ((menu-file (if (= emacs-major-version 21) | 1350 | (let ((menu-file (if (= emacs-major-version 21) |
| 1349 | '("menu-bar" "files") ; GNU Emacs 21 | 1351 | '("menu-bar" "files") ; GNU Emacs 21 |
| 1350 | '("menu-bar" "file")))) ; GNU Emacs 22 or higher | 1352 | '("menu-bar" "file")))) ; GNU Emacs 22 or higher |
| @@ -6017,9 +6019,10 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order." | |||
| 6017 | ;; Printing Interface (inspired on ps-print-interface.el) | 6019 | ;; Printing Interface (inspired on ps-print-interface.el) |
| 6018 | 6020 | ||
| 6019 | 6021 | ||
| 6020 | (require 'widget) | 6022 | (eval-when-compile |
| 6021 | (require 'wid-edit) | 6023 | (require 'cus-edit) |
| 6022 | (require 'cus-edit) | 6024 | (require 'wid-edit) |
| 6025 | (require 'widget)) | ||
| 6023 | 6026 | ||
| 6024 | 6027 | ||
| 6025 | (defvar pr-i-window-configuration nil) | 6028 | (defvar pr-i-window-configuration nil) |