aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2004-11-12 02:14:03 +0000
committerVinicius Jose Latorre2004-11-12 02:14:03 +0000
commite22c7647c7ff33c846132f3d2877ac436b8b47e6 (patch)
tree1c435f58fc41b8b5307bd2dd3d508ee12ff5f0ec
parent60516f7b9dbf4bc12940ddd9f5d23ec8c861eae0 (diff)
downloademacs-e22c7647c7ff33c846132f3d2877ac436b8b47e6.tar.gz
emacs-e22c7647c7ff33c846132f3d2877ac436b8b47e6.zip
fix to use new easymenu
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/printing.el24
2 files changed, 21 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 226b0f86a9d..1496c47a09e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,15 @@
2 2
3 * tooltip.el (require): Explain why CL is needed. 3 * tooltip.el (require): Explain why CL is needed.
4 4
52004-11-11 Vinicius Jose Latorre <viniciusjl@ig.com.br>
6
7 * printing.el: Insert :version into defgroup (printing). All reference
8 to Files option in menubar were changed to File.
9 (pr-version): New version number (6.8.2).
10 (pr-get-symbol): Call easy-menu-intern.
11 (pr-region-active-p): Now is a fun (it was defsubst). To avoid
12 compilation gripes.
13
52004-11-11 Stefan Monnier <monnier@iro.umontreal.ca> 142004-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
6 15
7 * international/iso-cvt.el (iso-cvt-define-menu): Fix typo. 16 * international/iso-cvt.el (iso-cvt-define-menu): Fix typo.
diff --git a/lisp/printing.el b/lisp/printing.el
index f466f33c830..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
16Please send all bug fixes and enhancements to 16Please 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,17 +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 (or (intern-soft name) 2478 (easy-menu-intern name))
2478 (make-symbol name)))
2479 2479
2480 (cond 2480 (cond
2481 ((eq ps-print-emacs-type 'emacs) ; GNU Emacs 2481 ((eq ps-print-emacs-type 'emacs) ; GNU Emacs
2482 (defsubst pr-region-active-p () 2482 (defun pr-region-active-p ()
2483 (and pr-auto-region transient-mark-mode mark-active))) 2483 (and pr-auto-region transient-mark-mode mark-active)))
2484 2484
2485 ((eq ps-print-emacs-type 'xemacs) ; XEmacs 2485 ((eq ps-print-emacs-type 'xemacs) ; XEmacs
2486 (defvar zmacs-region-stays nil) ; to avoid compilation gripes 2486 (defvar zmacs-region-stays nil) ; to avoid compilation gripes
2487 (defsubst pr-region-active-p () 2487 (defun pr-region-active-p ()
2488 (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)))))
2489 2489
2490 2490
@@ -2904,18 +2904,18 @@ See `pr-ps-printer-alist'.")
2904 (pr-get-symbol "Printing"))))) 2904 (pr-get-symbol "Printing")))))
2905 ;; Emacs 21 2905 ;; Emacs 21
2906 (pr-menu-print-item 2906 (pr-menu-print-item
2907 (easy-menu-change '("files") "Print" pr-menu-spec "print-buffer") 2907 (easy-menu-change '("file") "Print" pr-menu-spec "print-buffer")
2908 (let ((items '("print-buffer" "print-region" 2908 (let ((items '("print-buffer" "print-region"
2909 "ps-print-buffer-faces" "ps-print-region-faces" 2909 "ps-print-buffer-faces" "ps-print-region-faces"
2910 "ps-print-buffer" "ps-print-region"))) 2910 "ps-print-buffer" "ps-print-region")))
2911 (while items 2911 (while items
2912 (easy-menu-remove-item nil '("files") (car items)) 2912 (easy-menu-remove-item nil '("file") (car items))
2913 (setq items (cdr items))) 2913 (setq items (cdr items)))
2914 (setq pr-menu-print-item nil 2914 (setq pr-menu-print-item nil
2915 pr-menu-bar (vector 'menu-bar 'files 2915 pr-menu-bar (vector 'menu-bar 'file
2916 (pr-get-symbol "Print"))))) 2916 (pr-get-symbol "Print")))))
2917 (t 2917 (t
2918 (easy-menu-change '("files") "Print" pr-menu-spec))) 2918 (easy-menu-change '("file") "Print" pr-menu-spec)))
2919 2919
2920 ;; Key binding 2920 ;; Key binding
2921 (global-set-key [print] 'pr-ps-fast-fire) 2921 (global-set-key [print] 'pr-ps-fast-fire)