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
71530c97
Commit
71530c97
authored
Aug 14, 2013
by
Lars Magne Ingebrigtsen
Browse files
* decompress.c (unwind_decompress): Always restore point.
parent
5faf4899
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
src/ChangeLog
src/ChangeLog
+4
-0
src/decompress.c
src/decompress.c
+7
-5
No files found.
src/ChangeLog
View file @
71530c97
2013-08-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
* decompress.c (unwind_decompress): Always restore point.
2013-08-14 Paul Eggert <eggert@cs.ucla.edu>
* xdisp.c (cursor_type_changed): Now static.
...
...
src/decompress.c
View file @
71530c97
...
...
@@ -95,12 +95,14 @@ unwind_decompress (void *ddata)
struct
decompress_unwind_data
*
data
=
ddata
;
fn_inflateEnd
(
data
->
stream
);
/* Delete any uncompressed data already inserted
and restore point
. */
/* Delete any uncompressed data already inserted
on error
. */
if
(
data
->
start
)
{
del_range
(
data
->
start
,
PT
);
SET_PT
(
data
->
old_point
);
}
del_range
(
data
->
start
,
PT
);
/* Put point where it was, or if the buffer has shrunk because the
compressed data is bigger than the uncompressed, at
point-max. */
SET_PT
(
min
(
data
->
old_point
,
ZV
));
}
DEFUN
(
"zlib-available-p"
,
Fzlib_available_p
,
Szlib_available_p
,
0
,
0
,
0
,
...
...
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