diff options
| author | Jan D | 2015-05-23 12:28:54 +0200 |
|---|---|---|
| committer | Jan D | 2015-05-23 12:28:54 +0200 |
| commit | 6aaa489dc112f51f6045f79b37cb78dd513e398f (patch) | |
| tree | a34eb6ad435ab877848f7464374570549ca55ec5 /src | |
| parent | ee14727ce033bae3bc11af35e7843604e5a5e635 (diff) | |
| parent | 7ac84a2570e1268cc040fcd529508307b2b22c01 (diff) | |
| download | emacs-6aaa489dc112f51f6045f79b37cb78dd513e398f.tar.gz emacs-6aaa489dc112f51f6045f79b37cb78dd513e398f.zip | |
Merge branch 'master' into cairo
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 8 | ||||
| -rw-r--r-- | src/cmds.c | 13 | ||||
| -rw-r--r-- | src/font.c | 10 | ||||
| -rw-r--r-- | src/frame.c | 13 | ||||
| -rw-r--r-- | src/gnutls.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 3 | ||||
| -rw-r--r-- | src/keymap.c | 4 | ||||
| -rw-r--r-- | src/nsfns.m | 6 | ||||
| -rw-r--r-- | src/w32fns.c | 4 | ||||
| -rw-r--r-- | src/w32heap.c | 4 | ||||
| -rw-r--r-- | src/w32term.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 24 | ||||
| -rw-r--r-- | src/xfns.c | 4 | ||||
| -rw-r--r-- | src/xterm.c | 9 |
14 files changed, 68 insertions, 38 deletions
diff --git a/src/buffer.c b/src/buffer.c index b09676c438d..c78d08c53d2 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1467,15 +1467,15 @@ DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 3, 0, | |||
| 1467 | Buffers not visible in windows are preferred to visible buffers, unless | 1467 | Buffers not visible in windows are preferred to visible buffers, unless |
| 1468 | optional second argument VISIBLE-OK is non-nil. Ignore the argument | 1468 | optional second argument VISIBLE-OK is non-nil. Ignore the argument |
| 1469 | BUFFER unless it denotes a live buffer. If the optional third argument | 1469 | BUFFER unless it denotes a live buffer. If the optional third argument |
| 1470 | FRAME is non-nil, use that frame's buffer list instead of the selected | 1470 | FRAME specifies a live frame, then use that frame's buffer list instead |
| 1471 | frame's buffer list. | 1471 | of the selected frame's buffer list. |
| 1472 | 1472 | ||
| 1473 | The buffer is found by scanning the selected or specified frame's buffer | 1473 | The buffer is found by scanning the selected or specified frame's buffer |
| 1474 | list first, followed by the list of all buffers. If no other buffer | 1474 | list first, followed by the list of all buffers. If no other buffer |
| 1475 | exists, return the buffer `*scratch*' (creating it if necessary). */) | 1475 | exists, return the buffer `*scratch*' (creating it if necessary). */) |
| 1476 | (Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) | 1476 | (Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) |
| 1477 | { | 1477 | { |
| 1478 | struct frame *f = decode_any_frame (frame); | 1478 | struct frame *f = decode_live_frame (frame); |
| 1479 | Lisp_Object tail = f->buffer_list, pred = f->buffer_predicate; | 1479 | Lisp_Object tail = f->buffer_list, pred = f->buffer_predicate; |
| 1480 | Lisp_Object buf, notsogood = Qnil; | 1480 | Lisp_Object buf, notsogood = Qnil; |
| 1481 | 1481 | ||
| @@ -6106,7 +6106,7 @@ An entry of the form POSITION indicates that point was at the buffer | |||
| 6106 | location given by the integer. Undoing an entry of this form places | 6106 | location given by the integer. Undoing an entry of this form places |
| 6107 | point at POSITION. | 6107 | point at POSITION. |
| 6108 | 6108 | ||
| 6109 | Entries with value `nil' mark undo boundaries. The undo command treats | 6109 | Entries with value nil mark undo boundaries. The undo command treats |
| 6110 | the changes between two undo boundaries as a single step to be undone. | 6110 | the changes between two undo boundaries as a single step to be undone. |
| 6111 | 6111 | ||
| 6112 | If the value of the variable is t, undo information is not recorded. */); | 6112 | If the value of the variable is t, undo information is not recorded. */); |
diff --git a/src/cmds.c b/src/cmds.c index b590805ea8a..6f9982eebb2 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -110,10 +110,17 @@ DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p", | |||
| 110 | Precisely, if point is on line I, move to the start of line I + N | 110 | Precisely, if point is on line I, move to the start of line I + N |
| 111 | \("start of line" in the logical order). | 111 | \("start of line" in the logical order). |
| 112 | If there isn't room, go as far as possible (no error). | 112 | If there isn't room, go as far as possible (no error). |
| 113 | |||
| 113 | Returns the count of lines left to move. If moving forward, | 114 | Returns the count of lines left to move. If moving forward, |
| 114 | that is N - number of lines moved; if backward, N + number moved. | 115 | that is N minus number of lines moved; if backward, N plus number |
| 115 | With positive N, a non-empty line at the end counts as one line | 116 | moved. |
| 116 | successfully moved (for the return value). */) | 117 | |
| 118 | Exception: With positive N, a non-empty line at the end of the | ||
| 119 | buffer, or of its accessible portion, counts as one line | ||
| 120 | successfully moved (for the return value). This means that the | ||
| 121 | function will move point to the end of such a line and will count | ||
| 122 | it as a line moved across, even though there is no next line to | ||
| 123 | go to its beginning. */) | ||
| 117 | (Lisp_Object n) | 124 | (Lisp_Object n) |
| 118 | { | 125 | { |
| 119 | ptrdiff_t opoint = PT, pos, pos_byte, shortage, count; | 126 | ptrdiff_t opoint = PT, pos, pos_byte, shortage, count; |
diff --git a/src/font.c b/src/font.c index 603e998ed3f..2ccfd15d436 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -3822,17 +3822,17 @@ They are the same as face attributes of the same name. See | |||
| 3822 | 3822 | ||
| 3823 | `:foundry' | 3823 | `:foundry' |
| 3824 | 3824 | ||
| 3825 | VALUE must be a string or a symbol specifying the font foundry, e.g. ``misc''. | 3825 | VALUE must be a string or a symbol specifying the font foundry, e.g. `misc'. |
| 3826 | 3826 | ||
| 3827 | `:adstyle' | 3827 | `:adstyle' |
| 3828 | 3828 | ||
| 3829 | VALUE must be a string or a symbol specifying the additional | 3829 | VALUE must be a string or a symbol specifying the additional |
| 3830 | typographic style information of a font, e.g. ``sans''. | 3830 | typographic style information of a font, e.g. `sans'. |
| 3831 | 3831 | ||
| 3832 | `:registry' | 3832 | `:registry' |
| 3833 | 3833 | ||
| 3834 | VALUE must be a string or a symbol specifying the charset registry and | 3834 | VALUE must be a string or a symbol specifying the charset registry and |
| 3835 | encoding of a font, e.g. ``iso8859-1''. | 3835 | encoding of a font, e.g. `iso8859-1'. |
| 3836 | 3836 | ||
| 3837 | `:size' | 3837 | `:size' |
| 3838 | 3838 | ||
| @@ -3866,7 +3866,7 @@ required OpenType features. | |||
| 3866 | GSUB: List of OpenType GSUB feature tag symbols, or nil if none required. | 3866 | GSUB: List of OpenType GSUB feature tag symbols, or nil if none required. |
| 3867 | GPOS: List of OpenType GPOS feature tag symbols, or nil if none required. | 3867 | GPOS: List of OpenType GPOS feature tag symbols, or nil if none required. |
| 3868 | 3868 | ||
| 3869 | GSUB and GPOS may contain `nil' element. In such a case, the font | 3869 | GSUB and GPOS may contain nil elements. In such a case, the font |
| 3870 | must not have any of the remaining elements. | 3870 | must not have any of the remaining elements. |
| 3871 | 3871 | ||
| 3872 | For instance, if the VALUE is `(thai nil nil (mark))', the font must | 3872 | For instance, if the VALUE is `(thai nil nil (mark))', the font must |
| @@ -5011,7 +5011,7 @@ build_style_table (const struct table_entry *entry, int nelement) | |||
| 5011 | static Lisp_Object Vfont_log_deferred; | 5011 | static Lisp_Object Vfont_log_deferred; |
| 5012 | 5012 | ||
| 5013 | /* Prepend the font-related logging data in Vfont_log if it is not | 5013 | /* Prepend the font-related logging data in Vfont_log if it is not |
| 5014 | `t'. ACTION describes a kind of font-related action (e.g. listing, | 5014 | t. ACTION describes a kind of font-related action (e.g. listing, |
| 5015 | opening), ARG is the argument for the action, and RESULT is the | 5015 | opening), ARG is the argument for the action, and RESULT is the |
| 5016 | result of the action. */ | 5016 | result of the action. */ |
| 5017 | void | 5017 | void |
diff --git a/src/frame.c b/src/frame.c index 22086552ea3..478bb00337b 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -1823,9 +1823,10 @@ DEFUN ("delete-frame", Fdelete_frame, Sdelete_frame, 0, 2, "", | |||
| 1823 | doc: /* Delete FRAME, permanently eliminating it from use. | 1823 | doc: /* Delete FRAME, permanently eliminating it from use. |
| 1824 | FRAME defaults to the selected frame. | 1824 | FRAME defaults to the selected frame. |
| 1825 | 1825 | ||
| 1826 | A frame may not be deleted if its minibuffer is used by other frames. | 1826 | A frame may not be deleted if its minibuffer serves as surrogate |
| 1827 | Normally, you may not delete a frame if all other frames are invisible, | 1827 | minibuffer for another frame. Normally, you may not delete a frame if |
| 1828 | but if the second optional argument FORCE is non-nil, you may do so. | 1828 | all other frames are invisible, but if the second optional argument |
| 1829 | FORCE is non-nil, you may do so. | ||
| 1829 | 1830 | ||
| 1830 | This function runs `delete-frame-functions' before actually | 1831 | This function runs `delete-frame-functions' before actually |
| 1831 | deleting the frame, unless the frame is a tooltip. | 1832 | deleting the frame, unless the frame is a tooltip. |
| @@ -5151,7 +5152,7 @@ a non-nil value in your init file. */); | |||
| 5151 | If this option is nil, setting font, menu bar, tool bar, internal | 5152 | If this option is nil, setting font, menu bar, tool bar, internal |
| 5152 | borders, fringes or scroll bars of a specific frame may resize the frame | 5153 | borders, fringes or scroll bars of a specific frame may resize the frame |
| 5153 | in order to preserve the number of columns or lines it displays. If | 5154 | in order to preserve the number of columns or lines it displays. If |
| 5154 | this option is `t', no such resizing is done. Note that the size of | 5155 | this option is t, no such resizing is done. Note that the size of |
| 5155 | fullscreen and maximized frames, the height of fullheight frames and the | 5156 | fullscreen and maximized frames, the height of fullheight frames and the |
| 5156 | width of fullwidth frames never change implicitly. | 5157 | width of fullwidth frames never change implicitly. |
| 5157 | 5158 | ||
| @@ -5167,14 +5168,14 @@ Changing any of the parameters `scroll-bar-width', `scroll-bar-height', | |||
| 5167 | window. This means, for example, that removing vertical scroll bars on | 5168 | window. This means, for example, that removing vertical scroll bars on |
| 5168 | a frame containing several side by side windows will shrink the frame | 5169 | a frame containing several side by side windows will shrink the frame |
| 5169 | width by the width of one scroll bar provided this option is nil and | 5170 | width by the width of one scroll bar provided this option is nil and |
| 5170 | keep it unchanged if this option is either `t' or a list containing | 5171 | keep it unchanged if this option is either t or a list containing |
| 5171 | `vertical-scroll-bars'. | 5172 | `vertical-scroll-bars'. |
| 5172 | 5173 | ||
| 5173 | The default value is '(tool-bar-lines) on Lucid, Motif and Windows | 5174 | The default value is '(tool-bar-lines) on Lucid, Motif and Windows |
| 5174 | \(which means that adding/removing a tool bar does not change the frame | 5175 | \(which means that adding/removing a tool bar does not change the frame |
| 5175 | height), nil on all other window systems including GTK+ (which means | 5176 | height), nil on all other window systems including GTK+ (which means |
| 5176 | that changing any of the parameters listed above may change the size of | 5177 | that changing any of the parameters listed above may change the size of |
| 5177 | the frame), and `t' otherwise (which means the frame size never changes | 5178 | the frame), and t otherwise (which means the frame size never changes |
| 5178 | implicitly when there's no window system support). | 5179 | implicitly when there's no window system support). |
| 5179 | 5180 | ||
| 5180 | Note that when a frame is not large enough to accommodate a change of | 5181 | Note that when a frame is not large enough to accommodate a change of |
diff --git a/src/gnutls.c b/src/gnutls.c index 9b8ae2bd1a8..9c2d86ecdfc 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -1181,7 +1181,7 @@ gnutls_certificate_set_verify_flags. | |||
| 1181 | instead. | 1181 | instead. |
| 1182 | 1182 | ||
| 1183 | :verify-error is a list of symbols to express verification checks or | 1183 | :verify-error is a list of symbols to express verification checks or |
| 1184 | `t' to do all checks. Currently it can contain `:trustfiles' and | 1184 | t to do all checks. Currently it can contain `:trustfiles' and |
| 1185 | `:hostname' to verify the certificate or the hostname respectively. | 1185 | `:hostname' to verify the certificate or the hostname respectively. |
| 1186 | 1186 | ||
| 1187 | :min-prime-bits is the minimum accepted number of bits the client will | 1187 | :min-prime-bits is the minimum accepted number of bits the client will |
diff --git a/src/keyboard.c b/src/keyboard.c index 77f7fb97898..eb66c445559 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1702,7 +1702,8 @@ adjust_point_for_property (ptrdiff_t last_pt, bool modified) | |||
| 1702 | if (check_display | 1702 | if (check_display |
| 1703 | && PT > BEGV && PT < ZV | 1703 | && PT > BEGV && PT < ZV |
| 1704 | && !NILP (val = get_char_property_and_overlay | 1704 | && !NILP (val = get_char_property_and_overlay |
| 1705 | (make_number (PT), Qdisplay, Qnil, &overlay)) | 1705 | (make_number (PT), Qdisplay, selected_window, |
| 1706 | &overlay)) | ||
| 1706 | && display_prop_intangible_p (val, overlay, PT, PT_BYTE) | 1707 | && display_prop_intangible_p (val, overlay, PT, PT_BYTE) |
| 1707 | && (!OVERLAYP (overlay) | 1708 | && (!OVERLAYP (overlay) |
| 1708 | ? get_property_and_range (PT, Qdisplay, &val, &beg, &end, Qnil) | 1709 | ? get_property_and_range (PT, Qdisplay, &val, &beg, &end, Qnil) |
diff --git a/src/keymap.c b/src/keymap.c index d10c00489d1..e9898051dc7 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -498,7 +498,7 @@ access_keymap_1 (Lisp_Object map, Lisp_Object idx, | |||
| 498 | if (INTEGERP (idx) && (XFASTINT (idx) & CHAR_MODIFIER_MASK) == 0) | 498 | if (INTEGERP (idx) && (XFASTINT (idx) & CHAR_MODIFIER_MASK) == 0) |
| 499 | { | 499 | { |
| 500 | val = Faref (binding, idx); | 500 | val = Faref (binding, idx); |
| 501 | /* `nil' has a special meaning for char-tables, so | 501 | /* nil has a special meaning for char-tables, so |
| 502 | we use something else to record an explicitly | 502 | we use something else to record an explicitly |
| 503 | unbound entry. */ | 503 | unbound entry. */ |
| 504 | if (NILP (val)) | 504 | if (NILP (val)) |
| @@ -849,7 +849,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def) | |||
| 849 | if (NATNUMP (idx) && !(XFASTINT (idx) & CHAR_MODIFIER_MASK)) | 849 | if (NATNUMP (idx) && !(XFASTINT (idx) & CHAR_MODIFIER_MASK)) |
| 850 | { | 850 | { |
| 851 | Faset (elt, idx, | 851 | Faset (elt, idx, |
| 852 | /* `nil' has a special meaning for char-tables, so | 852 | /* nil has a special meaning for char-tables, so |
| 853 | we use something else to record an explicitly | 853 | we use something else to record an explicitly |
| 854 | unbound entry. */ | 854 | unbound entry. */ |
| 855 | NILP (def) ? Qt : def); | 855 | NILP (def) ? Qt : def); |
diff --git a/src/nsfns.m b/src/nsfns.m index 8a3c6ccf2b0..6a2e2ff14a4 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -749,7 +749,7 @@ ns_implicitly_set_icon_type (struct frame *f) | |||
| 749 | chain = XCDR (chain)) | 749 | chain = XCDR (chain)) |
| 750 | { | 750 | { |
| 751 | elt = XCAR (chain); | 751 | elt = XCAR (chain); |
| 752 | /* special case: 't' means go by file type */ | 752 | /* special case: t means go by file type */ |
| 753 | if (SYMBOLP (elt) && EQ (elt, Qt) && SSDATA (f->name)[0] == '/') | 753 | if (SYMBOLP (elt) && EQ (elt, Qt) && SSDATA (f->name)[0] == '/') |
| 754 | { | 754 | { |
| 755 | NSString *str | 755 | NSString *str |
| @@ -2836,13 +2836,13 @@ elements (all size values are in pixels). | |||
| 2836 | 2836 | ||
| 2837 | - `title-bar-height' is the height of the title bar of FRAME. | 2837 | - `title-bar-height' is the height of the title bar of FRAME. |
| 2838 | 2838 | ||
| 2839 | - `menu-bar-external' if `t' means the menu bar is external (not | 2839 | - `menu-bar-external' if t means the menu bar is external (not |
| 2840 | included in the inner edges of FRAME). | 2840 | included in the inner edges of FRAME). |
| 2841 | 2841 | ||
| 2842 | - `menu-bar-size' is a cons of the width and height of the menu bar of | 2842 | - `menu-bar-size' is a cons of the width and height of the menu bar of |
| 2843 | FRAME. | 2843 | FRAME. |
| 2844 | 2844 | ||
| 2845 | - `tool-bar-external' if `t' means the tool bar is external (not | 2845 | - `tool-bar-external' if t means the tool bar is external (not |
| 2846 | included in the inner edges of FRAME). | 2846 | included in the inner edges of FRAME). |
| 2847 | 2847 | ||
| 2848 | - `tool-bar-side' tells tells on which side the tool bar on FRAME is and | 2848 | - `tool-bar-side' tells tells on which side the tool bar on FRAME is and |
diff --git a/src/w32fns.c b/src/w32fns.c index b9d7bd4d75b..3a6fa624056 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -7535,13 +7535,13 @@ elements (all size values are in pixels). | |||
| 7535 | 7535 | ||
| 7536 | - `title-bar-height' is the height of the title bar of FRAME. | 7536 | - `title-bar-height' is the height of the title bar of FRAME. |
| 7537 | 7537 | ||
| 7538 | - `menu-bar-external' if `t' means the menu bar is by default external | 7538 | - `menu-bar-external' if t means the menu bar is by default external |
| 7539 | (not included in the inner size of FRAME). | 7539 | (not included in the inner size of FRAME). |
| 7540 | 7540 | ||
| 7541 | - `menu-bar-size' is a cons of the width and height of the menu bar of | 7541 | - `menu-bar-size' is a cons of the width and height of the menu bar of |
| 7542 | FRAME. | 7542 | FRAME. |
| 7543 | 7543 | ||
| 7544 | - `tool-bar-external' if `t' means the tool bar is by default external | 7544 | - `tool-bar-external' if t means the tool bar is by default external |
| 7545 | (not included in the inner size of FRAME). | 7545 | (not included in the inner size of FRAME). |
| 7546 | 7546 | ||
| 7547 | - `tool-bar-side' tells tells on which side the tool bar on FRAME is by | 7547 | - `tool-bar-side' tells tells on which side the tool bar on FRAME is by |
diff --git a/src/w32heap.c b/src/w32heap.c index ee0eb161502..47ffec1c303 100644 --- a/src/w32heap.c +++ b/src/w32heap.c | |||
| @@ -115,9 +115,9 @@ typedef struct _RTL_HEAP_PARAMETERS { | |||
| 115 | to build only the first bootstrap-emacs.exe with the large size, | 115 | to build only the first bootstrap-emacs.exe with the large size, |
| 116 | and reset that to a lower value afterwards. */ | 116 | and reset that to a lower value afterwards. */ |
| 117 | #if defined _WIN64 || defined WIDE_EMACS_INT | 117 | #if defined _WIN64 || defined WIDE_EMACS_INT |
| 118 | # define DUMPED_HEAP_SIZE (18*1024*1024) | 118 | # define DUMPED_HEAP_SIZE (19*1024*1024) |
| 119 | #else | 119 | #else |
| 120 | # define DUMPED_HEAP_SIZE (11*1024*1024) | 120 | # define DUMPED_HEAP_SIZE (12*1024*1024) |
| 121 | #endif | 121 | #endif |
| 122 | 122 | ||
| 123 | static unsigned char dumped_data[DUMPED_HEAP_SIZE]; | 123 | static unsigned char dumped_data[DUMPED_HEAP_SIZE]; |
diff --git a/src/w32term.c b/src/w32term.c index d415b13f715..089c43c8a26 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1410,7 +1410,7 @@ x_draw_glyphless_glyph_string_foreground (struct glyph_string *s) | |||
| 1410 | 1410 | ||
| 1411 | if (glyph->u.glyphless.method == GLYPHLESS_DISPLAY_ACRONYM) | 1411 | if (glyph->u.glyphless.method == GLYPHLESS_DISPLAY_ACRONYM) |
| 1412 | { | 1412 | { |
| 1413 | if (len > 1 | 1413 | if (len > 0 |
| 1414 | && CHAR_TABLE_P (Vglyphless_char_display) | 1414 | && CHAR_TABLE_P (Vglyphless_char_display) |
| 1415 | && (CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (Vglyphless_char_display)) | 1415 | && (CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (Vglyphless_char_display)) |
| 1416 | >= 1)) | 1416 | >= 1)) |
diff --git a/src/xdisp.c b/src/xdisp.c index c2f0b747c6e..87f110e667d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4899,6 +4899,20 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object, | |||
| 4899 | { | 4899 | { |
| 4900 | start_pos = *position; | 4900 | start_pos = *position; |
| 4901 | *position = display_prop_end (it, object, start_pos); | 4901 | *position = display_prop_end (it, object, start_pos); |
| 4902 | /* If the display property comes from an overlay, don't consider | ||
| 4903 | any potential stop_charpos values before the end of that | ||
| 4904 | overlay. Since display_prop_end will happily find another | ||
| 4905 | 'display' property coming from some other overlay or text | ||
| 4906 | property on buffer positions before this overlay's end, we | ||
| 4907 | need to ignore them, or else we risk displaying this | ||
| 4908 | overlay's display string/image twice. */ | ||
| 4909 | if (!NILP (overlay)) | ||
| 4910 | { | ||
| 4911 | ptrdiff_t ovendpos = OVERLAY_POSITION (OVERLAY_END (overlay)); | ||
| 4912 | |||
| 4913 | if (ovendpos > CHARPOS (*position)) | ||
| 4914 | SET_TEXT_POS (*position, ovendpos, CHAR_TO_BYTE (ovendpos)); | ||
| 4915 | } | ||
| 4902 | } | 4916 | } |
| 4903 | value = Qnil; | 4917 | value = Qnil; |
| 4904 | 4918 | ||
| @@ -29145,6 +29159,7 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y, | |||
| 29145 | } | 29159 | } |
| 29146 | 29160 | ||
| 29147 | /* Change the mouse face according to what is under X/Y. */ | 29161 | /* Change the mouse face according to what is under X/Y. */ |
| 29162 | bool mouse_face_shown = false; | ||
| 29148 | if (STRINGP (string)) | 29163 | if (STRINGP (string)) |
| 29149 | { | 29164 | { |
| 29150 | mouse_face = Fget_text_property (pos, Qmouse_face, string); | 29165 | mouse_face = Fget_text_property (pos, Qmouse_face, string); |
| @@ -29267,13 +29282,18 @@ note_mode_line_or_margin_highlight (Lisp_Object window, int x, int y, | |||
| 29267 | glyph->face_id, | 29282 | glyph->face_id, |
| 29268 | true); | 29283 | true); |
| 29269 | show_mouse_face (hlinfo, DRAW_MOUSE_FACE); | 29284 | show_mouse_face (hlinfo, DRAW_MOUSE_FACE); |
| 29285 | mouse_face_shown = true; | ||
| 29270 | 29286 | ||
| 29271 | if (NILP (pointer)) | 29287 | if (NILP (pointer)) |
| 29272 | pointer = Qhand; | 29288 | pointer = Qhand; |
| 29273 | } | 29289 | } |
| 29274 | else if ((area == ON_MODE_LINE) || (area == ON_HEADER_LINE)) | ||
| 29275 | clear_mouse_face (hlinfo); | ||
| 29276 | } | 29290 | } |
| 29291 | |||
| 29292 | /* If mouse-face doesn't need to be shown, clear any existing | ||
| 29293 | mouse-face. */ | ||
| 29294 | if ((area == ON_MODE_LINE || area == ON_HEADER_LINE) && !mouse_face_shown) | ||
| 29295 | clear_mouse_face (hlinfo); | ||
| 29296 | |||
| 29277 | #ifdef HAVE_WINDOW_SYSTEM | 29297 | #ifdef HAVE_WINDOW_SYSTEM |
| 29278 | if (FRAME_WINDOW_P (f)) | 29298 | if (FRAME_WINDOW_P (f)) |
| 29279 | define_frame_cursor1 (f, cursor, pointer); | 29299 | define_frame_cursor1 (f, cursor, pointer); |
diff --git a/src/xfns.c b/src/xfns.c index 80c214a7a56..5ac58e9c7e0 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -4320,13 +4320,13 @@ elements (all size values are in pixels). | |||
| 4320 | 4320 | ||
| 4321 | - `title-bar-height' is the height of the title bar of FRAME. | 4321 | - `title-bar-height' is the height of the title bar of FRAME. |
| 4322 | 4322 | ||
| 4323 | - `menu-bar-external' if `t' means the menu bar is external (not | 4323 | - `menu-bar-external' if t means the menu bar is external (not |
| 4324 | included in the inner edges of FRAME). | 4324 | included in the inner edges of FRAME). |
| 4325 | 4325 | ||
| 4326 | - `menu-bar-size' is a cons of the width and height of the menu bar of | 4326 | - `menu-bar-size' is a cons of the width and height of the menu bar of |
| 4327 | FRAME. | 4327 | FRAME. |
| 4328 | 4328 | ||
| 4329 | - `tool-bar-external' if `t' means the tool bar is external (not | 4329 | - `tool-bar-external' if t means the tool bar is external (not |
| 4330 | included in the inner edges of FRAME). | 4330 | included in the inner edges of FRAME). |
| 4331 | 4331 | ||
| 4332 | - `tool-bar-side' tells tells on which side the tool bar on FRAME is and | 4332 | - `tool-bar-side' tells tells on which side the tool bar on FRAME is and |
diff --git a/src/xterm.c b/src/xterm.c index 4590e34fe8b..3734fbfee92 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7847,17 +7847,18 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 7847 | 7847 | ||
| 7848 | f = any; | 7848 | f = any; |
| 7849 | 7849 | ||
| 7850 | #if ! defined (USE_GTK) | ||
| 7851 | /* If mouse-highlight is an integer, input clears out | 7850 | /* If mouse-highlight is an integer, input clears out |
| 7852 | mouse highlighting. */ | 7851 | mouse highlighting. */ |
| 7853 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) | 7852 | if (!hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight) |
| 7853 | #if ! defined (USE_GTK) | ||
| 7854 | && (f == 0 | 7854 | && (f == 0 |
| 7855 | || !EQ (f->tool_bar_window, hlinfo->mouse_face_window))) | 7855 | || !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) |
| 7856 | #endif | ||
| 7857 | ) | ||
| 7856 | { | 7858 | { |
| 7857 | clear_mouse_face (hlinfo); | 7859 | clear_mouse_face (hlinfo); |
| 7858 | hlinfo->mouse_face_hidden = true; | 7860 | hlinfo->mouse_face_hidden = true; |
| 7859 | } | 7861 | } |
| 7860 | #endif | ||
| 7861 | 7862 | ||
| 7862 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS | 7863 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS |
| 7863 | if (f == 0) | 7864 | if (f == 0) |
| @@ -12256,7 +12257,7 @@ static struct redisplay_interface x_redisplay_interface = | |||
| 12256 | x_draw_window_cursor, | 12257 | x_draw_window_cursor, |
| 12257 | x_draw_vertical_window_border, | 12258 | x_draw_vertical_window_border, |
| 12258 | x_draw_window_divider, | 12259 | x_draw_window_divider, |
| 12259 | x_shift_glyphs_for_insert, /* Never called, se comment in function. */ | 12260 | x_shift_glyphs_for_insert, /* Never called; see comment in function. */ |
| 12260 | x_show_hourglass, | 12261 | x_show_hourglass, |
| 12261 | x_hide_hourglass | 12262 | x_hide_hourglass |
| 12262 | }; | 12263 | }; |