HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6478dc5
)
use STRINGP, SYMBOLP in ns_lisp_to_cursor_type
author
BT Templeton
<bpt@hcoop.net>
Fri, 5 Apr 2013 00:27:10 +0000
(20:27 -0400)
committer
Robin Templeton
<robin@terpri.org>
Sat, 18 Apr 2015 22:49:10 +0000
(18:49 -0400)
* src/nsfns.m (ns_lisp_to_cursor_type): Use `STRINGP' and `SYMBOLP'
instead of `XTYPE'.
src/nsfns.m
patch
|
blob
|
blame
|
history
diff --git
a/src/nsfns.m
b/src/nsfns.m
index
20006b8
..
5062903
100644
(file)
--- a/
src/nsfns.m
+++ b/
src/nsfns.m
@@
-823,9
+823,9
@@
int
ns_lisp_to_cursor_type (Lisp_Object arg)
{
char *str;
- if (
XTYPE (arg) == Lisp_String
)
+ if (
STRINGP (arg)
)
str = SSDATA (arg);
- else if (
XTYPE (arg) == Lisp_Symbol
)
+ else if (
SYMBOLP (arg)
)
str = SSDATA (SYMBOL_NAME (arg));
else return -1;
if (!strcmp (str, "box")) return FILLED_BOX_CURSOR;