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
b1f6fa86
Commit
b1f6fa86
authored
Sep 27, 2004
by
Vinicius Jose Latorre
Browse files
Check if file exists before deleting it.
parent
f646e5be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
+23
-12
lisp/ChangeLog
lisp/ChangeLog
+9
-0
lisp/printing.el
lisp/printing.el
+14
-12
No files found.
lisp/ChangeLog
View file @
b1f6fa86
2004-09-26 Vinicius Jose Latorre <viniciusjl@ig.com.br>
* printing.el: Doc fix.
(pr-version): New version number (6.8.1).
(pr-ps-file-using-ghostscript): Use make-temp-file instead of
make-temp-name.
(pr-delete-file): Check if file exists before deleting it. Reported by
Lennart Borgman <lennart.borgman.073@student.lu.se>.
2004-09-26 Stefan <monnier@iro.umontreal.ca>
* term.el (term-display-table): New variable.
...
...
lisp/printing.el
View file @
b1f6fa86
...
...
@@ -5,13 +5,13 @@
;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Time-stamp: <2004/09/2
1
22:
5
1:
58
vinicius>
;; Time-stamp: <2004/09/2
6
22:
1
1:
24
vinicius>
;; Keywords: wp, print, PostScript
;; Version: 6.8
;; Version: 6.8
.1
;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/
(
defconst
pr-version
"6.8"
"printing.el, v 6.8 <2004/09/2
1
vinicius>
(
defconst
pr-version
"6.8
.1
"
"printing.el, v 6.8
.1
<2004/09/2
6
vinicius>
Please send all bug fixes and enhancements to
Vinicius Jose Latorre <viniciusjl@ig.com.br>
...
...
@@ -125,16 +125,16 @@ Please send all bug fixes and enhancements to
;; Novices (First Users)
;; ---------------------
;;
;; First of all,
take a glance of
printing documentation only to
have
an idea
;;
of what
`printing' is capable.
;; First of all,
see
printing documentation only to
get
an idea
of what
;; `printing' is capable.
;;
;; Then try to set the variables: `pr-ps-name', `pr-ps-printer-alist',
;; `pr-txt-name', `pr-txt-printer-alist' and `pr-path-alist'. These variables
;; are the main variables for printing processing.
;;
;; Now, please, see these variables documentation
more in
deep. You can do
;;
this by
typing C-h v pr-ps-name RET (for example) if you already loaded
;;
printing
package, or by browsing printing.el source file.
;; Now, please, see these variables documentation deep
er
. You can do
this by
;; typing C-h v pr-ps-name RET (for example) if you already loaded
printing
;; package, or by browsing printing.el source file.
;;
;; If the documentation isn't clear or if you find a way to improve the
;; documentation, please, send an email to maintainer. All printing users
...
...
@@ -263,7 +263,8 @@ Please send all bug fixes and enhancements to
;; in Windows. The gsprint utility is faster than ghostscript to print
;; monochrome PostScript.
;;
;; The efficiency is similar to print non-monochrome PostScript file.
;; To print non-monochrome PostScript file, the efficiency of ghostscript
;; is similar to gsprint.
;;
;; Also the gsprint utility comes together with gsview distribution.
;;
...
...
@@ -3887,7 +3888,7 @@ image in a file with that name."
(
interactive
(
list
(
pr-ps-infile-preprint
"Print preview "
)))
(
and
(
stringp
filename
)
(
file-exists-p
filename
)
(
let*
((
file
(
pr-expand-file-name
filename
))
(
tempfile
(
pr-dosify-file-name
(
make-temp-
nam
e
file
))))
(
tempfile
(
pr-dosify-file-name
(
make-temp-
fil
e
file
))))
;; gs use
(
pr-call-process
pr-gs-command
(
format
"-sDEVICE=%s"
pr-gs-device
)
...
...
@@ -5221,7 +5222,8 @@ non-nil."
(
defun
pr-delete-file
(
file
)
(
and
pr-delete-temp-file
(
delete-file
file
)))
(
and
pr-delete-temp-file
(
file-exists-p
file
)
(
delete-file
file
)))
(
defun
pr-expand-file-name
(
filename
)
...
...
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