diff options
Diffstat (limited to 'lisp/printing.el')
| -rw-r--r-- | lisp/printing.el | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/lisp/printing.el b/lisp/printing.el index 3efb53111fd..003e6893428 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | 5 | ||
| 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 | ;; Time-stamp: <2004/09/26 22:11:24 vinicius> | 8 | ;; Time-stamp: <2004/11/11 23:54:13 vinicius> |
| 9 | ;; Keywords: wp, print, PostScript | 9 | ;; Keywords: wp, print, PostScript |
| 10 | ;; Version: 6.8.1 | 10 | ;; Version: 6.8.2 |
| 11 | ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ | 11 | ;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ |
| 12 | 12 | ||
| 13 | (defconst pr-version "6.8.1" | 13 | (defconst pr-version "6.8.2" |
| 14 | "printing.el, v 6.8.1 <2004/09/26 vinicius> | 14 | "printing.el, v 6.8.2 <2004/11/11 vinicius> |
| 15 | 15 | ||
| 16 | Please send all bug fixes and enhancements to | 16 | Please send all bug fixes and enhancements to |
| 17 | Vinicius Jose Latorre <viniciusjl@ig.com.br> | 17 | Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| @@ -1099,6 +1099,7 @@ Unless optional argument INPLACE is non-nil, return a new string." | |||
| 1099 | :tag "Printing Utilities" | 1099 | :tag "Printing Utilities" |
| 1100 | :link '(emacs-library-link :tag "Source Lisp File" "printing.el") | 1100 | :link '(emacs-library-link :tag "Source Lisp File" "printing.el") |
| 1101 | :prefix "pr-" | 1101 | :prefix "pr-" |
| 1102 | :version "20" | ||
| 1102 | :group 'wp | 1103 | :group 'wp |
| 1103 | :group 'postscript) | 1104 | :group 'postscript) |
| 1104 | 1105 | ||
| @@ -2474,20 +2475,16 @@ See `pr-ps-printer-alist'.") | |||
| 2474 | 2475 | ||
| 2475 | (eval-and-compile | 2476 | (eval-and-compile |
| 2476 | (defun pr-get-symbol (name) | 2477 | (defun pr-get-symbol (name) |
| 2477 | ;; Recent versions of easy-menu downcase names before interning them. | 2478 | (easy-menu-intern name)) |
| 2478 | (and (fboundp 'easy-menu-name-match) | ||
| 2479 | (setq name (downcase name))) | ||
| 2480 | (or (intern-soft name) | ||
| 2481 | (make-symbol name))) | ||
| 2482 | 2479 | ||
| 2483 | (cond | 2480 | (cond |
| 2484 | ((eq ps-print-emacs-type 'emacs) ; GNU Emacs | 2481 | ((eq ps-print-emacs-type 'emacs) ; GNU Emacs |
| 2485 | (defsubst pr-region-active-p () | 2482 | (defun pr-region-active-p () |
| 2486 | (and pr-auto-region transient-mark-mode mark-active))) | 2483 | (and pr-auto-region transient-mark-mode mark-active))) |
| 2487 | 2484 | ||
| 2488 | ((eq ps-print-emacs-type 'xemacs) ; XEmacs | 2485 | ((eq ps-print-emacs-type 'xemacs) ; XEmacs |
| 2489 | (defvar zmacs-region-stays nil) ; to avoid compilation gripes | 2486 | (defvar zmacs-region-stays nil) ; to avoid compilation gripes |
| 2490 | (defsubst pr-region-active-p () | 2487 | (defun pr-region-active-p () |
| 2491 | (and pr-auto-region (not zmacs-region-stays) (ps-mark-active-p))))) | 2488 | (and pr-auto-region (not zmacs-region-stays) (ps-mark-active-p))))) |
| 2492 | 2489 | ||
| 2493 | 2490 | ||
| @@ -2907,18 +2904,18 @@ See `pr-ps-printer-alist'.") | |||
| 2907 | (pr-get-symbol "Printing"))))) | 2904 | (pr-get-symbol "Printing"))))) |
| 2908 | ;; Emacs 21 | 2905 | ;; Emacs 21 |
| 2909 | (pr-menu-print-item | 2906 | (pr-menu-print-item |
| 2910 | (easy-menu-change '("files") "Print" pr-menu-spec "print-buffer") | 2907 | (easy-menu-change '("file") "Print" pr-menu-spec "print-buffer") |
| 2911 | (let ((items '("print-buffer" "print-region" | 2908 | (let ((items '("print-buffer" "print-region" |
| 2912 | "ps-print-buffer-faces" "ps-print-region-faces" | 2909 | "ps-print-buffer-faces" "ps-print-region-faces" |
| 2913 | "ps-print-buffer" "ps-print-region"))) | 2910 | "ps-print-buffer" "ps-print-region"))) |
| 2914 | (while items | 2911 | (while items |
| 2915 | (easy-menu-remove-item nil '("files") (car items)) | 2912 | (easy-menu-remove-item nil '("file") (car items)) |
| 2916 | (setq items (cdr items))) | 2913 | (setq items (cdr items))) |
| 2917 | (setq pr-menu-print-item nil | 2914 | (setq pr-menu-print-item nil |
| 2918 | pr-menu-bar (vector 'menu-bar 'files | 2915 | pr-menu-bar (vector 'menu-bar 'file |
| 2919 | (pr-get-symbol "Print"))))) | 2916 | (pr-get-symbol "Print"))))) |
| 2920 | (t | 2917 | (t |
| 2921 | (easy-menu-change '("files") "Print" pr-menu-spec))) | 2918 | (easy-menu-change '("file") "Print" pr-menu-spec))) |
| 2922 | 2919 | ||
| 2923 | ;; Key binding | 2920 | ;; Key binding |
| 2924 | (global-set-key [print] 'pr-ps-fast-fire) | 2921 | (global-set-key [print] 'pr-ps-fast-fire) |
| @@ -6385,5 +6382,5 @@ COMMAND.exe, COMMAND.bat and COMMAND.com in this order." | |||
| 6385 | (provide 'printing) | 6382 | (provide 'printing) |
| 6386 | 6383 | ||
| 6387 | 6384 | ||
| 6388 | ;;; arch-tag: 9ce9ac3f-0f60-4370-900b-1943215d9d18 | 6385 | ;; arch-tag: 9ce9ac3f-0f60-4370-900b-1943215d9d18 |
| 6389 | ;;; printing.el ends here | 6386 | ;;; printing.el ends here |