bug-a2ps
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs M-x a2ps-region prints entire buffer


From: Aaron S. Hawley
Subject: Emacs M-x a2ps-region prints entire buffer
Date: Fri, 4 Feb 2011 16:35:10 -0500

I noticed that Emacs always prints the entire buffer instead of the
selected region with M-x a2ps-region.

Here's the fix.

--- a2ps-print.el       2003-08-22 12:12:38.001000000 -0400
+++ a2ps-print.el       2011-02-03 15:21:39.627747200 -0500
@@ -80,7 +80,7 @@
          (let ((oldbuf (current-buffer)))
            (set-buffer (get-buffer-create " *spool temp*"))
            (widen) (erase-buffer)
-           (insert-buffer-substring oldbuf)
+           (insert-buffer-substring oldbuf start end)
            (setq tab-width width)
            (untabify (point-min) (point-max))
            (setq start (point-min) end (point-max))))


Thanks for a2ps!
/a

-- 
In general, we reserve the right to have a poor
memory--the computer, however, is supposed to
remember!  Poor computer.  -- Guy Lewis Steele Jr.

Attachment: a2ps-print.el.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]