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
348a60a8
Commit
348a60a8
authored
Dec 22, 2008
by
Richard M. Stallman
Browse files
(shadow-copy-file): Handle buffer-swapped-with.
parent
caba192e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/shadowfile.el
lisp/shadowfile.el
+8
-2
No files found.
lisp/ChangeLog
View file @
348a60a8
2008-12-22 Richard M Stallman <rms@gnu.org>
* shadowfile.el (shadow-copy-file): Handle buffer-swapped-with.
* files.el (buffer-swapped-with): New variable.
(basic-save-buffer-0): Most of basic-save-buffer moved here.
(basic-save-buffer): Unswap the buffer temporarily if nec.
* dired.el (dired-readin): Inhibit modification hooks.
2008-12-22 Ulf Jasper <ulf.jasper@web.de>
...
...
lisp/shadowfile.el
View file @
348a60a8
...
...
@@ -574,8 +574,14 @@ site."
(
when
buffer
(
set-buffer
buffer
)
(
condition-case
i
(
progn
(
write-region
nil
nil
to
)
(
progn
(
if
buffer-swapped-with
(
progn
(
buffer-swap-text
buffer-swapped-with
)
(
unwind-protect
(
write-region
nil
nil
to
)
(
buffer-swap-text
buffer-swapped-with
)))
(
write-region
nil
nil
to
))
(
shadow-remove-from-todo
s
))
(
error
(
message
"Shadow %s not updated!"
(
cdr
s
)))))))
...
...
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