diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-07-14 08:44:01 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-07-14 08:44:01 +0400 |
commit | 201b685783301c9acfda413d1860763f0e941601 (patch) | |
tree | c16759bbe8c1e4a6ddea7f783e55c0710f00f0a5 /src/fringe.c | |
parent | a705278de7c661af9b78d956af25e13055cba864 (diff) | |
download | emacs-201b685783301c9acfda413d1860763f0e941601.tar.gz |
* lisp.h (CHECK_VECTOR_OR_STRING): Return number of elements
or characters in string, respectively. Add comment.
* fringe.c (Fdefine_fringe_bitmap):
* fns.c (Fsubstring, substring_both): Use it.
* keymap.c (Fdefine_key, Flookup_key):
* macros.c (Fstart_kbd_macro): Likewise. Avoid call to Flength.
Diffstat (limited to 'src/fringe.c')
-rw-r--r-- | src/fringe.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fringe.c b/src/fringe.c index d00aee0e0b6..54f880dc624 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1571,13 +1571,7 @@ If BITMAP already exists, the existing definition is replaced. */) int fill1 = 0, fill2 = 0; CHECK_SYMBOL (bitmap); - - if (STRINGP (bits)) - h = SCHARS (bits); - else if (VECTORP (bits)) - h = ASIZE (bits); - else - wrong_type_argument (Qsequencep, bits); + h = CHECK_VECTOR_OR_STRING (bits); if (NILP (height)) fb.height = h; |