Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5a1173cb
Commit
5a1173cb
authored
Aug 01, 2003
by
Vinicius Jose Latorre
Browse files
printify-region fix
parent
674dd916
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/lpr.el
lisp/lpr.el
+12
-9
No files found.
lisp/ChangeLog
View file @
5a1173cb
2003-08-01 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* lpr.el (printify-region): It was ending conversion before the
expected position. Reported by Keiichi Suzuki <keiichi@nanap.org>.
2003-07-31 John Paul Wallington <jpw@gnu.org>
* net/browse-url.el (browse-url-epiphany): Doc fix.
...
...
lisp/lpr.el
View file @
5a1173cb
;;; lpr.el --- print Emacs buffer on line printer
;; Copyright (C) 1985, 1988, 1992, 1994, 2001 Free Software Foundation, Inc.
;; Copyright (C) 1985, 1988, 1992, 1994, 2001, 2003
;; Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: unix
...
...
@@ -283,14 +284,16 @@ The printable representations use ^ (for ASCII control characters) or hex.
The characters tab, linefeed, space, return and formfeed are not affected."
(
interactive
"r"
)
(
save-excursion
(
goto-char
begin
)
(
let
(
c
)
(
while
(
re-search-forward
"[\^@-\^h\^k\^n-\^_\177-\377]"
end
t
)
(
setq
c
(
preceding-char
))
(
delete-backward-char
1
)
(
insert
(
if
(
<
c
?\
)
(
format
"\\^%c"
(
+
c
?@
))
(
format
"\\%02x"
c
)))))))
(
save-restriction
(
narrow-to-region
begin
end
)
(
goto-char
(
point-min
))
(
let
(
c
)
(
while
(
re-search-forward
"[\^@-\^h\^k\^n-\^_\177-\377]"
nil
t
)
(
setq
c
(
preceding-char
))
(
delete-backward-char
1
)
(
insert
(
if
(
<
c
?\
)
(
format
"\\^%c"
(
+
c
?@
))
(
format
"\\%02x"
c
))))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Functions hacked from `ps-print' package.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment