comparison src/.gdbinit @ 7962:05260d3b988d

Doc fixes.
author Richard M. Stallman <rms@gnu.org>
date Sat, 18 Jun 1994 21:04:14 +0000
parents f3e1a5c7bba1
children def3ab3a6f01
comparison
equal deleted inserted replaced
7961:f3e1a5c7bba1 7962:05260d3b988d
23 define xtype 23 define xtype
24 output (enum Lisp_Type) (($ >> 24) & 0x7f) 24 output (enum Lisp_Type) (($ >> 24) & 0x7f)
25 echo \n 25 echo \n
26 end 26 end
27 document xtype 27 document xtype
28 Print the type of $, assuming it is an Elisp value. 28 Print the type of $, assuming it is an Emacs Lisp value.
29 end 29 end
30 30
31 define xint 31 define xint
32 print (($ & 0x00ffffff) << 8) >> 8 32 print (($ & 0x00ffffff) << 8) >> 8
33 end 33 end
34 document xint 34 document xint
35 Print $, assuming it is an Elisp integer. This gets the sign right. 35 Print $, assuming it is an Emacs Lisp integer. This gets the sign right.
36 end 36 end
37 37
38 define xptr 38 define xptr
39 print (void *) (($ & 0x00ffffff) | $data_seg_bits) 39 print (void *) (($ & 0x00ffffff) | $data_seg_bits)
40 end 40 end
41 document xptr 41 document xptr
42 Print the pointer portion of $, assuming it is an Elisp value. 42 Print the pointer portion of $, assuming it is an Emacs Lisp value.
43 end 43 end
44 44
45 define xwindow 45 define xwindow
46 print (struct window *) (($ & 0x00ffffff) | $data_seg_bits) 46 print (struct window *) (($ & 0x00ffffff) | $data_seg_bits)
47 printf "%dx%d+%d+%d\n", $->width, $->height, $->left, $->top 47 printf "%dx%d+%d+%d\n", $->width, $->height, $->left, $->top
48 end 48 end
49 document xwindow 49 document xwindow
50 Print $ as a window pointer, assuming it is an Elisp window value. 50 Print $ as a window pointer, assuming it is an Emacs Lisp window value.
51 Print the window's position as "WIDTHxHEIGHT+LEFT+TOP". 51 Print the window's position as "WIDTHxHEIGHT+LEFT+TOP".
52 end 52 end
53 53
54 define xmarker 54 define xmarker
55 print (struct Lisp_Marker *) (($ & 0x00ffffff) | $data_seg_bits) 55 print (struct Lisp_Marker *) (($ & 0x00ffffff) | $data_seg_bits)
56 end 56 end
57 document xmarker 57 document xmarker
58 Print $ as a marker pointer, assuming it is an Elisp marker value. 58 Print $ as a marker pointer, assuming it is an Emacs Lisp marker value.
59 end 59 end
60 60
61 define xbuffer 61 define xbuffer
62 print (struct buffer *) (($ & 0x00ffffff) | $data_seg_bits) 62 print (struct buffer *) (($ & 0x00ffffff) | $data_seg_bits)
63 output &((struct Lisp_String *) ((($->name) & 0x00ffffff) | $data_seg_bits))->data 63 output &((struct Lisp_String *) ((($->name) & 0x00ffffff) | $data_seg_bits))->data
64 echo \n 64 echo \n
65 end 65 end
66 document xbuffer 66 document xbuffer
67 Set $ as a buffer pointer, assuming it is an Elisp buffer value. 67 Set $ as a buffer pointer, assuming it is an Emacs Lisp buffer value.
68 Print the name of the buffer. 68 Print the name of the buffer.
69 end 69 end
70 70
71 define xsymbol 71 define xsymbol
72 print (struct Lisp_Symbol *) ((((int) $) & 0x00ffffff) | $data_seg_bits) 72 print (struct Lisp_Symbol *) ((((int) $) & 0x00ffffff) | $data_seg_bits)
73 output &$->name->data 73 output &$->name->data
74 echo \n 74 echo \n
75 end 75 end
76 document xsymbol 76 document xsymbol
77 Print the name and address of the symbol $. 77 Print the name and address of the symbol $.
78 This command assumes that $ is an Elisp symbol value. 78 This command assumes that $ is an Emacs Lisp symbol value.
79 end 79 end
80 80
81 define xstring 81 define xstring
82 print (struct Lisp_String *) (($ & 0x00ffffff) | $data_seg_bits) 82 print (struct Lisp_String *) (($ & 0x00ffffff) | $data_seg_bits)
83 output ($->size > 1000) ? 0 : ($->data[0])@($->size) 83 output ($->size > 1000) ? 0 : ($->data[0])@($->size)
84 echo \n 84 echo \n
85 end 85 end
86 document xstring 86 document xstring
87 Print the contents and address of the string $. 87 Print the contents and address of the string $.
88 This command assumes that $ is an Elisp string value. 88 This command assumes that $ is an Emacs Lisp string value.
89 end 89 end
90 90
91 define xvector 91 define xvector
92 print (struct Lisp_Vector *) (($ & 0x00ffffff) | $data_seg_bits) 92 print (struct Lisp_Vector *) (($ & 0x00ffffff) | $data_seg_bits)
93 output ($->size > 50) ? 0 : ($->contents[0])@($->size) 93 output ($->size > 50) ? 0 : ($->contents[0])@($->size)
94 echo \n 94 echo \n
95 end 95 end
96 document xvector 96 document xvector
97 Print the contents and address of the vector $. 97 Print the contents and address of the vector $.
98 This command assumes that $ is an Elisp vector value. 98 This command assumes that $ is an Emacs Lisp vector value.
99 end 99 end
100 100
101 define xframe 101 define xframe
102 print (struct frame *) (($ & 0x00ffffff) | $data_seg_bits) 102 print (struct frame *) (($ & 0x00ffffff) | $data_seg_bits)
103 end 103 end
104 document xframe 104 document xframe
105 Print $ as a frame pointer, assuming it is an Elisp frame value. 105 Print $ as a frame pointer, assuming it is an Emacs Lisp frame value.
106 end 106 end
107 107
108 define xcons 108 define xcons
109 print (struct Lisp_Cons *) (($ & 0x00ffffff) | $data_seg_bits) 109 print (struct Lisp_Cons *) (($ & 0x00ffffff) | $data_seg_bits)
110 output *$ 110 output *$
111 echo \n 111 echo \n
112 end 112 end
113 document xcons 113 document xcons
114 Print the contents of $, assuming it is an Elisp cons. 114 Print the contents of $, assuming it is an Emacs Lisp cons.
115 end 115 end
116 116
117 define xcar 117 define xcar
118 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x00ffffff) | $data_seg_bits))->car : 0) 118 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x00ffffff) | $data_seg_bits))->car : 0)
119 end 119 end
120 document xcar 120 document xcar
121 Print the car of $, assuming it is an Elisp pair. 121 Print the car of $, assuming it is an Emacs Lisp pair.
122 end 122 end
123 123
124 define xcdr 124 define xcdr
125 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x00ffffff) | $data_seg_bits))->cdr : 0) 125 print ((($ >> 24) & 0x7f) == Lisp_Cons ? ((struct Lisp_Cons *) (($ & 0x00ffffff) | $data_seg_bits))->cdr : 0)
126 end 126 end
127 document xcdr 127 document xcdr
128 Print the cdr of $, assuming it is an Elisp pair. 128 Print the cdr of $, assuming it is an Emacs Lisp pair.
129 end 129 end
130 130
131 define xsubr 131 define xsubr
132 print (struct Lisp_Subr *) (($ & 0x00ffffff) | $data_seg_bits) 132 print (struct Lisp_Subr *) (($ & 0x00ffffff) | $data_seg_bits)
133 output *$ 133 output *$