diff options
| author | Richard M. Stallman | 1994-09-21 06:44:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-21 06:44:59 +0000 |
| commit | 7965883ba7bc618015290e54a6b351050f0c219a (patch) | |
| tree | bb077b6b77689e7fee394deebf114373c66ef30c /src | |
| parent | 3f320f98b8a800209a1e3b3181394a3b08dc5a0b (diff) | |
| download | emacs-7965883ba7bc618015290e54a6b351050f0c219a.tar.gz emacs-7965883ba7bc618015290e54a6b351050f0c219a.zip | |
(note_mouse_highlight): Pass new arg to overlays_at.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index bd2ffc3444c..475e4b9b7dd 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1937,7 +1937,8 @@ note_mouse_highlight (f, x, y) | |||
| 1937 | 1937 | ||
| 1938 | /* Put all the overlays we want in a vector in overlay_vec. | 1938 | /* Put all the overlays we want in a vector in overlay_vec. |
| 1939 | Store the length in len. */ | 1939 | Store the length in len. */ |
| 1940 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, &ignor1); | 1940 | noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 1941 | NULL, NULL); | ||
| 1941 | noverlays = sort_overlays (overlay_vec, noverlays, w); | 1942 | noverlays = sort_overlays (overlay_vec, noverlays, w); |
| 1942 | 1943 | ||
| 1943 | /* Find the highest priority overlay that has a mouse-face prop. */ | 1944 | /* Find the highest priority overlay that has a mouse-face prop. */ |
| @@ -4558,8 +4559,28 @@ x_new_font (f, fontname) | |||
| 4558 | char *atom | 4559 | char *atom |
| 4559 | = XGetAtomName (x_current_display, font->properties[i].name); | 4560 | = XGetAtomName (x_current_display, font->properties[i].name); |
| 4560 | if (!strcmp (atom, "FONT")) | 4561 | if (!strcmp (atom, "FONT")) |
| 4561 | full_name = XGetAtomName (x_current_display, | 4562 | { |
| 4562 | (Atom) (font->properties[i].card32)); | 4563 | char *name = XGetAtomName (x_current_display, |
| 4564 | (Atom) (font->properties[i].card32)); | ||
| 4565 | char *p = name; | ||
| 4566 | int dashes = 0; | ||
| 4567 | |||
| 4568 | /* Count the number of dashes in the "full name". | ||
| 4569 | If it is too few, this isn't really the font's full name, | ||
| 4570 | so don't use it. | ||
| 4571 | In X11R4, the fonts did not come with their canonical names | ||
| 4572 | stored in them. */ | ||
| 4573 | while (*p) | ||
| 4574 | { | ||
| 4575 | if (*p == '-') | ||
| 4576 | dashes++; | ||
| 4577 | p++; | ||
| 4578 | } | ||
| 4579 | |||
| 4580 | if (dashes >= 13) | ||
| 4581 | full_name = name; | ||
| 4582 | } | ||
| 4583 | |||
| 4563 | XFree (atom); | 4584 | XFree (atom); |
| 4564 | } | 4585 | } |
| 4565 | 4586 | ||