diff options
| author | Dmitry Antipov | 2012-07-15 11:57:54 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-15 11:57:54 +0400 |
| commit | 9730daca4425e2014ff43a3b1b205b598e63c72a (patch) | |
| tree | aa0ddedd9fab09a7a40cc8bff5a8cbf671fd9c62 /src/keymap.c | |
| parent | 2e2d2a13e59e6332ea2623cfe4b3c1cd5afaed2c (diff) | |
| download | emacs-9730daca4425e2014ff43a3b1b205b598e63c72a.tar.gz emacs-9730daca4425e2014ff43a3b1b205b598e63c72a.zip | |
Use zero_vector where appropriate.
* alloc.c (zero_vector): Define as Lisp_Object. Adjust users
accordingly.
* lisp.h (zero_vector): New declaration.
* font.c (null_vector): Remove.
(syms_of_font): Remove initialization and staticpro.
(font_list_entities, font_find_for_lface): Change to use zero_vector.
* keymap.c (Faccessible_keymaps): Likewise.
Diffstat (limited to 'src/keymap.c')
| -rw-r--r-- | src/keymap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c index cfc1e2e495c..510c5ea7f3e 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2010,9 +2010,7 @@ then the value includes only maps for prefixes that start with PREFIX. */) | |||
| 2010 | return Qnil; | 2010 | return Qnil; |
| 2011 | } | 2011 | } |
| 2012 | else | 2012 | else |
| 2013 | maps = Fcons (Fcons (Fmake_vector (make_number (0), Qnil), | 2013 | maps = Fcons (Fcons (zero_vector, get_keymap (keymap, 1, 0)), Qnil); |
| 2014 | get_keymap (keymap, 1, 0)), | ||
| 2015 | Qnil); | ||
| 2016 | 2014 | ||
| 2017 | /* For each map in the list maps, | 2015 | /* For each map in the list maps, |
| 2018 | look at any other maps it points to, | 2016 | look at any other maps it points to, |