Mercurial > emacs
annotate BUGS @ 111116:b52e94e0cf53
Implement mouse highlight for bidi-reordered lines.
xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
(mouse_face_from_string_pos): New function, replaces
fast_find_string_pos.
(note_mouse_highlight): Call it instead of fast_find_string_pos.
(note_mode_line_or_margin_highlight): Support bidi-reordered
strings and R2L glyph rows. Fix comments.
(note_mouse_highlight): When bidi reordering is turned on in a
buffer, call next-single-property-change and
previous-single-property-change with last argument nil. Clear
mouse highlight when mouse pointer is in a R2L row on the stretch
glyph that stands for no text beyond the line end.
(row_containing_pos): Don't return too early when CHARPOS is in a
bidi-reordered continued line. Return immediately when the first
hit is found in a line that is not continued, or when an exact
match for CHARPOS is found.
(rows_from_pos_range): New function.
(mouse_face_from_buffer_pos): Use it instead of calling
row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
function to support mouse highlight in bidi-reordered lines and
not to assume that START_CHARPOS is always in mouse_face_beg_row.
If necessary, swap mouse_face_beg_row and mouse_face_end_row so
that the former is always above the latter or identical to it.
(show_mouse_face): Support drawing highlighted R2L lines.
(coords_in_mouse_face_p): New function, bidi-aware.
(cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
Call it instead of comparing with mouse-face members of dpyinfo.
(note_mode_line_or_margin_highlight): Fix confusingly swapped
usage of hpos and vpos.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 23 Oct 2010 17:30:45 +0200 |
parents | ac52af4a044c |
children |
rev | line source |
---|---|
110980
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
1 If you think you may have found a bug in GNU Emacs, please read the |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
2 Bugs section of the Emacs manual for advice on |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
3 |
25856 | 4 (1) how to tell when to report a bug, and |
110980
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
5 (2) how to write a useful bug report and what information it needs to have. |
25856 | 6 |
110980
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
7 You can read the read the Bugs section of the manual from inside Emacs. |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
8 Start Emacs, do C-h i to enter Info, then m Emacs RET to get to the |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
9 Emacs manual, then m Bugs RET to get to the section on bugs. |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
10 Or you can use the standalone Info program in a like manner. |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
11 (Standalone Info is part of the Texinfo distribution, not part of the |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
12 Emacs distribution.) |
25856 | 13 |
110980
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
14 Printed copies of the Emacs manual can be purchased from the Free |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
15 Software Foundation's online store at <http://shop.fsf.org/>. |
25856 | 16 |
110980
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
17 If necessary, you can read the manual without an info program: |
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
18 |
25856 | 19 cat info/emacs* | more "+/^File: emacs, Node: Bugs," |
20 | |
110980
ac52af4a044c
* BUGS, INSTALL.BZR: Updates.
Glenn Morris <rgm@gnu.org>
parents:
103152
diff
changeset
|
21 |
103152
fb8bf24d2eb9
* BUGS: Use new binding of view-emacs-problems.
Chong Yidong <cyd@stupidchicken.com>
parents:
55212
diff
changeset
|
22 Please first check the file etc/PROBLEMS (e.g. with C-h C-p in Emacs) to |
34822 | 23 make sure it isn't a known issue. |