aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2003-07-10 22:29:13 +0000
committerVinicius Jose Latorre2003-07-10 22:29:13 +0000
commite22ba851aa4a00b3d9e6062bdbad0e49604f6a5b (patch)
tree87eb8c241cdba3ef6f1008d4842d341f86ecd0e1
parent97534f3298f5bf3a1ccee8888ad8f4984442a585 (diff)
downloademacs-e22ba851aa4a00b3d9e6062bdbad0e49604f6a5b.tar.gz
emacs-e22ba851aa4a00b3d9e6062bdbad0e49604f6a5b.zip
Print line number correctly in a region.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ps-print.el16
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ddb375d01cd..974c2c80d7f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12003-07-10 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2
3 * ps-print.el: Print line number correctly in a region. Reported by
4 Tim Allen <timallen@ls83.fsnet.co.uk>
5 (ps-print-version): New version number (6.6.2).
6 (ps-printing-region): Code fix.
7
12003-07-10 John Paul Wallington <jpw@gnu.org> 82003-07-10 John Paul Wallington <jpw@gnu.org>
2 9
3 * progmodes/etags.el (visit-tags-table-buffer): Add autoload cookie; 10 * progmodes/etags.el (visit-tags-table-buffer): Add autoload cookie;
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index ac6d37854e3..0b8412edc1d 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: <2003/05/14 22:34:05 vinicius> 13;; Time-stamp: <2003/07/10 19:19:12 vinicius>
14;; Version: 6.6.1 14;; Version: 6.6.2
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.1" 17(defconst ps-print-version "6.6.2"
18 "ps-print.el, v 6.6.1 <2003/05/14 vinicius> 18 "ps-print.el, v 6.6.2 <2003/07/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
@@ -4126,7 +4126,7 @@ If EXTENSION is any other symbol, it is ignored."
4126 4126
4127(defun ps-spool-without-faces (from to &optional region-p) 4127(defun ps-spool-without-faces (from to &optional region-p)
4128 (run-hooks 'ps-print-hook) 4128 (run-hooks 'ps-print-hook)
4129 (ps-printing-region region-p from) 4129 (ps-printing-region region-p from to)
4130 (ps-generate (current-buffer) from to 'ps-generate-postscript)) 4130 (ps-generate (current-buffer) from to 'ps-generate-postscript))
4131 4131
4132 4132
@@ -4137,7 +4137,7 @@ If EXTENSION is any other symbol, it is ignored."
4137 4137
4138(defun ps-spool-with-faces (from to &optional region-p) 4138(defun ps-spool-with-faces (from to &optional region-p)
4139 (run-hooks 'ps-print-hook) 4139 (run-hooks 'ps-print-hook)
4140 (ps-printing-region region-p from) 4140 (ps-printing-region region-p from to)
4141 (ps-generate (current-buffer) from to 'ps-generate-postscript-with-faces)) 4141 (ps-generate (current-buffer) from to 'ps-generate-postscript-with-faces))
4142 4142
4143 4143
@@ -4167,11 +4167,11 @@ file.")
4167 "Non-nil means ps-print is printing a region.") 4167 "Non-nil means ps-print is printing a region.")
4168 4168
4169 4169
4170(defun ps-printing-region (region-p from) 4170(defun ps-printing-region (region-p from to)
4171 (setq ps-printing-region-p region-p 4171 (setq ps-printing-region-p region-p
4172 ps-printing-region 4172 ps-printing-region
4173 (cons (if region-p 4173 (cons (if region-p
4174 (ps-count-lines (point-min) from) 4174 (ps-count-lines (point-min) (min from to))
4175 1) 4175 1)
4176 (ps-count-lines (point-min) (point-max))))) 4176 (ps-count-lines (point-min) (point-max)))))
4177 4177