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
f5fce4ec
Commit
f5fce4ec
authored
Nov 15, 2009
by
Michael Albinus
Browse files
* arc-mode.el (archive-maybe-copy): Move creation of directory ...
(archive-unique-fname): ... here. (Bug#4929)
parent
f779e385
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/arc-mode.el
lisp/arc-mode.el
+11
-9
No files found.
lisp/ChangeLog
View file @
f5fce4ec
2009-11-15 Michael Albinus <michael.albinus@gmx.de>
* arc-mode.el (archive-maybe-copy): Move creation of directory ...
(archive-unique-fname): ... here. (Bug#4929)
2009-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
* help-mode.el (help-make-xrefs): Undo the last revert, and replace it
...
...
lisp/arc-mode.el
View file @
f5fce4ec
...
...
@@ -818,15 +818,22 @@ If FNAME is something our underlying filesystem can't grok, or if another
file by that name already exists in DIR, a unique new name is generated
using `make-temp-file', and the generated name is returned."
(
let
((
fullname
(
expand-file-name
fname
dir
))
(
alien
(
string-match
file-name-invalid-regexp
fname
)))
(
if
(
or
alien
(
file-exists-p
fullname
))
(
make-temp-file
(
alien
(
string-match
file-name-invalid-regexp
fname
))
(
tmpfile
(
expand-file-name
(
if
(
if
(
fboundp
'msdos-long-file-names
)
(
not
(
msdos-long-file-names
)))
"am"
"arc-mode."
)
dir
))
dir
)))
(
if
(
or
alien
(
file-exists-p
fullname
))
(
progn
;; Maked sure all the leading directories in
;; archive-local-name exist under archive-tmpdir, so that
;; the directory structure recorded in the archive is
;; reconstructed in the temporary directory.
(
make-directory
(
file-name-directory
tmpfile
)
t
)
(
make-temp-file
tmpfile
))
fullname
)))
(
defun
archive-maybe-copy
(
archive
)
...
...
@@ -843,11 +850,6 @@ using `make-temp-file', and the generated name is returned."
archive
)))
(
setq
archive-local-name
(
archive-unique-fname
archive-name
archive-tmpdir
))
;; Maked sure all the leading directories in
;; archive-local-name exist under archive-tmpdir, so that
;; the directory structure recorded in the archive is
;; reconstructed in the temporary directory.
(
make-directory
(
file-name-directory
archive-local-name
)
t
)
(
save-restriction
(
widen
)
(
write-region
start
(
point-max
)
archive-local-name
nil
'nomessage
))
...
...
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