diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ps-print.el | 11 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4588f02dbb9..668f22e502e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-12-02 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * ps-print.el (ps-line-lengths-internal, ps-nb-pages): | ||
| 4 | Ensure ps-footer-font-size-internal is initialized. | ||
| 5 | Call ps-get-page-dimensions before trying to use ps-font-for-text. | ||
| 6 | |||
| 1 | 2010-12-01 Kenichi Handa <handa@m17n.org> | 7 | 2010-12-01 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * mail/rmailmm.el (rmail-mime-parse): Call rmail-mime-process | 9 | * mail/rmailmm.el (rmail-mime-parse): Call rmail-mime-process |
| @@ -35,7 +41,6 @@ | |||
| 35 | (smie-next-sexp): Make it accept a "start token" as argument. | 41 | (smie-next-sexp): Make it accept a "start token" as argument. |
| 36 | (smie-indent-keyword): Be careful not to misidentify tokens that span | 42 | (smie-indent-keyword): Be careful not to misidentify tokens that span |
| 37 | more than one line, as empty lines. Add argument `token'. | 43 | more than one line, as empty lines. Add argument `token'. |
| 38 | >>>>>>> MERGE-SOURCE | ||
| 39 | 44 | ||
| 40 | 2010-11-26 Kenichi Handa <handa@m17n.org> | 45 | 2010-11-26 Kenichi Handa <handa@m17n.org> |
| 41 | 46 | ||
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 69b32e5d52d..d26b3a5cc7b 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -4331,14 +4331,17 @@ Try: pr -t file | awk '{printf \"%3d %s\n\", length($0), $0}' | sort -r | head" | |||
| 4331 | (ps-header-font-size-internal | 4331 | (ps-header-font-size-internal |
| 4332 | (or ps-header-font-size-internal | 4332 | (or ps-header-font-size-internal |
| 4333 | (ps-get-font-size 'ps-header-font-size))) | 4333 | (ps-get-font-size 'ps-header-font-size))) |
| 4334 | (ps-footer-font-size-internal | ||
| 4335 | (or ps-footer-font-size-internal | ||
| 4336 | (ps-get-font-size 'ps-footer-font-size))) | ||
| 4334 | (ps-header-title-font-size-internal | 4337 | (ps-header-title-font-size-internal |
| 4335 | (or ps-header-title-font-size-internal | 4338 | (or ps-header-title-font-size-internal |
| 4336 | (ps-get-font-size 'ps-header-title-font-size))) | 4339 | (ps-get-font-size 'ps-header-title-font-size))) |
| 4337 | (buf (get-buffer-create "*Line-lengths*")) | 4340 | (buf (get-buffer-create "*Line-lengths*")) |
| 4338 | (ifs ps-font-size-internal) ; initial font size | 4341 | (ifs ps-font-size-internal) ; initial font size |
| 4339 | (icw (ps-avg-char-width 'ps-font-for-text)) ; initial character width | ||
| 4340 | (print-width (progn (ps-get-page-dimensions) | 4342 | (print-width (progn (ps-get-page-dimensions) |
| 4341 | ps-print-width)) | 4343 | ps-print-width)) |
| 4344 | (icw (ps-avg-char-width 'ps-font-for-text)) ; initial character width | ||
| 4342 | (ps-setup (ps-setup)) ; setup for the current buffer | 4345 | (ps-setup (ps-setup)) ; setup for the current buffer |
| 4343 | (fs-min 5) ; minimum font size | 4346 | (fs-min 5) ; minimum font size |
| 4344 | cw-min ; minimum character width | 4347 | cw-min ; minimum character width |
| @@ -4378,6 +4381,9 @@ and on the current ps-print setup." | |||
| 4378 | (ps-header-font-size-internal | 4381 | (ps-header-font-size-internal |
| 4379 | (or ps-header-font-size-internal | 4382 | (or ps-header-font-size-internal |
| 4380 | (ps-get-font-size 'ps-header-font-size))) | 4383 | (ps-get-font-size 'ps-header-font-size))) |
| 4384 | (ps-footer-font-size-internal | ||
| 4385 | (or ps-footer-font-size-internal | ||
| 4386 | (ps-get-font-size 'ps-footer-font-size))) | ||
| 4381 | (ps-header-title-font-size-internal | 4387 | (ps-header-title-font-size-internal |
| 4382 | (or ps-header-title-font-size-internal | 4388 | (or ps-header-title-font-size-internal |
| 4383 | (ps-get-font-size 'ps-header-title-font-size))) | 4389 | (ps-get-font-size 'ps-header-title-font-size))) |
| @@ -4387,9 +4393,9 @@ and on the current ps-print setup." | |||
| 4387 | (buf (get-buffer-create "*Nb-Pages*")) | 4393 | (buf (get-buffer-create "*Nb-Pages*")) |
| 4388 | (ils ps-line-spacing-internal) ; initial line spacing | 4394 | (ils ps-line-spacing-internal) ; initial line spacing |
| 4389 | (ifs ps-font-size-internal) ; initial font size | 4395 | (ifs ps-font-size-internal) ; initial font size |
| 4390 | (ilh (ps-line-height 'ps-font-for-text)) ; initial line height | ||
| 4391 | (page-height (progn (ps-get-page-dimensions) | 4396 | (page-height (progn (ps-get-page-dimensions) |
| 4392 | ps-print-height)) | 4397 | ps-print-height)) |
| 4398 | (ilh (ps-line-height 'ps-font-for-text)) ; initial line height | ||
| 4393 | (ps-setup (ps-setup)) ; setup for the current buffer | 4399 | (ps-setup (ps-setup)) ; setup for the current buffer |
| 4394 | (fs-min 4) ; minimum font size | 4400 | (fs-min 4) ; minimum font size |
| 4395 | lh-min ; minimum line height | 4401 | lh-min ; minimum line height |
| @@ -6726,5 +6732,4 @@ Finish printing job for multi-byte chars. | |||
| 6726 | 6732 | ||
| 6727 | (provide 'ps-print) | 6733 | (provide 'ps-print) |
| 6728 | 6734 | ||
| 6729 | ;; arch-tag: fb06a585-1112-4206-885d-a57d95d50579 | ||
| 6730 | ;;; ps-print.el ends here | 6735 | ;;; ps-print.el ends here |