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

138 Commits

Author SHA1 Message Date
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Vinicius Jose Latorre
e22ba851aa Print line number correctly in a region. 2003-07-10 22:29:13 +00:00
Vinicius Jose Latorre
edf0b0c5ec Avoid unnecessary calls to funs in header and footer variables 2003-05-15 02:32:03 +00:00
Juanma Barranquero
d730a5ac5f (ps-zebra-stripe-follow): Don't quote nil and t in docstrings. 2003-05-06 17:53:37 +00:00
Vinicius Jose Latorre
e59d29d6b7 Check if background and foreground color are the same. 2003-03-06 01:54:17 +00:00
Juanma Barranquero
c794a94d9a Change the policy of background/foreground default color.
(ps-print-version): New version number (6.5.9).
(ps-default-fg, ps-default-bg): Adjust default value.
(ps-begin-file, ps-begin-job): ps-default-fg and ps-default-bg variables now use
`t' to indicate the use of Emacs session background/foreground color.
(ps-output-string-prim): If index out of range, insert hexadecimal
representation of character.
2003-02-13 11:57:42 +00:00
Richard M. Stallman
eafa92bfe0 (ps-print-emacs-type): Error if ps-print is
activated in Epoch, inLucid or in Emacs v19 or lesser.
Value can no longer be `lucid'.
(ps-print-version): New version number (6.5.8).
(faces): Never do (require 'faces).
2002-09-29 03:30:41 +00:00
Richard M. Stallman
509b4dbc0b Adjust ps-print-color-p, ps-default-fg and ps-default-bg setting.
(ps-print-version): New version number (6.5.7).
(ps-mark-active-p): New fun.
(ps-print-preprint-region): Adjust code.
2002-09-12 03:21:57 +00:00
Richard M. Stallman
c90a10faa9 (ps-printer-name-option): Doc fix.
Adjust ps-postscript-code-directory setting.  XEmacs
version check was adjusted.
(ps-print-version): New version number (6.5.6).
(ps-print-color-p, ps-page-dimensions-database): Autoload var.
(ps-print-code, ps-print-preprint-region): Adjust code.
2002-09-10 16:49:47 +00:00
Richard M. Stallman
2285bf9df7 Many doc fixes. 2002-09-09 19:26:40 +00:00
Richard M. Stallman
d1951e6adc (ps-lp-system): Fixed typo in `usg-unix-v'. 2002-08-30 15:49:30 +00:00
Markus Rost
bf29d4c1c6 Update copyright year.
(ps-begin-cut-regexp, ps-end-cut-regexp): Fix type.
2002-07-27 19:50:34 +00:00
Per Abrahamsen
1426742bdf 2002-02-25 Per Abrahamsen <abraham@dina.kvl.dk>
* ps-print.el (ps-print-printer): Added `lpr' customize group
	member.
2002-02-25 16:29:54 +00:00
Richard M. Stallman
e31c1fd5e4 (ps-font-lock-face-attributes): Use :weight and :slant. 2001-12-31 20:32:52 +00:00
Gerd Moellmann
7853aef6a4 Fix copyright years. 2001-09-19 14:54:19 +00:00
Gerd Moellmann
55732434fe Better face mapping for black/white PostScript printers.
Check if mark is active when printing a region.  Doc fix.
(ps-print-version): New version number (6.5.5).
(ps-print-color-p): Customization fix.
(ps-black-white-faces): New option.
(ps-black-white-faces-alist): New internal var.
(ps-count-lines-preprint, ps-print-preprint-region): New funs.
(ps-print-region, ps-print-region-with-faces, ps-nb-pages-buffer)
(ps-nb-pages-region): Interactive fix.
(ps-extend-face-list, ps-extend-face, ps-setup, ps-begin-job)
(ps-face-attributes, ps-generate-postscript-with-faces): Code fix.
2001-09-18 09:28:00 +00:00
Gerd Moellmann
66a863f059 (ps-print-region, ps-print-region-with-faces)
(ps-nb-pages-region): Signal an error if called interactively
and the mark is not active.
2001-09-13 10:12:45 +00:00
Gerd Moellmann
27dc47aa81 Change error function arguments to follow Emacs
message convention.  Doc fix.
(ps-print-version): New version number (6.5.4).
(coding-system-for-write): Change declaration position to avoid
XEmacs compilation gripes.
(coding-system-for-read, buffer-file-coding-system): Declarations
to avoid XEmacs compilation gripes.
2001-08-15 08:05:21 +00:00
Pavel Janík
652a9be93e Author header fix. 2001-07-16 14:36:26 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Gerd Moellmann
4b81a999b9 Use locale dependant date to print date in header. Doc
fix.
(ps-print-version): New version number (6.5.3).
(ps-right-header, ps-right-footer): Initialization and doc fix.
(ps-time-stamp-locale-default): New fun.
2001-07-06 09:59:25 +00:00
Gerd Moellmann
c86f4619eb Handle before-string and after-string overlay properties
in ps-print-*-with-faces commands.  Doc fix.
(ps-print-version): New version number (6.5.2).
(ps-e-overlay-end): Alias for overlay-end to avoid compilation gripes
for XEmacs.
(ps-prefix-quote): Doc fix.
(ps-setup, ps-print-quote, ps-generate-postscript-with-faces): Code
fix.
(ps-basic-plot-str, ps-plot-string): New funs.
2001-06-01 09:22:20 +00:00
Gerd Moellmann
efa89c1f70 Color specified by number is forced to be float number.
(ps-print-version): New version number (6.5.1.1).
(ps-header-frame-alist, ps-footer-frame-alist): Adjust color
initialization.
(ps-prefix-quote): New internal var.
(ps-print-quote): New fun.
(ps-setup, ps-output-frame-properties, ps-float-format)
(ps-format-color): Code fix.
(ps-plot-region): Eliminate redundant foreground color text
setting.
2001-04-26 09:30:00 +00:00
Gerd Moellmann
319acba0f5 Footers implementation. Doc Fix.
(ps-print-version): New version number (6.5.1).
(ps-header-frame-alist): New customization var for header frame
properties.
(ps-line-number-color): New customization var for line number color.
(ps-footer-offset, ps-footer-line-pad, ps-print-footer)
(ps-print-footer-frame, ps-footer-frame-alist, ps-footer-lines)
(ps-footer-font-family, ps-footer-font-size, ps-left-footer)
(ps-right-footer): New customization vars for footers.
(ps-footer-pad, ps-footer-font-size-internal): New internal vars for
footers.
(ps-setup, ps-get-page-dimensions, ps-generate-header-line)
(ps-generate-header, ps-begin-file, ps-begin-job, ps-begin-page): Code
fix.
(ps-prologue-file): Indentation fix.
(ps-print-quote): Fun eliminated.
(ps-value, ps-get, ps-put, ps-del): New funs for alist handling.
(ps-output-frame-properties): New fun.
(ps-fonts, ps-font-number, ps-rgb-color, ps-end-page, ps-next-page)
(ps-skip-newline): Replace defun by defsubst.
2001-04-10 11:33:06 +00:00
Gerd Moellmann
6bf5fb46a3 Line and paragraph spacing feature. Region to cut
out when printing.  Doc fix.
(ps-print-version): New version number (6.5).
(ps-line-spacing, ps-paragraph-spacing, ps-paragraph-regexp): New
vars.  Line and paragraph spacing feature.
(ps-begin-cut-regexp, ps-end-cut-regexp): New vars.  Region to cut
out when printing.
(ps-setup, ps-nb-pages, ps-get-page-dimensions, ps-begin-file)
(ps-get-font-size, ps-begin-job, ps-continue-line)
(ps-plot-region): Code fix.
(ps-print-prologue-2): Var eliminated.
(ps-line-spacing-internal, ps-paragraph-spacing-internal): New
internal vars.
(ps-get-size): New fun.
(ps-output-string-prim, ps-init-output-queue, ps-print-page-p)
(ps-next-line): Replace defun by defsubst.
(ps-mule-plot-string): Autoload doc fix.

(ps-mule-generate-font): New arg HEADER-P.  If it is
non-nil, generate font for the header strings.
(ps-mule-prepare-font): Likewise.
(ps-mule-generate-glyphs): Likewise.
(ps-mule-string-encoding): Likewise.
(ps-mule-header-charsets): New variable.
(ps-mule-encode-header-string): New function.
(ps-mule-header-string-charsets): New function.
(ps-mule-begin-job): Check charsets in the header strings.  If there
are non-ASCII and non-Latin1 charsets, prepare fonts for them.
2001-04-02 10:35:07 +00:00
Gerd Moellmann
2bd80d73da Timestamp package replacement. Some enhancements. Some
XEmacs compatibility.  Doc Fix.
(ps-print-version): New version number (6.4).
(ps-printer-name): Initialization fix.
(ps-zebra-stripe-follow): Funcionality enhancement.
(ps-prologue-file): Code enhancement.
(ps-right-header): Timestamp package replacement.
(ps-setup, ps-face-bold-p, ps-face-italic-p, ps-get-page-dimensions)
(ps-generate-header, ps-begin-file, ps-begin-job)
(ps-generate-postscript-with-faces, ps-do-despool): Code fix.
(ps-time-stamp-mon-dd-yyyy, ps-time-stamp-hh:mm:ss): New funs.
(ps-zebra-stripe-full-p, ps-zebra-stripe-alist): New vars.
(coding-system-for-write): Var declaration (XEmacs compatibility).
2001-02-20 10:41:10 +00:00
Dave Love
942a1d58ad (ps-print-region-function): Fix :type. 2001-02-07 23:43:05 +00:00
Gerd Moellmann
bd7a2e2617 Handle form feed better when ps-zebra-stripe-follow is
non-nil.  Adding almost all customization variables on ps-setup.  Doc
Fix.
(ps-print-version): New version number (6.3.3).
(ps-end-with-control-d): Initialization fix.
(ps-lines-printed): New var.
(ps-skip-newline): New fun.
(ps-setup, ps-prologue-file, ps-begin-job, ps-begin-page)
(ps-next-line, ps-continue-line, ps-plot-region)
(ps-generate-postscript-with-faces, ps-end-job): Code fix.
2000-12-29 11:48:50 +00:00
Eli Zaretskii
ef1159c241 (ps-end-job): Bind case-fold-search only after
switching to ps-spool-buffer.

Line number font customization.  PostScript: Lines and
PageCount are initialized on each page.  Doc Fix.
(ps-print-version): New version number (6.3.2).
(ps-lpr-switches, ps-font-info-database, ps-font-size)
(ps-header-font-size, ps-header-title-font-size, ps-left-header)
(ps-right-header): Customization fix.
(ps-setup, ps-select-font, ps-begin-file, ps-header-sheet, ps-end-job):
Fix code.
(ps-end-with-control-d, ps-line-number-font, ps-line-number-font-size):
New vars.
2000-11-30 13:20:49 +00:00
Gerd Moellmann
967b06fd8b Update copyright notice. 2000-11-18 13:12:18 +00:00
Gerd Moellmann
08ea6f1714 Minor fixes from author. 2000-11-17 22:50:15 +00:00
Gerd Moellmann
7bb054a550 Patch for variable initialization when spooling. Doc
fix.
(ps-output-list): Fun eliminated.
(ps-begin-file, ps-begin-job): Code fix.
2000-11-09 12:05:55 +00:00
Gerd Moellmann
4b3eb10f17 Extension for even/odd printing. Doc Fix.
(ps-print-version): New version number (6.3.1).
(ps-even-or-odd-pages): Customization fix.
(ps-print-page-p, ps-begin-file, ps-begin-job, ps-page-number)
(ps-header-sheet, ps-header-page, ps-end-job): Code fix.
(ps-page-count): Var replaced by `ps-page-column'.
(ps-page-column, ps-page-sheet, ps-page-printed): New vars.
(ps-print-sheet-p): New fun.
2000-11-02 12:04:59 +00:00
Gerd Moellmann
ea0c615db0 Fix bug on selected pages for printing. Use
`color-values' for Emacs 21.  Ensure fontification when jit-lock
is on.  Try to avoid warning messages when compiling.  Doc Fix.
(ps-print-version): New version number (6.3).
(ps-color-device): Use `color-values' to determine if device
supports color.
(ps-color-values): Try to use `x-color-values' when using XEmacs.
(ps-print-page-p): Changed from defsubst to defun.
(ps-page-number): Changed from defmacro to defun.
(ps-header-sheet, ps-header-page): Fix bug on selected pages for
printing.
(ps-print-ensure-fontified): Ensure fontification when jit-lock is
on.
(ps-end-file, ps-dummy-page): Funs eliminated.
(ps-print-color-scale): Changed default value.
(ps-page-n-up, ps-print-page-p): New internal vars.
(ps-print-preprint, ps-output, ps-begin-file, ps-begin-page)
(ps-plot-region, ps-generate, ps-end-job): Code fix.
2000-10-31 11:54:38 +00:00
Gerd Moellmann
47b54c71f8 Avoid compilation gripes.
(ps-print-version): New version number (6.2.1).
2000-10-26 14:15:15 +00:00
Gerd Moellmann
70f57a7251 (ps-generate): Fix odd/even pages printing bug. 2000-10-24 21:17:40 +00:00
Gerd Moellmann
877cf6b438 (ps-print-emacs-type): Move into the
eval-and-compile.
2000-10-19 10:55:15 +00:00
Gerd Moellmann
3e9cb08f58 Even/odd pages fix. Fix little bug on XEmacs. Avoid
compilation gripes.  Doc fix.
(ps-print-version): New version number (6.2).
(ps-x-color-instance-p, ps-x-color-instance-rgb-components)
(ps-x-color-name, ps-x-color-specifier-p, ps-x-copy-coding-system)
(ps-x-device-class, ps-x-extent-end-position, ps-x-extent-face)
(ps-x-extent-priority, ps-x-extent-start-position)
(ps-x-face-font-instance, ps-x-find-coding-system)
(ps-x-font-instance-properties, ps-x-make-color-instance)
(ps-x-map-extents): Alias for functions without the prefix `ps-x-', to
avoid compilation gripes without defining functions.
(ps-e-find-composition): Alias for function find-composition, to have a
suitable function depending on Emacs version.
(ps-color-device, ps-color-values, ps-face-foreground-name)
(ps-face-background-name, ps-face-bold-p, ps-face-italic-p, ps-mapper)
(ps-extent-sorter, ps-xemacs-face-kind-p, ps-xemacs-color-name)
(ps-print-ensure-fontified): Function definitions surrounded by
`eval-and-compile' to avoid compilation gripes.
(ps-font-lock-face-attributes): `font-lock-face-attributes' evaluated
by symbol-value to avoid compilation gripes.
(ps-end-file, ps-header-sheet, ps-plot-region): Even/odd pages fix.
(ps-generate-postscript-with-faces): Fix little bug on XEmacs.
2000-10-19 10:46:51 +00:00
Gerd Moellmann
3556c6dd27 Internal variable changes to defcustom,
make-local-hook changes to defvar.  Doc fix.
(ps-print-version): New version number (6.1).
(ps-setup, ps-do-despool): Code fix.
(ps-printer-name): Customization fix.
(ps-printer-name-option): Now is a defcustom instead of an
internal variable.
(ps-print-hook, ps-print-begin-sheet-hook, ps-print-begin-page-hook)
(ps-print-begin-column-hook): Now are defvar instead of
make-local-hook.
2000-10-18 14:31:05 +00:00
Gerd Moellmann
c3d6d211fe Even/odd pages printing. Doc fix.
(ps-print-version): New version number (6.0).
(ps-setup, ps-print-page-p, ps-background-text, ps-background-image)
(ps-background, ps-begin-file, ps-begin-job): Code fix.
(ps-print-duplex-feature): Variable eliminated.
(ps-even-or-odd-pages): New variable.
2000-08-29 10:51:52 +00:00
Gerd Moellmann
df5e6194c6 Fix bug 1: if ps-font-size-internal,
ps-header-font-size-internal and
ps-header-title-font-size-internal variables are not set,
ps-nb-pages and ps-line-lengths-internal crashes.  Fix bug 2: if
face text property is (foreground-color . COLOR) or
`(background-color . COLOR)', ps-print crashes.  Doc fix.
(ps-print-version): New version number (5.2.4).
(ps-plot-region): Code fix.
(ps-nb-pages, ps-line-lengths-internal): Bug fix 1.
(ps-face-attribute-list, ps-face-attributes, ps-face-background):
Bug fix 2.
2000-07-30 11:49:38 +00:00
Gerd Moellmann
1fd9b7fe42 Fix bug: if ^L is the very first buffer character,
ps-print crashes.  New feature: page selection for printing.  Create
raw-text-unix coding system for XEmacs.  Doc fix.
(ps-print-version): New version number (5.2.3).
(ps-plot-region): Bug fix.
(ps-setup, ps-init-output-queue, ps-output, ps-begin-job, ps-end-file)
(ps-header-sheet, ps-generate, ps-end-job): Code fix.
(ps-restore-selected-pages, ps-selected-pages, ps-print-page-p): New
funs.
(ps-selected-pages, ps-last-selected-pages, ps-first-page)
(ps-last-page): New vars.
2000-06-22 12:27:49 +00:00
Gerd Moellmann
8e234846db XEmacs compatibility. Doc fix. Can select page size
with/without giving an error if PostScript printer doesn't have this
kind of page size.  Zebra Stripe continues or restarts on next page.
Manual/automatic paper feeding.  Switch or not the header.
(ps-print-version): New version number (5.2.2).
(ps-windows-system): Include emx as a Windows system.
(ps-setup, ps-begin-file, ps-color-values, ps-screen-to-bit-face)
(ps-generate-postscript-with-faces, ps-generate-postscript-with-faces)
(ps-background-text): Code fix.
(ps-error-handler-message, ps-user-defined-prologue)
(ps-print-prologue-header, ps-printer-name)
(ps-print-control-characters, ps-n-up-filling, ps-zebra-color)
(ps-line-number-step, ps-spool-config, ps-default-fg, ps-default-bg)
(ps-use-face-background): Customization fix.
(ps-n-up-database): Data fix.
(ps-warn-paper-type, ps-zebra-stripe-follow, ps-manual-feed)
(ps-switch-header): New vars.
(ps-xemacs-color-name, ps-face-foreground-name)
(ps-face-background-name, ps-boolean-constant): New funs.
2000-06-07 15:34:55 +00:00
Gerd Moellmann
98f2fbe725 * ps-print.el: Compatibility, customization and doc fix.
(ps-printer-name-option): Replace defconst by defvar.
(ps-postscript-code-directory): XEmacs compatibility.
(ps-header-sheet, ps-setup, ps-begin-file, ps-begin-job): Code
fix.
(ps-user-defined-prologue, ps-print-prologue-header)
(ps-xemacs-face-kind-p, ps-face-bold-p, ps-face-italic-p): XEmacs
compatibility and code fix.
(ps-print-background-image, ps-print-background-text):
Customization fix.
(ps-line-number-start, ps-n-up-on): New vars.
2000-05-18 21:50:51 +00:00
Gerd Moellmann
906d41a775 Upside-down and face background color printing,
line number step, doc fix.
(ps-print-version): New version number (5.2).
(ps-setup, ps-prologue-file, ps-begin-file, ps-begin-job)
(ps-face-attribute-list, ps-plot-with-face): Code fix.
(ps-spool-config): Var fix.
(ps-printer-name-option): Const fix.
(ps-print-upside-down, ps-use-face-background,
ps-line-number-step): New vars.
(ps-window-system, ps-lp-system): New consts.
(ps-face-background): New fun.
2000-04-29 19:27:49 +00:00
Gerd Moellmann
712dc9e0f1 Check for line-beginning-position definition.
Fix counting lines in a region.
(ps-print-version): New version number (5.1.5).
(ps-spool-without-faces, ps-spool-with-faces): Adjust code.
(ps-printing-region): Fun code fix.
2000-04-15 11:39:10 +00:00
Gerd Moellmann
edc9cd3505 Customization fix, doc fix.
(ps-print-version): New version number (5.1.4).
(ps-article-author, ps-article-subject, ps-info-file, ps-info-node)
(ps-print-preprint): Adjust code.
(ps-printer-name, ps-lpr-switches, ps-user-defined-prologue)
(ps-print-prologue-header, ps-print-control-characters)
(ps-spool-config): Customization fix.
2000-04-13 19:15:23 +00:00
Gerd Moellmann
6e1b1da607 PostScript programming fix for ghostview, doc fix.
(ps-print-version): New version number (5.1.3).
(ps-begin-file, ps-begin-job, ps-set-color, ps-do-despool, ps-setup)
(ps-insert-file, ps-output-boolean, ps-plot-with-face)
(ps-generate-postscript-with-faces): Code fix.
(ps-color-values): XEmacs compatibility.
(ps-print-background-image, ps-print-background-text, ps-printer-name)
(ps-default-fg, ps-default-bg): Adjust customization.
(ps-zebra-color): Adjust customization, renaming old ps-zebra-gray var.
(ps-color-scale): Renaming old ps-color-value fun.
(ps-print-headers): Replace ps-print-header group to avoid conflict
with ps-print-header variable.
(ps-print-miscellany): New group.
(ps-format-color, ps-rgb-color): New funs.
(ps-default-foreground): New var.
(ps-printer-name-option): New const.
2000-03-30 13:21:45 +00:00
Gerd Moellmann
47d2ac7545 Skip banner page fix.
(ps-print-version): New version number (5.1.2).
(ps-begin-file, ps-end-file, ps-generate): Code fix.
2000-03-23 13:54:25 +00:00
Gerd Moellmann
133fc76450 N-up last page fix.
(ps-print-version): New version number (5.1.1).
(ps-end-file, ps-end-job, ps-generate): Code fix.
2000-03-22 12:14:56 +00:00