Mercurial > emacs
view admin/FOR-RELEASE @ 107648:babfb0a156a1
Initial support for bidirectional editing.
Makefile.in (obj): Include bidi.o.
(bidi.o): New target.
makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
($(BLD)/bidi.$(O)): New target.
bidi.c: New file.
buffer.h (struct buffer): New members bidi_display_reordering
and bidi_paragraph_direction.
buffer.c (init_buffer_once): Initialize bidi_display_reordering
and bidi_paragraph_direction.
(syms_of_buffer): Declare Lisp variables bidi-display-reordering
and bidi-paragraph-direction.
(Fbuffer_swap_text): Swap the values of
bidi_display_reordering and bidi_paragraph_direction.
dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
(bidi_type_t, bidi_dir_t): New types.
(bidi_saved_info, bidi_stack, bidi_it): New structures.
(struct it): New members bidi_p, bidi_it, paragraph_embedding,
prev_stop, base_level_stop, and eol_pos.
(bidi_init_it, bidi_get_next_char_visually): New prototypes.
(IT_STACK_SIZE): Enlarge to 5.
(struct glyph_row): New member reversed_p.
<string_buffer_position>: Update prototype.
(PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
glyph_row if bidi_it.paragraph_dir == R2L.
(struct glyph): New members resolved_level and bidi_type.
dispnew.c (direct_output_forward_char): Give up if we need bidi
processing or buffer's direction is right-to-left.
(prepare_desired_row): Preserve the reversed_p flag.
(row_equal_p): Compare the reversed_p attributes as well.
xdisp.c (init_iterator): Initialize it->bidi_p. Call
bidi_init_it and set it->paragraph_embedding from the current
buffer's value of bidi_paragraph_direction.
(reseat_1): Initialize bidi_it.first_elt.
(set_iterator_to_next, next_element_from_buffer): Use the value of
paragraph_embedding to determine the paragraph direction.
(set_iterator_to_next): Under bidi reordering, call
bidi_get_next_char_visually. Call bidi_paragraph_init if the
new_paragraph flag is set in the bidi iterator.
(next_element_from_buffer): If bidi_it.first_elt is set,
initialize paragraph direction and find the first character to
display in the visual order. If reseated to a middle of a line,
prime the bidi iterator starting at the line's beginning. Handle
the situation where we overstepped stop_charpos due to
non-linearity of the bidi iteration. Likewise for when we back up
beyond the previous stop_charpos. When moving across stop_charpos,
record it in prev_stop.
(display_line): Set row->end and it->start for the next row to the
next character in logical order. Always extend reversed_p rows to
the end of line, even if they end at ZV. Copy the reversed_p flag
to the next glyph row. Keep calling set_cursor_from_row for
bidi-reordered rows even if we already have a possible candidate
for cursor position. Set row_end after all the row's glyphs have
been produced, by looping over the glyphs. Record the position
after EOL in it->eol_pos, and use it to set end_pos of the last
row produced for a continued line.
<Qright_to_left, Qleft_to_right>: New variables.
(syms_of_xdisp): Initialize and staticpro them.
(string_buffer_position_lim): New function.
(string_buffer_position): Most of code moved to
string_buffer_position_lim. Last argument and return value are
now EMACS_INT; all callers changed.
(set_cursor_from_row): Rewritten to support bidirectional text and
reversed glyph rows.
(text_outside_line_unchanged_p, try_window_id): Disable
optimizations if we are reordering bidirectional text and the
paragraph direction can be affected by the change.
(append_glyph, append_composite_glyph)
(produce_image_glyph, append_stretch_glyph): Set the
resolved_level and bidi_type members of each glyph.
(append_glyph): If the glyph row is reversed, prepend the glyph
rather than appending it.
(handle_stop_backwards): New function.
(reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
(reseat): call handle_stop_backwards to recompute prev_stop and
base_level_stop for the new position.
(handle_invisible_prop): Under bidi iteration, skip invisible text
using bidi_get_next_char_visually. If we are `reseat'ed, init the
paragraph direction. Update IT->prev_stop after skipping
invisible text.
(move_it_in_display_line_to): New variables prev_method
and prev_pos. Compare for strict equality in
BUFFER_POS_REACHED_P.
(try_cursor_movement): Examine all the candidate rows that occlude
point, to return the best match. If rows are bidi-reordered
and point moved backwards, back up to the row that is not a
continuation line, and start looking for a suitable row from
there.
term.c (append_glyph): Reverse glyphs by pre-pending them,
rather than appending, if the glyph_row's reversed_p flag is set.
Set the resolved_level and bidi_type members of each glyph.
.gdbinit (pbiditype): New command.
(pgx): Use it to display bidi level and type of the glyph.
(pitx): Display some bidi information about the iterator.
(prowlims, pmtxrows): New commands.
files.el: Make bidi-display-reordering safe variable for boolean
values.
mule.texi (International): Mention support of bidirectional editing.
(Bidirectional Editing): New section.
HELLO: Reorder Arabic and Hebrew into logical order, and
insert RLM before the opening paren, to make the display more
reasonable. Add setting for bidi-display-reordering in the local
variables section.
NEWS: Mention initial support for bidirectional editing.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 30 Mar 2010 05:13:07 -0400 |
parents | 3463009c99e0 |
children |
line wrap: on
line source
Tasks needed before the next release. * TO BE DONE SHORTLY BEFORE RELEASE ** Manuals Check cross-references between the manuals (eg from emacs to elisp) are correct. You can use something like the following in the info directory in the Emacs build tree: emacs -Q --eval "(setq Info-default-directory-list '(\".\"))" \ -f info-xref-check-all make emacs.dvi, elisp.dvi, and deal with any errors (undefined references etc) in the output. Break any overfull lines. Underfull hboxes are not serious, but it can be nice to get rid of them if a simple rephrasing or rearrangement will work. Update the master menu and detailed menu (eg the antinews version). The command texinfo-multiple-files-update can do this, but you probably want to apply the results selectively (eg the current master menu has better line-breaks than the automatic version). It includes the menu-entry name (if there is one) as well as the node name - using only the latter looks better. Also, it doesn't seem to handle nested includes, so will miss edebug.texi etc. Check for widow and orphan lines in the printed manual; make sure all the pages really look ok in the manual as formatted. Orphans/widows are cases where the first/last line of a paragraph is on its own at the end/start of a page, or where the last word in a paragraph is on its own at the start of a line. It looks better if you reword/respace things to avoid these. (AFAIK, there is no way to find these except paging through the whole manual.) This should be the very last thing you do, since any change can alter the layout. ** Check the keybindings in the refcards are correct, and add any new ones. Regenerate the pdf versions in etc/refcards/. What paper size are the English versions supposed to be on? On Debian testing, the packages texlive-lang-czechslovak and texlive-lang-polish will let you generate the cs-* and sk-* pdfs. The Makefile rules did not work for me, I had to use something like: csplain -output-format=pdf cs-refcard ** Ask maintainers of refcard translations to update them. Emacs 22 translators: LANG Translator Status cs Pavel Janík de Sven Joachim fr Eric Jacoboni pl Włodek Bzyl pt-br Rodrigo Real ru Alex Ott sk Miroslav Vaško ** Remove temporary +++/--- lines in NEWS. ** Try to reorder NEWS: most important things first, related items together. ** Consider bumping customize-changed-options-previous-release. * BUGS ** Does deleting frames run Lisp code? If so, can we get rid of that? It is a dangerous design. http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01330.html ** Why were the calls to x_fully_uncatch_errors commented out in eval.c? http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01987.html ** rms: gnus-dired.el is a mistake. Those features should not be part of Gnus. They should be moved to some other part of Emacs. rsteib: Gnus dependencies in `gnus-dired.el' (and `mailcap.el') have been minimized. I don't know what is left to do here. ** Check for modes which bind M-s that conflicts with a new global binding M-s and change key bindings where necessary. The current list of modes: 1. Gnus binds `M-s' to `gnus-summary-search-article-forward'. 2. Minibuffer binds `M-s' to `next-matching-history-element' (not useful any more since C-s can now search in the history). 3. `center-line' in Text mode was already moved to the text formatting keymap as `M-o M-s' (thus this binding is not necessary any more in `nroff-mode-map' too and can be removed now from the nroff mode because it can now use the global key binding `M-o M-s' `center-line'). 4. PCL-CVS binds `M-s' to `cvs-status', and log-edit-mode binds it to `log-edit-comment-search-forward'. Perhaps search commands on the global key binding `M-s' are useless in these modes. ** sdl.web@gmail.com, 30 Oct: ps-lpr-switches has no effect http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg02091.html Fixed by this change? 2007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> * ps-print.el: [...] (ps-do-despool): If ps-lpr-switches is not a list, force it to be one. ** In C, use EMACS_INT for variables and structure members for buffer/string positions. E.g. struct it, struct text_pos. * DOCUMENTATION ** Clean up Emacs.app references in code and documentation. ** Document new font backend ** Document XEmbed support ** Check the Emacs Tutorial. The first line of every tutorial must begin with text ending in a period (".", ASCII 0x2E) saying "Emacs Tutorial" in the respective language. This should be followed by "See end for copying conditions", likewise in the respective language. After each file name, on the same line or the following line, come the names of the people who have checked it. SECTION READERS ---------------------------------- etc/TUTORIAL rgm (but see Bug#3783) etc/TUTORIAL.bg etc/TUTORIAL.cn etc/TUTORIAL.cs etc/TUTORIAL.de Werner Lemberg etc/TUTORIAL.eo etc/TUTORIAL.es etc/TUTORIAL.fr etc/TUTORIAL.it etc/TUTORIAL.ja etc/TUTORIAL.ko etc/TUTORIAL.nl etc/TUTORIAL.pl etc/TUTORIAL.pt_BR etc/TUTORIAL.ro etc/TUTORIAL.ru etc/TUTORIAL.sk etc/TUTORIAL.sl etc/TUTORIAL.sv etc/TUTORIAL.th etc/TUTORIAL.zh ** Check the manual. abbrevs.texi -- cyd ack.texi -- rgm anti.texi arevert-xtra.texi basic.texi -- cyd buffers.texi -- cyd building.texi -- cyd calendar.texi -- rgm cal-xtra.texi -- rgm cmdargs.texi -- cyd commands.texi -- cyd custom.texi -- cyd dired.texi -- cyd dired-xtra.texi display.texi -- cyd emacs.texi -- cyd emacs-xtra.texi emerge-xtra.texi entering.texi -- cyd files.texi -- cyd fixit.texi -- cyd fortran-xtra.texi -- rgm frames.texi -- cyd glossary.texi help.texi -- cyd indent.texi -- cyd killing.texi -- cyd kmacro.texi -- cyd macos.texi -- davidswelt maintaining.texi -- cyd major.texi -- cyd mark.texi -- cyd mini.texi -- cyd misc.texi -- cyd msdog.texi -- eliz msdog-xtra.texi -- eliz mule.texi -- cyd m-x.texi -- cyd programs.texi -- cyd regs.texi -- cyd rmail.texi -- rgm screen.texi -- cyd search.texi -- cyd sending.texi -- rgm (maybe needs some brief mailclient.el details in "Mail Sending" section?) text.texi -- cyd trouble.texi -- cyd windows.texi -- rudalics xresources.texi -- cyd ** Check the Lisp manual. abbrevs.texi -- cyd advice.texi -- cyd anti.texi -- cyd back.texi backups.texi -- cyd buffers.texi -- cyd commands.texi -- cyd compile.texi -- cyd control.texi -- cyd customize.texi -- cyd debugging.texi -- cyd display.texi -- cyd edebug.texi elisp.texi errors.texi -- cyd eval.texi -- cyd files.texi -- cyd frames.texi -- cyd functions.texi -- cyd hash.texi -- cyd help.texi -- cyd hooks.texi -- cyd index.texi internals.texi -- cyd intro.texi -- cyd keymaps.texi -- cyd lists.texi -- cyd loading.texi -- cyd locals.texi -- cyd macros.texi -- cyd maps.texi -- cyd markers.texi -- cyd minibuf.texi -- cyd modes.texi -- cyd nonascii.texi -- cyd numbers.texi -- cyd objects.texi -- cyd os.texi -- cyd positions.texi -- cyd processes.texi searching.texi -- cyd sequences.texi -- cyd streams.texi -- cyd strings.texi -- cyd symbols.texi -- cyd syntax.texi -- cyd text.texi -- cyd tips.texi -- cyd variables.texi -- cyd windows.texi -- rudalics * PLANNED ADDITIONS ** pov-mode (probably not for Emacs-23: waiting for a Free POV-Ray). ** gas-mode ? Local variables: mode: outline coding: utf-8 end: