summaryrefslogtreecommitdiff
path: root/etc/emacs-buffer.gdb
diff options
context:
space:
mode:
authorNoah Friedman <friedman@splode.com>2017-05-08 16:24:56 -0700
committerNoah Friedman <friedman@splode.com>2017-05-08 16:24:56 -0700
commitc0d42853cd9b2da6d2d82f670260b62958ff6d21 (patch)
tree723654220151f7c112860317648a9e5135657598 /etc/emacs-buffer.gdb
parent784602b10506c50075aa9463891a47380ebea55f (diff)
downloademacs-c0d42853cd9b2da6d2d82f670260b62958ff6d21.tar.gz
(ybuffer-list): $alist must be ptr-unmasked at the end of the loop,
because $ptr is modified by ygetptr and we use $ptr immediately at the beginning.
Diffstat (limited to 'etc/emacs-buffer.gdb')
-rw-r--r--etc/emacs-buffer.gdb4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/emacs-buffer.gdb b/etc/emacs-buffer.gdb
index db58eeb8e94..053d7bd69c3 100644
--- a/etc/emacs-buffer.gdb
+++ b/etc/emacs-buffer.gdb
@@ -105,8 +105,6 @@ define ybuffer-list
while $alist != $qnil
set $this = ((struct Lisp_Cons *) $ptr)->car
set $alist = ((struct Lisp_Cons *) $ptr)->u.cdr
- ygetptr $alist
- set $alist = $ptr
# Vbuffer_alist elts are pairs of the form (name . buffer)
ygetptr $this
@@ -136,6 +134,8 @@ define ybuffer-list
end
set $i++
+ ygetptr $alist
+ set $alist = $ptr
end
end
document ybuffer-list