annotate src/.gdbinit @ 61402:b2be03118df9

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Fri, 08 Apr 2005 23:32:54 +0000
parents 28b65d07edde
children 123211374403 389421e988c2 bf0d492ea2d5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
1 # Copyright (C) 1992, 93, 94, 95, 96, 97, 1998, 2000, 01, 2004
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
2 # Free Software Foundation, Inc.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
3 #
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
4 # This file is part of GNU Emacs.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
5 #
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
6 # GNU Emacs is free software; you can redistribute it and/or modify
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
7 # it under the terms of the GNU General Public License as published by
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
8 # the Free Software Foundation; either version 2, or (at your option)
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
9 # any later version.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
10 #
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
11 # GNU Emacs is distributed in the hope that it will be useful,
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
14 # GNU General Public License for more details.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
15 #
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
16 # You should have received a copy of the GNU General Public License
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
17 # along with GNU Emacs; see the file COPYING. If not, write to the
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
18 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
19 # Boston, MA 02111-1307, USA.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 35792
diff changeset
20
13359
4c60f92bdaa6 Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents: 12278
diff changeset
21 # Force loading of symbols, enough to give us gdb_valbits etc.
4c60f92bdaa6 Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents: 12278
diff changeset
22 set main
4c60f92bdaa6 Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents: 12278
diff changeset
23
15536
fb218a8bd186 Add `dir ../lwlib'.
Richard M. Stallman <rms@gnu.org>
parents: 13551
diff changeset
24 # Find lwlib source files too.
fb218a8bd186 Add `dir ../lwlib'.
Richard M. Stallman <rms@gnu.org>
parents: 13551
diff changeset
25 dir ../lwlib
34876
8dbc92d11de2 Comment out the line pointing to the Lesstif source
Gerd Moellmann <gerd@gnu.org>
parents: 32812
diff changeset
26 #dir /gd/gnu/lesstif-0.89.9/lib/Xm
15536
fb218a8bd186 Add `dir ../lwlib'.
Richard M. Stallman <rms@gnu.org>
parents: 13551
diff changeset
27
20672
0ef14112e9b3 Make GDB not handle SIGINT.
Karl Heuer <kwzh@gnu.org>
parents: 20582
diff changeset
28 # Don't enter GDB when user types C-g to quit.
0ef14112e9b3 Make GDB not handle SIGINT.
Karl Heuer <kwzh@gnu.org>
parents: 20582
diff changeset
29 # This has one unfortunate effect: you can't type C-c
0ef14112e9b3 Make GDB not handle SIGINT.
Karl Heuer <kwzh@gnu.org>
parents: 20582
diff changeset
30 # at the GDB to stop Emacs, when using X.
0ef14112e9b3 Make GDB not handle SIGINT.
Karl Heuer <kwzh@gnu.org>
parents: 20582
diff changeset
31 # However, C-z works just as well in that case.
0ef14112e9b3 Make GDB not handle SIGINT.
Karl Heuer <kwzh@gnu.org>
parents: 20582
diff changeset
32 handle 2 noprint pass
0ef14112e9b3 Make GDB not handle SIGINT.
Karl Heuer <kwzh@gnu.org>
parents: 20582
diff changeset
33
30636
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
34 # Don't pass SIGALRM to Emacs. This makes problems when
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
35 # debugging.
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
36 handle SIGALRM ignore
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
37
59660
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
38 # $valmask and $tagmask are mask values set up by the xreload macro below.
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
39
59660
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
40 # Use $bugfix so that the value isn't a constant.
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
41 # Using a constant runs into GDB bugs sometimes.
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
42 define xgetptr
59660
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
43 set $bugfix = $arg0
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
44 set $ptr = (gdb_use_union ? $bugfix.u.val : $bugfix & $valmask) | gdb_data_seg_bits
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
45 end
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
46
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
47 define xgetint
59660
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
48 set $bugfix = $arg0
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
49 set $int = gdb_use_union ? $bugfix.s.val : (gdb_use_lsb ? $bugfix : $bugfix << gdb_gctypebits) >> gdb_gctypebits
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
50 end
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
51
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
52 define xgettype
59660
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
53 set $bugfix = $arg0
5ee7eaad2958 (xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents: 57911
diff changeset
54 set $type = gdb_use_union ? $bugfix.s.type : (enum Lisp_Type) (gdb_use_lsb ? $bugfix & $tagmask : $bugfix >> gdb_valbits)
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
55 end
11872
a28bd38b2ff3 gdb_lisp_params to get storage layout info.
Karl Heuer <kwzh@gnu.org>
parents: 11006
diff changeset
56
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 # Set up something to print out s-expressions.
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 define pr
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
59 set debug_print ($)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 document pr
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 Print the emacs s-expression which is $.
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 Works only when an inferior emacs is executing.
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65
57306
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
66 # Print out s-expressions
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
67 define pp
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
68 set $tmp = $arg0
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
69 set debug_print ($tmp)
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
70 end
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
71 document pp
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
72 Print the argument as an emacs s-expression
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
73 Works only when an inferior emacs is executing.
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
74 end
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
75
57911
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
76 # Print out current buffer point and boundaries
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
77 define ppt
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
78 set $b = current_buffer
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
79 set $t = $b->text
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
80 printf "BUF PT: %d", $b->pt
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
81 if ($b->pt != $b->pt_byte)
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
82 printf "[%d]", $b->pt_byte
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
83 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
84 printf " of 1..%d", $t->z
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
85 if ($t->z != $t->z_byte)
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
86 printf "[%d]", $t->z_byte
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
87 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
88 if ($b->begv != 1 || $b->zv != $t->z)
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
89 printf " NARROW=%d..%d", $b->begv, $b->zv
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
90 if ($b->begv != $b->begv_byte || $b->zv != $b->zv_byte)
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
91 printf " [%d..%d]", $b->begv_byte, $b->zv_byte
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
92 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
93 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
94 printf " GAP: %d", $t->gpt
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
95 if ($t->gpt != $t->gpt_byte)
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
96 printf "[%d]", $t->gpt_byte
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
97 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
98 printf " SZ=%d\n", $t->gap_size
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
99 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
100 document ppt
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
101 Print point, beg, end, narrow, and gap for current buffer.
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
102 end
d1917e4b98e7 (ppt): New function.
Kim F. Storm <storm@cua.dk>
parents: 57306
diff changeset
103
60148
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
104 # Print out iterator given as first arg
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
105 define pitx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
106 set $it = $arg0
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
107 printf "cur=%d", $it->current.pos.charpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
108 if ($it->current.pos.charpos != $it->current.pos.bytepos)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
109 printf "[%d]", $it->current.pos.bytepos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
110 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
111 printf " start=%d", $it->start.pos.charpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
112 if ($it->start.pos.charpos != $it->start.pos.bytepos)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
113 printf "[%d]", $it->start.pos.bytepos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
114 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
115 printf " stop=%d ", $it->stop_charpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
116 output $it->what
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
117 if ($it->what == IT_CHARACTER)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
118 if ($it->len == 1 && $it->c >= ' ' && it->c < 255)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
119 printf "['%c']", $it->c
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
120 else
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
121 printf "[%d,%d]", $it->c, $it->len
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
122 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
123 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
124 printf " next="
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
125 output $it->method
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
126 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
127 printf "vpos=%d hpos=%d", $it->vpos, $it->hpos,
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
128 printf " y=%d lvy=%d", $it->current_y, $it->last_visible_y
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
129 printf " x=%d lvx=%d", $it->current_x, $it->last_visible_x
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
130 printf " a+d=%d+%d=%d", $it->ascent, $it->descent, $it->ascent+$it->descent
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
131 printf " max=%d+%d=%d", $it->max_ascent, $it->max_descent, $it->max_ascent+$it->max_descent
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
132 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
133 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
134 document pitx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
135 Pretty print a display iterator.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
136 Take one arg, an iterator object or pointer.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
137 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
138
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
139 define pit
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
140 pitx it
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
141 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
142 document pit
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
143 Pretty print the display iterator it.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
144 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
145
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
146 define prowx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
147 set $row = $arg0
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
148 printf "y=%d x=%d pwid=%d", $row->y, $row->x, $row->pixel_width
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
149 printf " a+d=%d+%d=%d", $row->ascent, $row->height-$row->ascent, $row->height
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
150 printf " phys=%d+%d=%d", $row->phys_ascent, $row->phys_height-$row->phys_ascent, $row->phys_height
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
151 printf " vis=%d", $row->visible_height
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
152 printf " L=%d T=%d R=%d", $row->used[0], $row->used[1], $row->used[2]
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
153 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
154 printf "start=%d end=%d", $row->start.pos.charpos, $row->end.pos.charpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
155 if ($row->enabled_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
156 printf " ENA"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
157 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
158 if ($row->displays_text_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
159 printf " DISP"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
160 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
161 if ($row->mode_line_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
162 printf " MODEL"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
163 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
164 if ($row->continued_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
165 printf " CONT"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
166 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
167 if ($row-> truncated_on_left_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
168 printf " TRUNC:L"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
169 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
170 if ($row-> truncated_on_right_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
171 printf " TRUNC:R"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
172 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
173 if ($row->starts_in_middle_of_char_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
174 printf " STARTMID"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
175 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
176 if ($row->ends_in_middle_of_char_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
177 printf " ENDMID"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
178 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
179 if ($row->ends_in_newline_from_string_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
180 printf " ENDNLFS"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
181 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
182 if ($row->ends_at_zv_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
183 printf " ENDZV"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
184 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
185 if ($row->overlapped_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
186 printf " OLAPD"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
187 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
188 if ($row->overlapping_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
189 printf " OLAPNG"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
190 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
191 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
192 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
193 document prowx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
194 Pretty print information about glyph_row.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
195 Takes one argument, a row object or pointer.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
196 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
197
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
198 define prow
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
199 prowx row
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
200 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
201 document prow
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
202 Pretty print information about glyph_row in row.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
203 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
204
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
205
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
206 define pcursorx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
207 set $cp = $arg0
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
208 printf "y=%d x=%d vpos=%d hpos=%d", $cp->y, $cp->x, $cp->vpos, $cp->hpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
209 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
210 document pcursorx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
211 Pretty print a window cursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
212 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
213
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
214 define pcursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
215 printf "output: "
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
216 pcursorx output_cursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
217 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
218 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
219 document pcursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
220 Pretty print the output_cursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
221 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
222
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
223 define pwinx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
224 set $w = $arg0
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
225 xgetint $w->sequence_number
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
226 if ($w->mini_p != Qnil)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
227 printf "Mini "
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
228 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
229 printf "Window %d ", $int
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
230 xgetptr $w->buffer
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
231 set $tem = (struct buffer *) $ptr
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
232 xgetptr $tem->name
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
233 printf "%s", ((struct Lisp_String *) $ptr)->data
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
234 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
235 xgetptr $w->start
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
236 set $tem = (struct Lisp_Marker *) $ptr
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
237 printf "start=%d end:", $tem->charpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
238 if ($w->window_end_valid != Qnil)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
239 xgetint $w->window_end_pos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
240 printf "pos=%d", $int
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
241 xgetint $w->window_end_vpos
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
242 printf " vpos=%d", $int
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
243 else
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
244 printf "invalid"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
245 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
246 printf " vscroll=%d", $w->vscroll
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
247 if ($w->force_start != Qnil)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
248 printf " FORCE_START"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
249 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
250 if ($w->must_be_updated_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
251 printf " MUST_UPD"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
252 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
253 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
254 printf "cursor: "
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
255 pcursorx $w->cursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
256 printf " phys: "
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
257 pcursorx $w->phys_cursor
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
258 if ($w->phys_cursor_on_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
259 printf " ON"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
260 else
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
261 printf " OFF"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
262 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
263 printf " blk="
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
264 if ($w->last_cursor_off_p != $w->cursor_off_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
265 if ($w->last_cursor_off_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
266 printf "ON->"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
267 else
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
268 printf "OFF->"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
269 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
270 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
271 if ($w->cursor_off_p)
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
272 printf "ON"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
273 else
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
274 printf "OFF"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
275 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
276 printf "\n"
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
277 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
278 document pwinx
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
279 Pretty print a window structure.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
280 Takes one argument, a pointer to a window structure
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
281 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
282
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
283 define pwin
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
284 pwinx w
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
285 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
286 document pwin
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
287 Pretty print window structure w.
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
288 end
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
289
28b65d07edde (pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents: 59660
diff changeset
290
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
291 define xtype
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
292 xgettype $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
293 output $type
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
294 echo \n
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
295 if $type == Lisp_Misc
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
296 xmisctype
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
297 else
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
298 if $type == Lisp_Vectorlike
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
299 xvectype
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
300 end
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
301 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
302 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
303 document xtype
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
304 Print the type of $, assuming it is an Emacs Lisp value.
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
305 If the first type printed is Lisp_Vector or Lisp_Misc,
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
306 a second line gives the more precise type.
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
307 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
308
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
309 define xvectype
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
310 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
311 set $size = ((struct Lisp_Vector *) $ptr)->size
55609
253acecd37f9 Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents: 54690
diff changeset
312 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~gdb_array_mark_flag
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
313 echo \n
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
314 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
315 document xvectype
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
316 Print the size or vector subtype of $, assuming it is a vector or pseudovector.
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
317 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
318
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
319 define xmisctype
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
320 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
321 output (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type)
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
322 echo \n
10299
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
323 end
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
324 document xmisctype
0de933eb95a2 Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents: 8310
diff changeset
325 Print the specific type of $, assuming it is some misc type.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
326 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
327
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
328 define xint
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
329 xgetint $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
330 print $int
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
331 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
332 document xint
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
333 Print $, assuming it is an Emacs Lisp integer. This gets the sign right.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
334 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
335
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
336 define xptr
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
337 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
338 print (void *) $ptr
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
339 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
340 document xptr
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
341 Print the pointer portion of $, assuming it is an Emacs Lisp value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
342 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
343
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
344 define xmarker
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
345 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
346 print (struct Lisp_Marker *) $ptr
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
347 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
348 document xmarker
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
349 Print $ as a marker pointer, assuming it is an Emacs Lisp marker value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
350 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
351
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
352 define xoverlay
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
353 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
354 print (struct Lisp_Overlay *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
355 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
356 document xoverlay
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
357 Print $ as a overlay pointer, assuming it is an Emacs Lisp overlay value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
358 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
359
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
360 define xmiscfree
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
361 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
362 print (struct Lisp_Free *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
363 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
364 document xmiscfree
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
365 Print $ as a misc free-cell pointer, assuming it is an Emacs Lisp Misc value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
366 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
367
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
368 define xintfwd
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
369 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
370 print (struct Lisp_Intfwd *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
371 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
372 document xintfwd
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
373 Print $ as an integer forwarding pointer, assuming it is an Emacs Lisp Misc value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
374 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
375
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
376 define xboolfwd
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
377 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
378 print (struct Lisp_Boolfwd *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
379 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
380 document xboolfwd
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
381 Print $ as a boolean forwarding pointer, assuming it is an Emacs Lisp Misc value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
382 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
383
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
384 define xobjfwd
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
385 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
386 print (struct Lisp_Objfwd *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
387 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
388 document xobjfwd
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
389 Print $ as an object forwarding pointer, assuming it is an Emacs Lisp Misc value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
390 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
391
10495
70bd087c47a9 (xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents: 10483
diff changeset
392 define xbufobjfwd
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
393 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
394 print (struct Lisp_Buffer_Objfwd *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
395 end
10495
70bd087c47a9 (xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents: 10483
diff changeset
396 document xbufobjfwd
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
397 Print $ as a buffer-local object forwarding pointer, assuming it is an Emacs Lisp Misc value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
398 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
399
11006
2aa4135eee50 (xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents: 10582
diff changeset
400 define xkbobjfwd
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
401 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
402 print (struct Lisp_Kboard_Objfwd *) $ptr
10582
6063c1f07723 (xdispobjfwd): New macro.
Karl Heuer <kwzh@gnu.org>
parents: 10495
diff changeset
403 end
11006
2aa4135eee50 (xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents: 10582
diff changeset
404 document xkbobjfwd
2aa4135eee50 (xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents: 10582
diff changeset
405 Print $ as a kboard-local object forwarding pointer, assuming it is an Emacs Lisp Misc value.
10582
6063c1f07723 (xdispobjfwd): New macro.
Karl Heuer <kwzh@gnu.org>
parents: 10495
diff changeset
406 end
6063c1f07723 (xdispobjfwd): New macro.
Karl Heuer <kwzh@gnu.org>
parents: 10495
diff changeset
407
10495
70bd087c47a9 (xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents: 10483
diff changeset
408 define xbuflocal
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
409 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
410 print (struct Lisp_Buffer_Local_Value *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
411 end
10495
70bd087c47a9 (xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents: 10483
diff changeset
412 document xbuflocal
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
413 Print $ as a buffer-local-value pointer, assuming it is an Emacs Lisp Misc value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
414 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
415
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
416 define xsymbol
55686
c17438f97e46 (xsymbol): Fix last change.
Kim F. Storm <storm@cua.dk>
parents: 55681
diff changeset
417 set $sym = $
c17438f97e46 (xsymbol): Fix last change.
Kim F. Storm <storm@cua.dk>
parents: 55681
diff changeset
418 xgetptr $sym
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
419 print (struct Lisp_Symbol *) $ptr
55686
c17438f97e46 (xsymbol): Fix last change.
Kim F. Storm <storm@cua.dk>
parents: 55681
diff changeset
420 xprintsym $sym
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
421 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
422 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
423 document xsymbol
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
424 Print the name and address of the symbol $.
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
425 This command assumes that $ is an Emacs Lisp symbol value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
426 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
427
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
428 define xstring
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
429 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
430 print (struct Lisp_String *) $ptr
55681
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
431 xprintstr $
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
432 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
433 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
434 document xstring
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
435 Print the contents and address of the string $.
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
436 This command assumes that $ is an Emacs Lisp string value.
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
437 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
438
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
439 define xvector
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
440 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
441 print (struct Lisp_Vector *) $ptr
55609
253acecd37f9 Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents: 54690
diff changeset
442 output ($->size > 50) ? 0 : ($->contents[0])@($->size & ~gdb_array_mark_flag)
999
d8d503897aa5 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 949
diff changeset
443 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
444 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
445 document xvector
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
446 Print the contents and address of the vector $.
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
447 This command assumes that $ is an Emacs Lisp vector value.
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
448 end
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
449
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
450 define xprocess
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
451 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
452 print (struct Lisp_Process *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
453 output *$
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
454 echo \n
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
455 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
456 document xprocess
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
457 Print the address of the struct Lisp_process which the Lisp_Object $ points to.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
458 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
459
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
460 define xframe
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
461 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
462 print (struct frame *) $ptr
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
463 end
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 1069
diff changeset
464 document xframe
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
465 Print $ as a frame pointer, assuming it is an Emacs Lisp frame value.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
466 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
467
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
468 define xcompiled
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
469 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
470 print (struct Lisp_Vector *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
471 output ($->contents[0])@($->size & 0xff)
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
472 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
473 document xcompiled
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
474 Print $ as a compiled function pointer, assuming it is an Emacs Lisp compiled value.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
475 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
476
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
477 define xwindow
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
478 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
479 print (struct window *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
480 printf "%dx%d+%d+%d\n", $->width, $->height, $->left, $->top
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
481 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
482 document xwindow
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
483 Print $ as a window pointer, assuming it is an Emacs Lisp window value.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
484 Print the window's position as "WIDTHxHEIGHT+LEFT+TOP".
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
485 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
486
10495
70bd087c47a9 (xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents: 10483
diff changeset
487 define xwinconfig
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
488 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
489 print (struct save_window_data *) $ptr
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
490 end
10495
70bd087c47a9 (xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents: 10483
diff changeset
491 document xwinconfig
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
492 Print $ as a window configuration pointer, assuming it is an Emacs Lisp window configuration value.
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
493 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
494
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
495 define xsubr
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
496 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
497 print (struct Lisp_Subr *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
498 output *$
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
499 echo \n
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
500 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
501 document xsubr
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
502 Print the address of the subr which the Lisp_Object $ points to.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
503 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
504
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
505 define xchartable
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
506 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
507 print (struct Lisp_Char_Table *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
508 printf "Purpose: "
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
509 xprintsym $->purpose
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
510 printf " %d extra slots", ($->size & 0x1ff) - 388
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
511 echo \n
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
512 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
513 document xchartable
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
514 Print the address of the char-table $, and its purpose.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
515 This command assumes that $ is an Emacs Lisp char-table value.
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
516 end
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
517
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
518 define xboolvector
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
519 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
520 print (struct Lisp_Bool_Vector *) $ptr
55609
253acecd37f9 Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents: 54690
diff changeset
521 output ($->size > 256) ? 0 : ($->data[0])@((($->size & ~gdb_array_mark_flag) + 7)/ 8)
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
522 echo \n
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
523 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
524 document xboolvector
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
525 Print the contents and address of the bool-vector $.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
526 This command assumes that $ is an Emacs Lisp bool-vector value.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
527 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
528
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
529 define xbuffer
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
530 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
531 print (struct buffer *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
532 xgetptr $->name
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
533 output ((struct Lisp_String *) $ptr)->data
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
534 echo \n
22012
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
535 end
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
536 document xbuffer
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
537 Set $ as a buffer pointer, assuming it is an Emacs Lisp buffer value.
4379a41b6f2e (xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents: 20672
diff changeset
538 Print the name of the buffer.
10483
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
539 end
727cd2061e2a (xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents: 10337
diff changeset
540
30636
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
541 define xhashtable
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
542 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
543 print (struct Lisp_Hash_Table *) $ptr
30636
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
544 end
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
545 document xhashtable
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
546 Set $ as a hash table pointer, assuming it is an Emacs Lisp hash table value.
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
547 end
88e0ba67d3bc (xhashtable): New command.
Gerd Moellmann <gerd@gnu.org>
parents: 27290
diff changeset
548
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
549 define xcons
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
550 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
551 print (struct Lisp_Cons *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
552 output/x *$
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
553 echo \n
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
554 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
555 document xcons
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
556 Print the contents of $, assuming it is an Emacs Lisp cons.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
557 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
558
18522
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
559 define nextcons
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
560 p $.cdr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
561 xcons
18522
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
562 end
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
563 document nextcons
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
564 Print the contents of the next cell in a list.
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
565 This assumes that the last thing you printed was a cons cell contents
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
566 (type struct Lisp_Cons) or a pointer to one.
c572c073c982 (xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents: 15536
diff changeset
567 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
568 define xcar
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
569 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
570 xgettype $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
571 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->car : 0)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
572 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
573 document xcar
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
574 Print the car of $, assuming it is an Emacs Lisp pair.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
575 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
576
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
577 define xcdr
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
578 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
579 xgettype $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
580 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->cdr : 0)
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
581 end
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
582 document xcdr
7962
05260d3b988d Doc fixes.
Richard M. Stallman <rms@gnu.org>
parents: 7961
diff changeset
583 Print the cdr of $, assuming it is an Emacs Lisp pair.
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
584 end
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
585
4267
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
586 define xfloat
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
587 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
588 print ((struct Lisp_Float *) $ptr)->data
4267
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
589 end
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
590 document xfloat
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
591 Print $ assuming it is a lisp floating-point number.
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
592 end
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
593
1789
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
594 define xscrollbar
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
595 xgetptr $
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
596 print (struct scrollbar *) $ptr
1789
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
597 output *$
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
598 echo \n
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
599 end
4268
0795ced6013f (xscrollbar): Fix typo specifying doc string.
Richard M. Stallman <rms@gnu.org>
parents: 4267
diff changeset
600 document xscrollbar
1789
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
601 Print $ as a scrollbar pointer.
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
602 end
2c65d1a8af09 * .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents: 1551
diff changeset
603
55681
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
604 define xprintstr
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
605 set $data = $arg0->data
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
606 output ($arg0->size > 1000) ? 0 : ($data[0])@($arg0->size_byte < 0 ? $arg0->size & ~gdb_array_mark_flag : $arg0->size_byte)
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
607 end
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
608
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
609 define xprintsym
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
610 xgetptr $arg0
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
611 set $sym = (struct Lisp_Symbol *) $ptr
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
612 xgetptr $sym->xname
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
613 set $sym_name = (struct Lisp_String *) $ptr
55681
91c18484e1a2 (xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 55609
diff changeset
614 xprintstr $sym_name
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
615 end
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
616 document xprintsym
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
617 Print argument as a symbol.
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
618 end
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
619
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
620 define xbacktrace
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
621 set $bt = backtrace_list
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45966
diff changeset
622 while $bt
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
623 xgettype (*$bt->function)
32812
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
624 if $type == Lisp_Symbol
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
625 xprintsym (*$bt->function)
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
626 echo \n
32812
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
627 else
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
628 printf "0x%x ", *$bt->function
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
629 if $type == Lisp_Vectorlike
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
630 xgetptr (*$bt->function)
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
631 set $size = ((struct Lisp_Vector *) $ptr)->size
55609
253acecd37f9 Mask off gdb_array_mark_flag from vector sizes.
Andreas Schwab <schwab@suse.de>
parents: 54690
diff changeset
632 output ($size & PVEC_FLAG) ? (enum pvec_type) ($size & PVEC_TYPE_MASK) : $size & ~gdb_array_mark_flag
32812
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
633 else
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
634 printf "Lisp type %d", $type
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
635 end
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
636 echo \n
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
637 end
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
638 set $bt = $bt->next
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
639 end
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
640 end
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
641 document xbacktrace
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
642 Print a backtrace of Lisp function calls from backtrace_list.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45966
diff changeset
643 Set a breakpoint at Fsignal and call this to see from where
32812
c49b460bb280 (xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents: 31960
diff changeset
644 an error was signaled.
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
645 end
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
646
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
647 define xreload
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
648 set $tagmask = (((long)1 << gdb_gctypebits) - 1)
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
649 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
650 end
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
651 document xreload
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
652 When starting Emacs a second time in the same gdb session under
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
653 FreeBSD 2.2.5, gdb 4.13, $valmask have lost
35792
9ec1e59890a2 (hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents: 34876
diff changeset
654 their values. (The same happens on current (2000) versions of GNU/Linux
9ec1e59890a2 (hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents: 34876
diff changeset
655 with gdb 5.0.)
31960
eb2d3d3a8eb5 (xreload): Note its need on GNU/Linux.
Dave Love <fx@gnu.org>
parents: 30636
diff changeset
656 This function reloads them.
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
657 end
54690
f9c48c0105bd Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents: 52401
diff changeset
658 xreload
27290
c26a9f95a880 Adapt to new strings.
Gerd Moellmann <gerd@gnu.org>
parents: 22012
diff changeset
659
57306
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
660 # Flush display (X only)
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
661 define ff
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
662 set x_flush (0)
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
663 end
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
664 document ff
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
665 Flush pending X window display updates to screen.
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
666 Works only when an inferior emacs is executing.
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
667 end
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
668
aca7edaa93d4 (pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents: 55686
diff changeset
669
35792
9ec1e59890a2 (hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents: 34876
diff changeset
670 define hook-run
9ec1e59890a2 (hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents: 34876
diff changeset
671 xreload
9ec1e59890a2 (hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents: 34876
diff changeset
672 end
9ec1e59890a2 (hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents: 34876
diff changeset
673
42907
1865230232b7 (hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 42682
diff changeset
674 # Call xreload if a new Emacs executable is loaded.
1865230232b7 (hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 42682
diff changeset
675 define hookpost-run
1865230232b7 (hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 42682
diff changeset
676 xreload
1865230232b7 (hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 42682
diff changeset
677 end
1865230232b7 (hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 42682
diff changeset
678
638
40b255f55df3 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 567
diff changeset
679 set print pretty on
4267
aabcab2eab73 Add size to geometry spec.
Jim Blandy <jimb@redhat.com>
parents: 2162
diff changeset
680 set print sevenbit-strings
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
681
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 727
diff changeset
682 show environment DISPLAY
4487
177aaa70734d Don't put -q in args.
Richard M. Stallman <rms@gnu.org>
parents: 4268
diff changeset
683 show environment TERM
177aaa70734d Don't put -q in args.
Richard M. Stallman <rms@gnu.org>
parents: 4268
diff changeset
684 set args -geometry 80x40+0+0
732
a8d94735277e *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 727
diff changeset
685
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
686 # Don't let abort actually run, as it will make
2162
1dcc4e12b8dd Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 1943
diff changeset
687 # stdio stop working and therefore the `pr' command above as well.
567
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
688 break abort
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
689
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
690 # If we are running in synchronous mode, we want a chance to look around
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
691 # before Emacs exits. Perhaps we should put the break somewhere else
696d82e36360 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
692 # instead...
8310
def3ab3a6f01 Set the breakpoint in x_error_quitter instead of _XPrintDefaultError.
Richard M. Stallman <rms@gnu.org>
parents: 7962
diff changeset
693 break x_error_quitter
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
694
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
695 # arch-tag: 12f34321-7bfa-4240-b77a-3cd3a1696dfe