summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/alloc.c2
-rw-r--r--src/buffer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index c9496ecf25c..0de83f02f65 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5361,7 +5361,7 @@ mark_object (Lisp_Object arg)
if (po != &buffer_defaults && po != &buffer_local_symbols)
{
struct buffer *b;
- for (b = all_buffers; b && b != po; b = b->header.next)
+ for (b = all_buffers; b && b != po; b = b->header.next.buffer)
;
if (b == NULL)
abort ();
diff --git a/src/buffer.c b/src/buffer.c
index 6ced4fbae87..aa50eff4fd0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -43,7 +43,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
struct buffer *current_buffer; /* the current buffer */
/* First buffer in chain of all buffers (in reverse order of creation).
- Threaded through ->header.next. */
+ Threaded through ->header.next.buffer. */
struct buffer *all_buffers;