1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

43 Commits

Author SHA1 Message Date
Richard M. Stallman
857686a6d3 Some comment, doc and bug fixes.
(ps-print-version): New version number (3.05.3) and doc fix.
(ps-output-string-prim, ps-begin-job, ps-control-character)
(ps-plot-region): Bug fix.
(ps-print-control-characters): New custom var.
(ps-string-escape-codes, ps-string-control-codes): New var.
(ps-color-device, ps-font-lock-face-attributes, ps-eval-switch)
(ps-flatten-list, ps-flatten-list-1): New fn.
(ps-setup): Update current setup.
(ps-begin-file): Adjust PostScript header file.
(ps-plot, ps-face-attribute-list): Little programming improvement.
(ps-print-prologue-1): Replace NumberOfZebra by ZebraHeight.
(ps-print-without-faces, ps-print-with-faces): Little reprogramming.
(ps-plot-with-face): Get color only on color screen device.
(ps-build-reference-face-lists): Handle obsolete
font-lock-face-attributes.
(ps-print-ensure-fontified): Little programming setting.
(ps-generate-postscript-with-faces): Adjust initializations, get color
only on color screen device.
(ps-generate): Replace (if A B) by (and A B).
(ps-do-despool): Dynamic evaluation for ps-lpr-switches,
Replace (if A B) by (and A B).
(color-instance-rgb-components, ps-color-values): Replace
pixel-components by color-instance-rgb-components.
(ps-xemacs-face-kind-p): Replace face-font by face-font-instance,
replace x-font-properties by font-instance-properties.
1997-12-25 18:33:52 +00:00
Karl Heuer
1061ff16f4 Comment fix. 1997-11-23 02:30:00 +00:00
Karl Heuer
8bd22fcf0a Some comment and doc fixes.
(ps-print-version): New version number (3.05.2) and doc fix.
(ps-print, ps-header-lines, ps-show-n-of-n, ps-font-info-database)
(ps-font-family, ps-font-size, ps-header-font-family)
(ps-header-font-size, ps-header-title-font-size, ps-bold-faces)
(ps-italic-faces, ps-underlined-faces, ps-left-header, ps-right-header)
(ps-font, ps-font-bold, ps-font-italic, ps-font-bold-italic)
(ps-avg-char-width, ps-space-width, ps-line-height): Doc fix.
(ps-error-scale-font): New fn.
(ps-soft-lf, ps-hard-lf): Fn deleted.
(ps-get-page-dimensions, ps-set-bg, ps-face-bold-p, ps-face-italic-p)
(ps-set-color): Reindentation.
(ps-output-string-prim, ps-xemacs-face-kind-p): Internal blank lines
deleted.
(ps-set-font): Little programming improvement.
(ps-line-lengths-internal, ps-nb-pages, ps-select-font)
(ps-select-header-font): Simplify some expressions.
(ps-plot-region): Replace (- X 1) by (1- X).
(ps-generate-header): Replace (+ X 1) by (1+ X).
(ps-print-preprint, ps-plot-with-face, ps-print-ensure-fontified)
(ps-kill-emacs-check): Replace (if (and A B) C) by (and A B C).
(ps-init-output-queue, ps-gnus-article-prepare-hook, ps-jts-ps-setup):
Replace (setq a b)(setq c d) by (setq a b c d).
(ps-begin-file, ps-end-file): Replace (ps-output A)(ps-output B)
by (ps-output A B).
(ps-begin-page): Replace (ps-output A)(ps-output B) by (ps-output A B),
replace (setq a b)(setq c d) by (setq a b c d).
(ps-next-line, ps-continue-line): Replace (setq a b)(setq c d)
by (setq a b c d), and incorporates ps-soft-lf and ps-hard-lf,
respectively.
(ps-plot): Replace (setq a b)(setq c d) by (setq a b c d),
and programming improvement.
(ps-generate-postscript-with-faces): Initialization fix,
replace (setq a b)(setq c d) by (setq a b c d),
replace (if (and A B) C) by (and A B C).
(ps-generate): Doc fix, reprogramming to set the page count,
replace (setq a b)(setq c d) by (setq a b c d),
replace (if A nil B) by (or A B),
replace (if (and A B) C) by (and A B C).
(ps-info-mode-hook): Replace (list 'A 'B) by '(A B).
(ps-jack-setup): Replace (list) by nil.
1997-11-23 02:26:50 +00:00
Karl Heuer
35378a097b (ps-print-background-image): Fix customize type.
(ps-print-background-text): Likewise.
(ps-show-n-of-n): Doc fix.
1997-10-02 02:57:42 +00:00
Richard M. Stallman
06fb6aabb2 (ps-emacs-face-kind-p): Function deleted.
(ps-face-bold-p, ps-face-italic-p):
Check ps-bold-faces or ps-italic-faces.
(ps-zebra-stripes, ps-zebra-stripe-height): Doc fixes.
(ps-line-lengths, ps-nb-pages-buffer, ps-nb-pages-region, ps-setup): Doc fixes.
1997-09-11 23:51:29 +00:00
Richard M. Stallman
7f72c06f7f (ps-face-bold-p): Use face-bold-p.
(ps-face-italic-p): Use face-italic-p.
1997-09-09 07:33:12 +00:00
Richard M. Stallman
019612373c (ps-setup): ps-zebra-stripe => ps-zebra-stripes.
ps-number-of-zebra =>  ps-zebra-stripe-height.
1997-09-07 04:02:32 +00:00
Richard M. Stallman
a18ed1290d Some comment and doc fixes.
(ps-print-version): New version number (3.05.1).
(ps-adobe-tag): Replace defvar by defcustom, and doc fix.
(ps-print-with-faces, ps-print-without-faces)
(ps-spool-with-faces, ps-spool-without-faces): Add arg REGION-P.
(ps-print-region-with-faces, ps-print-region)
(ps-spool-region, ps-spool-region-with-faces): Fix calls to
the functions above.
(ps-setup): Print value of ps-zebra-stripe, ps-number-of-zebra,
ps-line-number, ps-print-background-image,
and ps-print-background-text.
(ps-print-prologue-1): Bug fix in PostScript programming:
/BeginDSCPage, /BeginPage.
(ps-showpage-count, ps-ref-bold-faces, ps-ref-italic-faces)
(ps-ref-underlined-faces, font-lock-face-attributes)
(ps-initialize-faces): Vars deleted.
(ps-override-list, ps-extension-to-bit-face)
(ps-extension-to-screen-face, ps-initialize-faces, ps-header-height)
(ps-hard-lf, ps-soft-lf, ps-get-face, ps-map-font-lock): Fn deleted.
(ps-extend-face-list, ps-extend-face): Doc fix.
(ps-print-face-alist): New var to handle face alist.
(ps-printing-region): New var and fn.
(ps-header-page, ps-set-face-bold, ps-set-face-italic)
(ps-set-face-underline, ps-set-face-attribute, ps-map-face): New fn.
(ps-rmail-mode-hook, ps-rmail-print-message-from-summary)
(ps-print-message-from-summary, ps-vm-print-message-from-summary):
Fns moved.
(ps-background): New argument PAGE-NUMBER.
(ps-begin-file): Bug fix and print proper line number in a region.
(ps-begin-page): Call ps-header-page.
(ps-get-buffer-name): Indicates in the header when printing a region.
(ps-end-page): Delete ps-showpage-count.
(ps-dummy-page): Calls ps-header-page.
(ps-set-color): Programming improvement.
(ps-plot-region): Doc fix.
(ps-face-attributes): Same functionality as deleted ps-get-face.
(ps-build-reference-face-lists): Do the job by calling
ps-set-face-bold and ps-bold-faces, and friends.
1997-09-06 02:52:00 +00:00
Richard M. Stallman
535efc3878 (ps-zebra-stripes): Renamed from ps-zebra-stripe.
(ps-zebra-stripe-height): Renamed from ps-number-of-zebra.
1997-08-23 06:51:42 +00:00
Richard M. Stallman
6c8f27539f (ps-print-face-extension-alist): Doc fix.
(ps-new-faces): Function deleted.
1997-08-20 23:15:22 +00:00
Richard M. Stallman
87a16a065d A lot of comment and doc fixes.
Replace: 'nil by nil, '() by nil, 't by t.

