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
4e665715
Commit
4e665715
authored
Mar 03, 1994
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(record_delete): Save last_point_position in the undo record, rather than the
current value of point.
parent
01314b95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/undo.c
src/undo.c
+4
-3
No files found.
src/undo.c
View file @
4e665715
...
...
@@ -22,6 +22,7 @@ and this notice must be preserved on all copies. */
#include <config.h>
#include "lisp.h"
#include "buffer.h"
#include "commands.h"
/* Last buffer for which undo information was recorded. */
Lisp_Object
last_undo_buffer
;
...
...
@@ -95,10 +96,10 @@ record_delete (beg, length)
XFASTINT
(
lbeg
)
=
beg
;
XFASTINT
(
lend
)
=
beg
+
length
;
/* If point
isn't at start of deleted range, record where it i
s. */
if
(
PT
!=
XFASTINT
(
sbeg
))
/* If point
wasn't at start of deleted range, record where it wa
s. */
if
(
last_point_position
!=
XFASTINT
(
sbeg
))
current_buffer
->
undo_list
=
Fcons
(
make_number
(
PT
),
current_buffer
->
undo_list
);
=
Fcons
(
make_number
(
last_point_position
),
current_buffer
->
undo_list
);
current_buffer
->
undo_list
=
Fcons
(
Fcons
(
Fbuffer_substring
(
lbeg
,
lend
),
sbeg
),
...
...
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