diff options
| author | Vinicius Jose Latorre | 2004-11-14 16:50:37 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2004-11-14 16:50:37 +0000 |
| commit | bf490c7bb653169ac63d94847c713861bedcfcf4 (patch) | |
| tree | f403d817660c9cedbfec03e6bd1f4fa4392dee9a | |
| parent | ef614e04c32f6b7f4e17bc3203bb0f809097a6f8 (diff) | |
| download | emacs-bf490c7bb653169ac63d94847c713861bedcfcf4.tar.gz emacs-bf490c7bb653169ac63d94847c713861bedcfcf4.zip | |
adjust pr-menu-spec
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/printing.el | 103 |
2 files changed, 65 insertions, 42 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fac44631653..ba398122616 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-11-14 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * printing.el (pr-menu-spec): Adjust menu specification. | ||
| 4 | |||
| 1 | 2004-11-13 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 5 | 2004-11-13 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 6 | ||
| 3 | * printing.el: Doc fix. Insert :version tag into all defcustom. | 7 | * printing.el: Doc fix. Insert :version tag into all defcustom. |
diff --git a/lisp/printing.el b/lisp/printing.el index 2095ca58c2c..07b641139c4 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/11/13 21:36:38 vinicius> | 8 | ;; Time-stamp: <2004/11/14 14:38:36 vinicius> |
| 9 | ;; Keywords: wp, print, PostScript | 9 | ;; Keywords: wp, print, PostScript |
| 10 | ;; Version: 6.8.3 | 10 | ;; Version: 6.8.3 |
| 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.3" | 13 | (defconst pr-version "6.8.3" |
| 14 | "printing.el, v 6.8.3 <2004/11/13 vinicius> | 14 | "printing.el, v 6.8.3 <2004/11/14 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> |
| @@ -2578,26 +2578,24 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2578 | 2578 | ||
| 2579 | (defconst pr-menu-spec | 2579 | (defconst pr-menu-spec |
| 2580 | ;; Menu mapping: | 2580 | ;; Menu mapping: |
| 2581 | ;; unfortunately XEmacs doesn't support :active or :visible | 2581 | ;; unfortunately XEmacs doesn't support :active for submenus, |
| 2582 | ;; for submenus, only for items. | 2582 | ;; only for items. |
| 2583 | ;; It uses :included instead of :active or :visible. | 2583 | ;; So, it uses :included instead of :active. |
| 2584 | ;; Also, XEmacs doesn't support :help tag. | 2584 | ;; Also, XEmacs doesn't support :help tag. |
| 2585 | (let ((pr-:active (if (eq ps-print-emacs-type 'emacs) | 2585 | (let ((pr-:active (if (eq ps-print-emacs-type 'emacs) |
| 2586 | :active ; GNU Emacs | 2586 | :active ; GNU Emacs |
| 2587 | :included)) ; XEmacs | 2587 | :included)) ; XEmacs |
| 2588 | (pr-:visible (if (eq ps-print-emacs-type 'emacs) | 2588 | (pr-:help (if (eq ps-print-emacs-type 'emacs) |
| 2589 | :visible ; GNU Emacs | 2589 | #'(lambda (text) (list :help text)) ; GNU Emacs |
| 2590 | :included)) ; XEmacs | 2590 | 'ignore))) ; XEmacs |
| 2591 | pr-:help) | ||
| 2592 | (if (eq ps-print-emacs-type 'emacs) | ||
| 2593 | (defalias 'pr-:help #'(lambda (text) (list :help text))) ; GNU Emacs | ||
| 2594 | (defalias 'pr-:help 'ignore)) ; XEmacs | ||
| 2595 | `( | 2591 | `( |
| 2596 | ["Printing Interface" pr-interface | 2592 | ["Printing Interface" pr-interface |
| 2597 | ,@(pr-:help "Use buffer interface instead of menu interface")] | 2593 | ,@(funcall |
| 2594 | pr-:help "Use buffer interface instead of menu interface")] | ||
| 2598 | "--" | 2595 | "--" |
| 2599 | ("PostScript Preview" ,pr-:visible (pr-visible-p 'postscript) | 2596 | ("PostScript Preview" :included (pr-visible-p 'postscript) |
| 2600 | ,@(pr-:help "Preview PostScript instead of sending to printer") | 2597 | ,@(funcall |
| 2598 | pr-:help "Preview PostScript instead of sending to printer") | ||
| 2601 | ("Directory" ,pr-:active (not pr-spool-p) | 2599 | ("Directory" ,pr-:active (not pr-spool-p) |
| 2602 | ["1-up" (pr-ps-directory-preview 1 nil nil t) t] | 2600 | ["1-up" (pr-ps-directory-preview 1 nil nil t) t] |
| 2603 | ["2-up" (pr-ps-directory-preview 2 nil nil t) t] | 2601 | ["2-up" (pr-ps-directory-preview 2 nil nil t) t] |
| @@ -2625,10 +2623,12 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2625 | ("File" | 2623 | ("File" |
| 2626 | ["No Preprocessing..." (call-interactively 'pr-ps-file-preview) | 2624 | ["No Preprocessing..." (call-interactively 'pr-ps-file-preview) |
| 2627 | :keys "\\[pr-ps-file-preview]" | 2625 | :keys "\\[pr-ps-file-preview]" |
| 2628 | ,@(pr-:help "Preview PostScript file")] | 2626 | ,@(funcall |
| 2627 | pr-:help "Preview PostScript file")] | ||
| 2629 | "--" | 2628 | "--" |
| 2630 | ["PostScript Utility" pr-update-menus :active pr-ps-utility-alist | 2629 | ["PostScript Utility" pr-update-menus :active pr-ps-utility-alist |
| 2631 | ,@(pr-:help "Select PostScript utility")] | 2630 | ,@(funcall |
| 2631 | pr-:help "Select PostScript utility")] | ||
| 2632 | "--" | 2632 | "--" |
| 2633 | ["1-up..." (pr-ps-file-up-preview 1 t t) pr-ps-utility-alist] | 2633 | ["1-up..." (pr-ps-file-up-preview 1 t t) pr-ps-utility-alist] |
| 2634 | ["2-up..." (pr-ps-file-up-preview 2 t t) pr-ps-utility-alist] | 2634 | ["2-up..." (pr-ps-file-up-preview 2 t t) pr-ps-utility-alist] |
| @@ -2638,21 +2638,26 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2638 | "--" | 2638 | "--" |
| 2639 | ["Landscape" pr-toggle-file-landscape | 2639 | ["Landscape" pr-toggle-file-landscape |
| 2640 | :style toggle :selected pr-file-landscape | 2640 | :style toggle :selected pr-file-landscape |
| 2641 | ,@(pr-:help "Toggle landscape for PostScript file") | 2641 | ,@(funcall |
| 2642 | pr-:help "Toggle landscape for PostScript file") | ||
| 2642 | :active pr-ps-utility-alist] | 2643 | :active pr-ps-utility-alist] |
| 2643 | ["Duplex" pr-toggle-file-duplex | 2644 | ["Duplex" pr-toggle-file-duplex |
| 2644 | :style toggle :selected pr-file-duplex | 2645 | :style toggle :selected pr-file-duplex |
| 2645 | ,@(pr-:help "Toggle duplex for PostScript file") | 2646 | ,@(funcall |
| 2647 | pr-:help "Toggle duplex for PostScript file") | ||
| 2646 | :active pr-ps-utility-alist] | 2648 | :active pr-ps-utility-alist] |
| 2647 | ["Tumble" pr-toggle-file-tumble | 2649 | ["Tumble" pr-toggle-file-tumble |
| 2648 | :style toggle :selected pr-file-tumble | 2650 | :style toggle :selected pr-file-tumble |
| 2649 | ,@(pr-:help "Toggle tumble for PostScript file") | 2651 | ,@(funcall |
| 2652 | pr-:help "Toggle tumble for PostScript file") | ||
| 2650 | :active (and pr-file-duplex pr-ps-utility-alist)]) | 2653 | :active (and pr-file-duplex pr-ps-utility-alist)]) |
| 2651 | ["Despool..." (call-interactively 'pr-despool-preview) | 2654 | ["Despool..." (call-interactively 'pr-despool-preview) |
| 2652 | :active pr-spool-p :keys "\\[pr-despool-preview]" | 2655 | :active pr-spool-p :keys "\\[pr-despool-preview]" |
| 2653 | ,@(pr-:help "Despool PostScript buffer to printer or file (C-u)")]) | 2656 | ,@(funcall |
| 2654 | ("PostScript Print" ,pr-:visible (pr-visible-p 'postscript) | 2657 | pr-:help "Despool PostScript buffer to printer or file (C-u)")]) |
| 2655 | ,@(pr-:help "Send PostScript to printer or file (C-u)") | 2658 | ("PostScript Print" :included (pr-visible-p 'postscript) |
| 2659 | ,@(funcall | ||
| 2660 | pr-:help "Send PostScript to printer or file (C-u)") | ||
| 2656 | ("Directory" | 2661 | ("Directory" |
| 2657 | ["1-up" (pr-ps-directory-ps-print 1 nil nil t) t] | 2662 | ["1-up" (pr-ps-directory-ps-print 1 nil nil t) t] |
| 2658 | ["2-up" (pr-ps-directory-ps-print 2 nil nil t) t] | 2663 | ["2-up" (pr-ps-directory-ps-print 2 nil nil t) t] |
| @@ -2680,10 +2685,12 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2680 | ("File" | 2685 | ("File" |
| 2681 | ["No Preprocessing..." (call-interactively 'pr-ps-file-ps-print) | 2686 | ["No Preprocessing..." (call-interactively 'pr-ps-file-ps-print) |
| 2682 | :keys "\\[pr-ps-file-ps-print]" | 2687 | :keys "\\[pr-ps-file-ps-print]" |
| 2683 | ,@(pr-:help "Send PostScript file to printer")] | 2688 | ,@(funcall |
| 2689 | pr-:help "Send PostScript file to printer")] | ||
| 2684 | "--" | 2690 | "--" |
| 2685 | ["PostScript Utility" pr-update-menus :active pr-ps-utility-alist | 2691 | ["PostScript Utility" pr-update-menus :active pr-ps-utility-alist |
| 2686 | ,@(pr-:help "Select PostScript utility")] | 2692 | ,@(funcall |
| 2693 | pr-:help "Select PostScript utility")] | ||
| 2687 | "--" | 2694 | "--" |
| 2688 | ["1-up..." (pr-ps-file-up-ps-print 1 t t) pr-ps-utility-alist] | 2695 | ["1-up..." (pr-ps-file-up-ps-print 1 t t) pr-ps-utility-alist] |
| 2689 | ["2-up..." (pr-ps-file-up-ps-print 2 t t) pr-ps-utility-alist] | 2696 | ["2-up..." (pr-ps-file-up-ps-print 2 t t) pr-ps-utility-alist] |
| @@ -2693,38 +2700,46 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2693 | "--" | 2700 | "--" |
| 2694 | ["Landscape" pr-toggle-file-landscape | 2701 | ["Landscape" pr-toggle-file-landscape |
| 2695 | :style toggle :selected pr-file-landscape | 2702 | :style toggle :selected pr-file-landscape |
| 2696 | ,@(pr-:help "Toggle landscape for PostScript file") | 2703 | ,@(funcall |
| 2704 | pr-:help "Toggle landscape for PostScript file") | ||
| 2697 | :active pr-ps-utility-alist] | 2705 | :active pr-ps-utility-alist] |
| 2698 | ["Duplex" pr-toggle-file-duplex | 2706 | ["Duplex" pr-toggle-file-duplex |
| 2699 | :style toggle :selected pr-file-duplex | 2707 | :style toggle :selected pr-file-duplex |
| 2700 | ,@(pr-:help "Toggle duplex for PostScript file") | 2708 | ,@(funcall |
| 2709 | pr-:help "Toggle duplex for PostScript file") | ||
| 2701 | :active pr-ps-utility-alist] | 2710 | :active pr-ps-utility-alist] |
| 2702 | ["Tumble" pr-toggle-file-tumble | 2711 | ["Tumble" pr-toggle-file-tumble |
| 2703 | :style toggle :selected pr-file-tumble | 2712 | :style toggle :selected pr-file-tumble |
| 2704 | ,@(pr-:help "Toggle tumble for PostScript file") | 2713 | ,@(funcall |
| 2714 | pr-:help "Toggle tumble for PostScript file") | ||
| 2705 | :active (and pr-file-duplex pr-ps-utility-alist)]) | 2715 | :active (and pr-file-duplex pr-ps-utility-alist)]) |
| 2706 | ["Despool..." (call-interactively 'pr-despool-ps-print) | 2716 | ["Despool..." (call-interactively 'pr-despool-ps-print) |
| 2707 | :active pr-spool-p :keys "\\[pr-despool-ps-print]" | 2717 | :active pr-spool-p :keys "\\[pr-despool-ps-print]" |
| 2708 | ,@(pr-:help "Despool PostScript buffer to printer or file (C-u)")]) | 2718 | ,@(funcall |
| 2719 | pr-:help "Despool PostScript buffer to printer or file (C-u)")]) | ||
| 2709 | ["PostScript Printers" pr-update-menus | 2720 | ["PostScript Printers" pr-update-menus |
| 2710 | :active pr-ps-printer-alist :included (pr-visible-p 'postscript) | 2721 | :active pr-ps-printer-alist :included (pr-visible-p 'postscript) |
| 2711 | ,@(pr-:help "Select PostScript printer")] | 2722 | ,@(funcall |
| 2723 | pr-:help "Select PostScript printer")] | ||
| 2712 | "--" | 2724 | "--" |
| 2713 | ("Printify" ,pr-:visible (pr-visible-p 'text) | 2725 | ("Printify" :included (pr-visible-p 'text) |
| 2714 | ,@(pr-:help | 2726 | ,@(funcall |
| 2727 | pr-:help | ||
| 2715 | "Replace non-printing chars with printable representations.") | 2728 | "Replace non-printing chars with printable representations.") |
| 2716 | ["Directory" pr-printify-directory t] | 2729 | ["Directory" pr-printify-directory t] |
| 2717 | ["Buffer" pr-printify-buffer t] | 2730 | ["Buffer" pr-printify-buffer t] |
| 2718 | ["Region" pr-printify-region (ps-mark-active-p)]) | 2731 | ["Region" pr-printify-region (ps-mark-active-p)]) |
| 2719 | ("Print" ,pr-:visible (pr-visible-p 'text) | 2732 | ("Print" :included (pr-visible-p 'text) |
| 2720 | ,@(pr-:help "Send text to printer") | 2733 | ,@(funcall |
| 2734 | pr-:help "Send text to printer") | ||
| 2721 | ["Directory" pr-txt-directory t] | 2735 | ["Directory" pr-txt-directory t] |
| 2722 | ["Buffer" pr-txt-buffer t] | 2736 | ["Buffer" pr-txt-buffer t] |
| 2723 | ["Region" pr-txt-region (ps-mark-active-p)] | 2737 | ["Region" pr-txt-region (ps-mark-active-p)] |
| 2724 | ["Mode" pr-txt-mode (pr-mode-alist-p)]) | 2738 | ["Mode" pr-txt-mode (pr-mode-alist-p)]) |
| 2725 | ["Text Printers" pr-update-menus | 2739 | ["Text Printers" pr-update-menus |
| 2726 | :active pr-txt-printer-alist :included (pr-visible-p 'text) | 2740 | :active pr-txt-printer-alist :included (pr-visible-p 'text) |
| 2727 | ,@(pr-:help "Select text printer")] | 2741 | ,@(funcall |
| 2742 | pr-:help "Select text printer")] | ||
| 2728 | "--" | 2743 | "--" |
| 2729 | ["Landscape" pr-toggle-landscape | 2744 | ["Landscape" pr-toggle-landscape |
| 2730 | :style toggle :selected ps-landscape-mode | 2745 | :style toggle :selected ps-landscape-mode |
| @@ -2750,8 +2765,9 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2750 | ["Upside-Down" pr-toggle-upside-down | 2765 | ["Upside-Down" pr-toggle-upside-down |
| 2751 | :style toggle :selected ps-print-upside-down | 2766 | :style toggle :selected ps-print-upside-down |
| 2752 | :included (pr-visible-p 'postscript-options)] | 2767 | :included (pr-visible-p 'postscript-options)] |
| 2753 | ("Print All Pages" ,pr-:visible (pr-visible-p 'postscript-options) | 2768 | ("Print All Pages" :included (pr-visible-p 'postscript-options) |
| 2754 | ,@(pr-:help "Select odd/even pages/sheets to print") | 2769 | ,@(funcall |
| 2770 | pr-:help "Select odd/even pages/sheets to print") | ||
| 2755 | ["All Pages" (pr-even-or-odd-pages nil) | 2771 | ["All Pages" (pr-even-or-odd-pages nil) |
| 2756 | :style radio :selected (eq ps-even-or-odd-pages nil)] | 2772 | :style radio :selected (eq ps-even-or-odd-pages nil)] |
| 2757 | ["Even Pages" (pr-even-or-odd-pages 'even-page) | 2773 | ["Even Pages" (pr-even-or-odd-pages 'even-page) |
| @@ -2766,15 +2782,18 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2766 | ["Spool Buffer" pr-toggle-spool | 2782 | ["Spool Buffer" pr-toggle-spool |
| 2767 | :style toggle :selected pr-spool-p | 2783 | :style toggle :selected pr-spool-p |
| 2768 | :included (pr-visible-p 'postscript-process) | 2784 | :included (pr-visible-p 'postscript-process) |
| 2769 | ,@(pr-:help "Toggle PostScript spooling")] | 2785 | ,@(funcall |
| 2786 | pr-:help "Toggle PostScript spooling")] | ||
| 2770 | ["Print with faces" pr-toggle-faces | 2787 | ["Print with faces" pr-toggle-faces |
| 2771 | :style toggle :selected pr-faces-p | 2788 | :style toggle :selected pr-faces-p |
| 2772 | :included (pr-visible-p 'postscript-process) | 2789 | :included (pr-visible-p 'postscript-process) |
| 2773 | ,@(pr-:help "Toggle PostScript printing with faces")] | 2790 | ,@(funcall |
| 2791 | pr-:help "Toggle PostScript printing with faces")] | ||
| 2774 | ["Print via Ghostscript" pr-toggle-ghostscript | 2792 | ["Print via Ghostscript" pr-toggle-ghostscript |
| 2775 | :style toggle :selected pr-print-using-ghostscript | 2793 | :style toggle :selected pr-print-using-ghostscript |
| 2776 | :included (pr-visible-p 'postscript-process) | 2794 | :included (pr-visible-p 'postscript-process) |
| 2777 | ,@(pr-:help "Toggle PostScript generation using ghostscript")] | 2795 | ,@(funcall |
| 2796 | pr-:help "Toggle PostScript generation using ghostscript")] | ||
| 2778 | "--" | 2797 | "--" |
| 2779 | ["Auto Region" pr-toggle-region | 2798 | ["Auto Region" pr-toggle-region |
| 2780 | :style toggle :selected pr-auto-region | 2799 | :style toggle :selected pr-auto-region |
| @@ -2786,11 +2805,11 @@ It uses `pr-interactive-p' var (which see)." | |||
| 2786 | :style toggle :selected pr-menu-lock | 2805 | :style toggle :selected pr-menu-lock |
| 2787 | :included (pr-visible-p 'printing)] | 2806 | :included (pr-visible-p 'printing)] |
| 2788 | "--" | 2807 | "--" |
| 2789 | ("Customize" ,pr-:visible (pr-visible-p 'help) | 2808 | ("Customize" :included (pr-visible-p 'help) |
| 2790 | ["printing" pr-customize t] | 2809 | ["printing" pr-customize t] |
| 2791 | ["ps-print" ps-print-customize t] | 2810 | ["ps-print" ps-print-customize t] |
| 2792 | ["lpr" lpr-customize t]) | 2811 | ["lpr" lpr-customize t]) |
| 2793 | ("Show Settings" ,pr-:visible (pr-visible-p 'help) | 2812 | ("Show Settings" :included (pr-visible-p 'help) |
| 2794 | ["printing" pr-show-pr-setup t] | 2813 | ["printing" pr-show-pr-setup t] |
| 2795 | ["ps-print" pr-show-ps-setup t] | 2814 | ["ps-print" pr-show-ps-setup t] |
| 2796 | ["lpr" pr-show-lpr-setup t]) | 2815 | ["lpr" pr-show-lpr-setup t]) |