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
4
Issues
4
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
3ecc1163
Commit
3ecc1163
authored
Sep 22, 2008
by
Martin Rudalics
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(record_point): Don't call Fundo_boundary for first
change. (Bug#731)
parent
9d0a6e42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/undo.c
src/undo.c
+7
-1
No files found.
src/ChangeLog
View file @
3ecc1163
2008-09-22 Martin Rudalics <rudalics@gmx.at>
* undo.c (record_point): Don't call Fundo_boundary for first
change. (Bug#731)
2008-09-22 Juanma Barranquero <lekktu@gmail.com>
* emacs.c (Fdaemonp): Doc fix.
...
...
src/undo.c
View file @
3ecc1163
...
...
@@ -79,7 +79,13 @@ record_point (pt)
if
(
NILP
(
pending_boundary
))
pending_boundary
=
Fcons
(
Qnil
,
Qnil
);
if
(
current_buffer
!=
last_undo_buffer
)
if
((
current_buffer
!=
last_undo_buffer
)
/* Don't call Fundo_boundary for the first change. Otherwise we
risk overwriting last_boundary_position in Fundo_boundary with
PT of the current buffer and as a consequence not insert an
undo boundary because last_boundary_position will equal pt in
the test at the end of the present function (Bug#731). */
&&
(
MODIFF
>
SAVE_MODIFF
))
Fundo_boundary
();
last_undo_buffer
=
current_buffer
;
...
...
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