Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
08ac8554
Commit
08ac8554
authored
Mar 08, 2000
by
Gerd Moellmann
Browse files
(x_set_cursor_type): If ARG is nil, give frame no cursor.
parent
8256e31b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/xfns.c
src/xfns.c
+6
-2
No files found.
src/xfns.c
View file @
08ac8554
...
@@ -1695,12 +1695,16 @@ x_set_cursor_type (f, arg, oldval)
...
@@ -1695,12 +1695,16 @@ x_set_cursor_type (f, arg, oldval)
FRAME_DESIRED_CURSOR (f) = BAR_CURSOR;
FRAME_DESIRED_CURSOR (f) = BAR_CURSOR;
f->output_data.x->cursor_width = 2;
f->output_data.x->cursor_width = 2;
}
}
else if (CONSP (arg) && EQ (XCAR (arg), Qbar)
else if (CONSP (arg)
&& INTEGERP (XCDR (arg)))
&& EQ (XCAR (arg), Qbar)
&& INTEGERP (XCDR (arg))
&& XINT (XCDR (arg)) >= 0)
{
{
FRAME_DESIRED_CURSOR (f) = BAR_CURSOR;
FRAME_DESIRED_CURSOR (f) = BAR_CURSOR;
f->output_data.x->cursor_width = XINT (XCDR (arg));
f->output_data.x->cursor_width = XINT (XCDR (arg));
}
}
else if (NILP (arg))
FRAME_DESIRED_CURSOR (f) = NO_CURSOR;
else
else
/* Treat anything unknown as "box cursor".
/* Treat anything unknown as "box cursor".
It was bad to signal an error; people have trouble fixing
It was bad to signal an error; people have trouble fixing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment