diff options
| author | Richard M. Stallman | 1995-02-14 05:55:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-14 05:55:53 +0000 |
| commit | b87c5d3d05ff4f1d1f5a94b5784d442a6dc9fdee (patch) | |
| tree | 614fa5c390d582f2e2d417f68b1f7d43b74dc58d | |
| parent | a2a9c59e60e8c3e77b1757c712a0f9fa95544099 (diff) | |
| download | emacs-b87c5d3d05ff4f1d1f5a94b5784d442a6dc9fdee.tar.gz emacs-b87c5d3d05ff4f1d1f5a94b5784d442a6dc9fdee.zip | |
(ps-print-version): Add caveat about version number.
(ps-begin-file): Fix format code for /LineHeight.
| -rw-r--r-- | lisp/ps-print.el | 72 |
1 files changed, 58 insertions, 14 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index e4d04f8b26a..6fda191373c 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -1,9 +1,8 @@ | |||
| 1 | ;;; ps-print.el --- Jim's Pretty-Good PostScript Generator for Emacs 19. | 1 | ;;; ps-print.el --- Jim's Pretty-Good PostScript Generator for Emacs 19. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Jim Thompson <thompson@wg2.waii.com> | 5 | ;; Author: Jim Thompson <thompson@wg2.waii.com> |
| 6 | ;; Thompson's last version: 1.14 | ||
| 7 | ;; Keywords: print, PostScript | 6 | ;; Keywords: print, PostScript |
| 8 | 7 | ||
| 9 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -25,7 +24,12 @@ | |||
| 25 | ;; LCD Archive Entry: | 24 | ;; LCD Archive Entry: |
| 26 | ;; ps-print|James C. Thompson|thompson@wg2.waii.com| | 25 | ;; ps-print|James C. Thompson|thompson@wg2.waii.com| |
| 27 | ;; Jim's Pretty-Good PostScript Generator for Emacs 19 (ps-print)| | 26 | ;; Jim's Pretty-Good PostScript Generator for Emacs 19 (ps-print)| |
| 28 | ;; 26-Feb-1994|1.6|~/packages/ps-print.el| | 27 | ;; 26-Feb-1994|2.0|~/packages/ps-print.el| |
| 28 | |||
| 29 | ;; Baseline-version: 2.0. (Jim's last change version -- this | ||
| 30 | ;; file may have been edited as part of Emacs without changes to the | ||
| 31 | ;; version number. When reporting bugs, please also report the | ||
| 32 | ;; version of Emacs, if any, that ps-print was distributed with.) | ||
| 29 | 33 | ||
| 30 | ;;; Commentary: | 34 | ;;; Commentary: |
| 31 | 35 | ||
| @@ -38,13 +42,6 @@ | |||
| 38 | ;; preserved in the printer output. Ps-print is intended for use with | 42 | ;; preserved in the printer output. Ps-print is intended for use with |
| 39 | ;; Emacs 19 or Lucid Emacs, together with a fontifying package such as | 43 | ;; Emacs 19 or Lucid Emacs, together with a fontifying package such as |
| 40 | ;; font-lock or hilit. | 44 | ;; font-lock or hilit. |
| 41 | ;; | ||
| 42 | ;; Installing ps-print | ||
| 43 | ;; ------------------- | ||
| 44 | ;; | ||
| 45 | ;; Make sure that the variables ps-lpr-command and ps-lpr-switches | ||
| 46 | ;; contain appropriate values for your system; see the usage notes | ||
| 47 | ;; below and the documentation of these variables. | ||
| 48 | ;; | 45 | ;; |
| 49 | ;; Using ps-print | 46 | ;; Using ps-print |
| 50 | ;; -------------- | 47 | ;; -------------- |
| @@ -302,10 +299,48 @@ | |||
| 302 | ;; formats for; it should contain one of the symbols ps-letter, | 299 | ;; formats for; it should contain one of the symbols ps-letter, |
| 303 | ;; ps-legal, or ps-a4. The default is ps-letter. | 300 | ;; ps-legal, or ps-a4. The default is ps-letter. |
| 304 | ;; | 301 | ;; |
| 302 | ;; | ||
| 303 | ;; Installing ps-print | ||
| 304 | ;; ------------------- | ||
| 305 | ;; | ||
| 306 | ;; 1. Place ps-print.el somewhere in your load-path and byte-compile | ||
| 307 | ;; it. You can ignore all byte-compiler warnings; they are the | ||
| 308 | ;; result of multi-Emacs support. This step is necessary only if | ||
| 309 | ;; you're installing your own ps-print; if ps-print came with your | ||
| 310 | ;; copy of Emacs, this been done already. | ||
| 311 | ;; | ||
| 312 | ;; 2. Place in your .emacs file the line | ||
| 313 | ;; | ||
| 314 | ;; (require 'ps-print) | ||
| 315 | ;; | ||
| 316 | ;; to load ps-print. Or you may cause any of the ps-print commands | ||
| 317 | ;; to be autoloaded with an autoload command such as: | ||
| 318 | ;; | ||
| 319 | ;; (autoload 'ps-print-buffer "ps-print" | ||
| 320 | ;; "Generate and print a PostScript image of the buffer..." t) | ||
| 321 | ;; | ||
| 322 | ;; 3. Make sure that the variables ps-lpr-command and ps-lpr-switches | ||
| 323 | ;; contain appropriate values for your system; see the usage notes | ||
| 324 | ;; below and the documentation of these variables. | ||
| 325 | ;; | ||
| 326 | ;; New since version 1.5 | ||
| 327 | ;; --------------------- | ||
| 328 | ;; Color output capability. | ||
| 329 | ;; | ||
| 330 | ;; Automatic detection of font attributes (bold, italic). | ||
| 331 | ;; | ||
| 332 | ;; Configurable headers with page numbers. | ||
| 333 | ;; | ||
| 334 | ;; Slightly faster. | ||
| 335 | ;; | ||
| 336 | ;; Support for different paper sizes. | ||
| 337 | ;; | ||
| 338 | ;; Better conformance to PostScript Document Structure Conventions. | ||
| 339 | ;; | ||
| 305 | ;; | 340 | ;; |
| 306 | ;; Known bugs and limitations of ps-print: | 341 | ;; Known bugs and limitations of ps-print: |
| 307 | ;; -------------------------------------- | 342 | ;; -------------------------------------- |
| 308 | ;; Automatic font-attribute detection doesn't work will, especially | 343 | ;; Automatic font-attribute detection doesn't work well, especially |
| 309 | ;; with hilit19 and older versions of get-create-face. Users having | 344 | ;; with hilit19 and older versions of get-create-face. Users having |
| 310 | ;; problems with auto-font detection should use the lists ps-italic- | 345 | ;; problems with auto-font detection should use the lists ps-italic- |
| 311 | ;; faces and ps-bold-faces and/or turn off automatic detection by | 346 | ;; faces and ps-bold-faces and/or turn off automatic detection by |
| @@ -361,8 +396,16 @@ | |||
| 361 | 396 | ||
| 362 | ;;; Code: | 397 | ;;; Code: |
| 363 | 398 | ||
| 364 | (defconst ps-print-thompson-version "1.14" | 399 | (defconst ps-print-version "2.0" |
| 365 | "Report bugs to thompson@wg2.waii.com and bug-gnu-emacs@prep.ai.mit.edu.") | 400 | "ps-print.el,v 2.0 1995/02/12 04:39:48 jct Exp |
| 401 | |||
| 402 | Jim's last change version -- this file may have been edited as part of | ||
| 403 | Emacs without changes to the version number. When reporting bugs, | ||
| 404 | please also report the version of Emacs, if any, that ps-print was | ||
| 405 | distributed with. | ||
| 406 | |||
| 407 | Please send all bug fixes and enhancements to | ||
| 408 | Jim Thompson <thompson@wg2.waii.com>.") | ||
| 366 | 409 | ||
| 367 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 410 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 368 | ;; User Variables: | 411 | ;; User Variables: |
| @@ -1263,7 +1306,7 @@ StandardEncoding 46 82 getinterval aload pop | |||
| 1263 | (ps-output (format "/PrintWidth %d def\n" ps-print-width)) | 1306 | (ps-output (format "/PrintWidth %d def\n" ps-print-width)) |
| 1264 | (ps-output (format "/PrintHeight %d def\n" ps-print-height)) | 1307 | (ps-output (format "/PrintHeight %d def\n" ps-print-height)) |
| 1265 | 1308 | ||
| 1266 | (ps-output (format "/LineHeight %d def\n" ps-line-height)) | 1309 | (ps-output (format "/LineHeight %s def\n" ps-line-height)) |
| 1267 | 1310 | ||
| 1268 | (ps-output ps-print-prologue) | 1311 | (ps-output ps-print-prologue) |
| 1269 | 1312 | ||
| @@ -1940,4 +1983,5 @@ EndDSCPage\n")) | |||
| 1940 | (setq ps-lpr-switches '("-Jjct,duplex_long"))) | 1983 | (setq ps-lpr-switches '("-Jjct,duplex_long"))) |
| 1941 | 1984 | ||
| 1942 | (provide 'ps-print) | 1985 | (provide 'ps-print) |
| 1986 | |||
| 1943 | ;;; ps-print.el ends here | 1987 | ;;; ps-print.el ends here |