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
d24ec09a
Commit
d24ec09a
authored
Sep 25, 2010
by
Chong Yidong
Browse files
* src/insdel.c (prepare_to_modify_buffer): Ensure the mark marker is alive
before using it (Bug#6977).
parent
565c0ca5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/insdel.c
src/insdel.c
+2
-1
No files found.
src/ChangeLog
View file @
d24ec09a
2010-09-25 Chong Yidong <cyd@stupidchicken.com>
* insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
alive before using it (Bug#6977).
2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
* xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
...
...
src/insdel.c
View file @
d24ec09a
...
...
@@ -2051,13 +2051,14 @@ prepare_to_modify_buffer (EMACS_INT start, EMACS_INT end,
/* If `select-active-regions' is non-nil, save the region text. */
if
(
!
NILP
(
current_buffer
->
mark_active
)
&&
XMARKER
(
current_buffer
->
mark
)
->
buffer
&&
NILP
(
Vsaved_region_selection
)
&&
(
EQ
(
Vselect_active_regions
,
Qonly
)
?
EQ
(
CAR_SAFE
(
Vtransient_mark_mode
),
Qonly
)
:
(
!
NILP
(
Vselect_active_regions
)
&&
!
NILP
(
Vtransient_mark_mode
))))
{
EMACS_INT
b
=
X
INT
(
Fmarker_position
(
current_buffer
->
mark
)
)
;
EMACS_INT
b
=
X
MARKER
(
current_buffer
->
mark
)
->
charpos
;
EMACS_INT
e
=
PT
;
if
(
b
<
e
)
Vsaved_region_selection
=
make_buffer_string
(
b
,
e
,
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