diff options
| author | Eli Zaretskii | 2002-04-19 11:45:27 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-04-19 11:45:27 +0000 |
| commit | a9653085d80e5e111ff77faeb1fb05f4c0083047 (patch) | |
| tree | d5ed080ea085f0f48159bf78f2e50c1553f73435 /src | |
| parent | e7c9e4455fa2b40b80e5a63004edfcf07683ea6f (diff) | |
| download | emacs-a9653085d80e5e111ff77faeb1fb05f4c0083047.tar.gz emacs-a9653085d80e5e111ff77faeb1fb05f4c0083047.zip | |
(Qhbar): New variable.
(syms_of_xfns): intern and staticpro it.
(x_specified_cursor_type): Handle `hbar' cursor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 1f22f007ba5..e435d5500d9 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -185,7 +185,7 @@ Lisp_Object Vx_pixel_size_width_font_regexp; | |||
| 185 | 185 | ||
| 186 | Lisp_Object Qauto_raise; | 186 | Lisp_Object Qauto_raise; |
| 187 | Lisp_Object Qauto_lower; | 187 | Lisp_Object Qauto_lower; |
| 188 | Lisp_Object Qbar; | 188 | Lisp_Object Qbar, Qhbar; |
| 189 | Lisp_Object Qborder_color; | 189 | Lisp_Object Qborder_color; |
| 190 | Lisp_Object Qborder_width; | 190 | Lisp_Object Qborder_width; |
| 191 | Lisp_Object Qbox; | 191 | Lisp_Object Qbox; |
| @@ -1863,6 +1863,19 @@ x_specified_cursor_type (arg, width) | |||
| 1863 | type = BAR_CURSOR; | 1863 | type = BAR_CURSOR; |
| 1864 | *width = XINT (XCDR (arg)); | 1864 | *width = XINT (XCDR (arg)); |
| 1865 | } | 1865 | } |
| 1866 | else if (EQ (arg, Qhbar)) | ||
| 1867 | { | ||
| 1868 | type = HBAR_CURSOR; | ||
| 1869 | *width = 2; | ||
| 1870 | } | ||
| 1871 | else if (CONSP (arg) | ||
| 1872 | && EQ (XCAR (arg), Qhbar) | ||
| 1873 | && INTEGERP (XCDR (arg)) | ||
| 1874 | && XINT (XCDR (arg)) >= 0) | ||
| 1875 | { | ||
| 1876 | type = HBAR_CURSOR; | ||
| 1877 | *width = XINT (XCDR (arg)); | ||
| 1878 | } | ||
| 1866 | else if (NILP (arg)) | 1879 | else if (NILP (arg)) |
| 1867 | type = NO_CURSOR; | 1880 | type = NO_CURSOR; |
| 1868 | else | 1881 | else |
| @@ -11831,6 +11844,8 @@ syms_of_xfns () | |||
| 11831 | staticpro (&Qauto_lower); | 11844 | staticpro (&Qauto_lower); |
| 11832 | Qbar = intern ("bar"); | 11845 | Qbar = intern ("bar"); |
| 11833 | staticpro (&Qbar); | 11846 | staticpro (&Qbar); |
| 11847 | Qhbar = intern ("hbar"); | ||
| 11848 | staticpro (&Qhbar); | ||
| 11834 | Qborder_color = intern ("border-color"); | 11849 | Qborder_color = intern ("border-color"); |
| 11835 | staticpro (&Qborder_color); | 11850 | staticpro (&Qborder_color); |
| 11836 | Qborder_width = intern ("border-width"); | 11851 | Qborder_width = intern ("border-width"); |