Mercurial > emacs
diff src/.gdbinit @ 90043:e24e2e78deda
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-69
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-643
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-649
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-650
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-651
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-655
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-656
Update from CVS: lisp/man.el (Man-xref-normal-file): Fix help-echo.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-657
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-658
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-659
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-660
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-661
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-667
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-668
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-61
- miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-68
Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 04 Nov 2004 08:55:40 +0000 |
parents | ff0e824afa37 d1917e4b98e7 |
children | 6d92d69fae33 |
line wrap: on
line diff
--- a/src/.gdbinit Fri Oct 29 00:25:02 2004 +0000 +++ b/src/.gdbinit Thu Nov 04 08:55:40 2004 +0000 @@ -70,6 +70,34 @@ Works only when an inferior emacs is executing. end +# Print out current buffer point and boundaries +define ppt + set $b = current_buffer + set $t = $b->text + printf "BUF PT: %d", $b->pt + if ($b->pt != $b->pt_byte) + printf "[%d]", $b->pt_byte + end + printf " of 1..%d", $t->z + if ($t->z != $t->z_byte) + printf "[%d]", $t->z_byte + end + if ($b->begv != 1 || $b->zv != $t->z) + printf " NARROW=%d..%d", $b->begv, $b->zv + if ($b->begv != $b->begv_byte || $b->zv != $b->zv_byte) + printf " [%d..%d]", $b->begv_byte, $b->zv_byte + end + end + printf " GAP: %d", $t->gpt + if ($t->gpt != $t->gpt_byte) + printf "[%d]", $t->gpt_byte + end + printf " SZ=%d\n", $t->gap_size +end +document ppt +Print point, beg, end, narrow, and gap for current buffer. +end + define xtype xgettype $ output $type