(ps-print-version): New version number (3.05).
(ps-zebra-stripe, ps-number-of-zebra, ps-line-number)
(ps-print-background-image, ps-print-background-text): New variables
to customize zebra stripes, line number, image background and text
background features, respectively.
(ps-adobe-tag): Tagged to PostScript level 3.
(ps-print-buffer, ps-print-buffer-with-faces)
(ps-print-region, ps-print-region-with-faces)
(ps-spool-buffer, ps-spool-buffer-with-faces)
(ps-spool-region, ps-spool-region-with-faces): Call more primitive
functions for PostScript printing (functions below).
(ps-print-with-faces, ps-print-without-faces)
(ps-spool-with-faces, ps-spool-without-faces): More primitive
functions for PostScript printing.
(ps-line-lengths, ps-nb-pages-buffer, ps-nb-pages-region)
(ps-line-lengths-internal, ps-nb-pages): Doc fixes.
(ps-print-prologue-1): a lot of PostScript programming:
/dobackgroundstring, /dounderline, /UL: Postscript functions deleted.
/reencodeFontISO, /F, /BG, /HL, /W, /S, /BeginDSCPage, /BeginPage,
/EndPage: adjusted for new effects (outline, shadow, etc).
/PLN, /EF, /Hline, /doBox, /doRect, /doShadow, /doOutline,
/FillBgColor, /doLineNumber, /printZebra, /doColumnZebra,
/doZebra, /BeginBackImage, /EndBackImage, /ShowBackText: New procedures.
(ps-current-underline-p, ps-set-underline): Var and fn deleted.
(ps-showline-count, ps-background-pages, ps-background-all-pages)
(ps-background-text-count, ps-background-image-count): New variables.
(ps-header-font, ps-header-title-font)
(ps-header-line-height, ps-header-title-line-height)
(ps-landscape-page-height): Set initial value to nil.
(ps-print-face-extension-alist, ps-print-face-map-alist):
New variables for face remapping.
(ps-new-faces, ps-extend-face-list, ps-extend-face):
New functions for face remapping.
(ps-override-list, ps-extension-to-bit-face)
(ps-extension-to-screen-face, ps-extension-bit)
(ps-initialize-faces, ps-map-font-lock, ps-screen-to-bit-face):
New internal functions for face remapping.
(ps-get-page-dimensions): Fix error message.
(ps-insert-file): Doc fix and programming enhancement.
(ps-begin-file, ps-end-file, ps-get-buffer-name, ps-begin-page)
(ps-next-line, ps-plot-region, ps-face-attributes)
(ps-face-attribute-list, ps-plot-with-face)
(ps-generate-postscript-with-faces): Handle new output features.
(ps-generate): save-excursion inserted to return back point at
position before calling ps-print.
(ps-do-spool): Access dos-ps-printer variable through symbol-value.
(ps-prsc, ps-c-prsc, ps-s-prsc): Use backquote.
(ps-basic-plot-whitespace, ps-emacs-face-kind-p): Internal blank
line eliminated.
(ps-float-format, ps-current-effect): New internal variables.
(ps-output-list, ps-count-lines, ps-background-pages)
(ps-get-boundingbox, ps-float-format, ps-background-text)
(ps-background-image, ps-background, ps-header-height)
(ps-get-face): New internal functions.
(ps-control-character): Handle control characters.
(ps-gnus-print-article-from-summary): Updated for Gnus 5.
(ps-jack-setup): Replace 'nil by nil, 't by t.
1997-08-20 23:11:35 +00:00
Richard M. Stallman
27f20fc120 Comment change. 1997-07-27 20:04:29 +00:00
Simon Marshall
a6c6e755bc Quote :group names. 1997-05-06 13:54:06 +00:00
Simon Marshall
055e7bf2d2 change all buffer-substring to buffer-substring-no-properties. 1997-04-28 11:25:26 +00:00
Richard M. Stallman
4f3beabf12 (ps-print-color-p): Fix minor error. 1997-04-13 23:42:53 +00:00
Richard M. Stallman
89df60f2c0 Fix second copy of Duthen's email address. 1997-04-12 01:51:30 +00:00
Richard M. Stallman
e0af0d3ef4 Add defgroup's; change use defcustom for user vars. 1997-04-12 01:50:50 +00:00
Richard M. Stallman
297744f0e5 Change email address. 1997-04-11 01:30:20 +00:00
Richard M. Stallman
ae7f67617a (ps-print-header): Doc fix. 1997-01-30 22:17:33 +00:00
Richard M. Stallman
090be653c3 (ps-print-version): Fix value.
(cl lisp-float-type): Require them.
(ps-number-of-columns ps-*-font-size): Try to select defaults
better suited when `ps-landscape-mode' is non-nil.
(ps-*-faces): Change default for Font Lock mode faces when
`ps-print-color-p' is nil.
(ps-right-header): Replace `time-stamp-yy/mm/dd'
by `time-stamp-mon-dd-yyyy'.
(ps-end-file ps-begin-page): Fix bug in page count for Ghostview.
(ps-generate-postscript-with-faces): Replace `ps-sorter' by
`car-less-than-car'.
(ps-plot ps-generate): Replace `%d' by `%3d'.
1997-01-16 05:09:21 +00:00
Richard M. Stallman
bcc0d45798 (ps-print-prologue-1): Fix bug in postscript comment lines.
(ps-nb-pages): Call ps-setup _before_ switching to the other
buffer, because of buffer variables.

