?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/printing.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:27 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/printing.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@138 printing.el, v 6.9.3 <2007/12/09 vinicius> Please send all bug fixes and enhancements to Vinicius Jose Latorre <viniciusjl@ig.com.br> (defconst pr-version "6.9.3" (#$ . 552)) (byte-code "\301\302!\210\301\303!\210\304\231\203 \305\306!\210\301\207" [ps-print-version require lpr ps-print "6.6.4" error "`printing' requires `ps-print' package version 6.6.4 or later"] 2) (defconst pr-cygwin-system (byte-code "\205 \301\302!\205 \303\304\301\302!\"\207" [ps-windows-system getenv "OSTYPE" string-match "cygwin"] 4)) (byte-code "\300\301!\204 \302\301\303\"\210\300\304!\204 \302\304\305\"\210\300\207" [fboundp subst-char-in-string defalias #[(fromchar tochar string &optional inplace) "G \203\n \202 \306!S\211\307V\203( \nH\f=\203 \n I\210\202 \n*\207" [string inplace newstr i fromchar tochar copy-sequence 0] 3 "Replace FROMCHAR with TOCHAR in STRING each time it occurs.\nUnless optional argument INPLACE is non-nil, return a new string."] make-temp-file #[(prefix &optional dir-flag suffix) "\302 \303\304\216\305\306!\210\303\307\310\217\204 +\207" [file umask default-file-modes nil ((set-default-file-modes umask)) set-default-file-modes 448 (byte-code "\305\306 \"!\203 \nP\f\203 \307\n!\210\202% \310\311\312\n\312\313\312\314&\210\312\207" [prefix temporary-file-directory file suffix dir-flag make-temp-name expand-file-name make-directory write-region "" nil silent excl] 8) ((file-already-exists t))] 3 "Create a temporary file.\nThe returned file name (created by appending some random characters at the end\nof PREFIX, and expanding against `temporary-file-directory' if necessary),\nis guaranteed to point to a newly created empty file.\nYou can then use `write-region' to write new data into the file.\n\nIf DIR-FLAG is non-nil, create a new empty directory instead of a file.\n\nIf SUFFIX is non-nil, add that at the end of the file name."]] 3) #@94 Non-nil means that menu binding was not done. Used by `pr-menu-bind' and `pr-update-menus'. (defvar pr-menu-print-item "print" (#$ . 2456)) #@78 Non-nil means `pr-ps-printer-alist' was modified and we need to update menu. (defvar pr-ps-printer-menu-modified t (#$ . 2603)) #@79 Non-nil means `pr-txt-printer-alist' was modified and we need to update menu. (defvar pr-txt-printer-menu-modified t (#$ . 2737)) #@78 Non-nil means `pr-ps-utility-alist' was modified and we need to update menu. (defvar pr-ps-utility-menu-modified t (#$ . 2873)) (defconst pr-even-or-odd-alist '((nil . "Print All Pages") (even-page . "Print Even Pages") (odd-page . "Print Odd Pages") (even-sheet . "Print Even Sheets") (odd-sheet . "Print Odd Sheets"))) (byte-code "\301\302\303\"\210\301\304\305\"\210\301\306\307\"\210\301\310\311\"\210\301\312\313\"\210\301\314\315\"\210\301\316\317\"\210\320\321!\210\301\322\323\"\210\2038 \301\324\325\"\210\202= \301\324\326\"\210\327\321!\210\330\321!\210\301\331\332\"\210\301\333\334\"\210\301\335\336\"\210\301\337\340\"\210\301\341\342\"\210\343\321!\210\301\344\345\"\210\301\346\347\"\210\301\350\351\"\210\301\352\353\"\210\301\354\355\"\210\301\356\357\"\207" [ps-windows-system defalias pr-set-keymap-parents set-keymap-parent pr-set-keymap-name ignore pr-read-string read-string pr-keep-region-active #[nil "\301\211\207" [deactivate-mark nil] 2] pr-region-active-p #[nil "\205 \205 \n\207" [pr-auto-region transient-mark-mode mark-active] 1] pr-menu-char-height #[nil "\300 \207" [frame-char-height] 1] pr-menu-char-width #[nil "\300 \207" [frame-char-width] 1] (lambda (#1=#:def-tmp-var) (defvar pr-menu-bar #1# "Specify Printing menu-bar entry.")) nil pr-global-menubar #[(pr-menu-spec) "\306\307!\210\310U\203 \311\202 \312\n\203N \313 \314\315\f\"\316$\210\317\320\211\203: @\321 #\210A\211\204' *\320\322\323\324 A@!\324\315!#\211\202V \313 \314\315\f\"#)\207" [emacs-major-version menu-file pr-menu-print-item global-map pr-menu-spec item require easymenu 21 ("menu-bar" "files") ("menu-bar" "file") easy-menu-add-item easy-menu-create-menu "Print" "print-buffer" ("print-buffer" "print-region" "ps-print-buffer-faces" "ps-print-region-faces" "ps-print-buffer" "ps-print-region") nil easy-menu-remove-item vector menu-bar pr-get-symbol --dolist-tail-- pr-menu-bar] 7] pr-menu-position #[(entry index horizontal) "\304 A\211@\206\n \305A\206 \305\306 \n\"_ZD\307 )D\207" [pos entry index pr-menu-char-height mouse-pixel-position 0 pr-menu-index selected-frame] 6] #[(entry index horizontal) "\306 A\211@\206\n \307 \n_ZA\206 \307\310\f\" _ZD\311 )D\207" [pos horizontal pr-menu-char-width entry index pr-menu-char-height mouse-pixel-position 0 pr-menu-index selected-frame] 6] (lambda (#1#) (defvar pr-menu-position #1#)) (lambda (#1#) (defvar pr-menu-state #1#)) pr-menu-lookup #[(path) "\303 \203 \304\n\305\306 <\203 \202 C\"\"\202 \n\"\207" [global-map path pr-menu-bar lookup-key vconcat mapcar pr-get-symbol] 7] pr-menu-lock #[(entry index horizontal state path) "\205J \203 \n=\204 \301\f #\n\306!\307 \"\211\203F \310\311!\"\312!\203@ \210\202E \313!\210)*\314\211\207" [pr-menu-lock pr-menu-position state pr-menu-state entry index pr-menu-lookup x-popup-menu lookup-key vconcat fboundp eval nil horizontal path menu result command] 5] pr-update-mode-line force-mode-line-update pr-do-update-menus #[(&optional force) "\306\307\310\311\312 \311\313\314& \210\306\n\315\316\317\320 \317\321\314& \210\306 \322\323\324\304 \325\326\327& \210)\306 \322\323\330\303 \325\326\327& \210\331 \"\207" [pr-ps-printer-alist force pr-txt-printer-alist pr-ps-utility-menu-modified save-var pr-ps-utility-alist pr-menu-alist pr-ps-name pr-menu-set-ps-title "PostScript Printers" pr-ps-printer-menu-modified postscript 2 pr-txt-name pr-menu-set-txt-title "Text Printers" pr-txt-printer-menu-modified text pr-ps-utility pr-menu-set-utility-title ("PostScript Print" "File" "PostScript Utility") "PostScript Utility" nil 1 ("PostScript Preview" "File" "PostScript Utility") pr-even-or-odd-pages ps-even-or-odd-pages] 10] pr-menu-get-item #[(name-list) "<\204 C\205, \306!\307 @! A\237\310\f\311 \312\307\"\"\"\nAA\236,\207" [name-list reversed name path global-map pr-menu-bar reverse pr-get-symbol lookup-key vconcat mapcar menu] 7] (lambda (#1#) (defvar pr-temp-menu #1#)) pr-menu-alist #[(alist var-sym fun menu-path modified-sym force name entry index) "\205[ \204 \nJ\205[ \306\307!\210\310\311\307\312\313\f &$\210\314!\211\203W \315\233\211A \240\210\203O @<\203O A\241\210 \fJ\"\210*)\n\307L\207" [alist force modified-sym name var-sym fun (lambda (#1#) (defvar pr-temp-menu #1# #2="")) nil easy-menu-do-define pr-temp-menu #2# pr-menu-create pr-menu-get-item 3 entry index menu-path item binding key-binding] 12] pr-menu-set-item-name #[(item name) "\205 AA \240\207" [item name] 2] pr-menu-set-ps-title #[(value &optional item entry index) "\304\206 \305\306!\307\310 \"\"\210\311 !\210\n\205 \312\n\313\314\315%\207" [item value index entry pr-menu-set-item-name pr-menu-get-item "PostScript Printers" format "PostScript Printer: %s" pr-ps-set-printer pr-menu-lock 12 toggle nil] 6] pr-menu-set-txt-title #[(value &optional item entry index) "\304\206 \305\306!\307\310 \"\"\210\311 !\210\n\205 \312\n\313\314\315%\207" [item value index entry pr-menu-set-item-name pr-menu-get-item "Text Printers" format "Text Printer: %s" pr-txt-set-printer pr-menu-lock 12 toggle nil] 6] pr-menu-set-utility-title #[(value &optional item entry index) "\305!\n\203 \306\n \"\210\202 \306\307\310! \"\210\306\307\311! \"\210)\312!\210\205. \313\f\314\315\316%\207" [value name item index entry symbol-name pr-menu-set-item-name pr-menu-get-item ("PostScript Print" "File" "PostScript Utility") ("PostScript Preview" "File" "PostScript Utility") pr-ps-set-utility pr-menu-lock 5 nil ("PostScript Print" "File")] 6] pr-even-or-odd-pages #[(value &optional no-lock) "\304\305\306! \236A\"\210\206 \307\310\311\312\313\314%\207" [value pr-even-or-odd-alist ps-even-or-odd-pages no-lock pr-menu-set-item-name pr-menu-get-item "Print All Pages" pr-menu-lock postscript-options 8 12 toggle nil] 6]] 3) #@72 Replace unix-style directory separator character with dos/windows one. (defalias 'pr-dosify-file-name #[(path) "\302=\203\f \303\304\305 #\207 \207" [pr-path-style path windows subst-char-in-string 47 92] 4 (#$ . 8736) "sPath: "]) #@72 Replace dos/windows-style directory separator character with unix one. (defalias 'pr-unixify-file-name #[(path) "\302=\203\f \303\304\305 #\207 \207" [pr-path-style path windows subst-char-in-string 92 47] 4 (#$ . 8974) "sPath: "]) #@201 Ensure the proper directory separator depending on the OS. That is, if Emacs is running on DOS/Windows, ensure dos/windows-style directory separator; otherwise, ensure unix-style directory separator. (defalias 'pr-standard-file-name #[(path) "\204 \203 \303\304\305\n#\207\303\305\304\n#\207" [pr-cygwin-system ps-windows-system path subst-char-in-string 47 92] 4 (#$ . 9214)]) #@68 Set the value of custom variables for printer & utility selection. (defalias 'pr-alist-custom-set #[(symbol value) " L\210\302\303!\205 \304\305!\207" [symbol value featurep printing pr-update-menus t] 2 (#$ . 9602)]) #@28 Update utility menu entry. (defalias 'pr-ps-utility-custom-set #[(symbol value) " L\210\302\303!\205 \304 !\207" [symbol value featurep printing pr-menu-set-utility-title] 2 (#$ . 9828)]) #@42 Update `PostScript Printer:' menu entry. (defalias 'pr-ps-name-custom-set #[(symbol value) " L\210\302\303!\205 \304 !\207" [symbol value featurep printing pr-menu-set-ps-title] 2 (#$ . 10024)]) #@36 Update `Text Printer:' menu entry. (defalias 'pr-txt-name-custom-set #[(symbol value) " L\210\302\303!\205 \304 !\207" [symbol value featurep printing pr-menu-set-txt-title] 2 (#$ . 10227)]) (byte-code "\300\301\302\303\304\305\306\307\310\311\312\313\314\315\314\316&\210\317\320\321\322\323\324\314\301&\210\317\325\326\327\323\330\314\301&\210\317\331\332\333\323\334\335\336\314\301& \210\317\337\340\341\323\342\335\343\314\301& \210\317\344\345\346\323\334\335\347\314\301& \210\317\350\351\352\323\353\335\343\314\301& \210\317\354\355\356\323\357\314\301&\210\317\360\361\362\323\363\314\301&\210\317\364\365\366\323\367\314\301&\210\317\370\371\372\323\373\314\301&\210\317\374\375\376\323\377\314\301&\210\317\201@ \201A \201B \323\201C \314\301&\210\317\201D \201E \201F \323\201G \314\301&\210\317\201H \201I \201J \323\201K \314\301&\210\317\201L \302\201M \323\201N \314\301&\210\317\201O \302\201P \323\201N \314\301&\210\317\201Q \302\201R \323\201N \314\301&\210\317\201S \302\201T \323\201N \314\301&\210\317\201U \302\201V \323\201N \314\301&\210\317\201W \302\201X \323\201N \314\301&\210\317\201Y \201Z \201[ \323\201N \314\301&\210\317\201\\ \201Z \201] \323\201N \314\301&\210\317\201^ \201_ \201` \323\201a \314\301&\210\317\201b \201c \201d \323\201e \335\201f \314\301& \210\317\201g \201h \201i \323\201j \335\343\314\301& \210\317\201k \201Z \201l \323\201N \314\301&\210\317\201m \201n \201o \323\201p \314\301&\210\317\201q \201r \201s \323\201p \314\301&\210\317\201t \201u \201v \323\201w \314\301&\210\317\201x \201y \201z \323\201{ \314\301&\210\317\201| \201Z \201} \323\201N \314\301&\210\317\201~ \302\201 \323\201N \314\301&\210\317\201\200 \201\201 \201\202 \323\201\203 \314\301&\210\317\201\204 \201\205 \201\206 \323\201\207 \314\301&\210\317\201\210 \201Z \201\211 \323\201N \314\301&\207" [custom-declare-group printing nil "Printing Utilities group." :tag "Printing Utilities" :link (emacs-library-link :tag "Source Lisp File" "printing.el") :prefix "pr-" :version "22.1" :group wp postscript custom-declare-variable pr-path-style (if (and (not pr-cygwin-system) ps-windows-system) 'windows 'unix) "Specify which path style to use for external commands.\n\nValid values are:\n\n windows Windows 9x/NT style (\\)\n\n unix Unix style (/)" :type (choice :tag "Path style" (const :tag "Windows 9x/NT Style (\\)" :value windows) (const :tag "Unix Style (/)" :value unix)) pr-path-alist '((unix PATH) (cygwin PATH) (windows PATH)) "Specify an alist for command paths.\n\nIt's used to find commands used for printing package, like gv, gs, gsview.exe,\nmpage, print.exe, etc. See also `pr-command' function.\n\nEach element has the form:\n\n (ENTRY DIRECTORY...)\n\nWhere:\n\nENTRY It's a symbol, used to identify this entry.\n There must exist at least one of the following entries:\n\n unix this entry is used when Emacs is running on GNU or\n Unix system.\n\n cygwin this entry is used when Emacs is running on Windows\n 95/98/NT/2000 with Cygwin.\n\n windows this entry is used when Emacs is running on Windows\n 95/98/NT/2000.\n\nDIRECTORY It should be a string or a symbol. If it's a symbol, it should\n exist an equal entry in `pr-path-alist'. If it's a string,\n it's considered a directory specification.\n\n The directory specification may contain:\n $var environment variable expansion\n ~/ tilde expansion\n ./ current directory\n ../ previous directory\n\n For example, let's say the home directory is /home/my and the\n current directory is /home/my/dir, so:\n\n THE ENTRY IS EXPANDED TO\n ~/entry /home/my/entry\n ./entry /home/my/dir/entry\n ../entry /home/my/entry\n $HOME/entry /home/my/entry\n $HOME/~/other/../my/entry /home/my/entry\n\n SPECIAL SYMBOL: If the symbol `PATH' is used in the directory\n list and there isn't a `PATH' entry in `pr-path-alist' or the\n `PATH' entry has a null directory list, the PATH environment\n variable is used.\n\nExamples:\n\n* On GNU or Unix system:\n\n '((unix \".\" \"~/bin\" ghostview mpage PATH)\n (ghostview \"$HOME/bin/gsview-dir\")\n (mpage \"$HOME/bin/mpage-dir\")\n )\n\n* On Windows system:\n\n '((windows \"c:/applications/executables\" PATH ghostview mpage)\n (ghostview \"c:/gs/gsview-dir\")\n (mpage \"c:/mpage-dir\")\n )" (repeat (cons :tag #1="" (symbol :tag "Identifier ") (repeat :tag "Directory List" (choice :menu-tag "Directory" :tag "Directory" (string :value #1#) (symbol :value symbol))))) pr-txt-name 'default "Specify a printer for printing a text file.\n\nThe printer name symbol should be defined on `pr-txt-printer-alist' (see it for\ndocumentation).\n\nThis variable should be modified by customization engine. If this variable is\nmodified by other means (for example, a lisp function), use `pr-update-menus'\nfunction (see it for documentation) to update text printer menu." symbol :set pr-txt-name-custom-set pr-txt-printer-alist (list (list 'default lpr-command nil (cond ((boundp 'printer-name) printer-name) (ps-windows-system "PRN") (t nil)))) "Specify an alist of all text printers (text printer database).\n\nThe alist element has the form:\n\n (SYMBOL COMMAND SWITCHES NAME)\n\nWhere:\n\nSYMBOL It's a symbol to identify a text printer. It's for\n `pr-txt-name' variable setting and for menu selection.\n Examples:\n 'prt_06a\n 'my_printer\n\nCOMMAND Name of the program for printing a text file. On MS-DOS and\n MS-Windows systems, if the value is an empty string, then Emacs\n will write directly to the printer port given by NAME (see text\n below), that is, the NAME should be something like \"PRN\" or\n \"LPT1:\".\n If NAME is something like \"\\\\\\\\host\\\\share-name\" then\n COMMAND shouldn't be an empty string.\n The programs `print' and `nprint' (the standard print programs\n on Windows NT and Novell Netware respectively) are handled\n specially, using NAME as the destination for output; any other\n program is treated like `lpr' except that an explicit filename\n is given as the last argument.\n If COMMAND is nil, it's used the default printing program:\n `print' for Windows system, `lp' for lp system and `lpr' for\n all other systems. See also `pr-path-alist'.\n Examples:\n \"print\"\n \"lpr\"\n \"lp\"\n\nSWITCHES List of sexp's to pass as extra options for text printer\n program. It is recommended to set NAME (see text below)\n instead of including an explicit switch on this list.\n Example:\n . for lpr\n '(\"-#3\" \"-l\")\n nil\n\nNAME A string that specifies a text printer name.\n On Unix-like systems, a string value should be a name\n understood by lpr's -P option (or lp's -d option).\n On MS-DOS and MS-Windows systems, it is the name of a printer\n device or port. Typical non-default settings would be \"LPT1:\"\n to \"LPT3:\" for parallel printers, or \"COM1\" to \"COM4\" or\n \"AUX\" for serial printers, or \"\\\\\\\\hostname\\\\printer\"\n (or \"/D:\\\\\\\\hostname\\\\printer\") for a shared network\n printer. You can also set it to a name of a file, in which\n case the output gets appended to that file. If you want to\n discard the printed output, set this to \"NUL\".\n Examples:\n . for print.exe\n \"/D:\\\\\\\\host\\\\share-name\"\n \"LPT1:\"\n \"PRN\"\n\n . for lpr or lp\n \"share-name\"\n\nThis variable should be modified by customization engine. If this variable is\nmodified by other means (for example, a lisp function), use `pr-update-menus'\nfunction (see it for documentation) to update text printer menu.\n\nExamples:\n\n* On GNU or Unix system:\n\n '((prt_06a \"lpr\" nil \"prt_06a\")\n (prt_07c nil nil \"prt_07c\")\n )\n\n* On Windows system:\n\n '((prt_06a \"print\" nil \"/D:\\\\\\\\printers\\\\prt_06a\")\n (prt_07c nil nil \"/D:\\\\\\\\printers\\\\prt_07c\")\n (PRN \"\" nil \"PRN\")\n (standard \"redpr.exe\" nil \"\")\n )\n\nUseful links:\n\n* Information about the print command (print.exe)\n `http://www.computerhope.com/printhlp.htm'\n\n* RedMon - Redirection Port Monitor (redpr.exe)\n `http://www.cs.wisc.edu/~ghost/redmon/index.htm'\n\n* Redirection Port Monitor (redpr.exe on-line help)\n `http://www.cs.wisc.edu/~ghost/redmon/en/redmon.htm'\n\n* UNIX man pages: lpr (or type `man lpr')\n `http://bama.ua.edu/cgi-bin/man-cgi?lpr'\n `http://www.mediacollege.com/cgi-bin/man/page.cgi?section=all&topic=lpr'\n\n* UNIX man pages: lp (or type `man lp')\n `http://bama.ua.edu/cgi-bin/man-cgi?lp'\n `http://www.mediacollege.com/cgi-bin/man/page.cgi?section=all&topic=lp'\n" (repeat (list :tag "Text Printer" (symbol :tag "Printer Symbol Name") (string :tag "Printer Command") (repeat :tag "Printer Switches" (sexp :tag "Switch" :value #1#)) (choice :menu-tag "Printer Name" :tag "Printer Name" (const :tag "None" nil) string))) pr-alist-custom-set pr-ps-name 'default "Specify a printer for printing a PostScript file.\n\nThis printer name symbol should be defined on `pr-ps-printer-alist' (see it for\ndocumentation).\n\nThis variable should be modified by customization engine. If this variable is\nmodified by other means (for example, a lisp function), use `pr-update-menus'\nfunction (see it for documentation) to update PostScript printer menu." pr-ps-name-custom-set pr-ps-printer-alist (list (list 'default lpr-command nil (cond (ps-windows-system nil) (ps-lp-system "-d") (t "-P")) (or (getenv "PRINTER") (getenv "LPDEST") ps-printer-name))) "Specify an alist for all PostScript printers (PostScript printer database).\n\nThe alist element has the form:\n\n (SYMBOL COMMAND SWITCHES PRINTER-SWITCH NAME DEFAULT...)\n\nWhere:\n\nSYMBOL It's a symbol to identify a PostScript printer. It's for\n `pr-ps-name' variable setting and for menu selection.\n Examples:\n 'prt_06a\n 'my_printer\n\nCOMMAND Name of the program for printing a PostScript file. On MS-DOS\n and MS-Windows systems, if the value is an empty string then\n Emacs will write directly to the printer port given by NAME\n (see text below), that is, the NAME should be something like\n \"PRN\" or \"LPT1:\".\n If NAME is something like \"\\\\\\\\host\\\\share-name\" then\n COMMAND shouldn't be an empty string.\n The programs `print' and `nprint' (the standard print programs\n on Windows NT and Novell Netware respectively) are handled\n specially, using NAME as the destination for output; any other\n program is treated like `lpr' except that an explicit filename\n is given as the last argument.\n If COMMAND is nil, it's used the default printing program:\n `print' for Windows system, `lp' for lp system and `lpr' for\n all other systems. See also `pr-path-alist'.\n Examples:\n \"print\"\n \"lpr\"\n \"lp\"\n \"cp\"\n \"gsprint\"\n\nSWITCHES List of sexp's to pass as extra options for PostScript printer\n program. It is recommended to set NAME (see text below)\n instead of including an explicit switch on this list.\n Example:\n . for lpr\n '(\"-#3\" \"-l\")\n nil\n\n . for gsprint.exe\n '(\"-all\" \"-twoup\")\n\nPRINTER-SWITCH A string that specifies PostScript printer name switch. If\n it's necessary to have a space between PRINTER-SWITCH and NAME,\n it should be inserted at the end of PRINTER-SWITCH string.\n If PRINTER-SWITCH is nil, it's used the default printer name\n switch: `/D:' for Windows system, `-d' for lp system and `-P'\n for all other systems.\n Examples:\n . for lpr\n \"-P \"\n\n . for lp\n \"-d \"\n\n . for print.exe\n \"/D:\"\n\n . for gsprint.exe\n \"-printer \"\n\nNAME A string that specifies a PostScript printer name.\n On Unix-like systems, a string value should be a name\n understood by lpr's -P option (or lp's -d option).\n On MS-DOS and MS-Windows systems, it is the name of a printer\n device or port. Typical non-default settings would be \"LPT1:\"\n to \"LPT3:\" for parallel printers, or \"COM1\" to \"COM4\" or\n \"AUX\" for serial printers, or \"\\\\\\\\hostname\\\\printer\"\n (or \"/D:\\\\\\\\hostname\\\\printer\") for a shared network\n printer. You can also set it to a name of a file, in which\n case the output gets appended to that file. If you want to\n discard the printed output, set this to \"NUL\".\n Examples:\n . for cp.exe\n \"\\\\\\\\host\\\\share-name\"\n\n . for print.exe or gsprint.exe\n \"/D:\\\\\\\\host\\\\share-name\"\n \"\\\\\\\\host\\\\share-name\"\n \"LPT1:\"\n \"PRN\"\n\n . for lpr or lp\n \"share-name\"\n\nDEFAULT It's a way to set default values when this entry is selected.\n It's a cons like:\n\n (VARIABLE . VALUE)\n\n Which associates VARIABLE with VALUE. When this entry is\n selected, it's executed the following command:\n\n (set VARIABLE (eval VALUE))\n\n Note that VALUE can be any valid lisp expression. So, don't\n forget to quote symbols and constant lists.\n If VARIABLE is the special keyword `inherits-from:', VALUE must\n be a symbol name setting defined in `pr-setting-database' from\n which the current setting inherits the context. Take care with\n circular inheritance.\n Examples:\n '(ps-landscape-mode . nil)\n '(ps-spool-duplex . t)\n '(pr-gs-device . (my-gs-device t))\n\nThis variable should be modified by customization engine. If this variable is\nmodified by other means (for example, a lisp function), use `pr-update-menus'\nfunction (see it for documentation) to update PostScript printer menu.\n\nExamples:\n\n* On GNU or Unix system:\n\n '((lps_06b \"lpr\" nil \"-P\" \"lps_06b\")\n (lps_07c \"lpr\" nil nil \"lps_07c\")\n (lps_08c nil nil nil \"lps_08c\")\n )\n\n* On Windows system:\n\n '((lps_06a \"print\" nil \"/D:\" \"\\\\\\\\printers\\\\lps_06a\")\n (lps_06b \"print\" nil nil \"\\\\\\\\printers\\\\lps_06b\")\n (lps_07c \"print\" nil \"\" \"/D:\\\\\\\\printers\\\\lps_07c\")\n (lps_08c nil nil nil \"\\\\\\\\printers\\\\lps_08c\")\n (b/w1 \"gsprint\" (\"-all\" \"-twoup\") \"-printer \" \"b/w-pr-name\")\n (b/w2 \"gsprint\" (\"-all\" \"-twoup\") nil \"-printer \\\\\\\\printers\\\\lps_06a\")\n (LPT1 \"\" nil \"\" \"LPT1:\")\n (PRN \"\" nil \"\" \"PRN\")\n (standard \"redpr.exe\" nil \"\" \"\")\n )\n\n\ngsprint:\n\nYou can use gsprint instead of ghostscript to print monochrome PostScript files\nin Windows. The gsprint utility documentation says that it is more efficient\nthan ghostscript to print monochrome PostScript.\n\nTo print non-monochrome PostScript file, the efficiency of ghostscript is\nsimilar to gsprint.\n\nAlso the gsprint utility comes together with gsview distribution.\n\nAs an example of gsprint declaration:\n\n (setq pr-ps-printer-alist\n '((A \"gsprint\" (\"-all\" \"-twoup\") \"-printer \" \"lps_015\")\n (B \"gsprint\" (\"-all\" \"-twoup\") nil \"-printer lps_015\")\n ;; some other printer declaration\n ))\n\nThe example above declares that printer A prints all pages (-all) and two pages\nper sheet (-twoup). The printer B declaration does the same as the printer A\ndeclaration, the only difference is the printer name selection.\n\nThere are other command line options like:\n\n -mono Render in monochrome as 1bit/pixel (only black and white).\n -grey Render in greyscale as 8bits/pixel.\n -color Render in color as 24bits/pixel.\n\nThe default is `-mono'. So, printer A and B in the example above are using\nimplicitly the `-mono' option. Note that in `-mono' no gray tone or color is\nprinted, this includes the zebra stripes, that is, in `-mono' the zebra stripes\nare not printed.\n\n\nUseful links:\n\n* GSPRINT - Ghostscript print to Windows printer\n `http://www.cs.wisc.edu/~ghost/gsview/gsprint.htm'\n\n* Introduction to Ghostscript\n `http://www.cs.wisc.edu/~ghost/doc/intro.htm'\n\n* How to use Ghostscript\n `http://www.cs.wisc.edu/~ghost/doc/cvs/Use.htm'\n\n* Information about the print command (print.exe)\n `http://www.computerhope.com/printhlp.htm'\n\n* RedMon - Redirection Port Monitor (redpr.exe)\n `http://www.cs.wisc.edu/~ghost/redmon/index.htm'\n\n* Redirection Port Monitor (redpr.exe on-line help)\n `http://www.cs.wisc.edu/~ghost/redmon/en/redmon.htm'\n\n* UNIX man pages: lpr (or type `man lpr')\n `http://bama.ua.edu/cgi-bin/man-cgi?lpr'\n `http://www.mediacollege.com/cgi-bin/man/page.cgi?section=all&topic=lpr'\n\n* UNIX man pages: lp (or type `man lp')\n `http://bama.ua.edu/cgi-bin/man-cgi?lp'\n `http://www.mediacollege.com/cgi-bin/man/page.cgi?section=all&topic=lp'\n\n* GNU utilities for w32 (cp.exe)\n `http://unxutils.sourceforge.net/'\n" (repeat (list :tag "PostScript Printer" (symbol :tag "Printer Symbol Name") (string :tag "Printer Command") (repeat :tag "Printer Switches" (sexp :tag "Switch" :value #1#)) (choice :menu-tag "Printer Name Switch" :tag "Printer Name Switch" (const :tag "None" nil) string) (choice :menu-tag "Printer Name" :tag "Printer Name" (const :tag "None" nil) string) (repeat :tag "Default Value List" :inline t (cons :tag #1# (choice :menu-tag "Variable" :tag "Variable" (const :tag "Landscape" ps-landscape-mode) (const :tag "Print Header" ps-print-header) (const :tag "Print Header Frame" ps-print-header-frame) (const :tag "Line Number" ps-line-number) (const :tag "Zebra Stripes" ps-zebra-stripes) (const :tag "Duplex" ps-spool-duplex) (const :tag "Tumble" ps-spool-tumble) (const :tag "Upside-Down" ps-print-upside-down) (const :tag "PS File Landscape" pr-file-landscape) (const :tag "PS File Duplex" pr-file-duplex) (const :tag "PS File Tumble" pr-file-tumble) (const :tag "Auto Region" pr-auto-region) (const :tag "Auto Mode" pr-auto-mode) (const :tag "Ghostscript Device" pr-gs-device) (const :tag "Ghostscript Resolution" pr-gs-resolution) (const :tag "inherits-from:" inherits-from:) (variable :tag "Other")) (sexp :tag "Value"))))) pr-temp-dir (pr-dosify-file-name (if (boundp 'temporary-file-directory) (symbol-value 'temporary-file-directory) (file-name-as-directory (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") (cond (ps-windows-system "c:/temp") (t "/tmp")))))) "Specify a directory for temporary files during printing.\n\nSee also `pr-ps-temp-file' and `pr-file-modes'." (directory :tag "Temporary Directory") pr-ps-temp-file "prspool-" "Specify PostScript temporary file name prefix.\n\nSee also `pr-temp-dir' and `pr-file-modes'." (file :tag "PostScript Temporary File Name") pr-file-modes 384 "Specify the file permission bits for newly created files.\n\nIt should be an integer; only the low 9 bits are used.\n\nSee also `pr-temp-dir' and `pr-ps-temp-file'." (integer :tag "File Permission Bits") pr-gv-command (if ps-windows-system "gsview32.exe" "gv") "Specify path and name of the gsview/gv utility.\n\nSee also `pr-path-alist'.\n\nUseful links:\n\n* GNU gv manual\n `http://www.gnu.org/software/gv/manual/gv.html'\n\n* GSview Help\n `http://www.cs.wisc.edu/~ghost/gsview/gsviewen.htm'\n\n* GSview Help - Common Problems\n `http://www.cs.wisc.edu/~ghost/gsview/gsviewen.htm#Common_Problems'\n\n* GSview Readme (compilation & installation)\n `http://www.cs.wisc.edu/~ghost/gsview/Readme.htm'\n\n* GSview (main site)\n `http://www.cs.wisc.edu/~ghost/gsview/index.htm'\n\n* Ghostscript, Ghostview and GSview\n `http://www.cs.wisc.edu/~ghost/'\n\n* Ghostview\n `http://www.cs.wisc.edu/~ghost/gv/index.htm'\n\n* gv 3.5, June 1997\n `http://www.cs.wisc.edu/~ghost/gv/gv_doc/gv.html'\n\n* MacGSView (MacOS)\n `http://www.cs.wisc.edu/~ghost/macos/index.htm'\n" (string :tag "Ghostview Utility") pr-gs-command (if ps-windows-system "gswin32.exe" "gs") "Specify path and name of the ghostscript utility.\n\nSee also `pr-path-alist'.\n\nUseful links:\n\n* Ghostscript, Ghostview and GSview\n `http://www.cs.wisc.edu/~ghost/'\n\n* Introduction to Ghostscript\n `http://www.cs.wisc.edu/~ghost/doc/intro.htm'\n\n* How to use Ghostscript\n `http://www.cs.wisc.edu/~ghost/doc/cvs/Use.htm'\n\n* Printer compatibility\n `http://www.cs.wisc.edu/~ghost/doc/printer.htm'\n" (string :tag "Ghostscript Utility") pr-gs-switches (if ps-windows-system '("-q -dNOPAUSE -Ic:/gs/gs5.50;c:/gs/gs5.50/fonts") '("-q -dNOPAUSE -I/usr/share/ghostscript/5.10")) "Specify ghostscript switches. See the documentation on GS for more info.\n\nIt's a list of strings, where each string is one or more ghostscript switches.\n\nA note on the gs switches:\n\n-q quiet\n-dNOPAUSE don't wait for user intervention\n-Ic:/gs/gs5.50;c:/gs/gs5.50/fonts the directories needed for gs\n-c quit it's added at the end to terminate gs\n\nTo see ghostscript documentation for more information:\n\n* On GNU or Unix system:\n - for full documentation, type: man gs\n - for brief documentation, type: gs -h\n\n* On Windows system:\n - for full documentation, see in a browser the file\n c:/gstools/gs5.50/index.html, that is, the file index.html which is\n located in the same directory as gswin32.exe.\n - for brief documentation, type: gswin32.exe -h\n\nUseful links:\n\n* Introduction to Ghostscript\n `http://www.cs.wisc.edu/~ghost/doc/intro.htm'\n\n* How to use Ghostscript\n `http://www.cs.wisc.edu/~ghost/doc/cvs/Use.htm'\n\n* Printer compatibility\n `http://www.cs.wisc.edu/~ghost/doc/printer.htm'\n" (repeat (string :tag "Ghostscript Switch")) pr-gs-device (if ps-windows-system "mswinpr2" "uniprint") "Specify the ghostscript device switch value (-sDEVICE=).\n\nA note on the gs switches:\n\n-sDEVICE=djet500 the printer - works with HP DeskJet 540\n\nSee `pr-gs-switches' for documentation.\nSee also `pr-ps-printer-alist'." (string :tag "Ghostscript Device") pr-gs-resolution 300 "Specify ghostscript resolution switch value (-r).\n\nA note on the gs switches:\n\n-r300 resolution 300x300\n\nSee `pr-gs-switches' for documentation.\nSee also `pr-ps-printer-alist'." (integer :tag "Ghostscript Resolution") pr-print-using-ghostscript "Non-nil means print using ghostscript.\n\nThis is useful if you don't have a PostScript printer, so you could use the\nghostscript to print a PostScript file.\n\nIn GNU or Unix system, if ghostscript is set as a PostScript filter, this\nvariable should be nil." boolean pr-faces-p "Non-nil means print with face attributes." pr-spool-p "Non-nil means spool printing in a buffer." pr-file-landscape "Non-nil means print PostScript file in landscape orientation." pr-file-duplex "Non-nil means print PostScript file in duplex mode." pr-file-tumble "Non-nil means print PostScript file in tumble mode.\n\nIf tumble is off, produces a printing suitable for binding on the left or\nright.\nIf tumble is on, produces a printing suitable for binding at the top or\nbottom." pr-auto-region t "Non-nil means region is automagically detected.\n\nNote that this will only work if you're using transient mark mode.\n\nWhen this variable is non-nil, the `*-buffer*' commands will behave like\n`*-region*' commands, that is, `*-buffer*' commands will print only the region\nmarked instead of all buffer." pr-auto-mode "Non-nil means major-mode specific printing is preferred over normal printing.\n\nThat is, if current major-mode is declared in `pr-mode-alist', the `*-buffer*'\nand `*-region*' commands will behave like `*-mode*' commands; otherwise,\n`*-buffer*' commands will print the current buffer and `*-region*' commands\nwill print the current region." pr-mode-alist '((mh-folder-mode pr-mh-lpr-1 pr-mh-print-1 2 (ps-article-author ps-article-subject) ("/pagenumberstring load" pr-article-date) nil) (mh-letter-mode pr-mh-lpr-2 pr-mh-print-2 2 (ps-article-author ps-article-subject) ("/pagenumberstring load" pr-article-date) nil) (rmail-summary-mode pr-rmail-lpr pr-rmail-print 3 (ps-article-subject ps-article-author buffer-name) nil nil) (rmail-mode pr-rmail-lpr pr-rmail-print 3 (ps-article-subject ps-article-author buffer-name) nil nil) (gnus-summary-mode pr-gnus-lpr pr-gnus-print 3 (ps-article-subject ps-article-author gnus-newsgroup-name) nil nil) (gnus-article-mode pr-gnus-lpr pr-gnus-print 3 (ps-article-subject ps-article-author gnus-newsgroup-name) nil nil) (Info-mode pr-mode-lpr pr-mode-print 2 (ps-info-node ps-info-file) nil nil) (vm-mode pr-vm-lpr pr-vm-print 3 (ps-article-subject ps-article-author buffer-name) nil nil)) "Specify an alist for a major-mode and printing functions.\n\nTo customize a major mode printing, just declare the customization in\n`pr-mode-alist' and invoke some of `*-mode*' commands. An example for major\nmode usage is when you're using gnus (or mh, or rmail, etc.) and you're in the\n*Summary* buffer, if you forget to switch to the *Article* buffer before\nprinting, you'll get a nicely formatted list of article subjects shows up at\nthe printer. With major mode printing you don't need to switch from gnus\n*Summary* buffer first.\n\nThe elements have the following form:\n\n (MAJOR-MODE\n LPR-PRINT PS-PRINT\n HEADER-LINES\n LEFT-HEADER\n RIGHT-HEADER\n KILL-LOCAL-VARIABLE\n DEFAULT...)\n\nWhere:\n\nMAJOR-MODE It's the major mode symbol.\n\nLPR-PRINT It's a symbol function for text printing. It's invoked with\n one argument:\n (HEADER-LINES LEFT-HEADER RIGHT-HEADER DEFAULT...).\n\n Usually LPR-PRINT function prepares the environment or buffer\n and then call the function `pr-mode-lpr' which it's used to\n process the buffer and send it to text printer.\n\n The `pr-mode-lpr' definition is:\n\n (pr-mode-lpr HEADER-LIST &optional FROM TO)\n\n Where HEADER-LIST is like the argument passed to LPR-PRINT.\n FROM and TO are the beginning and end markers, respectively,\n for a region. If FROM is nil, it's used (point-min); if TO is\n nil, it's used (point-max).\n\nPS-PRINT It's a symbol function for PostScript printing. It's invoked\n with three arguments: n-up printing, file name and the list:\n (HEADER-LINES LEFT-HEADER RIGHT-HEADER DEFAULT...).\n\n Usually PS-PRINT function prepares the environment or buffer\n and then call the function `pr-mode-print' which it's used to\n process the buffer and send it to PostScript printer.\n\n The `pr-mode-print' definition is:\n\n (pr-mode-print N-UP FILENAME HEADER-LIST &optional FROM TO)\n\n Where N-UP, FILENAME and HEADER-LIST are like the arguments\n passed to PS-PRINT. FROM and TO are the beginning and end\n markers, respectively, for a region. If TO is nil, it's used\n (point-max).\n\nHEADER-LINES It's the number of header lines; if is nil, it uses\n `ps-header-lines' value.\n\nLEFT-HEADER It's the left header part, it's a list of string, variable\n symbol or function symbol (with no argument); if is nil, it\n uses `ps-left-header' value.\n\nRIGHT-HEADER It's the right header part, it's a list of string, variable\n symbol or function symbol (with no argument); if is nil, it\n uses `ps-right-header' value.\n\nKILL-LOCAL-VARIABLE\n Non-nil means to kill all buffer local variable declared in\n DEFAULT (see below).\n\nDEFAULT It's a way to set default values when this entry is selected.\n It's a cons like:\n\n (VARIABLE-SYM . VALUE)\n\n Which associates VARIABLE-SYM with VALUE. When this entry is\n selected, it's executed the following command:\n\n (set (make-local-variable VARIABLE-SYM) (eval VALUE))\n\n Note that VALUE can be any valid lisp expression. So, don't\n forget to quote symbols and constant lists.\n If VARIABLE is the special keyword `inherits-from:', VALUE must\n be a symbol name setting defined in `pr-setting-database' from\n which the current setting inherits the context. Take care with\n circular inheritance.\n Examples:\n '(ps-landscape-mode . nil)\n '(ps-spool-duplex . t)\n '(pr-gs-device . (my-gs-device t))" (repeat (list :tag #1# (symbol :tag "Major Mode") (function :tag "Text Printing Function") (function :tag "PS Printing Function") (choice :menu-tag "Number of Header Lines" :tag "Number of Header Lines" (integer :tag "Number") (const :tag "Default Number" nil)) (repeat :tag "Left Header List" (choice :menu-tag "Left Header" :tag "Left Header" string symbol)) (repeat :tag "Right Header List" (choice :menu-tag "Right Header" :tag "Right Header" string symbol)) (boolean :tag "Kill Local Variable At End") (repeat :tag "Default Value List" :inline t (cons :tag #1# (choice :menu-tag "Variable" :tag "Variable" (const :tag "Landscape" ps-landscape-mode) (const :tag "Print Header" ps-print-header) (const :tag "Print Header Frame" ps-print-header-frame) (const :tag "Line Number" ps-line-number) (const :tag "Zebra Stripes" ps-zebra-stripes) (const :tag "Duplex" ps-spool-duplex) (const :tag "Tumble" ps-spool-tumble) (const :tag "Upside-Down" ps-print-upside-down) (const :tag "PS File Landscape" pr-file-landscape) (const :tag "PS File Duplex" pr-file-duplex) (const :tag "PS File Tumble" pr-file-tumble) (const :tag "Auto Region" pr-auto-region) (const :tag "Auto Mode" pr-auto-mode) (const :tag "Ghostscript Device" pr-gs-device) (const :tag "Ghostscript Resolution" pr-gs-resolution) (const :tag "inherits-from:" inherits-from:) (variable :tag "Other")) (sexp :tag "Value"))))) pr-ps-utility 'mpage "Specify PostScript utility symbol.\n\nThis utility symbol should be defined on `pr-ps-utility-alist' (see it for\ndocumentation).\n\nThis variable should be modified by customization engine. If this variable is\nmodified by other means (for example, a lisp function), use `pr-update-menus'\nfunction (see it for documentation) to update PostScript utility menu.\n\nNOTE: Don't forget to download and install the utilities declared on\n `pr-ps-utility-alist'." (symbol :tag "PS File Utility") pr-ps-utility-custom-set pr-ps-utility-alist '((mpage "mpage" nil "-b%s" "-%d" "-l" "-t" "-T" ">" nil) (psnup "psnup" ("-q") "-P%s" "-%d" "-l" nil nil " " nil (inherits-from: . no-duplex))) "Specify an alist for PostScript utility processing (PS utility database).\n\nThe alist element has the form:\n\n (SYMBOL UTILITY MUST-SWITCHES PAPERSIZE N-UP LANDSCAPE DUPLEX TUMBLE OUTPUT\n SWITCHES DEFAULT...)\n\nWhere:\n\nSYMBOL It's a symbol to identify a PostScript utility. It's for\n `pr-ps-utility' variable setting and for menu selection.\n Examples:\n 'mpage\n 'psnup\n\nUTILITY Name of utility for processing a PostScript file.\n See also `pr-path-alist'.\n Examples:\n . for GNU or Unix system:\n \"mpage\"\n \"psnup -q\"\n\n . for Windows system:\n \"c:/psutils/psnup -q\"\n\nMUST-SWITCHES List of sexp's to pass as options to the PostScript utility\n program. These options are necessary to process the utility\n program and must be placed before any other switches.\n Example:\n . for psnup:\n '(\"-q\")\n\nPAPERSIZE It's a format string to specify paper size switch.\n Example:\n . for mpage\n \"-b%s\"\n\nN-UP It's a format string to specify n-up switch.\n Example:\n . for psnup\n \"-%d\"\n\nLANDSCAPE It's a string to specify landscape switch. If the utility\n doesn't have landscape switch, set to nil.\n Example:\n . for psnup\n \"-l\"\n\nDUPLEX It's a string to specify duplex switch. If the utility doesn't\n have duplex switch, set to nil.\n Example:\n . for psnup\n nil\n\nTUMBLE It's a string to specify tumble switch. If the utility doesn't\n have tumble switch, set to nil.\n Example:\n . for psnup\n nil\n\nOUTPUT It's a string to specify how to generate an output file. Some\n utilities accept an output file option, but some others need\n output redirection or some other way to specify an output file.\n Example:\n . for psnup\n \" \" ; psnup ... input output\n\n . for mpage\n \">\" ; mpage ... input > output\n\nSWITCHES List of sexp's to pass as extra options to the PostScript utility\n program.\n Example:\n . for psnup\n '(\"-q\")\n nil\n\nDEFAULT It's a way to set default values when this entry is selected.\n It's a cons like:\n\n (VARIABLE . VALUE)\n\n Which associates VARIABLE with VALUE. When this entry is\n selected, it's executed the following command:\n\n (set VARIABLE (eval VALUE))\n\n Note that VALUE can be any valid lisp expression. So, don't\n forget to quote symbols and constant lists.\n If VARIABLE is the special keyword `inherits-from:', VALUE must\n be a symbol name setting defined in `pr-setting-database' from\n which the current setting inherits the context. Take care with\n circular inheritance.\n Examples:\n '(pr-file-landscape . nil)\n '(pr-file-duplex . t)\n '(pr-gs-device . (my-gs-device t))\n\nThis variable should be modified by customization engine. If this variable is\nmodified by other means (for example, a lisp function), use `pr-update-menus'\nfunction (see it for documentation) to update PostScript utility menu.\n\nNOTE: Don't forget to download and install the utilities declared on\n `pr-ps-utility-alist'.\n\nExamples:\n\n* On GNU or Unix system:\n\n '((mpage \"mpage\" nil \"-b%s\" \"-%d\" \"-l\" \"-t\" \"-T\" \">\" nil)\n (psnup \"psnup\" (\"-q\") \"-P%s\" \"-%d\" \"-l\" nil nil \" \" nil\n (pr-file-duplex . nil) (pr-file-tumble . nil))\n )\n\n* On Windows system:\n\n '((psnup \"c:/psutils/psnup\" (\"-q\") \"-P%s\" \"-%d\" \"-l\" nil nil \" \"\n nil (pr-file-duplex . nil) (pr-file-tumble . nil))\n )\n\nUseful links:\n\n* mpage download (GNU or Unix)\n `http://www.mesa.nl/pub/mpage/'\n\n* mpage documentation (GNU or Unix - or type `man mpage')\n `http://www.cs.umd.edu/faq/guides/manual_unix/node48.html'\n `http://www.rt.com/man/mpage.1.html'\n\n* psnup (Windows, GNU or Unix)\n `http://www.knackered.org/angus/psutils/'\n `http://gershwin.ens.fr/vdaniel/Doc-Locale/Outils-Gnu-Linux/PsUtils/'\n\n* psnup (PsUtils for Windows)\n `http://gnuwin32.sourceforge.net/packages/psutils.htm'\n\n* psnup documentation (GNU or Unix - or type `man psnup')\n `http://linux.about.com/library/cmd/blcmdl1_psnup.htm'\n `http://amath.colorado.edu/computing/software/man/psnup.html'\n\n* GNU Enscript (Windows, GNU or Unix)\n `http://people.ssh.com/mtr/genscript/'\n\n* GNU Enscript documentation (Windows, GNU or Unix)\n `http://people.ssh.com/mtr/genscript/enscript.man.html'\n (on GNU or Unix, type `man enscript')\n" (repeat (list :tag "PS File Utility" (symbol :tag "Utility Symbol") (string :tag "Utility Name") (repeat :tag "Must Utility Switches" (sexp :tag "Switch" :value #1#)) (choice :menu-tag "Paper Size" :tag "Paper Size" (const :tag "No Paper Size" nil) (string :tag "Paper Size Format")) (choice :menu-tag "N-Up" :tag "N-Up" (const :tag "No N-Up" nil) (string :tag "N-Up Format")) (choice :menu-tag "Landscape" :tag "Landscape" (const :tag "No Landscape" nil) (string :tag "Landscape Switch")) (choice :menu-tag "Duplex" :tag "Duplex" (const :tag "No Duplex" nil) (string :tag "Duplex Switch")) (choice :menu-tag "Tumble" :tag "Tumble" (const :tag "No Tumble" nil) (string :tag "Tumble Switch")) (string :tag "Output Separator") (repeat :tag "Utility Switches" (sexp :tag "Switch" :value #1#)) (repeat :tag "Default Value List" :inline t (cons :tag #1# (choice :menu-tag "Variable" :tag "Variable" (const :tag "PS File Landscape" pr-file-landscape) (const :tag "PS File Duplex" pr-file-duplex) (const :tag "PS File Tumble" pr-file-tumble) (const :tag "Ghostscript Device" pr-gs-device) (const :tag "Ghostscript Resolution" pr-gs-resolution) (const :tag "inherits-from:" inherits-from:) (variable :tag "Other")) (sexp :tag "Value"))))) pr-menu-lock "Non-nil means menu is locked while selecting toggle options.\n\nSee also `pr-menu-char-height' and `pr-menu-char-width'." pr-menu-char-height (pr-menu-char-height) "Specify menu char height in pixels.\n\nThis variable is used to guess which vertical position should be locked the\nmenu, so don't forget to adjust it if menu position is not ok.\n\nSee also `pr-menu-lock' and `pr-menu-char-width'." integer pr-menu-char-width (pr-menu-char-width) "Specify menu char width in pixels.\n\nThis variable is used to guess which horizontal position should be locked the\nmenu, so don't forget to adjust it if menu position is not ok.\n\nSee also `pr-menu-lock' and `pr-menu-char-height'." pr-setting-database '((no-duplex nil nil nil (pr-file-duplex) (pr-file-tumble))) "Specify an alist for settings in general.\n\nThe elements have the following form:\n\n (SYMBOL INHERITS LOCAL KILL-LOCAL SETTING...)\n\nWhere:\n\nSYMBOL It's a symbol to identify the setting group.\n\nINHERITS Specify the inheritance for SYMBOL group. It's a symbol name\n setting from which the current setting inherits the context.\n If INHERITS is nil, means that there is no inheritance.\n This is a simple inheritance mechanism.\n\n Let's see an example to illustrate the inheritance mechanism:\n\n (setq pr-setting-database\n '((no-duplex ; setting symbol name\n nil ; inherits\n nil nil ; local kill-local\n (pr-file-duplex . nil) ; settings\n (pr-file-tumble . nil)\n )\n (no-duplex-and-landscape ; setting symbol name\n no-duplex ; inherits\n nil nil ; local kill-local\n (pr-file-landscape . nil) ; settings\n )))\n\n The example above has two setting groups: no-duplex and\n no-duplex-and-landscape. When setting no-duplex is activated\n through `inherits-from:' (see `pr-ps-utility', `pr-mode-alist'\n and `pr-ps-printer-alist'), the variables pr-file-duplex and\n pr-file-tumble are both set to nil.\n\n Now when setting no-duplex-and-landscape is activated through\n `inherits-from:', the variable pr-file-landscape is set to nil\n and also the settings for no-duplex are done, because\n no-duplex-and-landscape inherits settings from no-duplex.\n\n Take care with circular inheritance. It's an error if circular\n inheritance happens.\n\nLOCAL Non-nil means that all settings for SYMBOL group will be\n declared local buffer.\n\nKILL-LOCAL Non-nil means that all settings for SYMBOL group will be\n killed at end. It has effect only when LOCAL is non-nil.\n\nSETTING It's a cons like:\n\n (VARIABLE . VALUE)\n\n Which associates VARIABLE with VALUE. When this entry is\n selected, it's executed the following command:\n\n * If LOCAL is non-nil:\n (set (make-local-variable VARIABLE) (eval VALUE))\n\n * If LOCAL is nil:\n (set VARIABLE (eval VALUE))\n\n Note that VALUE can be any valid lisp expression. So, don't\n forget to quote symbols and constant lists.\n This setting is ignored if VARIABLE is equal to keyword\n `inherits-from:'.\n Examples:\n '(ps-landscape-mode . nil)\n '(ps-spool-duplex . t)\n '(pr-gs-device . (my-gs-device t))" (repeat (list :tag #1# (symbol :tag "Setting Name") (choice :menu-tag "Inheritance" :tag "Inheritance" (const :tag "No Inheritance" nil) (symbol :tag "Inherits From")) (boolean :tag "Local Buffer Setting") (boolean :tag "Kill Local Variable At End") (repeat :tag "Setting List" :inline t (cons :tag #1# (choice :menu-tag "Variable" :tag "Variable" (const :tag "Landscape" ps-landscape-mode) (const :tag "Print Header" ps-print-header) (const :tag "Print Header Frame" ps-print-header-frame) (const :tag "Line Number" ps-line-number) (const :tag "Zebra Stripes" ps-zebra-stripes) (const :tag "Duplex" ps-spool-duplex) (const :tag "Tumble" ps-spool-tumble) (const :tag "Upside-Down" ps-print-upside-down) (const :tag "PS File Landscape" pr-file-landscape) (const :tag "PS File Duplex" pr-file-duplex) (const :tag "PS File Tumble" pr-file-tumble) (const :tag "Auto Region" pr-auto-region) (const :tag "Auto Mode" pr-auto-mode) (const :tag "Ghostscript Device" pr-gs-device) (const :tag "Ghostscript Resolution" pr-gs-resolution) (variable :tag "Other")) (sexp :tag "Value"))))) pr-visible-entry-list '(postscript text postscript-options postscript-process printing help) "Specify a list of Printing menu visible entries.\n\nValid values with the corresponding menu parts are:\n\n +------------------------------+\n | Printing Interface |\n +------------------------------+\n `postscript' | PostScript Preview >|\n | PostScript Print >|\n | PostScript Printer: name >|\n +------------------------------+\n `text' | Printify >|\n | Print >|\n | Text Printer: name >|\n +------------------------------+\n `postscript-options' |[ ] Landscape |\n |[ ] Print Header |\n |[ ] Print Header Frame |\n |[ ] Line Number |\n |[ ] Zebra Stripes |\n |[ ] Duplex |\n |[ ] Tumble |\n |[ ] Upside-Down |\n | Print All Pages >|\n +------------------------------+\n `postscript-process' |[ ] Spool Buffer |\n |[ ] Print with faces |\n |[ ] Print via Ghostscript |\n +------------------------------+\n `printing' |[ ] Auto Region |\n |[ ] Auto Mode |\n |[ ] Menu Lock |\n +------------------------------+\n `help' | Customize >|\n | Show Settings >|\n | Help |\n +------------------------------+\n\nAny other value is ignored." (repeat :tag "Menu Visible Part" (choice :menu-tag "Menu Part" :tag "Menu Part" (const postscript) (const text) (const postscript-options) (const postscript-process) (const printing) (const help))) pr-delete-temp-file "Non-nil means delete temporary files.\n\nSet `pr-delete-temp-file' to nil, if the following message (or a similar)\nhappens when printing:\n\n Error: could not open \"c:\\temp\\prspool.ps\" for reading." pr-list-directory "Non-nil means list directory when processing a directory.\n\nThat is, any subdirectories (and the superdirectory) of the directory (given as\nargument of functions below) are also printed (as dired-mode listings).\n\nIt's used by `pr-ps-directory-preview', `pr-ps-directory-using-ghostscript',\n`pr-ps-directory-print', `pr-ps-directory-ps-print', `pr-printify-directory'\nand `pr-txt-directory'." pr-buffer-name "*Printing Interface*" "Specify the name of the buffer interface for printing package.\n\nIt's used by `pr-interface'." string pr-buffer-name-ignore (list (regexp-quote pr-buffer-name) "^ .*$") "Specify a regexp list for buffer names to be ignored in interface buffer.\n\nNOTE: Case is important for matching, that is, `case-fold-search' is always\n nil.\n\nIt's used by `pr-interface'." (repeat (regexp :tag "Buffer Name Regexp")) pr-buffer-verbose "Non-nil means to be verbose when editing a field in interface buffer.\n\nIt's used by `pr-interface'."] 16) #@71 Name of program for printing a text file. See `pr-txt-printer-alist'. (defvar pr-txt-command nil (#$ . 53030)) #@98 List of sexp's to pass as extra options to the text printer program. See `pr-txt-printer-alist'. (defvar pr-txt-switches nil (#$ . 53147)) #@56 Specify text printer name. See `pr-txt-printer-alist'. (defvar pr-txt-printer nil (#$ . 53292)) #@76 Name of program for printing a PostScript file. See `pr-ps-printer-alist'. (defvar pr-ps-command nil (#$ . 53394)) #@103 List of sexp's to pass as extra options to the PostScript printer program. See `pr-ps-printer-alist'. (defvar pr-ps-switches nil (#$ . 53516)) #@68 Specify PostScript printer name switch. See `pr-ps-printer-alist'. (defvar pr-ps-printer-switch nil (#$ . 53665)) #@61 Specify PostScript printer name. See `pr-ps-printer-alist'. (defvar pr-ps-printer nil (#$ . 53785)) #@47 Set temporally file modes to `pr-file-modes'. (defalias 'pr-save-file-modes '(macro . #[(&rest body) "\301\302\303\304\305\"BBB\207" [body let ((pr--default-file-modes (default-file-modes))) (set-default-file-modes pr-file-modes) append ((set-default-file-modes pr--default-file-modes))] 6 (#$ . 53891)])) (defalias 'pr-visible-p #[(key) " >\207" [key pr-visible-entry-list] 2]) (put 'pr-visible-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'pr-mode-alist-p #[nil " \236A\207" [major-mode pr-mode-alist] 2]) (put 'pr-mode-alist-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'pr-auto-mode-p #[nil "\205 \n\236A\207" [pr-auto-mode major-mode pr-mode-alist] 2]) (put 'pr-auto-mode-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'pr-using-ghostscript-p #[nil "\205 ?\207" [pr-print-using-ghostscript pr-spool-p] 1]) (byte-code "\300\301\302\303#\210\304\305\306\307!\203 \307\202 \310\"\207" [put pr-using-ghostscript-p byte-optimizer byte-compile-inline-expand defalias pr-get-symbol fboundp easy-menu-intern #[(s) ";\203 \301!\207\207" [s intern] 2]] 4) (defconst pr-menu-spec (byte-code "\302\303\304\305\306\307\310!BB\"\311\312\313\314\315\316!\317 \320BB\321 \322BB\323 \324BB\325 \326BB\327\304\305\330\331\332\333\334!BBBB\"\311\304\305\335\336\302\337\340!BBBB\"\311\341\342\343\344\311\304\305\345\346\347\350\351\352\315\353!\354\"BBBBBB\"\304\305\355\356\347\350\351\357\315\360!\361\"BBBBBB\"\304\305\362\363\347\350\351\364\315\365!\366\"BBBBBB\"\257 \304\305\367\370\302\371\332\372\373!BBBBBB\"\257\"BBB\374\313\375\315\376!\377\201@ \323 \201A BB\325 \201B BB\327\304\305\330\201C \332\201D \201E !BBBB\"\311\304\305\335\336\302\337\340!BBBB\"\311\201F \201G \201H \201I \311\304\305\345\346\347\350\351\352\315\353!\201J \"BBBBBB\"\304\305\355\356\347\350\351\357\315\360!\201K \"BBBBBB\"\304\305\362\363\347\350\351\364\315\365!\201L \"BBBBBB\"\257 \304\305\367\201M \302\371\332\201N \373!BBBBBB\"\257\"BBB\304\305\201O \336\302\201P \313\201Q \201R !BBBBBB\"\311\201S \313\201T \315\201U !\201V \"BBB\201W \313\201X \315\201Y !\201Z \"BBB\304\305\201[ \336\302\201\\ \313\201] \201^ !BBBBBB\"\311\201_ \201` \201a \201b \201c \201d \201e \201f \201g \313\201h \315\201i !\201j \"BBB\311\304\305\201k \201l \347\350\351\371\313\201m \201n !BBBBBBBB\"\304\305\201o \201p \347\350\351\201q \313\201r \201s !BBBBBBBB\"\304\305\201t \201u \347\350\351\201v \313\201w \201x !BBBBBBBB\"*\201y BBBBBBBBBBBBBBBBBBBBBBB\207" [pr-:help pr-:active :active #[(text) "\301D\207" [text :help] 2] apply vector "Printing Interface" pr-interface "Use buffer interface instead of menu interface" "--" "PostScript Preview" :included (pr-visible-p 'postscript) append "Preview PostScript instead of sending to printer" "Directory" ((not pr-spool-p) ["1-up" (pr-ps-directory-preview 1 nil nil t) t] ["2-up" (pr-ps-directory-preview 2 nil nil t) t] ["4-up" (pr-ps-directory-preview 4 nil nil t) t] ["Other..." (pr-ps-directory-preview nil nil nil t) :keys "\\[pr-ps-buffer-preview]"]) "Buffer" ((not pr-spool-p) ["1-up" (pr-ps-buffer-preview 1 t) t] ["2-up" (pr-ps-buffer-preview 2 t) t] ["4-up" (pr-ps-buffer-preview 4 t) t] ["Other..." (pr-ps-buffer-preview nil t) :keys "\\[pr-ps-buffer-preview]"]) "Region" ((and (not pr-spool-p) (ps-mark-active-p)) ["1-up" (pr-ps-region-preview 1 t) t] ["2-up" (pr-ps-region-preview 2 t) t] ["4-up" (pr-ps-region-preview 4 t) t] ["Other..." (pr-ps-region-preview nil t) :keys "\\[pr-ps-region-preview]"]) "Mode" ((and (not pr-spool-p) (pr-mode-alist-p)) ["1-up" (pr-ps-mode-preview 1 t) t] ["2-up" (pr-ps-mode-preview 2 t) t] ["4-up" (pr-ps-mode-preview 4 t) t] ["Other..." (pr-ps-mode-preview nil t) :keys "\\[pr-ps-mode-preview]"]) "File" "No Preprocessing..." (call-interactively 'pr-ps-file-preview) :keys "\\[pr-ps-file-preview]" "Preview PostScript file" "PostScript Utility" pr-update-menus pr-ps-utility-alist "Select PostScript utility" ["1-up..." (pr-ps-file-up-preview 1 t t) pr-ps-utility-alist] ["2-up..." (pr-ps-file-up-preview 2 t t) pr-ps-utility-alist] ["4-up..." (pr-ps-file-up-preview 4 t t) pr-ps-utility-alist] ["Other..." (pr-ps-file-up-preview nil t t) :keys "\\[pr-ps-file-up-preview]" :active pr-ps-utility-alist] "Landscape" pr-toggle-file-landscape-menu :style toggle :selected pr-file-landscape "Toggle landscape for PostScript file" (:active pr-ps-utility-alist) "Duplex" pr-toggle-file-duplex-menu pr-file-duplex "Toggle duplex for PostScript file" (:active pr-ps-utility-alist) "Tumble" pr-toggle-file-tumble-menu pr-file-tumble "Toggle tumble for PostScript file" (:active (and pr-file-duplex pr-ps-utility-alist)) "Despool..." (call-interactively 'pr-despool-preview) pr-spool-p "\\[pr-despool-preview]" "Despool PostScript buffer to printer or file (C-u)" "PostScript Print" (pr-visible-p 'postscript) "Send PostScript to printer or file (C-u)" ("Directory" ["1-up" (pr-ps-directory-ps-print 1 nil nil t) t] ["2-up" (pr-ps-directory-ps-print 2 nil nil t) t] ["4-up" (pr-ps-directory-ps-print 4 nil nil t) t] ["Other..." (pr-ps-directory-ps-print nil nil nil t) :keys "\\[pr-ps-buffer-ps-print]"]) ("Buffer" ["1-up" (pr-ps-buffer-ps-print 1 t) t] ["2-up" (pr-ps-buffer-ps-print 2 t) t] ["4-up" (pr-ps-buffer-ps-print 4 t) t] ["Other..." (pr-ps-buffer-ps-print nil t) :keys "\\[pr-ps-buffer-ps-print]"]) ((ps-mark-active-p) ["1-up" (pr-ps-region-ps-print 1 t) t] ["2-up" (pr-ps-region-ps-print 2 t) t] ["4-up" (pr-ps-region-ps-print 4 t) t] ["Other..." (pr-ps-region-ps-print nil t) :keys "\\[pr-ps-region-ps-print]"]) ((pr-mode-alist-p) ["1-up" (pr-ps-mode-ps-print 1 t) t] ["2-up" (pr-ps-mode-ps-print 2 t) t] ["4-up" (pr-ps-mode-ps-print 4 t) t] ["Other..." (pr-ps-mode-ps-print nil t) :keys "\\[pr-ps-mode-ps-print]"]) (call-interactively 'pr-ps-file-ps-print) "\\[pr-ps-file-ps-print]" "Send PostScript file to printer" ["1-up..." (pr-ps-file-up-ps-print 1 t t) pr-ps-utility-alist] ["2-up..." (pr-ps-file-up-ps-print 2 t t) pr-ps-utility-alist] ["4-up..." (pr-ps-file-up-ps-print 4 t t) pr-ps-utility-alist] ["Other..." (pr-ps-file-up-ps-print nil t t) :keys "\\[pr-ps-file-up-ps-print]" :active pr-ps-utility-alist] (:active pr-ps-utility-alist) (:active pr-ps-utility-alist) (:active (and pr-file-duplex pr-ps-utility-alist)) (call-interactively 'pr-despool-ps-print) "\\[pr-despool-ps-print]" "PostScript Printers" pr-ps-printer-alist (pr-visible-p 'postscript) "Select PostScript printer" "Printify" (pr-visible-p 'text) "Replace non-printing chars with printable representations." (["Directory" pr-printify-directory t] ["Buffer" pr-printify-buffer t] ["Region" pr-printify-region (ps-mark-active-p)]) "Print" (pr-visible-p 'text) "Send text to printer" (["Directory" pr-txt-directory t] ["Buffer" pr-txt-buffer t] ["Region" pr-txt-region (ps-mark-active-p)] ["Mode" pr-txt-mode (pr-mode-alist-p)]) "Text Printers" pr-txt-printer-alist (pr-visible-p 'text) "Select text printer" ["Landscape" pr-toggle-landscape-menu :style toggle :selected ps-landscape-mode :included (pr-visible-p 'postscript-options)] ["Print Header" pr-toggle-header-menu :style toggle :selected ps-print-header :included (pr-visible-p 'postscript-options)] ["Print Header Frame" pr-toggle-header-frame-menu :style toggle :selected ps-print-header-frame :active ps-print-header :included (pr-visible-p 'postscript-options)] ["Line Number" pr-toggle-line-menu :style toggle :selected ps-line-number :included (pr-visible-p 'postscript-options)] ["Zebra Stripes" pr-toggle-zebra-menu :style toggle :selected ps-zebra-stripes :included (pr-visible-p 'postscript-options)] ["Duplex" pr-toggle-duplex-menu :style toggle :selected ps-spool-duplex :included (pr-visible-p 'postscript-options)] ["Tumble" pr-toggle-tumble-menu :style toggle :selected ps-spool-tumble :active ps-spool-duplex :included (pr-visible-p 'postscript-options)] ["Upside-Down" pr-toggle-upside-down-menu :style toggle :selected ps-print-upside-down :included (pr-visible-p 'postscript-options)] "Print All Pages" (pr-visible-p 'postscript-options) "Select odd/even pages/sheets to print" (["All Pages" (pr-even-or-odd-pages nil) :style radio :selected (eq ps-even-or-odd-pages nil)] ["Even Pages" (pr-even-or-odd-pages 'even-page) :style radio :selected (eq ps-even-or-odd-pages 'even-page)] ["Odd Pages" (pr-even-or-odd-pages 'odd-page) :style radio :selected (eq ps-even-or-odd-pages 'odd-page)] ["Even Sheets" (pr-even-or-odd-pages 'even-sheet) :style radio :selected (eq ps-even-or-odd-pages 'even-sheet)] ["Odd Sheets" (pr-even-or-odd-pages 'odd-sheet) :style radio :selected (eq ps-even-or-odd-pages 'odd-sheet)]) "Spool Buffer" pr-toggle-spool-menu (pr-visible-p 'postscript-process) "Toggle PostScript spooling" "Print with faces" pr-toggle-faces-menu pr-faces-p (pr-visible-p 'postscript-process) "Toggle PostScript printing with faces" "Print via Ghostscript" pr-toggle-ghostscript-menu pr-print-using-ghostscript (pr-visible-p 'postscript-process) "Toggle PostScript generation using ghostscript" ("--" ["Auto Region" pr-toggle-region-menu :style toggle :selected pr-auto-region :included (pr-visible-p 'printing)] ["Auto Mode" pr-toggle-mode-menu :style toggle :selected pr-auto-mode :included (pr-visible-p 'printing)] ["Menu Lock" pr-toggle-lock-menu :style toggle :selected pr-menu-lock :included (pr-visible-p 'printing)] "--" ("Customize" :included (pr-visible-p 'help) ["printing" pr-customize t] ["ps-print" ps-print-customize t] ["lpr" lpr-customize t]) ("Show Settings" :included (pr-visible-p 'help) ["printing" pr-show-pr-setup t] ["ps-print" pr-show-ps-setup t] ["lpr" pr-show-lpr-setup t]) ["Help" pr-help :active t :included (pr-visible-p 'help)])] 35)) #@153 Install `printing' menu in the menubar. This replaces the File/Print* menu entries with a File/Print sub-menu. Calls `pr-update-menus' to adjust menus. (defalias 'pr-menu-bind #[nil "\301!\210\302\303!\207" [pr-menu-spec pr-global-menubar pr-update-menus t] 2 (#$ . 63568) nil]) (byte-code "\301\302\303!\304\"\210\302\303\305D!\306\"\210\302\303\307D!\306\"\210\302\303\310D!\311\"\210\302\303\310\305E!\311\"\210)\301\207" [pr-print-key print global-set-key vector pr-ps-fast-fire meta pr-ps-mode-using-ghostscript shift control pr-txt-fast-fire] 5) #@24 Printing help message. (defconst pr-help-message (concat "printing.el version " pr-version " ps-print.el version " ps-print-version "\n\n\nMenu Layout\n-----------\n\nThe `printing' menu (Tools/Printing or File/Print) has the following layout:\n\n +-----------------------------+\nA 0 | Printing Interface |\n +-----------------------------+ +-A---------+ +-B------+\nI 1 | PostScript Preview >|-------|Directory >|-----|1-up |\n 2 | PostScript Print >|---- A |Buffer >|-- B |2-up |\n 3 | PostScript Printer: name >|---- C |Region >|-- B |4-up |\n +-----------------------------+ |Mode >|-- B |Other...|\nII 4 | Printify >|-----\\ |File >|--\\ +--------+\n 5 | Print >|---\\ | |Despool... | |\n 6 | Text Printer: name >|-\\ | | +-----------+ |\n +-----------------------------+ | | | +---------+ +------------+\nIII 7 |[ ]Landscape | | | \\-|Directory| | No Prep... | Ia\n 8 |[ ]Print Header | | | |Buffer | +------------+ Ib\n 9 |[ ]Print Header Frame | | | |Region | | name >|- C\n 10 |[ ]Line Number | | | +---------+ +------------+\n 11 |[ ]Zebra Stripes | | | +---------+ | 1-up... | Ic\n 12 |[ ]Duplex | | \\---|Directory| | 2-up... |\n 13 |[ ]Tumble | \\--\\ |Buffer | | 4-up... |\n 14 |[ ]Upside-Down | | |Region | | Other... |\n 15 | Print All Pages >|--\\ | |Mode | +------------+\n +-----------------------------+ | | +---------+ |[ ]Landscape| Id\nIV 16 |[ ]Spool Buffer | | | +-C-------+ |[ ]Duplex | Ie\n 17 |[ ]Print with faces | | \\--|( )name A| |[ ]Tumble | If\n 18 |[ ]Print via Ghostscript | | |( )name B| +------------+\n +-----------------------------+ | |... |\nV 19 |[ ]Auto Region | | |(*)name |\n 20 |[ ]Auto Mode | | |... |\n 21 |[ ]Menu Lock | | +---------+ +--------------+\n +-----------------------------+ \\------------------|(*)All Pages |\nVI 22 | Customize >|--- D +-D------+ |( )Even Pages |\n 23 | Show Settings >|-------|printing| |( )Odd Pages |\n 24 | Help | |ps-print| |( )Even Sheets|\n +-----------------------------+ |lpr | |( )Odd Sheets |\n +--------+ +--------------+\n\nSee `pr-visible-entry-list' for hiding some parts of the menu.\n\nThe menu has the following sections:\n\nA. Interface:\n\n 0. You can use a buffer interface instead of menus. It looks like the\n customization buffer. Basically, it has the same options found in the\n menu and some extra options, all this on a buffer.\n\nI. PostScript printing:\n\n 1. You can generate a PostScript file (if you type C-u before activating\n menu) or PostScript temporary file for a directory, a buffer, a region\n or a major mode, choosing 1-up, 2-up, 4-up or any other n-up printing;\n after file generation, ghostview is activated using the file generated\n as argument. This option is disabled if spooling is on (option 16).\n Also, if you already have a PostScript file you can preview it.\n Instead of previewing each buffer, region or major mode at once, you\n can save temporarily the PostScript code generated in a buffer and\n preview it later. The option `Despool...' despools the PostScript\n spooling buffer in a temporary file and uses ghostview to preview it.\n If you type C-u before choosing this option, the PostScript code\n generated is saved in a file instead of saving in a temporary file. To\n spool the PostScript code generated you need to turn on the option 16.\n The option `Despool...' is enabled if spooling is on (option 16).\n\n NOTE 1: It's possible to customize a major mode printing, just declare\n the customization in `pr-mode-alist' and invoke some of\n `*-mode*' commands or select Mode option in Printing menu. An\n example for major mode usage is when you're using gnus (or mh,\n or rmail, etc.) and you're in the *Summary* buffer, if you\n forget to switch to the *Article* buffer before printing,\n you'll get a nicely formatted list of article subjects shows\n up at the printer. With major mode printing you don't need to\n switch from gnus *Summary* buffer first.\n\n NOTE 2: There are the following options for PostScript file processing:\n Ia. Print the file *No Preprocessing*, that is, send it\n directly to PostScript printer.\n Ib. PostScript utility processing selection.\n See `pr-ps-utility-alist' and `pr-setting-database' for\n documentation.\n Ic. Do n-up processing before printing.\n Id. Toggle on/off landscape for PostScript file processing.\n Ie. Toggle on/off duplex for PostScript file processing.\n If. Toggle on/off tumble for PostScript file processing.\n\n NOTE 3: Don't forget to download and install the utilities declared on\n `pr-ps-utility-alist'.\n\n 2. Operate the same way as option 1, but it sends directly the PostScript\n code (or put in a file, if you've typed C-u) or it uses ghostscript to\n print the PostScript file generated. It depends on option 18, if it's\n turned on, it uses ghostscript; otherwise, it sends directly to\n printer. If spooling is on (option 16), the PostScript code is saved\n temporarily in a buffer instead of printing it or saving it in a file.\n Also, if you already have a PostScript file you can print it.\n Instead of printing each buffer, region or major mode at once, you can\n save temporarily the PostScript code generated in a buffer and print it\n later. The option `Despool...' despools the PostScript spooling buffer\n directly on a printer. If you type C-u before choosing this option,\n the PostScript code generated is saved in a file instead of sending it to\n the printer. To spool the PostScript code generated you need to turn on\n option 16. This option is enabled if spooling is on (option 16).\n See also the NOTE 1, NOTE 2 and NOTE 3 on option 1.\n\n 3. You can select a new PostScript printer to send PostScript code\n generated. For selection it's used all PostScript printers defined\n in `pr-ps-printer-alist' variable (see it for documentation).\n See also `pr-setting-database'.\n\nII. Text printing:\n\n 4. If you have control characters (character code from \\000 to \\037) in a\n buffer and you want to print them in a text printer, select this\n option. All control characters in your buffer or region will be\n replaced by a printable representation. The printable representations\n use ^ (for ASCII control characters) or hex. The characters tab,\n linefeed, space, return and formfeed are not affected.\n You don't need to select this option if you use any option of section\n I, the PostScript engine treats control characters properly.\n\n 5. If you want to print a directory, buffer, region or major mode in a\n text printer, select this option. See also the NOTE 1 on option 1.\n\n 6. You can select a new text printer to send text generated. For\n selection it's used all text printers defined in `pr-txt-printer-alist'\n variable (see it for documentation).\n See also `pr-setting-database'.\n\nIII. PostScript page toggle options:\n\n 7. If you want a PostScript landscape printing, turn on this option.\n\n 8. If you want to have a header in each page in your PostScript code,\n turn on this option.\n\n 9. If you want to draw a gaudy frame around the header, turn on this\n option. This option is enabled if print header is on (option 8).\n\n 10. If you want that the line number is printed in your PostScript code,\n turn on this option.\n\n 11. If you want background zebra stripes in your PostScript code, turn on\n this option.\n\n 12. If you want a duplex printing and your PostScript printer has this\n feature, turn on this option.\n\n 13. If you turned on duplex printing, you can choose if you want to have a\n printing suitable for binding on the left or right (tumble off), or to\n have a printing suitable for binding at top or bottom (tumble on).\n This option is enabled if duplex is on (option 12).\n\n 14. If you want a PostScript upside-down printing, turn on this option.\n\n 15. With this option, you can choose if you want to print all pages, odd\n pages, even pages, odd sheets or even sheets.\n See also `ps-even-or-odd-pages'.\n\nIV. PostScript processing toggle options:\n\n 16. If you want to spool the PostScript code generated, turn on this\n option. To spool the PostScript code generated use option 2. You can\n despool later by choosing option 1 or 2, sub-option `Despool...'.\n\n 17. If you use colors in your buffers and want to see these colors on your\n PostScript code generated, turn on this option. If you have a\n black/white PostScript printer, these colors are displayed in gray\n scale by PostScript printer interpreter.\n\n 18. If you don't have a PostScript printer to send PostScript files, turn\n on this option. When this option is on, the ghostscript is used to\n print PostScript files. In GNU or Unix system, if ghostscript is set\n as a PostScript filter, you don't need to turn on this option.\n\nV. Printing customization:\n\n 19. If you want that region is automagically detected, turn on this\n option. Note that this will only work if you're using transient mark\n mode. When this option is on, the `*-buffer*' commands will behave\n like `*-region*' commands, that is, `*-buffer*' commands will print\n only the region marked instead of all buffer.\n\n 20. Turn this option on if you want that when current major-mode is\n declared in `pr-mode-alist', the `*-buffer*' and `*-region*' commands\n behave like `*-mode*' commands.\n\n 21. If you want that Printing menu stays open while you are setting\n toggle options, turn on this option. The variables\n `pr-menu-char-height' and `pr-menu-char-width' are used to guess the\n menu position, so don't forget to adjust these variables if menu\n position is not ok.\n\nVI. Customization:\n\n 22. Besides all options in section III, IV and V, you can customize much\n more PostScript options in `ps-print' option. Or you can customize\n some `lpr' options for text printing. Or customize `printing'\n options.\n\n 23. Show current settings for `printing', `ps-print' or `lpr'.\n\n 24. Quick help for printing menu layout.\n") (#$ . 64133)) #@41 Printing buffer interface help message. (defconst pr-interface-help-message (concat "printing.el version " pr-version " ps-print.el version " ps-print-version "\n\n\nThe printing interface buffer has the same functionality as the printing menu.\nThe major difference is that the states (like sending PostScript generated to a\nfile, n-up printing, etc.) are set and saved between printing buffer\nactivation. Also, the landscape, duplex and tumble values are the same for\nPostScript file and directory/buffer/region/mode processing; using menu, there\nare different value sets for PostScript file and directory/buffer/region/mode\nprocessing.\n\nThe printing interface buffer has the following sections:\n\n1. Print:\n\n Here you can choose to print/preview a buffer, a directory or a PostScript\n file:\n\n 1a. Buffer:\n\n * Buffer List:\n Select a buffer from the current buffer list.\n\n * Region:\n If it's on, this means that the selected buffer has an active region,\n so you can turn on/off, as you wish.\n If it's off when a buffer is selected, this means that the selected\n buffer has no active region, so it'll not be possible to turn it on.\n If you want to process the region, let this option on.\n If you want to process the whole buffer, let this option off.\n\n * Mode:\n If it's on, this means that the selected buffer major mode is declared\n for major mode processing, so you can turn on/off, as you wish.\n If it's off when a buffer is selected, this means that the selected\n buffer major mode isn't declared for major mode processing, so it'll\n not be possible to turn it on.\n If you want the major mode processing, let this option on.\n If you don't want the major mode processing, let this option off.\n\n NOTE 1: It's possible to customize a major mode printing, just declare\n the customization in `pr-mode-alist' and invoke some of\n `*-mode*' commands or select Mode option in Printing menu. An\n example for major mode usage is when you're using gnus (or mh,\n or rmail, etc.) and you're in the *Summary* buffer, if you\n forget to switch to the *Article* buffer before printing,\n you'll get a nicely formatted list of article subjects shows\n up at the printer. With major mode printing you don't need to\n switch from gnus *Summary* buffer first.\n\n 1b. Directory:\n\n * Directory:\n Specify a valid directory path.\n\n * File Regexp:\n Specify a file name regexp. All file names in the directory that\n match with regexp will be printed/previewed. An empty file name\n regexp means to print/preview all files in the directory.\n\n * List Directory Entry:\n If it's turned on, list directory entries besides file entries.\n\n 1c. PostScript file:\n\n * PostScript File:\n Specify an existent PostScript file to print/preview.\n\n * PostScript Utility:\n Select a PostScript utility.\n See `pr-ps-utility-alist' and `pr-setting-database' for documentation.\n\n NOTE 2: Don't forget to download and install the utilities declared on\n `pr-ps-utility-alist'.\n\n * No Preprocessing:\n If it's turned on, don't use the PostScript utility to preprocess the\n PostScript file before printing/previewing.\n\n2. PostScript printer:\n\n * PostScript Printer:\n You can select a new PostScript printer to send PostScript code\n generated. For selection it's used all PostScript printers defined\n in `pr-ps-printer-alist' variable (see it for documentation).\n See also `pr-setting-database'.\n\n * Despool:\n If spooling is on, you can turn it on/off, as you wish.\n If spooling is off, it'll not be possible to turn it on.\n If it's turned on, specify to despools the PostScript spooling buffer in\n a temporary file or in the selected PostScript file when\n printing/previewing.\n\n * Preview:\n Preview the PostScript generated.\n\n * Print:\n Print the PostScript generated.\n\n * Quit:\n Quit from printing interface buffer.\n\n * Send to Printer/Temporary File:\n If it's turned on, the PostScript generated is sent directly to\n PostScript printer or, for previewing, to a temporary file.\n\n * Send to File:\n Specify a file name to send the PostScript generated.\n\n * N-Up:\n Specify n-up printing.\n\n3. Text printer:\n\n * Text Printer:\n Select a new text printer to send text generated. For selection it's used\n all text printers defined in `pr-txt-printer-alist' variable (see it for\n documentation). See also `pr-setting-database'.\n\n * Printify:\n If you have control characters (character code from \\000 to \\037) in a\n buffer and you want to print them in a text printer, select this\n option. All control characters in your buffer or region will be\n replaced by a printable representation. The printable representations\n use ^ (for ASCII control characters) or hex. The characters tab,\n linefeed, space, return and formfeed are not affected.\n You don't need to select this option if you use any option of section\n I, the PostScript engine treats control characters properly.\n\n * Print:\n To print a directory, buffer, region or major mode in a\n text printer, select this option. See also the NOTE 1 on section 1.\n\n * Quit:\n Quit from printing interface buffer.\n\n4. Settings:\n\n There are 3 setting columns:\n\n 4a. First column (left column):\n\n * Landscape:\n PostScript landscape printing.\n\n * Print Header:\n To have a header in each page in your PostScript code.\n\n * Print Header Frame:\n To draw a gaudy frame around the header.\n\n * Line Number:\n The line number is printed in your PostScript code.\n\n * Zebra Stripes:\n Background zebra stripes in your PostScript code.\n\n * Duplex:\n Duplex printing (if your PostScript printer has this feature).\n\n * Tumble:\n If duplex printing is on, you can choose if you want to have a\n printing suitable for binding on the left or right (tumble off), or to\n have a printing suitable for binding at top or bottom (tumble on).\n\n * Upside-Down:\n PostScript upside-down printing.\n\n 4b. Second column (middle column):\n\n * Auto Region:\n If you want that region is automagically detected, turn on this\n option. Note that this will only work if you're using transient mark\n mode. When this option is on, the `*-buffer*' commands will behave\n like `*-region*' commands, that is, `*-buffer*' commands will print\n only the region marked instead of all buffer.\n\n * Auto Mode:\n Turn this option on if you want that when current major-mode is\n declared in `pr-mode-alist', the `*-buffer*' and `*-region*' commands\n behave like `*-mode*' commands.\n\n * Menu Lock:\n If you want that Printing menu stays open while you are setting\n toggle options, turn on this option. The variables\n `pr-menu-char-height' and `pr-menu-char-width' are used to guess the\n menu position, so don't forget to adjust these variables if menu\n position is not ok.\n\n * Spool Buffer:\n To spool the PostScript code generated. You can despool later by\n setting Despool option on PostScript printer section.\n\n * Print with faces:\n If you use colors in your buffers and want to see these colors on your\n PostScript code generated, turn on this option. If you have a\n black/white PostScript printer, these colors are displayed in gray\n scale by PostScript printer interpreter.\n\n * Print via Ghostscript:\n If you don't have a PostScript printer to send PostScript files, turn\n on this option. When this option is on, the ghostscript is used to\n print PostScript files. In GNU or Unix system, if ghostscript is set\n as a PostScript filter, you don't need to turn on this option.\n\n * Parity Page Menu:\n To print all pages, odd pages, even pages, odd sheets or even sheets.\n See also `ps-even-or-odd-pages'.\n\n 4c. Third column (right column):\n\n * Verbose:\n That is, to be verbose when editing a field in interface buffer.\n\n5. Customize:\n\n Besides all options in section 4, you can customize much more PostScript\n options in `ps-print' option. Or you can customize some `lpr' options for\n text printing. Or customize `printing' options.\n\n6. Show settings:\n\n Show current settings for `printing', `ps-print' or `lpr'.\n\n7. Help:\n\n Quick help for printing interface buffer and printing menu layout. You can\n also quit the printing interface buffer or kill all printing help buffer.\n") (#$ . 75278)) #@151 Activate the printing interface buffer. If BUFFER is nil, the current buffer is used for printing. For more information, type \[pr-interface-help]. (defalias 'pr-interface #[(&optional buffer) "r\206 pq\210\301 )\207" [buffer pr-create-interface] 1 (#$ . 83996) nil]) #@747 Preview directory using ghostview. Interactively, the command prompts for N-UP printing number, a directory, a file name regexp for matching and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of saving it in a temporary file. Noninteractively, if N-UP is nil, prompts for N-UP printing number. If DIR is nil, prompts for DIRectory. If FILE-REGEXP is nil, prompts for FILE(name)-REGEXP. The argument FILENAME is treated as follows: if it's nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. See also documentation for `pr-list-directory'. (defalias 'pr-ps-directory-preview #[(n-up dir file-regexp &optional filename) "\305\301\302\303\300\306\307!%\210\310!\311 \n$\210\f\206 \312!\207" [filename n-up dir file-regexp pr-spool-p pr-set-ps-dir-args pr-prompt "PS preview dir" pr-ps-file pr-ps-file-list pr-ps-file-preview] 7 (#$ . 84275) (byte-code "\300\301\302!!\207" [pr-interactive-ps-dir-args pr-prompt "PS preview dir"] 3)]) #@766 Print directory using PostScript through ghostscript. Interactively, the command prompts for N-UP printing number, a directory, a file name regexp for matching and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of saving it in a temporary file. Noninteractively, if N-UP is nil, prompts for N-UP printing number. If DIR is nil, prompts for DIRectory. If FILE-REGEXP is nil, prompts for FILE(name)-REGEXP. The argument FILENAME is treated as follows: if it's nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. See also documentation for `pr-list-directory'. (defalias 'pr-ps-directory-using-ghostscript #[(n-up dir file-regexp &optional filename) "\305\302\303\304\300\306\307!%\210\310!\311\n\f $\210\312 !\210\206 \313 !)\207" [filename file n-up dir file-regexp pr-set-ps-dir-args pr-prompt "PS print dir GS" pr-ps-file pr-ps-file-list pr-ps-file-using-ghostscript pr-delete-file] 7 (#$ . 85426) (byte-code "\300\301\302!!\207" [pr-interactive-ps-dir-args pr-prompt "PS print dir GS"] 3)]) #@754 Print directory using PostScript printer. Interactively, the command prompts for N-UP printing number, a directory, a file name regexp for matching and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of saving it in a temporary file. Noninteractively, if N-UP is nil, prompts for N-UP printing number. If DIR is nil, prompts for DIRectory. If FILE-REGEXP is nil, prompts for FILE(name)-REGEXP. The argument FILENAME is treated as follows: if it's nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. See also documentation for `pr-list-directory'. (defalias 'pr-ps-directory-print #[(n-up dir file-regexp &optional filename) "\305\302\303\304\300\306\307!%\210\310!\311\n\f $\210\312 !\210\206 \313 !)\207" [filename file n-up dir file-regexp pr-set-ps-dir-args pr-prompt "PS print dir" pr-ps-file pr-ps-file-list pr-ps-file-print pr-delete-file] 7 (#$ . 86638) (byte-code "\300\301\302!!\207" [pr-interactive-ps-dir-args pr-prompt "PS print dir"] 3)]) #@822 Print directory using PostScript printer or through ghostscript. It depends on `pr-print-using-ghostscript'. Interactively, the command prompts for N-UP printing number, a directory, a file name regexp for matching and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of saving it in a temporary file. Noninteractively, if N-UP is nil, prompts for N-UP printing number. If DIR is nil, prompts for DIRectory. If FILE-REGEXP is nil, prompts for FILE(name)-REGEXP. The argument FILENAME is treated as follows: if it's nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. See also documentation for `pr-list-directory'. (defalias 'pr-ps-directory-ps-print #[(n-up dir file-regexp &optional filename) "\306\302\303\304\305\307\310\311!!%\210\203 \204 \312\n\f $\207\313\n\f $\207" [pr-print-using-ghostscript pr-spool-p n-up dir file-regexp filename pr-set-ps-dir-args pr-prompt pr-prompt-gs "PS print dir" pr-ps-directory-using-ghostscript pr-ps-directory-print] 8 (#$ . 87808) (byte-code "\300\301\302\303!!!\207" [pr-interactive-ps-dir-args pr-prompt pr-prompt-gs "PS print dir"] 4)]) #@555 Preview buffer using ghostview. Interactively, the command prompts for N-UP printing number and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of saving it in a temporary file. Noninteractively, if N-UP is nil, prompts for N-UP printing number. The argument FILENAME is treated as follows: if it's nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. (defalias 'pr-ps-buffer-preview #[(n-up &optional filename) "\203 \n\236A\203 \305\f\"\207\306\307 \f\310\311!$\207" [pr-auto-mode major-mode pr-mode-alist n-up filename pr-ps-mode-preview pr-ps-preview pr-region-active-symbol pr-region-active-string "PS preview"] 6 (#$ . 89109) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt "PS preview"] 3)]) #@565 Print buffer using PostScript through ghostscript. Interactively, the command prompts for N-UP printing number and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of sending it to the printer. Noninteractively, if N-UP is nil, prompts for N-UP printing number. The argument FILENAME is treated as follows: if it's nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. (defalias 'pr-ps-buffer-using-ghostscript #[(n-up &optional filename) "\203 \n\236A\203 \305\f\"\207\306\307 \f\310\311!$\207" [pr-auto-mode major-mode pr-mode-alist n-up filename pr-ps-mode-using-ghostscript pr-ps-using-ghostscript pr-region-active-symbol pr-region-active-string "PS print GS"] 6 (#$ . 90043) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt "PS print GS"] 3)]) #@553 Print buffer using PostScript printer. Interactively, the command prompts for N-UP printing number and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of sending it to the printer. Noninteractively, if N-UP is nil, prompts for N-UP printing number. The argument FILENAME is treated as follows: if it's nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. (defalias 'pr-ps-buffer-print #[(n-up &optional filename) "\203 \n\236A\203 \305\f\"\207\306\307 \f\310\311!$\207" [pr-auto-mode major-mode pr-mode-alist n-up filename pr-ps-mode-print pr-ps-print pr-region-active-symbol pr-region-active-string "PS print"] 6 (#$ . 91019) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt "PS print"] 3)]) #@621 Print buffer using PostScript printer or through ghostscript. It depends on `pr-print-using-ghostscript'. Interactively, the command prompts for N-UP printing number and, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the PostScript image in that file instead of sending it to the printer. Noninteractively, if N-UP is nil, prompts for N-UP printing number. The argument FILENAME is treated as follows: if it's nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. If FILENAME is t, prompts for a file name. (defalias 'pr-ps-buffer-ps-print #[(n-up &optional filename) "\203 \n\236A\203 \306\f\"\207 \203# \204# \307\310 \f\311\312!$\207\313\310 \f\311\314!$\207" [pr-auto-mode major-mode pr-mode-alist n-up filename pr-print-using-ghostscript pr-ps-mode-ps-print pr-ps-using-ghostscript pr-region-active-symbol pr-region-active-string "PS print GS" pr-ps-print "PS print" pr-spool-p] 6 (#$ . 91941) (byte-code "\300\301\302\303!!!\207" [pr-interactive-n-up-file pr-prompt pr-prompt-gs "PS print"] 4)]) #@67 Preview region using ghostview. See also `pr-ps-buffer-preview'. (defalias 'pr-ps-region-preview #[(n-up &optional filename) "\203 \n\236A\203 \306\307\f \")\207\310\311\f \312$\207" [pr-auto-mode major-mode pr-mode-alist pr-auto-region n-up filename t pr-ps-mode-preview pr-ps-preview region "PS preview region"] 5 (#$ . 93071) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt-region "PS preview"] 3)]) #@96 Print region using PostScript through ghostscript. See also `pr-ps-buffer-using-ghostscript'. (defalias 'pr-ps-region-using-ghostscript #[(n-up &optional filename) "\203 \n\236A\203 \306\307\f \")\207\310\311\f \312$\207" [pr-auto-mode major-mode pr-mode-alist pr-auto-region n-up filename t pr-ps-mode-using-ghostscript pr-ps-using-ghostscript region "PS print GS region"] 5 (#$ . 93506) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt-region "PS print GS"] 3)]) #@72 Print region using PostScript printer. See also `pr-ps-buffer-print'. (defalias 'pr-ps-region-print #[(n-up &optional filename) "\203 \n\236A\203 \306\307\f \")\207\310\311\f \312$\207" [pr-auto-mode major-mode pr-mode-alist pr-auto-region n-up filename t pr-ps-mode-print pr-ps-print region "PS print region"] 5 (#$ . 94002) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt-region "PS print"] 3)]) #@98 Print region using PostScript printer or through ghostscript. See also `pr-ps-buffer-ps-print'. (defalias 'pr-ps-region-ps-print #[(n-up &optional filename) "\203 \n\236A\203 \306\307\f \")\207 \203$ \204$ \310\311\f \312$\207\313\311\f \314$\207" [pr-auto-mode major-mode pr-mode-alist pr-auto-region n-up filename t pr-ps-mode-ps-print pr-ps-using-ghostscript region "PS print GS region" pr-ps-print "PS print region" pr-print-using-ghostscript pr-spool-p] 5 (#$ . 94432) (byte-code "\300\301\302\303!!!\207" [pr-interactive-n-up-file pr-prompt-region pr-prompt-gs "PS print"] 4)]) #@71 Preview major mode using ghostview. See also `pr-ps-buffer-preview'. (defalias 'pr-ps-mode-preview #[(n-up &optional filename) "\304\302\300\305#\210\306!\307\n \"\205 ?\205 \310 !)\207" [filename file n-up pr-spool-p pr-set-n-up-and-filename "PS preview mode" pr-ps-file pr-ps-mode pr-ps-file-preview] 4 (#$ . 95031) (pr-interactive-n-up-file "PS preview mode")]) #@100 Print major mode using PostScript through ghostscript. See also `pr-ps-buffer-using-ghostscript'. (defalias 'pr-ps-mode-using-ghostscript #[(n-up &optional filename) "\304\302\300\305#\210\306!\307\n \"\205! ?\205! \310 !\210\206! \311 !)\207" [filename file n-up pr-spool-p pr-set-n-up-and-filename "PS print GS mode" pr-ps-file pr-ps-mode pr-ps-file-using-ghostscript pr-delete-file] 4 (#$ . 95409) (pr-interactive-n-up-file "PS print GS mode")]) #@76 Print major mode using PostScript printer. See also `pr-ps-buffer-print'. (defalias 'pr-ps-mode-print #[(n-up &optional filename) "\302\300\301\303#\210\304 \"\207" [n-up filename pr-set-n-up-and-filename "PS print mode" pr-ps-mode] 4 (#$ . 95869) (pr-interactive-n-up-file "PS print mode")]) #@94 Print major mode using PostScript or through ghostscript. See also `pr-ps-buffer-ps-print'. (defalias 'pr-ps-mode-ps-print #[(n-up &optional filename) "\203 \204 \304\n\"\207\305\n\"\207" [pr-print-using-ghostscript pr-spool-p n-up filename pr-ps-mode-using-ghostscript pr-ps-mode-print] 3 (#$ . 96170) (byte-code "\300\301\302!!\207" [pr-interactive-n-up-file pr-prompt-gs "PS print mode"] 3)]) #@477 Replace nonprinting characters in directory with printable representations. The printable representations use ^ (for ASCII control characters) or hex. The characters tab, linefeed, space, return and formfeed are not affected. Interactively, the command prompts for a directory and a file name regexp for matching. Noninteractively, if DIR is nil, prompts for DIRectory. If FILE-REGEXP is nil, prompts for FILE(name)-REGEXP. See also documentation for `pr-list-directory'. (defalias 'pr-printify-directory #[(&optional dir file-regexp) "\302\300\301\303#\210\304 \305#\207" [dir file-regexp pr-set-dir-args "Printify dir" pr-file-list pr-printify-buffer] 4 (#$ . 96580) (pr-interactive-dir-args "Printify dir")]) #@224 Replace nonprinting characters in buffer with printable representations. The printable representations use ^ (for ASCII control characters) or hex. The characters tab, linefeed, space, return and formfeed are not affected. (defalias 'pr-printify-buffer #[nil "\300 \203 \301 \207\302ed\"\207" [pr-region-active-p pr-printify-region printify-region] 3 (#$ . 97304) "*"]) #@224 Replace nonprinting characters in region with printable representations. The printable representations use ^ (for ASCII control characters) or hex. The characters tab, linefeed, space, return and formfeed are not affected. (defalias 'pr-printify-region #[nil "\300`\301 \"\207" [printify-region mark] 3 (#$ . 97682) "*"]) #@287 Print directory using text printer. Interactively, the command prompts for a directory and a file name regexp for matching. Noninteractively, if DIR is nil, prompts for DIRectory. If FILE-REGEXP is nil, prompts for FILE(name)-REGEXP. See also documentation for `pr-list-directory'. (defalias 'pr-txt-directory #[(&optional dir file-regexp) "\302\300\301\303#\210\304 \305#\207" [dir file-regexp pr-set-dir-args "Print dir" pr-file-list pr-txt-buffer] 4 (#$ . 98011) (pr-interactive-dir-args "Print dir")]) #@34 Print buffer using text printer. (defalias 'pr-txt-buffer #[nil "\203 \n\236A\203 \303 \207\304 \203 \305 \207\306ed\"\207" [pr-auto-mode major-mode pr-mode-alist pr-txt-mode pr-region-active-p pr-txt-region pr-txt-print] 3 (#$ . 98528) nil]) #@34 Print region using text printer. (defalias 'pr-txt-region #[nil "\203 \n\236A\203 \304\305 )\207\306`\307 \"\207" [pr-auto-mode major-mode pr-mode-alist pr-auto-region t pr-txt-mode pr-txt-print mark] 3 (#$ . 98782) nil]) #@38 Print major mode using text printer. (defalias 'pr-txt-mode #[nil " \236A\211\203 \n@\nAA!\202 \303 \210\304\305\")\207" [major-mode pr-mode-alist args ding message "`%s' major mode not declared."] 4 (#$ . 99015) nil]) #@415 Preview spooled PostScript. Interactively, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the spooled PostScript image in that file instead of saving it in a temporary file. Noninteractively, the argument FILENAME is treated as follows: if it is nil, save the image in a temporary file. If FILENAME is a string, save the PostScript image in a file with that name. (defalias 'pr-despool-preview #[(&optional filename) "\302!\211;\205 \303 !\210\304 !)\207" [filename file pr-ps-file pr-despool-print pr-ps-file-preview] 3 (#$ . 99246) (list (ps-print-preprint current-prefix-arg))]) #@422 Print spooled PostScript using ghostscript. Interactively, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the spooled PostScript image in that file instead of sending it to the printer. Noninteractively, the argument FILENAME is treated as follows: if it is nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. (defalias 'pr-despool-using-ghostscript #[(&optional filename) "\302!\211;\205 \303 !\210\304 !\210\206 \305 !)\207" [filename file pr-ps-file pr-despool-print pr-ps-file-using-ghostscript pr-delete-file] 3 (#$ . 99888) (list (ps-print-preprint current-prefix-arg))]) #@422 Send the spooled PostScript to the printer. Interactively, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the spooled PostScript image in that file instead of sending it to the printer. Noninteractively, the argument FILENAME is treated as follows: if it is nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. (defalias 'pr-despool-print #[(&optional filename) "\306 \307 !\210\310\n!\f \n\f \311!\210,\307!)\207" [pr--default-file-modes pr-file-modes pr-ps-command pr-ps-switches pr-ps-printer-switch pr-ps-printer default-file-modes set-default-file-modes pr-command ps-despool ps-printer-name ps-printer-name-option ps-lpr-switches ps-lpr-command filename] 4 (#$ . 100589) (list (ps-print-preprint current-prefix-arg))]) #@453 Send the spooled PostScript to the printer or use ghostscript to print it. Interactively, when you use a prefix argument (C-u), the command prompts the user for a file name, and saves the spooled PostScript image in that file instead of sending it to the printer. Noninteractively, the argument FILENAME is treated as follows: if it is nil, send the image to the printer. If FILENAME is a string, save the PostScript image in a file with that name. (defalias 'pr-despool-ps-print #[(&optional filename) "\203 \302 !\207\303 !\207" [pr-print-using-ghostscript filename pr-despool-using-ghostscript pr-despool-print] 2 (#$ . 101441) (list (ps-print-preprint current-prefix-arg))]) #@35 Preview PostScript file FILENAME. (defalias 'pr-ps-file-preview #[(filename) ";\205 \302!\205 \303 \"\207" [filename pr-gv-command file-exists-p pr-call-process] 3 (#$ . 102131) (list (pr-ps-infile-preprint "Preview "))]) #@35 Preview PostScript file FILENAME. (defalias 'pr-ps-file-up-preview #[(n-up ifilename &optional ofilename) "\303\301\302\304\305$\306 \n#\210\307!)\207" [outfile n-up ifilename pr-ps-utility-args ofilename "PS preview " pr-ps-utility-process pr-ps-file-preview] 5 (#$ . 102364) (pr-interactive-n-up-inout "PS preview")]) #@51 Print PostScript file FILENAME using ghostscript. (defalias 'pr-ps-file-using-ghostscript #[(filename) ";\2055 \306!\2055 \307!\310\311 !!\312\313\314\f\"\313\315 \"\316\317\"\313\320\n\" \321&\210\322\n!\210\323\n!*\207" [filename file tempfile pr-gs-command pr-gs-device pr-gs-resolution file-exists-p pr-expand-file-name pr-dosify-file-name make-temp-file pr-call-process format "-sDEVICE=%s" "-r%d" pr-switches-string "pr-gs-switches" "-sOutputFile=\"%s\"" "-c quit" pr-ps-file-print pr-delete-file pr-gs-switches] 8 (#$ . 102693) (list (pr-ps-infile-preprint "Print preview "))]) #@33 Print PostScript file FILENAME. (defalias 'pr-ps-file-print #[(filename) ";\205L \306!\205L \307!\n\310\230\203+ \311!r\fq\210\312 \210\313 !\210)\314 )\202K \315\316\n\317 \320\"\321\322\n\"\203C PD\202J P D$)\207" [filename file pr-ps-command ps-spool-buffer-name ps-spool-buffer pr-ps-switches file-exists-p pr-expand-file-name "" get-buffer-create erase-buffer insert-file-contents-literally pr-despool-print apply pr-call-process pr-switches-string "pr-ps-switches" string-match "cp" pr-ps-printer-switch pr-ps-printer] 7 (#$ . 103293) (list (pr-ps-infile-preprint "Print "))]) #@74 Send PostScript file FILENAME to printer or use ghostscript to print it. (defalias 'pr-ps-file-ps-print #[(filename) "\203 \302 !\207\303 !\207" [pr-print-using-ghostscript filename pr-ps-file-using-ghostscript pr-ps-file-print] 2 (#$ . 103897) (list (pr-ps-infile-preprint (if pr-print-using-ghostscript "Print preview " "Print ")))]) #@821 Process a PostScript file IFILENAME and send it to printer. Interactively, the command prompts for N-UP printing number, for an input PostScript file IFILENAME and, when you use a prefix argument (C-u), the command prompts the user for an output PostScript file name OFILENAME, and saves the PostScript image in that file instead of sending it to the printer. Noninteractively, if N-UP is nil, prompts for N-UP printing number. The argument IFILENAME is treated as follows: if it's t, prompts for an input PostScript file name; otherwise, it *must* be a string that it's an input PostScript file name. The argument OFILENAME is treated as follows: if it's nil, send the image to the printer. If OFILENAME is a string, save the PostScript image in a file with that name. If OFILENAME is t, prompts for a file name. (defalias 'pr-ps-file-up-ps-print #[(n-up ifilename &optional ofilename) "\305\302\303\304\203\f \306\202 \307$\310\n #\210\f?\205! \311 !\210\312 !)\207" [pr-print-using-ghostscript outfile n-up ifilename ofilename pr-ps-utility-args "PS print GS " "PS print " pr-ps-utility-process pr-ps-file-ps-print pr-delete-file] 5 (#$ . 104242) (byte-code "\301\203 \302\202\n \303!\207" [pr-print-using-ghostscript pr-interactive-n-up-inout "PS print GS" "PS print"] 2)]) #@36 Toggle duplex for PostScript file. (defalias 'pr-toggle-file-duplex #[nil "\300\301!\207" [pr-toggle-file-duplex-menu t] 2 (#$ . 105538) nil]) #@198 Toggle tumble for PostScript file. If tumble is off, produces a printing suitable for binding on the left or right. If tumble is on, produces a printing suitable for binding at the top or bottom. (defalias 'pr-toggle-file-tumble #[nil "\300\301!\207" [pr-toggle-file-tumble-menu t] 2 (#$ . 105688) nil]) #@39 Toggle landscape for PostScript file. (defalias 'pr-toggle-file-landscape #[nil "\300\301!\207" [pr-toggle-file-landscape-menu t] 2 (#$ . 105999) nil]) #@36 Toggle printing using ghostscript. (defalias 'pr-toggle-ghostscript #[nil "\300\301!\207" [pr-toggle-ghostscript-menu t] 2 (#$ . 106157) nil]) #@29 Toggle printing with faces. (defalias 'pr-toggle-faces #[nil "\300\301!\207" [pr-toggle-faces-menu t] 2 (#$ . 106306) nil]) #@18 Toggle spooling. (defalias 'pr-toggle-spool #[nil "\300\301!\207" [pr-toggle-spool-menu t] 2 (#$ . 106436) nil]) #@16 Toggle duplex. (defalias 'pr-toggle-duplex #[nil "\300\301!\207" [pr-toggle-duplex-menu t] 2 (#$ . 106555) nil]) #@178 Toggle tumble. If tumble is off, produces a printing suitable for binding on the left or right. If tumble is on, produces a printing suitable for binding at the top or bottom. (defalias 'pr-toggle-tumble #[nil "\300\301!\207" [pr-toggle-tumble-menu t] 2 (#$ . 106675) nil]) #@19 Toggle landscape. (defalias 'pr-toggle-landscape #[nil "\300\301!\207" [pr-toggle-landscape-menu t] 2 (#$ . 106956) nil]) #@21 Toggle upside-down. (defalias 'pr-toggle-upside-down #[nil "\300\301!\207" [pr-toggle-upside-down-menu t] 2 (#$ . 107084) nil]) #@21 Toggle line number. (defalias 'pr-toggle-line #[nil "\300\301!\207" [pr-toggle-line-menu t] 2 (#$ . 107218) nil]) #@23 Toggle zebra stripes. (defalias 'pr-toggle-zebra #[nil "\300\301!\207" [pr-toggle-zebra-menu t] 2 (#$ . 107338) nil]) #@25 Toggle printing header. (defalias 'pr-toggle-header #[nil "\300\301!\207" [pr-toggle-header-menu t] 2 (#$ . 107462) nil]) #@31 Toggle printing header frame. (defalias 'pr-toggle-header-frame #[nil "\300\301!\207" [pr-toggle-header-frame-menu t] 2 (#$ . 107590) nil]) #@19 Toggle menu lock. (defalias 'pr-toggle-lock #[nil "\300\301!\207" [pr-toggle-lock-menu t] 2 (#$ . 107736) nil]) #@54 Toggle whether the region is automagically detected. (defalias 'pr-toggle-region #[nil "\300\301!\207" [pr-toggle-region-menu t] 2 (#$ . 107854) nil]) #@19 Toggle auto mode. (defalias 'pr-toggle-mode #[nil "\300\301!\207" [pr-toggle-mode-menu t] 2 (#$ . 108011) nil]) #@40 Customization of the `printing' group. (defalias 'pr-customize #[(&rest ignore) "\300\301!\207" [customize-group printing] 2 (#$ . 108129) nil]) #@35 Customization of the `lpr' group. (defalias 'lpr-customize #[(&rest ignore) "\300\301!\207" [customize-group lpr] 2 (#$ . 108280) nil]) #@32 Help for the printing package. (defalias 'pr-help #[(&rest ignore) "\301\302\"\207" [pr-help-message pr-show-setup "*Printing Help*"] 3 (#$ . 108422) nil]) #@44 Interactively select a PostScript printer. (defalias 'pr-ps-name #[nil "\302\303\304 #!\207" [pr-ps-printer-alist pr-ps-name pr-menu-set-ps-title pr-complete-alist "PostScript printer"] 5 (#$ . 108585) nil]) #@38 Interactively select a text printer. (defalias 'pr-txt-name #[nil "\302\303\304 #!\207" [pr-txt-printer-alist pr-txt-name pr-menu-set-txt-title pr-complete-alist "Text printer"] 5 (#$ . 108800) nil]) #@44 Interactively select a PostScript utility. (defalias 'pr-ps-utility #[nil "\302\303\304 #!\207" [pr-ps-utility-alist pr-ps-utility pr-menu-set-utility-title pr-complete-alist "PostScript utility"] 5 (#$ . 109007) nil]) #@33 Show current ps-print settings. (defalias 'pr-show-ps-setup #[(&rest ignore) "\300\301 \302\"\207" [pr-show-setup ps-setup "*PS Setup*"] 3 (#$ . 109233) nil]) #@33 Show current printing settings. (defalias 'pr-show-pr-setup #[(&rest ignore) "\300\301 \302\"\207" [pr-show-setup pr-setup "*PR Setup*"] 3 (#$ . 109398) nil]) #@28 Show current lpr settings. (defalias 'pr-show-lpr-setup #[(&rest ignore) "\300\301 \302\"\207" [pr-show-setup lpr-setup "*LPR Setup*"] 3 (#$ . 109563) nil]) #@2436 Fast fire function for PostScript printing. If a region is active, the region will be printed instead of the whole buffer. Also if the current major-mode is defined in `pr-mode-alist', the settings in `pr-mode-alist' will be used, that is, the current buffer or region will be printed using `pr-ps-mode-ps-print'. Interactively, you have the following situations: M-x pr-ps-fast-fire RET The command prompts the user for a N-UP value and printing will immediately be done using the current active printer. C-u M-x pr-ps-fast-fire RET C-u 0 M-x pr-ps-fast-fire RET The command prompts the user for a N-UP value and also for a current PostScript printer, then printing will immediately be done using the new current active printer. C-u 1 M-x pr-ps-fast-fire RET The command prompts the user for a N-UP value and also for a file name, and saves the PostScript image in that file instead of sending it to the printer. C-u 2 M-x pr-ps-fast-fire RET The command prompts the user for a N-UP value, then for a current PostScript printer and, finally, for a file name. Then change the active printer to that chosen by user and saves the PostScript image in that file instead of sending it to the printer. Noninteractively, the argument N-UP should be a positive integer greater than zero and the argument SELECT is treated as follows: If it's nil, send the image to the printer. If it's a list or an integer lesser or equal to zero, the command prompts the user for a current PostScript printer, then printing will immediately be done using the new current active printer. If it's an integer equal to 1, the command prompts the user for a file name and saves the PostScript image in that file instead of sending it to the printer. If it's an integer greater or equal to 2, the command prompts the user for a current PostScript printer and for a file name. Then change the active printer to that chosen by user and saves the PostScript image in that file instead of sending it to the printer. If it's a symbol which it's defined in `pr-ps-printer-alist', it's the new active printer and printing will immediately be done using the new active printer. Otherwise, send the image to the printer. Note that this command always behaves as if `pr-auto-region' and `pr-auto-mode' are both set to t. (defalias 'pr-ps-fast-fire #[(n-up &optional select) "\306\211\307\203L <\203 \310 \210\202L 9\203' \f\236\203' \311!\210\202L \250\203L \312U\2045 \310 \210\312Y\203L \204L \313\203I \314\202J \315!\316\250\203\\ \312]\317^\202_ \320\321!\"+\207" [filename pr-auto-mode pr-auto-region select pr-ps-printer-alist pr-spool-p t nil pr-ps-name pr-menu-set-ps-title 1 pr-ps-outfile-preprint "Fast GS " "Fast " pr-ps-buffer-ps-print 100 error "n-up must be an integer greater than zero" pr-print-using-ghostscript n-up] 3 (#$ . 109728) (list (pr-interactive-n-up (pr-prompt-gs "PS print fast")) current-prefix-arg)]) #@910 Fast fire function for text printing. If a region is active, the region will be printed instead of the whole buffer. Also if the current major-mode is defined in `pr-mode-alist', the settings in `pr-mode-alist' will be used, that is, the current buffer or region will be printed using `pr-txt-mode'. Interactively, when you use a prefix argument (C-u), the command prompts the user for a new active text printer. Noninteractively, the argument SELECT-PRINTER is treated as follows: If it's nil, the printing is sent to the current active text printer. If it's a symbol which it's defined in `pr-txt-printer-alist', it's the new active printer and printing will immediately be done using the new active printer. If it's non-nil, the command prompts the user for a new active text printer. Note that this command always behaves as if `pr-auto-region' and `pr-auto-mode' are both set to t. (defalias 'pr-txt-fast-fire #[(&optional select-printer) "\203 9\203 \236\203 \304!\210\202 \305 \210\306\211\307 *\207" [select-printer pr-txt-printer-alist pr-auto-mode pr-auto-region pr-menu-set-txt-title pr-txt-name t pr-txt-buffer] 2 (#$ . 112803) (list current-prefix-arg)]) #@246 Return the current `printing' setup. This is *not* an interactive command. One way to see `printing' setup is to switch to a *Scratch* buffer and type: M-: (insert (pr-setup)) RET Or choose the menu option Printing/Show Settings/printing. (defalias 'pr-setup #[nil "\306\307\310\311 \312Q\313\314\315\n\"\314\316\"\314\317\320\f\321\"\"\314\322 \"\314\323?\"\314\324\320@\325\"\"\314\326A\"\314\327B\"\314\330C\"\314\331D\"\314\332E\"\306\333\334\306\335\336\306\337\340\306\341\342\343\344\345\306\346\347\350\351\352\306\353\354\355\356\357\360\361\362\306\363\364\306\365\306\366\367\370\306\371\306\372\306\373\374\375\376\257=\312#)\207" [ps-prefix-quote pr-version emacs-version pr-txt-command pr-txt-switches pr-txt-printer nil mapconcat ps-print-quote "\n;;; printing.el version " "\n" ";; internal vars" ps-comment-string "emacs-version " "pr-txt-command " "pr-txt-switches " pr-switches-string "pr-txt-switches" "pr-txt-printer " "pr-ps-command " "pr-ps-switches " "pr-ps-switches" "pr-ps-printer-switch" "pr-ps-printer " "pr-cygwin-system " "ps-windows-system " "ps-lp-system " (14 . pr-path-style) (14 . pr-path-alist) (21 . pr-txt-name) (21 . pr-txt-printer-alist) (20 . pr-ps-name) (20 . pr-ps-printer-alist) (20 . pr-temp-dir) (20 . pr-ps-temp-file) (20 . pr-file-modes) (20 . pr-delete-temp-file) (20 . pr-list-directory) (17 . pr-gv-command) (17 . pr-gs-command) (17 . pr-gs-switches) (17 . pr-gs-device) (17 . pr-gs-resolution) (27 . pr-print-using-ghostscript) (27 . pr-faces-p) (27 . pr-spool-p) (27 . pr-file-landscape) (27 . pr-file-duplex) (27 . pr-file-tumble) (27 . pr-auto-region) (27 . pr-auto-mode) (20 . pr-ps-utility) (20 . pr-ps-utility-alist) (14 . pr-mode-alist) (20 . pr-menu-lock) (20 . pr-menu-char-height) (20 . pr-menu-char-width) (20 . pr-setting-database) (22 . pr-visible-entry-list) (22 . pr-buffer-verbose) (22 . pr-buffer-name) (22 . pr-buffer-name-ignore) ")\n\n;;; printing.el - end of settings\n" pr-ps-command pr-ps-switches pr-ps-printer-switch pr-ps-printer pr-cygwin-system ps-windows-system ps-lp-system] 63 (#$ . 114011)]) #@232 Return the current `lpr' setup. This is *not* an interactive command. One way to see `lpr' setup is to switch to a *Scratch* buffer and type: M-: (insert (lpr-setup)) RET Or choose the menu option Printing/Show Settings/lpr. (defalias 'lpr-setup #[nil "\302\303\304\305\306\307 \"\302\310\311\312\313\314\315\316\317\320\257\f\321#)\207" [ps-prefix-quote emacs-version nil mapconcat ps-print-quote "\n;;; lpr.el settings\n" ps-comment-string "emacs-version" (25 . printer-name) (25 . lpr-switches) (25 . lpr-add-switches) (25 . lpr-command) (25 . lpr-headers-switches) (25 . print-region-function) (25 . lpr-page-header-program) (25 . lpr-page-header-switches) ")\n\n;;; lpr.el - end of settings\n" "\n"] 14 (#$ . 116158)]) #@127 Find the date of an article or mail message in current buffer. Return only the dayname, if present, weekday, month, and year. (defalias 'pr-article-date #[nil "\212eb\210\300\301\302\303#\203 \304\224\304\225{\202 \305\306!)\207" [re-search-forward "^Date:[ ]+\\(\\([A-Za-z]+, \\)?[0-9]+ [A-Za-z]+ [0-9]+\\)" nil t 1 format-time-string "%Y/%m/%d"] 4 (#$ . 116896)]) #@33 Go to mh-inbox current message. (defalias 'pr-mh-current-message #[nil "\302\303!\206 \304\305 \210 q\210eb\210\306 \210\307\310\")\207" [msg mh-show-buffer mh-get-msg-num nil 0 mh-show mh-start-of-uncleaned-message message "Printing message %d"] 3 (#$ . 117271)]) #@47 Print mh-inbox current message in PostScript. (defalias 'pr-mh-print-1 #[(n-up filename header-list) "\212\304 \305\216\306 \210\307 \n`$+\207" [#1=#:wconfig n-up filename header-list current-window-configuration ((set-window-configuration #1#)) pr-mh-current-message pr-mode-print] 5 (#$ . 117545)]) #@49 Print mh-inbox current message in text printer. (defalias 'pr-mh-lpr-1 #[(header-list) "\212\302 \303\216\304 \210\305 `\"+\207" [#1=#:wconfig header-list current-window-configuration ((set-window-configuration #1#)) pr-mh-current-message pr-mode-lpr] 3 (#$ . 117854)]) (byte-code "\300\301\302\"\210\300\303\304\"\207" [defalias pr-mh-print-2 pr-mode-print pr-mh-lpr-2 pr-mode-lpr] 3) #@46 Print RMAIL current message in text printer. (defalias 'pr-rmail-lpr #[(header-list) "\301\302\303#\207" [header-list pr-lpr-message-from-summary rmail-buffer rmail-summary-buffer] 4 (#$ . 118247)]) #@44 Print RMAIL current message in PostScript. (defalias 'pr-rmail-print #[(n-up filename header-list) "\303 \n\304\305%\207" [n-up filename header-list pr-ps-message-from-summary rmail-buffer rmail-summary-buffer] 6 (#$ . 118453)]) #@38 Print current message in PostScript. (defalias 'pr-ps-message-from-summary #[(n-up filename header-list summary-buffer summary-default) "\306!\203 J\206 J\307\n!\205 r\nq\210\310\f #))\207" [summary-buffer summary-default buf n-up filename header-list boundp get-buffer pr-mode-print] 4 (#$ . 118689)]) #@40 Print current message in text printer. (defalias 'pr-lpr-message-from-summary #[(header-list summary-buffer summary-default) "\304!\203 J\206 J\305\n!\205 r\nq\210\306!))\207" [summary-buffer summary-default buf header-list boundp get-buffer pr-mode-lpr] 2 (#$ . 119006)]) (defvar pr-gnus-article "*Article*") #@48 Print *Article* current message in PostScript. (defalias 'pr-gnus-print #[(n-up filename header-list) "\303 \n\304\305%\207" [n-up filename header-list pr-ps-message-from-summary gnus-article-buffer pr-gnus-article] 6 (#$ . 119330)]) #@50 Print *Article* current message in text printer. (defalias 'pr-gnus-lpr #[(header-list) "\301\302\303#\207" [header-list pr-lpr-message-from-summary gnus-article-buffer pr-gnus-article] 4 (#$ . 119571)]) (defvar pr-vm-summary "") #@41 Print current vm message in PostScript. (defalias 'pr-vm-print #[(n-up filename header-list) "\303 \n\304\305%\207" [n-up filename header-list pr-ps-message-from-summary vm-mail-buffer pr-vm-summary] 6 (#$ . 119808)]) #@43 Print current vm message in text printer. (defalias 'pr-vm-lpr #[(header-list) "\301\302\303#\207" [header-list pr-lpr-message-from-summary vm-mail-buffer pr-vm-summary] 4 (#$ . 120033)]) #@60 If current major mode is declared, print it in PostScript. (defalias 'pr-ps-mode #[(n-up filename) " \236A\211\203 \nA\211@\f A#\210)\306\202\"