Mercurial > emacs
view admin/notes/newfile @ 107595:69c12db7031d
Retrospective commit from 2009-10-05.
Continue working on paragraph base direction.
Support per-buffer default paragraph direction.
buffer.h (struct buffer): New member paragraph_direction.
buffer.c (init_buffer_once): Initialize it.
(syms_of_buffer): Declare Lisp variables
default-paragraph-direction and paragraph-direction.
dispextern.h (struct it): New member paragraph_embedding.
xdisp.c (init_iterator): Initialize it from the buffer's value
of paragraph-direction.
<Qright_to_left, Qleft_to_right>: New variables.
(syms_of_xdisp): Initialize and staticpro them.
(set_iterator_to_next, next_element_from_buffer): Use the value of
paragraph_embedding to determine the paragraph direction.
bidi.c (bidi_line_init): Fix second argument to
bidi_set_sor_type.
(bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR.
(bidi_get_next_char_visually): Record the last character of the
separator in separator_limit, not the character after that.
(bidi_find_paragraph_start): Accept character and byte positions
instead of the whole iterator stricture. All callers changed.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 01 Jan 2010 06:22:52 -0500 |
parents | dc1af63f6b73 |
children | 43f8ac6763d9 |
line wrap: on
line source
CHECKLIST FOR ADDING A NEW FILE TO EMACS -*- outline -*- ** Make sure the author(s) have a copyright assignment/disclaimer. ** Make sure the file matches the standard Emacs template (header format, copyright and license notice, etc). ** Make sure the filename does not cause the DOS port any problems (8+3). Run the `doschk' program like this: find /path/to/emacs -print | doschk and examine the output for DOS-related problems. The sections of output under the headings "The following files are not valid DOS file names:" and "The following resolve to the same DOS file names:" should not include any files that end up in the release tarball. ** Make the ChangeLog entry in the name of the author(s), not your own name. ** If appropriate, add an entry to lisp/Makefile.in ELCFILES. ** If appropriate, check that the file compiles OK and that Emacs builds fine with it. Address any compilation warnings. ** If a major contribution, consider adding an entry to the Acknowledgments in doc/emacs/emacs.texi and ack.texi. ** If appropriate, add a short NEWS entry. ** If appropriate, update make-dist (not needed with "standard" file names, eg *.el).