Major rewrite.
(ps-page-dimensions-database, ps-paper-type): Replace the
following global variables:
(ps-a4-page-height, ps-a4-page-width, ps-legal-page-height,
ps-legal-page-width, ps-letter-page-height, ps-letter-page-width,
ps-pages-alist, ps-page-dimensions): Variables deleted.
(ps-page-height-i, ps-page-width-i): Variables deleted.
(ps-print-prologue): Variable deleted.
(ps-print-prologue-1, ps-print-prologue-2): New variables.
Major rewrite of the postscript code to handle landscape mode,
multiple columns and new font management.
(ps-landscape-mode, ps-number-of-columns, ps-inter-column): New
variables.
Add landscape mode and multiple columns with interspacing.
(ps-font-info-database, ps-font-family, ps-font-size,
ps-header-font-family, ps-header-font-size, ps-header-title-font,
ps-header-title-font-size): New variables.
New font management interface.
(ps-header-line-pad, ps-header-offset): New variables.
(ps-header-font, ps-landscape-page-height): New internal variables.
(ps-top-margin): Change its semantics.  It is now really the top
margin, not anymore twice the top margin.
(/ReportAllFontInfo):  New postscript function to get all the font
families of the printer.
(ps-setup): New function.
(ps-line-lengths, ps-nb-pages-buffer, ps-nb-pages-region): New
utility functions.
(ps-page-dimensions-get-width, ps-page-dimensions-get-height): New macros.
(/HeaderOffset): Fix bug with /PrintStartY.
(/SetHeaderLines): Fix bug.
1996-09-28 04:34:34 +00:00
Richard M. Stallman
25fc49d3ea (ps-print-prologue): Get rid of backslash-digits
control characters in comments.
1996-09-14 04:54:17 +00:00
Richard M. Stallman
0ccb277a5e Comment change. 1996-07-22 16:33:20 +00:00
Karl Heuer
a97592dd6b (ps-article-author, ps-info-file, ps-info-node): Don't die if header is missing. 1996-07-07 17:35:32 +00:00
Karl Heuer
45a870d9f0 (ps-article-subject): Don't die if no subject header. 1996-07-07 17:30:04 +00:00
Richard M. Stallman
03f962fbc4 (ps-print-preprint): Special handling if
file entered in the minibuffer is a directory.
1996-05-05 03:56:36 +00:00
Richard M. Stallman
9596811a3d Comment change. 1996-03-02 06:37:35 +00:00
Richard M. Stallman
278e0a7357 (ps-generate): Bind inhibit-read-only. 1996-02-28 18:51:36 +00:00
Karl Heuer
d8fc5f6498 (ps-generate-postscript-with-faces):
Handle buffer-invisibility-spec when interpreting the invisible prop.
1996-02-21 21:25:01 +00:00
Richard M. Stallman
62901aeed8 (ps-do-despool): On MS-DOS, allow both the usual and
the alternative printing methods.
1996-01-15 22:50:35 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Richard M. Stallman
a9bb53da49 (ps-do-despool): Alternative output method for MSDOS. 1995-12-29 04:14:10 +00:00
Richard M. Stallman
1cd7962f06 (ps-spool-buffer-with-faces): Fix typo in previous chg.
(ps-spool-region-with-faces): Likewise.
1995-12-23 15:55:49 +00:00
Karl Heuer
107e7c7045 Doc fixes. 1995-12-21 18:01:15 +00:00
Richard M. Stallman
6770a60f47 (ps-print-emacs-type): Renamed from emacs-type. 1995-08-04 19:59:57 +00:00
Richard M. Stallman
30040449d8 Renamed fsf' to emacs' in all names. 1995-08-04 19:56:15 +00:00
Karl Heuer
043620f45e Miscellaneous fixes for better compatibility with
XEmacs 19.12.

(ps-plot-with-face): Added code to handle Emacs
19.29's new ability for the face attribute to hold a list of
faces.

Rolled in Chuck Thompson's changes to make color
printing work in XEmacs 19.12.

Fix error in comments.

(ps-generate-postscript-with-faces): Add fix to
handle extents without faces.

(ps-faces-list): deleted.  Added alias for
list-faces if face-list isn't fbound.

(ps-print-ensure-fontified) added to make sure
ps-print works correctly in conjunction with lazy-lock.

RMS's changes for Emacs.
1995-05-12 02:18:47 +00:00
Richard M. Stallman
b87c5d3d05 (ps-print-version): Add caveat about version number.
(ps-begin-file): Fix format code for /LineHeight.
1995-02-14 05:55:53 +00:00
Richard M. Stallman
00aa16af7c Various changes. 1995-02-07 22:51:35 +00:00
Richard M. Stallman
86c10ecbb6 entered into RCS 1995-01-20 06:20:32 +00:00
Richard M. Stallman
12d89a2e57 *** empty log message *** 1995-01-20 06:09:03 +00:00
Richard M. Stallman
ef2cbb2467 Initial revision 1994-05-01 22:09:01 +00:00