diff options
| author | Richard M. Stallman | 1995-02-14 09:42:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-14 09:42:14 +0000 |
| commit | c32112069d0291f615d649cb4d0500bcfc170aab (patch) | |
| tree | 9bf22bd7813a870a827b015ff473606d881cc962 | |
| parent | e36a27114ee1c81db9eff932590b787804ace4c4 (diff) | |
| download | emacs-c32112069d0291f615d649cb4d0500bcfc170aab.tar.gz emacs-c32112069d0291f615d649cb4d0500bcfc170aab.zip | |
(x_set_cursor_type): Set cursor_width field.
Handle args of form (bar . WIDTH).
| -rw-r--r-- | src/xfns.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/src/xfns.c b/src/xfns.c index 993194283f7..c62bdd4a090 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1305,19 +1305,21 @@ x_set_cursor_type (f, arg, oldval) | |||
| 1305 | Lisp_Object arg, oldval; | 1305 | Lisp_Object arg, oldval; |
| 1306 | { | 1306 | { |
| 1307 | if (EQ (arg, Qbar)) | 1307 | if (EQ (arg, Qbar)) |
| 1308 | FRAME_DESIRED_CURSOR (f) = bar_cursor; | 1308 | { |
| 1309 | else | 1309 | FRAME_DESIRED_CURSOR (f) = bar_cursor; |
| 1310 | #if 0 | 1310 | f->display.x->cursor_width = 2; |
| 1311 | if (EQ (arg, Qbox)) | 1311 | } |
| 1312 | #endif | 1312 | else if (CONSP (arg) && EQ (XCONS (arg)->car, Qbar) |
| 1313 | FRAME_DESIRED_CURSOR (f) = filled_box_cursor; | 1313 | && INTEGERP (XCONS (arg)->cdr)) |
| 1314 | /* Error messages commented out because people have trouble fixing | 1314 | { |
| 1315 | .Xdefaults with Emacs, when it has something bad in it. */ | 1315 | FRAME_DESIRED_CURSOR (f) = bar_cursor; |
| 1316 | #if 0 | 1316 | f->display.x->cursor_width = XINT (XCONS (arg)->cdr); |
| 1317 | } | ||
| 1317 | else | 1318 | else |
| 1318 | error | 1319 | /* Treat anything unknown as "box cursor". |
| 1319 | ("the `cursor-type' frame parameter should be either `bar' or `box'"); | 1320 | It was bad to signal an error; people have trouble fixing |
| 1320 | #endif | 1321 | .Xdefaults with Emacs, when it has something bad in it. */ |
| 1322 | FRAME_DESIRED_CURSOR (f) = filled_box_cursor; | ||
| 1321 | 1323 | ||
| 1322 | /* Make sure the cursor gets redrawn. This is overkill, but how | 1324 | /* Make sure the cursor gets redrawn. This is overkill, but how |
| 1323 | often do people change cursor types? */ | 1325 | often do people change cursor types? */ |