Mercurial > emacs
comparison src/keymap.c @ 9273:129621997564
(synkey, Fdescribe_bindings, describe_command): Use new accessor macros
instead of calling XSET directly.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 04 Oct 1994 12:14:16 +0000 |
parents | c225137ddefb |
children | dfaf1d41e53d |
comparison
equal
deleted
inserted
replaced
9272:0a0998c4d4b6 | 9273:129621997564 |
---|---|
161 synkey (frommap, fromchar, tomap, tochar) | 161 synkey (frommap, fromchar, tomap, tochar) |
162 struct Lisp_Vector *frommap, *tomap; | 162 struct Lisp_Vector *frommap, *tomap; |
163 int fromchar, tochar; | 163 int fromchar, tochar; |
164 { | 164 { |
165 Lisp_Object v, c; | 165 Lisp_Object v, c; |
166 XSET (v, Lisp_Vector, tomap); | 166 XSETVECTOR (v, tomap); |
167 XFASTINT (c) = tochar; | 167 XFASTINT (c) = tochar; |
168 frommap->contents[fromchar] = Fcons (v, c); | 168 frommap->contents[fromchar] = Fcons (v, c); |
169 } | 169 } |
170 #endif /* 0 */ | 170 #endif /* 0 */ |
171 | 171 |
1818 then we display only bindings that start with that prefix.") | 1818 then we display only bindings that start with that prefix.") |
1819 (prefix) | 1819 (prefix) |
1820 Lisp_Object prefix; | 1820 Lisp_Object prefix; |
1821 { | 1821 { |
1822 register Lisp_Object thisbuf; | 1822 register Lisp_Object thisbuf; |
1823 XSET (thisbuf, Lisp_Buffer, current_buffer); | 1823 XSETBUFFER (thisbuf, current_buffer); |
1824 internal_with_output_to_temp_buffer ("*Help*", | 1824 internal_with_output_to_temp_buffer ("*Help*", |
1825 describe_buffer_bindings, | 1825 describe_buffer_bindings, |
1826 Fcons (thisbuf, prefix)); | 1826 Fcons (thisbuf, prefix)); |
1827 return Qnil; | 1827 return Qnil; |
1828 } | 1828 } |
2069 | 2069 |
2070 Findent_to (make_number (16), make_number (1)); | 2070 Findent_to (make_number (16), make_number (1)); |
2071 | 2071 |
2072 if (SYMBOLP (definition)) | 2072 if (SYMBOLP (definition)) |
2073 { | 2073 { |
2074 XSET (tem1, Lisp_String, XSYMBOL (definition)->name); | 2074 XSETSTRING (tem1, XSYMBOL (definition)->name); |
2075 insert1 (tem1); | 2075 insert1 (tem1); |
2076 insert_string ("\n"); | 2076 insert_string ("\n"); |
2077 } | 2077 } |
2078 else if (STRINGP (definition)) | 2078 else if (STRINGP (definition)) |
2079 insert_string ("Keyboard Macro\n"); | 2079 insert_string ("Keyboard Macro\n"); |