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
d556ebf9
Commit
d556ebf9
authored
Oct 17, 2012
by
Dmitry Antipov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* buffer.c (Fkill_buffer): When unchaining the marker,
reset it's buffer pointer to NULL (Bug#12652).
parent
f0863a54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
src/ChangeLog
src/ChangeLog
+5
-0
src/buffer.c
src/buffer.c
+13
-12
No files found.
src/ChangeLog
View file @
d556ebf9
2012-10-17 Dmitry Antipov <dmantipov@yandex.ru>
* buffer.c (Fkill_buffer): When unchaining the marker,
reset it's buffer pointer to NULL (Bug#12652).
2012-10-17 Dmitry Antipov <dmantipov@yandex.ru>
Do not verify indirection counters of killed buffers (Bug#12579).
...
...
src/buffer.c
View file @
d556ebf9
...
...
@@ -1881,19 +1881,20 @@ cleaning up all windows currently displaying the buffer to be killed. */)
if
(
b
->
base_buffer
)
{
{
/* Unchain all markers that belong to this indirect buffer.
Don't unchain the markers that belong to the base buffer
or its other indirect buffers. */
struct
Lisp_Marker
**
mp
;
for
(
mp
=
&
BUF_MARKERS
(
b
);
*
mp
;
)
{
struct
Lisp_Marker
*
m
=
*
mp
;
if
(
m
->
buffer
==
b
)
/* Unchain all markers that belong to this indirect buffer.
Don't unchain the markers that belong to the base buffer
or its other indirect buffers. */
struct
Lisp_Marker
**
mp
=
&
BUF_MARKERS
(
b
);
while
((
m
=
*
mp
))
{
if
(
m
->
buffer
==
b
)
{
m
->
buffer
=
NULL
;
*
mp
=
m
->
next
;
else
mp
=
&
m
->
next
;
}
}
}
else
mp
=
&
m
->
next
;
}
}
else
{
...
...
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