- 09 Jun, 2011 2 commits
-
-
Eli Zaretskii authored
For now, ifdef'ed away. Some more testing. src/bidi.c (bidi_level_of_next_char): Allow the sentinel "position" to pass the test for valid cached positions. src/xdisp.c (init_iterator): Call bidi_init_it only of a valid buffer position was specified. Initialize paragraph_embedding to L2R. (reseat_to_string): Initialize the bidi iterator (for now ifdef'ed out). (display_string): If we need to ignore text properties of LISP_STRING, set IT->stop_charpos to IT->end_charpos. (The original value of -1 will not work with bidi.) src/dispextern.h (struct bidi_string_data): New member lstring.
-
Eli Zaretskii authored
src/xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize itb.string.s to NULL (avoids a crash in bidi_paragraph_init).
-
- 08 Jun, 2011 1 commit
-
-
Eli Zaretskii authored
src/bidi.c (bidi_paragraph_info): Delete unused struct. (bidi_cache_idx, bidi_cache_last_idx): Declare EMACS_INT. (bidi_cache_start): New variable. (bidi_cache_reset): Reset bidi_cache_idx to bidi_cache_start, not to zero. (bidi_cache_fetch_state, bidi_cache_search) (bidi_cache_find_level_change, bidi_cache_iterator_state) (bidi_cache_find, bidi_peek_at_next_level) (bidi_level_of_next_char, bidi_find_other_level_edge) (bidi_move_to_visually_next): Compare cache index with bidi_cache_start rather than with zero. (bidi_fetch_char): Accept new argument STRING; all callers changed. Support iteration over a string. (bidi_paragraph_init, bidi_resolve_explicit_1) (bidi_resolve_explicit, bidi_resolve_weak) (bidi_level_of_next_char, bidi_move_to_visually_next): Support iteration over a string. (bidi_set_sor_type, bidi_resolve_explicit_1) (bidi_resolve_explicit, bidi_type_of_next_char): ignore_bn_limit can now be zero (for strings); special values 0 and -1 were changed to -1 and -2, respectively. (bidi_char_at_pos): New function. (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak): Call it instead of FETCH_MULTIBYTE_CHAR. (bidi_move_to_visually_next): Abort if charpos or bytepos were not initialized to valid values. (bidi_init_it): Don't initialize charpos and bytepos with invalid values. src/xdisp.c (compute_display_string_pos) (compute_display_string_end): Accept additional argument STRING. (init_iterator, reseat_1): Initialize bidi_it->string.s to NULL. (reseat_to_string): Initialize bidi_it->string.s and bidi_it->string.schars. src/dispextern.h (struct bidi_string_data): New structure. (struct bidi_it): New member `string'. Make flag members be 1-bit fields, and put them last in the struct. (compute_display_string_pos, compute_display_string_end): Update prototypes.
-
- 04 Jun, 2011 1 commit
-
-
Eli Zaretskii authored
src/bidi.c (bidi_level_of_next_char): clen should be EMACS_NT, not int.
-
- 03 Jun, 2011 1 commit
-
-
Eli Zaretskii authored
src/bidi.c (bidi_fetch_char_advance): Remove unused and unimplemented function.
-
- 31 May, 2011 1 commit
-
-
Eli Zaretskii authored
-
- 28 May, 2011 3 commits
-
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Set start and stop points according to the row's direction when priming the loop that looks for the glyph on which to display cursor. (single_display_spec_intangible_p): Function deleted. (display_prop_intangible_p): Reimplement to call handle_display_spec instead of single_display_spec_intangible_p. Accept 3 additional arguments needed by handle_display_spec. This fixes incorrect cursor motion across display property with complex values: lists, `(when COND...)' forms, etc. (single_display_spec_string_p): Support property values that are lists with the argument STRING its top-level element. (display_prop_string_p): Fix the condition for processing a property that is a list to be consistent with handle_display_spec. src/keyboard.c (adjust_point_for_property): Adjust the call to display_prop_intangible_p to its new signature. src/dispextern.h (display_prop_intangible_p): Adjust prototype.
-
Eli Zaretskii authored
src/xdisp.c (set_cursor_from_row): Set start and stop points of the loop that looks for the glyph on which to display cursor according to the row's direction.
-
Eli Zaretskii authored
-
- 21 May, 2011 1 commit
-
-
Eli Zaretskii authored
as the display engine. Tested OK with display properties whose value is a list. src/dispextern.h (struct bidi_it): New member frame_window_p. (bidi_init_it, compute_display_string_pos): Update prototypes. src/bidi.c (bidi_fetch_char): Accept additional argument FRAME_WINDOW_P and pass it to compute_display_string_pos. All callers changed. (bidi_init_it): Accept additional argument FRAME_WINDOW_P and use it to initialize the frame_window_p member of struct bidi_it. src/xdisp.c (handle_display_spec): New function, refactored from the last portion of handle_display_prop. (compute_display_string_pos): Accept additional argument FRAME_WINDOW_P. Call handle_display_spec to determine whether the value of a `display' property is a "replacing spec". (handle_single_display_spec): Accept 2 additional arguments BUFPOS and FRAME_WINDOW_P. If IT is NULL, don't set up the iterator from the display property, but just return a value indicating whether the display property will replace the characters it covers. (Fcurrent_bidi_paragraph_direction): Initialize the nchars and frame_window_p members of struct bidi_it.
-
- 14 May, 2011 3 commits
-
-
Eli Zaretskii authored
src/xdisp.c (push_it): Accept second argument POSITION, where pop_it should jump to continue iteration.
-
Eli Zaretskii authored
Cursor positioning is not yet right near the overlay. src/xdisp.c (compute_display_string_pos): Non-trivial implementation. (compute_display_string_end): New function. src/dispextern.h (compute_display_string_end): Declare prototype. src/bidi.c (bidi_resolve_explicit_1): Use ZV for disp_pos. (bidi_fetch_char): Implement support for runs of characters covered by display strings.
-
Eli Zaretskii authored
src/bidi.c (bidi_fetch_char): Accept also character position corresponding to BYTEPOS. All callers changed. (bidi_cache_iterator_state, bidi_resolve_explicit_1) (bidi_resolve_explicit, bidi_resolve_weak) (bidi_level_of_next_char, bidi_move_to_visually_next): Abort if bidi_it->nchars is non-positive. (bidi_level_of_next_char): Don't try to lookup the cache for the next/previous character if nothing is cached there yet, or if we were just reseat()'ed to a new position. (bidi_paragraph_init, bidi_resolve_explicit_1) (bidi_level_of_next_char): Fix arguments in the calls to bidi_fetch_char.
-
- 10 May, 2011 5 commits
-
-
Eli Zaretskii authored
Only compiled, not tested. src/xdisp.c (compute_display_string_pos): New function. (reseat_1): Initialize bidi_it.disp_pos. src/bidi.c (bidi_copy_it): Use offsetof. (bidi_fetch_char, bidi_fetch_char_advance): New functions. (bidi_cache_search, bidi_cache_iterator_state) (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak) (bidi_level_of_next_char, bidi_move_to_visually_next): Support character positions inside a run of characters covered by a display string. (bidi_paragraph_init, bidi_resolve_explicit_1) (bidi_level_of_next_char): Call bidi_fetch_char and bidi_fetch_char_advance instead of FETCH_CHAR and FETCH_CHAR_ADVANCE. (bidi_init_it): Initialize new members. (LRE_CHAR, RLE_CHAR, PDF_CHAR, LRO_CHAR, RLO_CHAR): Remove macro definitions. (bidi_explicit_dir_char): Lookup character type in bidi_type_table, instead of using explicit *_CHAR codes. (bidi_resolve_explicit, bidi_resolve_weak): Use FETCH_MULTIBYTE_CHAR instead of FETCH_CHAR, as reordering of bidirectional text is supported only in multibyte buffers. src/dispextern.h (struct bidi_it): New members nchars and disp_pos. ch_len is now EMACS_INT. (compute_display_string_pos): Declare prototype.
-
Katsumi Yamaoka authored
gnus-art.el (gnus-article-mode): Move binding of shr-put-image-function here from gnus-article-prepare-display.
-
Katsumi Yamaoka authored
(shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it. (shr-put-image): Return scaled image. gnus-art.el (gnus-shr-put-image): New function. (gnus-article-prepare-display): Bind shr-put-image-function to it. gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.
-
Glenn Morris authored
* lisp/files.el (hack-one-local-variable-eval-safep): Consider "eval: (foo-mode)" to be safe. * doc/emacs/custom.texi (Specifying File Variables): Deprecate using mode: for minor modes. * etc/NEWS: Mention this. * lisp/doc-view.el, lisp/net/soap-client.el: Change "mode:" minor-mode file local variables to use "eval:".
-
Glenn Morris authored
* lisp/calendar/diary-lib.el (diary-list-entries-hook) (diary-mark-entries-hook, diary-nongregorian-listing-hook) (diary-nongregorian-marking-hook, diary-list-entries) (diary-include-other-diary-files, diary-mark-entries) (diary-mark-included-diary-files): Doc fixes.
-
- 09 May, 2011 15 commits
-
-
Juanma Barranquero authored
-
Juri Linkov authored
Convert to ERT.
-
Ted Zlatanov authored
(registry-insert): Use it. Fix logic here too. gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t. (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.
-
Chong Yidong authored
* progmodes/compile.el (compilation-start): Run compilation-filter-hook for the async case too. (compilation-filter-hook): Doc fix.
-
Stefan Monnier authored
-
Deniz Dogan authored
-
Deniz Dogan authored
comment.
-
Juanma Barranquero authored
* misc.el (list-dynamic-libraries--loaded-only-p): New variable. (list-dynamic-libraries--refresh): New function. (list-dynamic-libraries): New command.
-
Eli Zaretskii authored
nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler.
-
Andreas Schwab authored
-
Ted Zlatanov authored
-
Chong Yidong authored
-
Chong Yidong authored
-
Chong Yidong authored
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix the ant regexp to handle end-line and end-column info from jikes. Re-introduce maven regexp. Give the ruby-Test::Unit regexp a higher priority to avoid clobbering by gnu.
-
Chong Yidong authored
* test/automated/compile-tests.el: New file.
-
- 08 May, 2011 6 commits
-
-
Chong Yidong authored
-
Chong Yidong authored
* lisp/cus-face.el (custom-declare-face): Call custom-theme-recalc-face if the face has existing theme settings.
-
Ralph Schleicher authored
* lisp/net/browse-url.el (browse-url-of-dired-file): Allow browsing of special file names `.' and `..'.
-
Chong Yidong authored
* progmodes/perl-mode.el (perl-imenu-generic-expression): Only match variables declared via `my' or `our'.
-
Chong Yidong authored
* progmodes/grep.el (grep-mode-font-lock-keywords): Remove buffer-changing entries. (grep-filter): New function. (grep-mode): Add it to compilation-filter-hook. * progmodes/compile.el (compilation-filter-hook) (compilation-filter-start): New defvars. (compilation-filter): Call compilation-filter-hook prior to updating the process mark.
-
Stefan Monnier authored
-
- 07 May, 2011 1 commit
-
-
Eli Zaretskii authored
lisp/mail/sendmail.el (send-mail-function): On MS-Windows, default to mailclient-send-it even if window-system is nil.
-