Mercurial > emacs
annotate src/.gdbinit @ 112453:06719a229a46 default tip
* calc/calc.el (calc-default-power-reference-level)
(calc-default-field-reference-level): New variables.
* calc/calc-units.el (math-standard-units): Add dB and Np.
(math-logunits): New variable.
(math-extract-logunits, math-logcombine, calcFunc-luplus)
(calcFunc-luminus, calc-luplus, calc-luminus, math-logunit-level)
(calcFunc-fieldlevel, calcFunc-powerlevel, calc-level): New
functions.
(math-find-base-units-rec): Add entry for ln(10).
* calc/calc-help.el (calc-u-prefix-help): Add logarithmic help.
(calc-ul-prefix-help): New function.
* calc/calc-ext.el (calc-init-extensions): Autoload new units
functions. Add keybindings for new units functions.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Sun, 23 Jan 2011 23:08:04 -0600 |
parents | 417b1e4d63cd |
children |
rev | line source |
---|---|
68651
3bd95f4f2941
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
68297
diff
changeset
|
1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
112085
diff
changeset
|
2 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
87915 | 3 # Free Software Foundation, Inc. |
36219 | 4 # |
5 # This file is part of GNU Emacs. | |
6 # | |
7 # GNU Emacs is free software; you can redistribute it and/or modify | |
8 # it under the terms of the GNU General Public License as published by | |
78260
922696f363b0
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
76129
diff
changeset
|
9 # the Free Software Foundation; either version 3, or (at your option) |
36219 | 10 # any later version. |
11 # | |
12 # GNU Emacs is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU General Public License for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with GNU Emacs; see the file COPYING. If not, write to the | |
64084 | 19 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 # Boston, MA 02110-1301, USA. | |
36219 | 21 |
13359
4c60f92bdaa6
Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents:
12278
diff
changeset
|
22 # 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
|
23 set main |
108100
8cdd7952f894
Fix GDB startup with src/.gdbinit.
Eli Zaretskii <eliz@gnu.org>
parents:
107900
diff
changeset
|
24 # With some compilers, we need this to give us struct Lisp_Symbol etc.: |
8cdd7952f894
Fix GDB startup with src/.gdbinit.
Eli Zaretskii <eliz@gnu.org>
parents:
107900
diff
changeset
|
25 set Fmake_symbol |
13359
4c60f92bdaa6
Do `set main' to make gdb_valbits etc. available.
Richard M. Stallman <rms@gnu.org>
parents:
12278
diff
changeset
|
26 |
15536 | 27 # Find lwlib source files too. |
28 dir ../lwlib | |
34876
8dbc92d11de2
Comment out the line pointing to the Lesstif source
Gerd Moellmann <gerd@gnu.org>
parents:
32812
diff
changeset
|
29 #dir /gd/gnu/lesstif-0.89.9/lib/Xm |
15536 | 30 |
20672 | 31 # Don't enter GDB when user types C-g to quit. |
32 # This has one unfortunate effect: you can't type C-c | |
33 # at the GDB to stop Emacs, when using X. | |
34 # However, C-z works just as well in that case. | |
67027 | 35 handle 2 noprint pass |
20672 | 36 |
66903
4689a51b18f9
Make SIGTSTP work like SIGINT normally does.
Nick Roberts <nickrob@snap.net.nz>
parents:
66817
diff
changeset
|
37 # Make it work like SIGINT normally does. |
4689a51b18f9
Make SIGTSTP work like SIGINT normally does.
Nick Roberts <nickrob@snap.net.nz>
parents:
66817
diff
changeset
|
38 handle SIGTSTP nopass |
4689a51b18f9
Make SIGTSTP work like SIGINT normally does.
Nick Roberts <nickrob@snap.net.nz>
parents:
66817
diff
changeset
|
39 |
74750
8079b89022bf
Pass on SIGUSR1 and SIGUSR2 to Emacs.
Kim F. Storm <storm@cua.dk>
parents:
72390
diff
changeset
|
40 # Pass on user signals |
8079b89022bf
Pass on SIGUSR1 and SIGUSR2 to Emacs.
Kim F. Storm <storm@cua.dk>
parents:
72390
diff
changeset
|
41 handle SIGUSR1 noprint pass |
8079b89022bf
Pass on SIGUSR1 and SIGUSR2 to Emacs.
Kim F. Storm <storm@cua.dk>
parents:
72390
diff
changeset
|
42 handle SIGUSR2 noprint pass |
8079b89022bf
Pass on SIGUSR1 and SIGUSR2 to Emacs.
Kim F. Storm <storm@cua.dk>
parents:
72390
diff
changeset
|
43 |
30636 | 44 # Don't pass SIGALRM to Emacs. This makes problems when |
45 # debugging. | |
46 handle SIGALRM ignore | |
47 | |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
48 # $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
|
49 |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
50 # 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
|
51 # 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
|
52 define xgetptr |
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 |
112085
19ad0830069c
* src/.gdbinit (xgetptr): Fix the union+lsb case.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
106641
diff
changeset
|
54 set $ptr = (gdb_use_union ? (gdb_use_lsb ? $bugfix.u.val << gdb_gctypebits : $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
|
55 end |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
56 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
57 define xgetint |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
58 set $bugfix = $arg0 |
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
59 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
|
60 end |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
61 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
62 define xgettype |
59660
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
63 set $bugfix = $arg0 |
5ee7eaad2958
(xgetptr, xgetint, xgettype): Copy $arg0 into a temp variable.
Richard M. Stallman <rms@gnu.org>
parents:
57911
diff
changeset
|
64 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
|
65 end |
11872
a28bd38b2ff3
gdb_lisp_params to get storage layout info.
Karl Heuer <kwzh@gnu.org>
parents:
11006
diff
changeset
|
66 |
567 | 67 # Set up something to print out s-expressions. |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
68 # We save and restore print_output_debug_flag to prevent the w32 port |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
69 # from calling OutputDebugString, which causes GDB to display each |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
70 # character twice (yuk!). |
567 | 71 define pr |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
72 set $output_debug = print_output_debug_flag |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
73 set print_output_debug_flag = 0 |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
74 set debug_print ($) |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
75 set print_output_debug_flag = $output_debug |
567 | 76 end |
77 document pr | |
78 Print the emacs s-expression which is $. | |
79 Works only when an inferior emacs is executing. | |
80 end | |
81 | |
57306
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
82 # Print out s-expressions |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
83 define pp |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
84 set $tmp = $arg0 |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
85 set $output_debug = print_output_debug_flag |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
86 set print_output_debug_flag = 0 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
87 set safe_debug_print ($tmp) |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
88 set print_output_debug_flag = $output_debug |
57306
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
89 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
90 document pp |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
91 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
|
92 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
|
93 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
94 |
66772
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
95 # Print out s-expressions from tool bar |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
96 define pp1 |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
97 set $tmp = $arg0 |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
98 set $output_debug = print_output_debug_flag |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
99 set print_output_debug_flag = 0 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
100 set safe_debug_print ($tmp) |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
101 set print_output_debug_flag = $output_debug |
66772
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
102 end |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
103 document pp1 |
70247
039ae41bde1a
(pp1, pv1): Only print value as expression is now printed out by gud-print.
Nick Roberts <nickrob@snap.net.nz>
parents:
69679
diff
changeset
|
104 Print the argument as an emacs s-expression. |
66772
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
105 Works only when an inferior emacs is executing. |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
106 For use on tool bar when debugging in Emacs |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
107 where the variable name would not otherwise |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
108 be recorded in the GUD buffer. |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
109 end |
f14bee895419
(pp1): New user-defined function.
Nick Roberts <nickrob@snap.net.nz>
parents:
64321
diff
changeset
|
110 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
111 # Print value of lisp variable |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
112 define pv |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
113 set $tmp = "$arg0" |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
114 set $output_debug = print_output_debug_flag |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
115 set print_output_debug_flag = 0 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
116 set safe_debug_print ( find_symbol_value (intern ($tmp))) |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
117 set print_output_debug_flag = $output_debug |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
118 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
119 document pv |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
120 Print the value of the lisp variable given as argument. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
121 Works only when an inferior emacs is executing. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
122 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
123 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
124 # Print value of lisp variable |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
125 define pv1 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
126 set $tmp = "$arg0" |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
127 set $output_debug = print_output_debug_flag |
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
128 set print_output_debug_flag = 0 |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
129 set safe_debug_print (find_symbol_value (intern ($tmp))) |
69679
7a7755ff46ed
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
Eli Zaretskii <eliz@gnu.org>
parents:
68857
diff
changeset
|
130 set print_output_debug_flag = $output_debug |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
131 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
132 document pv1 |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
133 Print the value of the lisp variable given as argument. |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
134 Works only when an inferior emacs is executing. |
70247
039ae41bde1a
(pp1, pv1): Only print value as expression is now printed out by gud-print.
Nick Roberts <nickrob@snap.net.nz>
parents:
69679
diff
changeset
|
135 For use when debugging in Emacs where the variable |
039ae41bde1a
(pp1, pv1): Only print value as expression is now printed out by gud-print.
Nick Roberts <nickrob@snap.net.nz>
parents:
69679
diff
changeset
|
136 name would not otherwise be recorded in the GUD buffer. |
66776
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
137 end |
2acb0afcc57a
(pp, pp1): Use safe_debug_print.
Kim F. Storm <storm@cua.dk>
parents:
66772
diff
changeset
|
138 |
57911 | 139 # Print out current buffer point and boundaries |
140 define ppt | |
141 set $b = current_buffer | |
142 set $t = $b->text | |
143 printf "BUF PT: %d", $b->pt | |
144 if ($b->pt != $b->pt_byte) | |
145 printf "[%d]", $b->pt_byte | |
146 end | |
147 printf " of 1..%d", $t->z | |
148 if ($t->z != $t->z_byte) | |
149 printf "[%d]", $t->z_byte | |
150 end | |
151 if ($b->begv != 1 || $b->zv != $t->z) | |
152 printf " NARROW=%d..%d", $b->begv, $b->zv | |
153 if ($b->begv != $b->begv_byte || $b->zv != $b->zv_byte) | |
154 printf " [%d..%d]", $b->begv_byte, $b->zv_byte | |
155 end | |
156 end | |
157 printf " GAP: %d", $t->gpt | |
158 if ($t->gpt != $t->gpt_byte) | |
159 printf "[%d]", $t->gpt_byte | |
160 end | |
161 printf " SZ=%d\n", $t->gap_size | |
162 end | |
163 document ppt | |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
164 Print current buffer's point and boundaries. |
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
165 Prints values of point, beg, end, narrow, and gap for current buffer. |
57911 | 166 end |
167 | |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
168 define pitmethod |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
169 set $itmethod = $arg0 |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
170 # output $itmethod |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
171 if ($itmethod == 0) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
172 printf "GET_FROM_BUFFER" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
173 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
174 if ($itmethod == 1) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
175 printf "GET_FROM_DISPLAY_VECTOR" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
176 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
177 if ($itmethod == 2) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
178 printf "GET_FROM_STRING" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
179 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
180 if ($itmethod == 3) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
181 printf "GET_FROM_C_STRING" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
182 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
183 if ($itmethod == 4) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
184 printf "GET_FROM_IMAGE" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
185 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
186 if ($itmethod == 5) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
187 printf "GET_FROM_STRETCH" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
188 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
189 if ($itmethod < 0 || $itmethod > 5) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
190 output $itmethod |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
191 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
192 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
193 document pitmethod |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
194 Pretty print it->method given as first arg |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
195 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
196 |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
197 # Print out iterator given as first arg |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
198 define pitx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
199 set $it = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
200 printf "cur=%d", $it->current.pos.charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
201 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
|
202 printf "[%d]", $it->current.pos.bytepos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
203 end |
72390
00776be18466
(pitx): Print iterator position.
Kim F. Storm <storm@cua.dk>
parents:
71433
diff
changeset
|
204 printf " pos=%d", $it->position.charpos |
00776be18466
(pitx): Print iterator position.
Kim F. Storm <storm@cua.dk>
parents:
71433
diff
changeset
|
205 if ($it->position.charpos != $it->position.bytepos) |
00776be18466
(pitx): Print iterator position.
Kim F. Storm <storm@cua.dk>
parents:
71433
diff
changeset
|
206 printf "[%d]", $it->position.bytepos |
00776be18466
(pitx): Print iterator position.
Kim F. Storm <storm@cua.dk>
parents:
71433
diff
changeset
|
207 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
208 printf " start=%d", $it->start.pos.charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
209 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
|
210 printf "[%d]", $it->start.pos.bytepos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
211 end |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
212 printf " end=%d", $it->end_charpos |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
213 printf " stop=%d", $it->stop_charpos |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
214 printf " face=%d", $it->face_id |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
215 if ($it->multibyte_p) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
216 printf " MB" |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
217 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
218 if ($it->header_line_p) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
219 printf " HL" |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
220 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
221 if ($it->n_overlay_strings > 0) |
66817
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
222 printf " nov=%d", $it->n_overlay_strings |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
223 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
224 if ($it->sp != 0) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
225 printf " sp=%d", $it->sp |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
226 end |
106641 | 227 # IT_CHARACTER |
228 if ($it->what == 0) | |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
229 if ($it->len == 1 && $it->c >= ' ' && it->c < 255) |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
230 printf " ch='%c'", $it->c |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
231 else |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
232 printf " ch=[%d,%d]", $it->c, $it->len |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
233 end |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
234 else |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
235 printf " " |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
236 # output $it->what |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
237 if ($it->what == 0) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
238 printf "IT_CHARACTER" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
239 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
240 if ($it->what == 1) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
241 printf "IT_COMPOSITION" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
242 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
243 if ($it->what == 2) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
244 printf "IT_IMAGE" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
245 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
246 if ($it->what == 3) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
247 printf "IT_STRETCH" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
248 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
249 if ($it->what == 4) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
250 printf "IT_EOB" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
251 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
252 if ($it->what == 5) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
253 printf "IT_TRUNCATION" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
254 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
255 if ($it->what == 6) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
256 printf "IT_CONTINUATION" |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
257 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
258 if ($it->what < 0 || $it->what > 6) |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
259 output $it->what |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
260 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
261 end |
106641 | 262 if ($it->method != 0) |
263 # !GET_FROM_BUFFER | |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
264 printf " next=" |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
265 pitmethod $it->method |
106641 | 266 if ($it->method == 2) |
267 # GET_FROM_STRING | |
64321
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
268 printf "[%d]", $it->current.string_pos.charpos |
18dde5f76662
(pitx): Fix output format. Print string charpos.
Kim F. Storm <storm@cua.dk>
parents:
64084
diff
changeset
|
269 end |
106641 | 270 if ($it->method == 4) |
271 # GET_FROM_IMAGE | |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
272 printf "[%d]", $it->image_id |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
273 end |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
274 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
275 printf "\n" |
107611
118ff750e43e
Continue working on handling of properties in bidi iteration.
Eli Zaretskii <eliz@gnu.org>
parents:
107606
diff
changeset
|
276 if ($it->bidi_p) |
118ff750e43e
Continue working on handling of properties in bidi iteration.
Eli Zaretskii <eliz@gnu.org>
parents:
107606
diff
changeset
|
277 printf "BIDI: base_stop=%d prev_stop=%d level=%d\n", $it->base_level_stop, $it->prev_stop, $it->bidi_it.resolved_level |
118ff750e43e
Continue working on handling of properties in bidi iteration.
Eli Zaretskii <eliz@gnu.org>
parents:
107606
diff
changeset
|
278 end |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
279 if ($it->region_beg_charpos >= 0) |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
280 printf "reg=%d-%d ", $it->region_beg_charpos, $it->region_end_charpos |
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
281 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
282 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
|
283 printf " y=%d lvy=%d", $it->current_y, $it->last_visible_y |
62416
123211374403
(pitx): Print more info about iterator.
Kim F. Storm <storm@cua.dk>
parents:
60148
diff
changeset
|
284 printf " x=%d vx=%d-%d", $it->current_x, $it->first_visible_x, $it->last_visible_x |
70425 | 285 printf " w=%d", $it->pixel_width |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
286 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
|
287 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
|
288 printf "\n" |
71433 | 289 set $i = 0 |
72390
00776be18466
(pitx): Print iterator position.
Kim F. Storm <storm@cua.dk>
parents:
71433
diff
changeset
|
290 while ($i < $it->sp && $i < 4) |
71433 | 291 set $e = $it->stack[$i] |
292 printf "stack[%d]: ", $i | |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
293 pitmethod $e->method |
71433 | 294 printf "[%d]", $e->position.charpos |
295 printf "\n" | |
296 set $i = $i + 1 | |
297 end | |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
298 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
299 document pitx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
300 Pretty print a display iterator. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
301 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
|
302 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
303 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
304 define pit |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
305 pitx it |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
306 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
307 document pit |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
308 Pretty print the display iterator it. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
309 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
310 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
311 define prowx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
312 set $row = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
313 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
|
314 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
|
315 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
|
316 printf " vis=%d", $row->visible_height |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
317 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
|
318 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
319 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
|
320 if ($row->enabled_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
321 printf " ENA" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
322 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
323 if ($row->displays_text_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
324 printf " DISP" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
325 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
326 if ($row->mode_line_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
327 printf " MODEL" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
328 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
329 if ($row->continued_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
330 printf " CONT" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
331 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
332 if ($row-> truncated_on_left_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
333 printf " TRUNC:L" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
334 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
335 if ($row-> truncated_on_right_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
336 printf " TRUNC:R" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
337 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
338 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
|
339 printf " STARTMID" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
340 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
341 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
|
342 printf " ENDMID" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
343 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
344 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
|
345 printf " ENDNLFS" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
346 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
347 if ($row->ends_at_zv_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
348 printf " ENDZV" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
349 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
350 if ($row->overlapped_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
351 printf " OLAPD" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
352 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
353 if ($row->overlapping_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
354 printf " OLAPNG" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
355 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
356 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
357 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
358 document prowx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
359 Pretty print information about glyph_row. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
360 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
|
361 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
362 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
363 define prow |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
364 prowx row |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
365 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
366 document prow |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
367 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
|
368 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
369 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
370 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
371 define pcursorx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
372 set $cp = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
373 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
|
374 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
375 document pcursorx |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
376 Pretty print a window cursor. |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
377 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
378 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
379 define pcursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
380 printf "output: " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
381 pcursorx output_cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
382 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
383 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
384 document pcursor |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
385 Pretty print the output_cursor. |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
386 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
387 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
388 define pwinx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
389 set $w = $arg0 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
390 xgetint $w->sequence_number |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
391 if ($w->mini_p != Qnil) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
392 printf "Mini " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
393 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
394 printf "Window %d ", $int |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
395 xgetptr $w->buffer |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
396 set $tem = (struct buffer *) $ptr |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
397 xgetptr $tem->name |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
398 printf "%s", ((struct Lisp_String *) $ptr)->data |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
399 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
400 xgetptr $w->start |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
401 set $tem = (struct Lisp_Marker *) $ptr |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
402 printf "start=%d end:", $tem->charpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
403 if ($w->window_end_valid != Qnil) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
404 xgetint $w->window_end_pos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
405 printf "pos=%d", $int |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
406 xgetint $w->window_end_vpos |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
407 printf " vpos=%d", $int |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
408 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
409 printf "invalid" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
410 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
411 printf " vscroll=%d", $w->vscroll |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
412 if ($w->force_start != Qnil) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
413 printf " FORCE_START" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
414 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
415 if ($w->must_be_updated_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
416 printf " MUST_UPD" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
417 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
418 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
419 printf "cursor: " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
420 pcursorx $w->cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
421 printf " phys: " |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
422 pcursorx $w->phys_cursor |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
423 if ($w->phys_cursor_on_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
424 printf " ON" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
425 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
426 printf " OFF" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
427 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
428 printf " blk=" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
429 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
|
430 if ($w->last_cursor_off_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
431 printf "ON->" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
432 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
433 printf "OFF->" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
434 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
435 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
436 if ($w->cursor_off_p) |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
437 printf "ON" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
438 else |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
439 printf "OFF" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
440 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
441 printf "\n" |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
442 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
443 document pwinx |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
444 Pretty print a window structure. |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
445 Takes one argument, a pointer to a window structure. |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
446 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
447 |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
448 define pwin |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
449 pwinx w |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
450 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
451 document pwin |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
452 Pretty print window structure w. |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
453 end |
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
454 |
107605
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
455 define pbiditype |
107606
297c59e52ecf
Retrospective commit from 2009-12-26.
Eli Zaretskii <eliz@gnu.org>
parents:
107605
diff
changeset
|
456 if ($arg0 == 0) |
297c59e52ecf
Retrospective commit from 2009-12-26.
Eli Zaretskii <eliz@gnu.org>
parents:
107605
diff
changeset
|
457 printf "UNDEF" |
297c59e52ecf
Retrospective commit from 2009-12-26.
Eli Zaretskii <eliz@gnu.org>
parents:
107605
diff
changeset
|
458 end |
107605
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
459 if ($arg0 == 1) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
460 printf "L" |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
461 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
462 if ($arg0 == 2) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
463 printf "R" |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
464 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
465 if ($arg0 == 3) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
466 printf "EN" |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
467 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
468 if ($arg0 == 4) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
469 printf "AN" |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
470 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
471 if ($arg0 == 5) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
472 printf "BN" |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
473 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
474 if ($arg0 == 6) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
475 printf "B" |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
476 end |
107606
297c59e52ecf
Retrospective commit from 2009-12-26.
Eli Zaretskii <eliz@gnu.org>
parents:
107605
diff
changeset
|
477 if ($arg0 < 0 || $arg0 > 6) |
107605
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
478 printf "%d??", $arg0 |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
479 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
480 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
481 document pbiditype |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
482 Print textual description of bidi type given as first argument. |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
483 end |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
484 |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
485 define pgx |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
486 set $g = $arg0 |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
487 # CHAR_GLYPH |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
488 if ($g->type == 0) |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
489 if ($g->u.ch >= ' ' && $g->u.ch < 127) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
490 printf "CHAR[%c]", $g->u.ch |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
491 else |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
492 printf "CHAR[0x%x]", $g->u.ch |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
493 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
494 end |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
495 # COMPOSITE_GLYPH |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
496 if ($g->type == 1) |
111526
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
497 printf "COMP[%d (%d..%d)]", $g->u.cmp.id, $g->slice.cmp.from, $g->slice.cmp.to |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
498 end |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
499 # GLYPHLESS_GLYPH |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
500 if ($g->type == 2) |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
501 printf "GLYPHLESS[" |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
502 if ($g->u.glyphless.method == 0) |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
503 printf "THIN]" |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
504 end |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
505 if ($g->u.glyphless.method == 1) |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
506 printf "EMPTY]" |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
507 end |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
508 if ($g->u.glyphless.method == 2) |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
509 printf "ACRO]" |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
510 end |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
511 if ($g->u.glyphless.method == 3) |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
512 printf "HEX]" |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
513 end |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
514 end |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
515 # IMAGE_GLYPH |
111526
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
516 if ($g->type == 3) |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
517 printf "IMAGE[%d]", $g->u.img_id |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
518 end |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
519 # STRETCH_GLYPH |
111526
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
520 if ($g->type == 4) |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
521 printf "STRETCH[%d+%d]", $g->u.stretch.height, $g->u.stretch.ascent |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
522 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
523 xgettype ($g->object) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
524 if ($type == Lisp_String) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
525 printf " str=%x[%d]", $g->object, $g->charpos |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
526 else |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
527 printf " pos=%d", $g->charpos |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
528 end |
107605
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
529 # For characters, print their resolved level and bidi type |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
530 if ($g->type == 0) |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
531 printf " blev=%d,btyp=", $g->resolved_level |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
532 pbiditype $g->bidi_type |
b1e1b45c9fb6
Retrospective commit from 2009-1219.
Eli Zaretskii <eliz@gnu.org>
parents:
106641
diff
changeset
|
533 end |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
534 printf " w=%d a+d=%d+%d", $g->pixel_width, $g->ascent, $g->descent |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
535 # If not DEFAULT_FACE_ID |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
536 if ($g->face_id != 0) |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
537 printf " face=%d", $g->face_id |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
538 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
539 if ($g->voffset) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
540 printf " vof=%d", $g->voffset |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
541 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
542 if ($g->multibyte_p) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
543 printf " MB" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
544 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
545 if ($g->padding_p) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
546 printf " PAD" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
547 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
548 if ($g->glyph_not_available_p) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
549 printf " N/A" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
550 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
551 if ($g->overlaps_vertically_p) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
552 printf " OVL" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
553 end |
109660
85236524c2a3
Fix redisplay bugs due to uninitialized glyphs in frame glyph pool.
Eli Zaretskii <eliz@gnu.org>
parents:
108657
diff
changeset
|
554 if ($g->avoid_cursor_p) |
85236524c2a3
Fix redisplay bugs due to uninitialized glyphs in frame glyph pool.
Eli Zaretskii <eliz@gnu.org>
parents:
108657
diff
changeset
|
555 printf " AVOID" |
85236524c2a3
Fix redisplay bugs due to uninitialized glyphs in frame glyph pool.
Eli Zaretskii <eliz@gnu.org>
parents:
108657
diff
changeset
|
556 end |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
557 if ($g->left_box_line_p) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
558 printf " [" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
559 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
560 if ($g->right_box_line_p) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
561 printf " ]" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
562 end |
111526
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
563 if ($g->slice.img.x || $g->slice.img.y || $g->slice.img.width || $g->slice.img.height) |
5c986eef8f0d
Fix and document display of glyphless characters.
Eli Zaretskii <eliz@gnu.org>
parents:
109660
diff
changeset
|
564 printf " slice=%d,%d,%d,%d" ,$g->slice.img.x, $g->slice.img.y, $g->slice.img.width, $g->slice.img.height |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
565 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
566 printf "\n" |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
567 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
568 document pgx |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
569 Pretty print a glyph structure. |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
570 Takes one argument, a pointer to a glyph structure. |
71363
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
571 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
572 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
573 define pg |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
574 set $pgidx = 0 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
575 pgx glyph |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
576 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
577 document pg |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
578 Pretty print glyph structure glyph. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
579 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
580 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
581 define pgi |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
582 set $pgidx = $arg0 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
583 pgx (&glyph[$pgidx]) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
584 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
585 document pgi |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
586 Pretty print glyph structure glyph[I]. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
587 Takes one argument, a integer I. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
588 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
589 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
590 define pgn |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
591 set $pgidx = $pgidx + 1 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
592 pgx (&glyph[$pgidx]) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
593 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
594 document pgn |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
595 Pretty print next glyph structure. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
596 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
597 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
598 define pgrowx |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
599 set $row = $arg0 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
600 set $area = 0 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
601 set $xofs = $row->x |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
602 while ($area < 3) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
603 set $used = $row->used[$area] |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
604 if ($used > 0) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
605 set $gl0 = $row->glyphs[$area] |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
606 set $pgidx = 0 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
607 printf "%s: %d glyphs\n", ($area == 0 ? "LEFT" : $area == 2 ? "RIGHT" : "TEXT"), $used |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
608 while ($pgidx < $used) |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
609 printf "%3d %4d: ", $pgidx, $xofs |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
610 pgx $gl0[$pgidx] |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
611 set $xofs = $xofs + $gl0[$pgidx]->pixel_width |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
612 set $pgidx = $pgidx + 1 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
613 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
614 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
615 set $area = $area + 1 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
616 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
617 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
618 document pgrowx |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
619 Pretty print all glyphs in a row structure. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
620 Takes one argument, a pointer to a row structure. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
621 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
622 |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
623 define pgrow |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
624 pgrowx row |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
625 end |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
626 document pgrow |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
627 Pretty print all glyphs in row structure row. |
9f75a05018ea
(pitx): Show composition parameters.
Kim F. Storm <storm@cua.dk>
parents:
70425
diff
changeset
|
628 end |
60148
28b65d07edde
(pitx, pit): Pretty print display iterator.
Kim F. Storm <storm@cua.dk>
parents:
59660
diff
changeset
|
629 |
106624
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
630 define pgrowit |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
631 pgrowx it->glyph_row |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
632 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
633 document pgrowit |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
634 Pretty print all glyphs in it->glyph_row. |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
635 end |
7139c31d3b12
(pitx): Don't use enum names, use their values. Remove reference to
Eli Zaretskii <eliz@gnu.org>
parents:
103739
diff
changeset
|
636 |
107639
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
637 define prowlims |
108657
7e4a23f2f3ea
Completed initial debugging and testing of reimplemented cursor motion.
Eli Zaretskii <eliz@gnu.org>
parents:
108100
diff
changeset
|
638 printf "edges=(%d,%d),r2l=%d,cont=%d,trunc=(%d,%d),at_zv=%d\n", $arg0->minpos.charpos, $arg0->maxpos.charpos, $arg0->reversed_p, $arg0->continued_p, $arg0->truncated_on_left_p, $arg0->truncated_on_right_p, $arg0->ends_at_zv_p |
107639
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
639 end |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
640 document prowlims |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
641 Print important attributes of a glyph_row structure. |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
642 Takes one argument, a pointer to a glyph_row structure. |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
643 end |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
644 |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
645 define pmtxrows |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
646 set $mtx = $arg0 |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
647 set $gl = $mtx->rows |
108657
7e4a23f2f3ea
Completed initial debugging and testing of reimplemented cursor motion.
Eli Zaretskii <eliz@gnu.org>
parents:
108100
diff
changeset
|
648 set $glend = $mtx->rows + $mtx->nrows - 1 |
7e4a23f2f3ea
Completed initial debugging and testing of reimplemented cursor motion.
Eli Zaretskii <eliz@gnu.org>
parents:
108100
diff
changeset
|
649 set $i = 0 |
107639
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
650 while ($gl < $glend) |
108657
7e4a23f2f3ea
Completed initial debugging and testing of reimplemented cursor motion.
Eli Zaretskii <eliz@gnu.org>
parents:
108100
diff
changeset
|
651 printf "%d: ", $i |
107639
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
652 prowlims $gl |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
653 set $gl = $gl + 1 |
108657
7e4a23f2f3ea
Completed initial debugging and testing of reimplemented cursor motion.
Eli Zaretskii <eliz@gnu.org>
parents:
108100
diff
changeset
|
654 set $i = $i + 1 |
107639
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
655 end |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
656 end |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
657 document pmtxrows |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
658 Print data about glyph rows in a glyph matrix. |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
659 Takes one argument, a pointer to a glyph_matrix structure. |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
660 end |
844012bdb5dd
Continue debugging continuation lines.
Eli Zaretskii <eliz@gnu.org>
parents:
107611
diff
changeset
|
661 |
567 | 662 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
|
663 xgettype $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
664 output $type |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
665 echo \n |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
666 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
|
667 xmisctype |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
668 else |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
669 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
|
670 xvectype |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
671 end |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
672 end |
567 | 673 end |
638 | 674 document xtype |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
675 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
|
676 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
|
677 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
|
678 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
679 |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
680 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
|
681 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
682 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
|
683 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
|
684 echo \n |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
685 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
686 document xvectype |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
687 Print the size or vector subtype of $. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
688 This command assumes that $ is a vector or pseudovector. |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
689 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
690 |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
691 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
|
692 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
693 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
|
694 echo \n |
10299
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
695 end |
0de933eb95a2
Adapt to new Lisp_Object format.
Richard M. Stallman <rms@gnu.org>
parents:
8310
diff
changeset
|
696 document xmisctype |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
697 Assume that $ is some misc type and print its specific type. |
638 | 698 end |
567 | 699 |
700 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
|
701 xgetint $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
702 print $int |
567 | 703 end |
638 | 704 document xint |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
705 Print $ as an Emacs Lisp integer. This gets the sign right. |
638 | 706 end |
567 | 707 |
708 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
|
709 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
710 print (void *) $ptr |
567 | 711 end |
638 | 712 document xptr |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
713 Print the pointer portion of an Emacs Lisp value in $. |
638 | 714 end |
567 | 715 |
716 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
|
717 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
718 print (struct Lisp_Marker *) $ptr |
567 | 719 end |
638 | 720 document xmarker |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
721 Print $ as a marker pointer. |
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
722 This command assumes that $ is an Emacs Lisp marker value. |
638 | 723 end |
567 | 724 |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
725 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
|
726 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
727 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
|
728 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
729 document xoverlay |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
730 Print $ as a overlay pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
731 This command assumes that $ is an Emacs Lisp overlay value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
732 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
733 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
734 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
|
735 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
736 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
|
737 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
738 document xmiscfree |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
739 Print $ as a misc free-cell pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
740 This command assumes that $ is an Emacs Lisp Misc value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
741 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
742 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
743 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
|
744 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
745 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
|
746 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
747 document xintfwd |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
748 Print $ as an integer forwarding pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
749 This command assumes that $ is an Emacs Lisp Misc value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
750 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
751 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
752 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
|
753 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
754 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
|
755 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
756 document xboolfwd |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
757 Print $ as a boolean forwarding pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
758 This command assumes that $ is an Emacs Lisp Misc value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
759 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
760 |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
761 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
|
762 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
763 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
|
764 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
765 document xobjfwd |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
766 Print $ as an object forwarding pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
767 This command assumes that $ is an Emacs Lisp Misc value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
768 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
769 |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
770 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
|
771 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
772 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
|
773 end |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
774 document xbufobjfwd |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
775 Print $ as a buffer-local object forwarding pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
776 This command assumes that $ is an Emacs Lisp Misc value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
777 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
778 |
11006
2aa4135eee50
(xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents:
10582
diff
changeset
|
779 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
|
780 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
781 print (struct Lisp_Kboard_Objfwd *) $ptr |
10582 | 782 end |
11006
2aa4135eee50
(xkbobjfwd): Renamed from xdispobjfwd.
Karl Heuer <kwzh@gnu.org>
parents:
10582
diff
changeset
|
783 document xkbobjfwd |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
784 Print $ as a kboard-local object forwarding pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
785 This command assumes that $ is an Emacs Lisp Misc value. |
10582 | 786 end |
787 | |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
788 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
|
789 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
790 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
|
791 end |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
792 document xbuflocal |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
793 Print $ as a buffer-local-value pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
794 This command assumes that $ is an Emacs Lisp Misc value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
795 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
796 |
567 | 797 define xsymbol |
55686 | 798 set $sym = $ |
799 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
|
800 print (struct Lisp_Symbol *) $ptr |
55686 | 801 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
|
802 echo \n |
567 | 803 end |
638 | 804 document xsymbol |
805 Print the name and address of the symbol $. | |
7962 | 806 This command assumes that $ is an Emacs Lisp symbol value. |
638 | 807 end |
567 | 808 |
809 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
|
810 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
811 print (struct Lisp_String *) $ptr |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
812 xprintstr $ |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
813 echo \n |
567 | 814 end |
815 document xstring | |
638 | 816 Print the contents and address of the string $. |
7962 | 817 This command assumes that $ is an Emacs Lisp string value. |
567 | 818 end |
819 | |
820 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
|
821 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
822 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
|
823 output ($->size > 50) ? 0 : ($->contents[0])@($->size & ~gdb_array_mark_flag) |
999 | 824 echo \n |
567 | 825 end |
826 document xvector | |
638 | 827 Print the contents and address of the vector $. |
7962 | 828 This command assumes that $ is an Emacs Lisp vector value. |
567 | 829 end |
830 | |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
831 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
|
832 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
833 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
|
834 output *$ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
835 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
836 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
837 document xprocess |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
838 Print the address of the struct Lisp_process to which $ points. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
839 This command assumes that $ is a Lisp_Object. |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
840 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
841 |
1113 | 842 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
|
843 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
844 print (struct frame *) $ptr |
70425 | 845 xgetptr $->name |
846 set $ptr = (struct Lisp_String *) $ptr | |
847 xprintstr $ptr | |
848 echo \n | |
567 | 849 end |
1113 | 850 document xframe |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
851 Print $ as a frame pointer. |
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
852 This command assumes $ is an Emacs Lisp frame value. |
638 | 853 end |
567 | 854 |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
855 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
|
856 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
857 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
|
858 output ($->contents[0])@($->size & 0xff) |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
859 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
860 document xcompiled |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
861 Print $ as a compiled function pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
862 This command assumes that $ is an Emacs Lisp compiled value. |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
863 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
864 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
865 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
|
866 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
867 print (struct window *) $ptr |
68857
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
868 set $window = (struct window *) $ptr |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
869 xgetint $window->total_cols |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
870 set $width=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
871 xgetint $window->total_lines |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
872 set $height=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
873 xgetint $window->left_col |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
874 set $left=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
875 xgetint $window->top_line |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
876 set $top=$int |
faf10626ffee
(xwindow): Update the code to show the window box.
Richard M. Stallman <rms@gnu.org>
parents:
68651
diff
changeset
|
877 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
|
878 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
879 document xwindow |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
880 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
|
881 Print the window's position as "WIDTHxHEIGHT+LEFT+TOP". |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
882 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
883 |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
884 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
|
885 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
886 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
|
887 end |
10495
70bd087c47a9
(xbufobjfwd, xbuflocal, xwinconfig):
Karl Heuer <kwzh@gnu.org>
parents:
10483
diff
changeset
|
888 document xwinconfig |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
889 Print $ as a window configuration pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
890 This command assumes that $ is an Emacs Lisp window configuration value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
891 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
892 |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
893 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
|
894 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
895 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
|
896 output *$ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
897 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
898 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
899 document xsubr |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
900 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
|
901 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
902 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
903 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
|
904 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
905 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
|
906 printf "Purpose: " |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
907 xprintsym $->purpose |
89909 | 908 printf " %d extra slots", ($->size & 0x1ff) - 68 |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
909 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
910 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
911 document xchartable |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
912 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
|
913 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
|
914 end |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
915 |
107900
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
916 define xsubchartable |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
917 xgetptr $ |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
918 print (struct Lisp_Sub_Char_Table *) $ptr |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
919 xgetint $->depth |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
920 set $depth = $int |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
921 xgetint $->min_char |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
922 printf "Depth: %d, Min char: %d (0x%x)\n", $depth, $int, $int |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
923 end |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
924 document xsubchartable |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
925 Print the address of the sub-char-table $, its depth and min-char. |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
926 This command assumes that $ is an Emacs Lisp sub-char-table value. |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
927 end |
8cc4089eeeaa
.gdbinit (xsubchartable): New command.
Eli Zaretskii <eliz@gnu.org>
parents:
107641
diff
changeset
|
928 |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
929 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
|
930 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
931 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
|
932 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
|
933 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
934 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
935 document xboolvector |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
936 Print the contents and address of the bool-vector $. |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
937 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
|
938 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
939 |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
940 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
|
941 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
942 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
|
943 xgetptr $->name |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
944 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
|
945 echo \n |
22012
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
946 end |
4379a41b6f2e
(xstring): Handle unibyte strings.
Richard M. Stallman <rms@gnu.org>
parents:
20672
diff
changeset
|
947 document xbuffer |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
948 Set $ as a buffer pointer and the name of the buffer. |
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
949 This command assumes $ is an Emacs Lisp buffer value. |
10483
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
950 end |
727cd2061e2a
(xboolfwd, xbuffer_local_value, xbuffer_objfwd, xcompiled, xintfwd, xmiscfree,
Karl Heuer <kwzh@gnu.org>
parents:
10337
diff
changeset
|
951 |
30636 | 952 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
|
953 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
954 print (struct Lisp_Hash_Table *) $ptr |
30636 | 955 end |
956 document xhashtable | |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
957 Set $ as a hash table pointer. |
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
958 This command assumes that $ is an Emacs Lisp hash table value. |
30636 | 959 end |
960 | |
567 | 961 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
|
962 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
963 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
|
964 output/x *$ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
965 echo \n |
567 | 966 end |
638 | 967 document xcons |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
968 Print the contents of $ as an Emacs Lisp cons. |
638 | 969 end |
567 | 970 |
18522
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
971 define nextcons |
67020
2385088bbb84
(nextcons, xcdr, xfloat): Update for changes in
Andreas Schwab <schwab@suse.de>
parents:
66903
diff
changeset
|
972 p $.u.cdr |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
973 xcons |
18522
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
974 end |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
975 document nextcons |
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
976 Print the contents of the next cell in a list. |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
977 This command assumes that the last thing you printed was a cons cell contents |
18522
c572c073c982
(xcons): Print car and cdr in hex.
Richard M. Stallman <rms@gnu.org>
parents:
15536
diff
changeset
|
978 (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
|
979 end |
567 | 980 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
|
981 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
982 xgettype $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
983 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->car : 0) |
567 | 984 end |
638 | 985 document xcar |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
986 Assume that $ is an Emacs Lisp pair and print its car. |
638 | 987 end |
567 | 988 |
989 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
|
990 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
991 xgettype $ |
67020
2385088bbb84
(nextcons, xcdr, xfloat): Update for changes in
Andreas Schwab <schwab@suse.de>
parents:
66903
diff
changeset
|
992 print/x ($type == Lisp_Cons ? ((struct Lisp_Cons *) $ptr)->u.cdr : 0) |
567 | 993 end |
638 | 994 document xcdr |
75301
2e356462f90e
(ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
Eli Zaretskii <eliz@gnu.org>
parents:
75284
diff
changeset
|
995 Assume that $ is an Emacs Lisp pair and print its cdr. |
638 | 996 end |
567 | 997 |
70425 | 998 define xlist |
999 xgetptr $ | |
1000 set $cons = (struct Lisp_Cons *) $ptr | |
1001 xgetptr Qnil | |
1002 set $nil = $ptr | |
1003 set $i = 0 | |
1004 while $cons != $nil && $i < 10 | |
1005 p/x $cons->car | |
1006 xpr | |
1007 xgetptr $cons->u.cdr | |
1008 set $cons = (struct Lisp_Cons *) $ptr | |
1009 set $i = $i + 1 | |
1010 printf "---\n" | |
1011 end | |
1012 if $cons == $nil | |
1013 printf "nil\n" | |
1014 else | |
1015 printf "...\n" | |
1016 p $ptr | |
1017 end | |
1018 end | |
1019 document xlist | |
1020 Print $ assuming it is a list. | |
1021 end | |
1022 | |
4267 | 1023 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
|
1024 xgetptr $ |
67020
2385088bbb84
(nextcons, xcdr, xfloat): Update for changes in
Andreas Schwab <schwab@suse.de>
parents:
66903
diff
changeset
|
1025 print ((struct Lisp_Float *) $ptr)->u.data |
4267 | 1026 end |
1027 document xfloat | |
1028 Print $ assuming it is a lisp floating-point number. | |
1029 end | |
1030 | |
1789
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1031 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
|
1032 xgetptr $ |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
1033 print (struct scrollbar *) $ptr |
1789
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1034 output *$ |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1035 echo \n |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1036 end |
4268
0795ced6013f
(xscrollbar): Fix typo specifying doc string.
Richard M. Stallman <rms@gnu.org>
parents:
4267
diff
changeset
|
1037 document xscrollbar |
1789
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1038 Print $ as a scrollbar pointer. |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1039 end |
2c65d1a8af09
* .gdbinit: Add "-geometry +0+0" to default args.
Jim Blandy <jimb@redhat.com>
parents:
1551
diff
changeset
|
1040 |
70425 | 1041 define xpr |
1042 xtype | |
1043 if $type == Lisp_Int | |
1044 xint | |
1045 end | |
1046 if $type == Lisp_Symbol | |
1047 xsymbol | |
1048 end | |
1049 if $type == Lisp_String | |
1050 xstring | |
1051 end | |
1052 if $type == Lisp_Cons | |
1053 xcons | |
1054 end | |
1055 if $type == Lisp_Float | |
1056 xfloat | |
1057 end | |
1058 if $type == Lisp_Misc | |
1059 set $misc = (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type) | |
1060 if $misc == Lisp_Misc_Free | |
1061 xmiscfree | |
1062 end | |
1063 if $misc == Lisp_Misc_Boolfwd | |
1064 xboolfwd | |
1065 end | |
1066 if $misc == Lisp_Misc_Marker | |
1067 xmarker | |
1068 end | |
1069 if $misc == Lisp_Misc_Intfwd | |
1070 xintfwd | |
1071 end | |
1072 if $misc == Lisp_Misc_Boolfwd | |
1073 xboolfwd | |
1074 end | |
1075 if $misc == Lisp_Misc_Objfwd | |
1076 xobjfwd | |
1077 end | |
1078 if $misc == Lisp_Misc_Buffer_Objfwd | |
1079 xbufobjfwd | |
1080 end | |
1081 if $misc == Lisp_Misc_Buffer_Local_Value | |
1082 xbuflocal | |
1083 end | |
1084 # if $misc == Lisp_Misc_Some_Buffer_Local_Value | |
1085 # xvalue | |
1086 # end | |
1087 if $misc == Lisp_Misc_Overlay | |
1088 xoverlay | |
1089 end | |
1090 if $misc == Lisp_Misc_Kboard_Objfwd | |
1091 xkbobjfwd | |
1092 end | |
1093 # if $misc == Lisp_Misc_Save_Value | |
1094 # xsavevalue | |
1095 # end | |
1096 end | |
1097 if $type == Lisp_Vectorlike | |
1098 set $size = ((struct Lisp_Vector *) $ptr)->size | |
1099 if ($size & PVEC_FLAG) | |
1100 set $vec = (enum pvec_type) ($size & PVEC_TYPE_MASK) | |
1101 if $vec == PVEC_NORMAL_VECTOR | |
1102 xvector | |
1103 end | |
1104 if $vec == PVEC_PROCESS | |
1105 xprocess | |
1106 end | |
1107 if $vec == PVEC_FRAME | |
1108 xframe | |
1109 end | |
1110 if $vec == PVEC_COMPILED | |
1111 xcompiled | |
1112 end | |
1113 if $vec == PVEC_WINDOW | |
1114 xwindow | |
1115 end | |
1116 if $vec == PVEC_WINDOW_CONFIGURATION | |
1117 xwinconfig | |
1118 end | |
1119 if $vec == PVEC_SUBR | |
1120 xsubr | |
1121 end | |
1122 if $vec == PVEC_CHAR_TABLE | |
1123 xchartable | |
1124 end | |
1125 if $vec == PVEC_BOOL_VECTOR | |
1126 xboolvector | |
1127 end | |
1128 if $vec == PVEC_BUFFER | |
1129 xbuffer | |
1130 end | |
1131 if $vec == PVEC_HASH_TABLE | |
1132 xhashtable | |
1133 end | |
1134 else | |
1135 xvector | |
1136 end | |
1137 end | |
1138 end | |
1139 document xpr | |
1140 Print $ as a lisp object of any type. | |
1141 end | |
1142 | |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
1143 define xprintstr |
76129
a0627ed0c1aa
(xprintstr): Ensure GDB (> 6.6) prints symbol name
Nick Roberts <nickrob@snap.net.nz>
parents:
75363
diff
changeset
|
1144 set $data = (char *) $arg0->data |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
1145 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
|
1146 end |
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
1147 |
27290 | 1148 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
|
1149 xgetptr $arg0 |
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
1150 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
|
1151 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
|
1152 set $sym_name = (struct Lisp_String *) $ptr |
55681
91c18484e1a2
(xprintstr): New fun.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
55609
diff
changeset
|
1153 xprintstr $sym_name |
27290 | 1154 end |
1155 document xprintsym | |
1156 Print argument as a symbol. | |
1157 end | |
1158 | |
88349
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1159 define xcoding |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1160 set $tmp = (struct Lisp_Hash_Table *) ((Vcoding_system_hash_table & $valmask) | gdb_data_seg_bits) |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1161 set $tmp = (struct Lisp_Vector *) (($tmp->key_and_value & $valmask) | gdb_data_seg_bits) |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1162 set $name = $tmp->contents[$arg0 * 2] |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1163 print $name |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1164 pr |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1165 print $tmp->contents[$arg0 * 2 + 1] |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1166 pr |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1167 end |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1168 document xcoding |
89483 | 1169 Print the name and attributes of coding system that has ID (argument). |
88349
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1170 end |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1171 |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1172 define xcharset |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1173 set $tmp = (struct Lisp_Hash_Table *) ((Vcharset_hash_table & $valmask) | gdb_data_seg_bits) |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1174 set $tmp = (struct Lisp_Vector *) (($tmp->key_and_value & $valmask) | gdb_data_seg_bits) |
103739
e949a1712db6
(xcharset): Fix the treating $arg0.
Kenichi Handa <handa@m17n.org>
parents:
100976
diff
changeset
|
1175 p $tmp->contents[charset_table[$arg0].hash_index * 2] |
88349
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1176 pr |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1177 end |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1178 document xcharset |
89483 | 1179 Print the name of charset that has ID (argument). |
88349
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1180 end |
e5d55ed9b335
(xchartable): Adjusted for the change of char table
Kenichi Handa <handa@m17n.org>
parents:
42907
diff
changeset
|
1181 |
91354 | 1182 define xfontset |
1183 xgetptr $ | |
1184 set $tbl = (struct Lisp_Char_Table *) $ptr | |
1185 print $tbl | |
1186 xgetint $tbl->extras[0] | |
1187 printf " ID:%d", $int | |
1188 xgettype $tbl->extras[1] | |
1189 xgetptr $tbl->extras[1] | |
1190 if $type == Lisp_String | |
1191 set $ptr = (struct Lisp_String *) $ptr | |
1192 printf " Name:" | |
1193 xprintstr $ptr | |
1194 else | |
1195 xgetptr $tbl->extras[2] | |
1196 set $ptr = (struct Lisp_Char_Table *) $ptr | |
1197 xgetptr $ptr->extras[1] | |
1198 set $ptr = (struct Lisp_String *) $ptr | |
1199 printf " Realized from:" | |
1200 xprintstr $ptr | |
1201 end | |
1202 echo \n | |
1203 end | |
1204 | |
95661 | 1205 define xfont |
1206 xgetptr $ | |
1207 set $size = (((struct Lisp_Vector *) $ptr)->size & 0x1FF) | |
1208 if $size == FONT_SPEC_MAX | |
1209 print (struct font_spec *) $ptr | |
1210 else | |
1211 if $size == FONT_ENTITY_MAX | |
1212 print (struct font_entity *) $ptr | |
1213 else | |
1214 print (struct font *) $ptr | |
1215 end | |
1216 end | |
1217 end | |
1218 document xfont | |
1219 Print $ assuming it is a list font (font-spec, font-entity, or font-object). | |
1220 end | |
1221 | |
27290 | 1222 define xbacktrace |
1223 set $bt = backtrace_list | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45966
diff
changeset
|
1224 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
|
1225 xgettype (*$bt->function) |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1226 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
|
1227 xprintsym (*$bt->function) |
84741
e903d611edc5
(xbacktrace): Print the arg's address rather than the value
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
83714
diff
changeset
|
1228 printf " (0x%x)\n", $bt->args |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1229 else |
112085
19ad0830069c
* src/.gdbinit (xgetptr): Fix the union+lsb case.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
106641
diff
changeset
|
1230 xgetptr *$bt->function |
19ad0830069c
* src/.gdbinit (xgetptr): Fix the union+lsb case.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
106641
diff
changeset
|
1231 printf "0x%x ", $ptr |
32812
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1232 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
|
1233 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
|
1234 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
|
1235 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
|
1236 else |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1237 printf "Lisp type %d", $type |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1238 end |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1239 echo \n |
c49b460bb280
(xbacktrace): Handle case that $bt->function isn't
Gerd Moellmann <gerd@gnu.org>
parents:
31960
diff
changeset
|
1240 end |
27290 | 1241 set $bt = $bt->next |
1242 end | |
1243 end | |
1244 document xbacktrace | |
1245 Print a backtrace of Lisp function calls from backtrace_list. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45966
diff
changeset
|
1246 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
|
1247 an error was signaled. |
27290 | 1248 end |
1249 | |
70425 | 1250 define which |
1251 set debug_print (which_symbols ($arg0)) | |
1252 end | |
1253 document which | |
75284
f4d4f6f361cc
Reformat documentation so that first sentence
Nick Roberts <nickrob@snap.net.nz>
parents:
74750
diff
changeset
|
1254 Print symbols which references a given lisp object |
70425 | 1255 either as its symbol value or symbol function. |
1256 end | |
1257 | |
1258 define xbytecode | |
1259 set $bt = byte_stack_list | |
1260 while $bt | |
1261 xgettype ($bt->byte_string) | |
1262 printf "0x%x => ", $bt->byte_string | |
1263 which $bt->byte_string | |
1264 set $bt = $bt->next | |
1265 end | |
1266 end | |
1267 document xbytecode | |
1268 Print a backtrace of the byte code stack. | |
1269 end | |
1270 | |
66817
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1271 # Show Lisp backtrace after normal backtrace. |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1272 define hookpost-backtrace |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1273 set $bt = backtrace_list |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1274 if $bt |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1275 echo \n |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1276 echo Lisp Backtrace:\n |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1277 xbacktrace |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1278 end |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1279 end |
98ff41842c94
(pitx): Fix output format if n_overlay_strings > 0.
Kim F. Storm <storm@cua.dk>
parents:
66776
diff
changeset
|
1280 |
27290 | 1281 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
|
1282 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
|
1283 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1 |
27290 | 1284 end |
1285 document xreload | |
1286 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
|
1287 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
|
1288 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
|
1289 with gdb 5.0.) |
31960
eb2d3d3a8eb5
(xreload): Note its need on GNU/Linux.
Dave Love <fx@gnu.org>
parents:
30636
diff
changeset
|
1290 This function reloads them. |
27290 | 1291 end |
54690
f9c48c0105bd
Make it work for USE_LSB_TAG and !NO_LISP_UNION.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
52401
diff
changeset
|
1292 xreload |
27290 | 1293 |
57306
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1294 # Flush display (X only) |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1295 define ff |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1296 set x_flush (0) |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1297 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1298 document ff |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1299 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
|
1300 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
|
1301 end |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1302 |
aca7edaa93d4
(pp): Shorthand for p ARG + pr.
Kim F. Storm <storm@cua.dk>
parents:
55686
diff
changeset
|
1303 |
35792
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
1304 define hook-run |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
1305 xreload |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
1306 end |
9ec1e59890a2
(hook-run): Define to run xreload.
Dave Love <fx@gnu.org>
parents:
34876
diff
changeset
|
1307 |
42907
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
1308 # Call xreload if a new Emacs executable is loaded. |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
1309 define hookpost-run |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
1310 xreload |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
1311 end |
1865230232b7
(hookpost-run): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
42682
diff
changeset
|
1312 |
638 | 1313 set print pretty on |
4267 | 1314 set print sevenbit-strings |
567 | 1315 |
732 | 1316 show environment DISPLAY |
4487 | 1317 show environment TERM |
732 | 1318 |
67925
477140fdc860
Tell users not to worry about GDB warnings that some functions do not
Eli Zaretskii <eliz@gnu.org>
parents:
67633
diff
changeset
|
1319 # People get bothered when they see messages about non-existent functions... |
68007
0b578812ab24
Undo last change. Instead, look at Vsystem_type to
Kim F. Storm <storm@cua.dk>
parents:
67925
diff
changeset
|
1320 xgetptr Vsystem_type |
68297
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1321 # $ptr is NULL in temacs |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1322 if ($ptr != 0) |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1323 set $tem = (struct Lisp_Symbol *) $ptr |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1324 xgetptr $tem->xname |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1325 set $tem = (struct Lisp_String *) $ptr |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1326 set $tem = (char *) $tem->data |
67925
477140fdc860
Tell users not to worry about GDB warnings that some functions do not
Eli Zaretskii <eliz@gnu.org>
parents:
67633
diff
changeset
|
1327 |
68297
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1328 # Don't let abort actually run, as it will make stdio stop working and |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1329 # therefore the `pr' command above as well. |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1330 if $tem[0] == 'w' && $tem[1] == 'i' && $tem[2] == 'n' && $tem[3] == 'd' |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1331 # The windows-nt build replaces abort with its own function. |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1332 break w32_abort |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1333 else |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1334 break abort |
9b3bace59343
Don't dereference Vsystem_type's Lisp_Symbol pointer if it is NULL.
Eli Zaretskii <eliz@gnu.org>
parents:
68074
diff
changeset
|
1335 end |
68047 | 1336 end |
567 | 1337 |
68047 | 1338 # x_error_quitter is defined only on X. But window-system is set up |
1339 # only at run time, during Emacs startup, so we need to defer setting | |
1340 # the breakpoint. init_sys_modes is the first function called on | |
1341 # every platform after init_display, where window-system is set. | |
1342 tbreak init_sys_modes | |
1343 commands | |
1344 silent | |
83485 | 1345 xgetptr Vinitial_window_system |
68024
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
1346 set $tem = (struct Lisp_Symbol *) $ptr |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
1347 xgetptr $tem->xname |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
1348 set $tem = (struct Lisp_String *) $ptr |
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
1349 set $tem = (char *) $tem->data |
68047 | 1350 # If we are running in synchronous mode, we want a chance to look |
1351 # around before Emacs exits. Perhaps we should put the break | |
1352 # somewhere else instead... | |
68024
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
1353 if $tem[0] == 'x' && $tem[1] == '\0' |
68052 | 1354 break x_error_quitter |
68024
75f9e1ee6fa6
Avoid a warning message when x_error_quitter is not compiled in.
Eli Zaretskii <eliz@gnu.org>
parents:
68007
diff
changeset
|
1355 end |
68047 | 1356 continue |
68007
0b578812ab24
Undo last change. Instead, look at Vsystem_type to
Kim F. Storm <storm@cua.dk>
parents:
67925
diff
changeset
|
1357 end |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
112085
diff
changeset
|
1358 |