aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2004-03-10 22:56:45 +0000
committerVinicius Jose Latorre2004-03-10 22:56:45 +0000
commit197d4ebcbcc24adcaa1a5e6995bef8be15ea76ae (patch)
treefdfef96f00ad45b245ef75255cd17bb972128f41
parent134d96718689a884c4aa3c6427733d33f4fccd73 (diff)
downloademacs-197d4ebcbcc24adcaa1a5e6995bef8be15ea76ae.tar.gz
emacs-197d4ebcbcc24adcaa1a5e6995bef8be15ea76ae.zip
Modification to print *Messages* buffer.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/ps-print.el34
2 files changed, 29 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cc3e2effc09..fc610e26239 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12004-03-10 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2
3 * ps-print.el: Modification to print *Messages* buffer.
4 (ps-print-version): New version 6.6.4.
5 (ps-message-log-max): New fun.
6 (ps-spool-without-faces, ps-spool-with-faces)
7 (ps-count-lines-preprint): Code fix.
8
12004-03-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> 92004-03-09 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 10
3 * delim-col.el: Doc fix. 11 * delim-col.el: Doc fix.
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 7cf9ec86f4a..e60eebe07cf 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -10,12 +10,12 @@
10;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 10;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters)
11;; Vinicius Jose Latorre <viniciusjl@ig.com.br> 11;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
12;; Keywords: wp, print, PostScript 12;; Keywords: wp, print, PostScript
13;; Time-stamp: <2004/02/29 00:07:55 vinicius> 13;; Time-stamp: <2004/03/10 18:57:00 vinicius>
14;; Version: 6.6.3 14;; Version: 6.6.4
15;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ 15;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/
16 16
17(defconst ps-print-version "6.6.3" 17(defconst ps-print-version "6.6.4"
18 "ps-print.el, v 6.6.3 <2004/02/29 vinicius> 18 "ps-print.el, v 6.6.4 <2004/03/10 vinicius>
19 19
20Vinicius's last change version -- this file may have been edited as part of 20Vinicius's last change version -- this file may have been edited as part of
21Emacs without changes to the version number. When reporting bugs, please also 21Emacs without changes to the version number. When reporting bugs, please also
@@ -4141,6 +4141,11 @@ If EXTENSION is any other symbol, it is ignored."
4141;; Internal functions and variables 4141;; Internal functions and variables
4142 4142
4143 4143
4144(defun ps-message-log-max ()
4145 (and (not (string= (buffer-name) "*Messages*"))
4146 message-log-max))
4147
4148
4144(defvar ps-print-hook nil) 4149(defvar ps-print-hook nil)
4145(defvar ps-print-begin-sheet-hook nil) 4150(defvar ps-print-begin-sheet-hook nil)
4146(defvar ps-print-begin-page-hook nil) 4151(defvar ps-print-begin-page-hook nil)
@@ -4153,9 +4158,10 @@ If EXTENSION is any other symbol, it is ignored."
4153 4158
4154 4159
4155(defun ps-spool-without-faces (from to &optional region-p) 4160(defun ps-spool-without-faces (from to &optional region-p)
4156 (run-hooks 'ps-print-hook) 4161 (let ((message-log-max (ps-message-log-max))) ; to print *Messages* buffer
4157 (ps-printing-region region-p from to) 4162 (run-hooks 'ps-print-hook)
4158 (ps-generate (current-buffer) from to 'ps-generate-postscript)) 4163 (ps-printing-region region-p from to)
4164 (ps-generate (current-buffer) from to 'ps-generate-postscript)))
4159 4165
4160 4166
4161(defun ps-print-with-faces (from to &optional filename region-p) 4167(defun ps-print-with-faces (from to &optional filename region-p)
@@ -4164,15 +4170,17 @@ If EXTENSION is any other symbol, it is ignored."
4164 4170
4165 4171
4166(defun ps-spool-with-faces (from to &optional region-p) 4172(defun ps-spool-with-faces (from to &optional region-p)
4167 (run-hooks 'ps-print-hook) 4173 (let ((message-log-max (ps-message-log-max))) ; to print *Messages* buffer
4168 (ps-printing-region region-p from to) 4174 (run-hooks 'ps-print-hook)
4169 (ps-generate (current-buffer) from to 'ps-generate-postscript-with-faces)) 4175 (ps-printing-region region-p from to)
4176 (ps-generate (current-buffer) from to 'ps-generate-postscript-with-faces)))
4170 4177
4171 4178
4172(defun ps-count-lines-preprint (from to) 4179(defun ps-count-lines-preprint (from to)
4173 (or (and from to) 4180 (or (and from to)
4174 (error "The mark is not set now")) 4181 (error "The mark is not set now"))
4175 (list (count-lines from to))) 4182 (let ((message-log-max (ps-message-log-max))) ; to count lines of *Messages*
4183 (list (count-lines from to))))
4176 4184
4177 4185
4178(defun ps-count-lines (from to) 4186(defun ps-count-lines (from to)