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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
28259cac
Commit
28259cac
authored
Nov 24, 2009
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(adjust_markers_for_delete): Move it in the right direction! (bug#4803)
parent
bb301b9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/insdel.c
src/insdel.c
+2
-2
No files found.
src/ChangeLog
View file @
28259cac
2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
* insdel.c (adjust_markers_for_delete): Move it in the
right direction! (bug#4803)
2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* font.c (font_open_entity): Don't use ASET if font_object is Qnil.
...
...
src/insdel.c
View file @
28259cac
...
...
@@ -370,14 +370,14 @@ adjust_markers_for_delete (EMACS_INT from, EMACS_INT from_byte,
re-inserted text after undoing a deletion, and must be
adjusted to move them to the correct place. */
XSETMISC
(
marker
,
m
);
record_marker_adjustment
(
marker
,
from
-
charpos
);
record_marker_adjustment
(
marker
,
from
-
charpos
);
}
else
if
(
charpos
<
to
)
{
/* Before-insertion markers will automatically move forward
upon re-inserting the deleted text, so we have to arrange
for them to move backward to the correct position. */
XSETMISC
(
marker
,
m
);
record_marker_adjustment
(
marker
,
charpos
-
to
);
record_marker_adjustment
(
marker
,
to
-
charpos
);
}
m
->
charpos
=
from
;
m
->
bytepos
=
from_byte
;
...
...
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