1. 25 Aug, 2011 1 commit
  2. 24 Aug, 2011 3 commits
    • Eli Zaretskii's avatar
      Fix cursor movement in R2L text within L2R paragraphs. · 8610fe8b
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Consider candidate row a win if its
       glyph represents a newline and point is on that newline.  Fixes cursor
       positioning on the newline at EOL of R2L text within L2R
       paragraph, and vice versa.
       (try_cursor_movement): Check continued rows, in addition to
       continuation rows.  Fixes unwarranted scroll when point enters a
       continued line of R2L text within an L2R paragraph, or vice versa.
       (cursor_row_p): Consider the case of point being equal to
       MATRIX_ROW_END_CHARPOS.  Prevents cursor being stuck when moving
       from the end of a short line to the beginning of a continued line
       of R2L text within L2R paragraph.
       (RECORD_MAX_MIN_POS): For max_pos, use IT_CHARPOS even for
       composed characters.
    • Eli Zaretskii's avatar
      Fix current-bidi-paragraph-direction and its doc. · 5980d4c6
      Eli Zaretskii authored
       src/xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte
       buffers, return left-to-right.
       doc/lispref/display.texi (Bidirectional Display): Document return value in
       buffers that are not bidi-reordered for display, and in unibyte
    • Eli Zaretskii's avatar
      Minor changes in bidi.c. · f67cdd7f
      Eli Zaretskii authored
       src/bidi.c (bidi_check_type): Use xassert.
       (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p
  3. 23 Aug, 2011 7 commits
  4. 22 Aug, 2011 2 commits
  5. 20 Aug, 2011 2 commits
  6. 19 Aug, 2011 2 commits
  7. 18 Aug, 2011 3 commits
  8. 17 Aug, 2011 2 commits
  9. 16 Aug, 2011 3 commits
    • Ken Brown's avatar
      * src/gmalloc.c: Expand comment. · db76dd85
      Ken Brown authored
    • Eli Zaretskii's avatar
      Fix cursor positioning at end of buffer under bidi display. · b215eee5
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Don't accept a previous candidate
       if it fails the cursor_row_p test.  Fixes cursor positioning at ZV.
    • Ken Brown's avatar
      Fix memory allocation problems in Cygwin build (Bug#9273). · a4579d33
      Ken Brown authored
      * src/gmalloc.c [CYGWIN] (bss_sbrk_heapbase, bss_sbrk_heapinfo): New
      (malloc_initialize_1) [CYGWIN]: Prepare for reinitializing the
      dumped emacs.
      (_free_internal_nolock) [CYGWIN]: Ignore requests to free storage
      in the static heap.
      [CYGWIN] (special_realloc): New function.
      (_realloc_internal_nolock) [CYGWIN]: Use the new function on
      requests to realloc storage in the static heap.
      * src/unexcw.c ( __malloc_initialized): Declare external variable.
      (fixup_executable): Force the dumped emacs to reinitialize malloc.
  10. 15 Aug, 2011 4 commits
    • Paul Eggert's avatar
    • Eli Zaretskii's avatar
      Use uniprop tables instead of biditype.h and bidimirror.h. · 474a8465
      Eli Zaretskii authored
       src/bidi.c (bidi_initialize): Use uniprop_table instead of including
       biditype.h and bidimirror.h.
       src/biditype.h: File removed.
       src/bidimirror.h: File removed.
       src/deps.mk (bidi.o): Remove biditype.h and
       src/makefile.w32-in ($(BLD)/bidi.$(O)): Remove biditype.h and
       src/dispextern.h: Fix a typo in the comment to bidi_type_t.
       src/chartab.c: Improve commentary for the uniprop_table API.
       admin/unidata/bidimirror.awk: File removed.
       admin/unidata/biditype.awk: File removed.
       admin/unidata/makefile.w32-in (all): Remove src/biditype.h and
       (../../src/biditype.h, ../../src/bidimirror.h): Deleted.
       admin/unidata/Makefile.in (all): Remove src/biditype.h and
       (../../src/biditype.h, ../../src/bidimirror.h): Deleted.
    • Eli Zaretskii's avatar
      Support RLE/RLO/LRE/LRO for determining paragraph direction. · 32413314
      Eli Zaretskii authored
       src/bidi.c (bidi_paragraph_init): Support zero value of
    • Eli Zaretskii's avatar
      Another part of fixing bug #9296 with vertical cursor motion. · 9fd8be00
      Eli Zaretskii authored
       src/xdisp.c (move_it_in_display_line_to): Don't reset pixel
       coordinates of the iterator when restoring from ppos_it.
  11. 14 Aug, 2011 6 commits
    • Kenichi Handa's avatar
      Avoid crash with invalid default-process-coding-system. · 5cf2b69b
      Kenichi Handa authored
      * src/process.c (create_process): Call setup_process_coding_systems
      after the pid of the process is set to -1.
    • Eli Zaretskii's avatar
      Fix bug #9296 with vertical cursor motion on images. · daf17d00
      Eli Zaretskii authored
       src/xdisp.c (move_it_in_display_line_to): Don't invoke
       IT_RESET_X_ASCENT_DESCENT when iterator position was restored from
       ppos_it.  Fixes vertical cursor motion when line beginning is
       covered by an image.
    • Jan Djärv's avatar
      Fix that executing applescript may hang emacs uninterruptedly. · 08e3161a
      Jan Djärv authored
      * nsfns.m (as_script, as_result, as_status): New static variables.
      (ns_run_ascript): New function.
      (Fns_do_applescript): Set variables as_*. Make an NSApplicationDefined
      event with data2 set to NSAPP_DATA2_RUNASSCRIPT, post it and then start
      the event loop.  Get status from as_status.
      * nsterm.h (ns_run_ascript): Declare.
      * nsterm.m (sendEvent): If event is NSApplicationDefined and
      data2 is NSAPP_DATA2_RUNASSCRIPT, call ns_run_ascript and then exit
      the event loop (Bug#7276).
    • Andreas Schwab's avatar
      Follow variable naming convention · a3720aa2
      Andreas Schwab authored
      * src/gnutls.c (QCgnutls_bootprop_priority)
      (QCgnutls_bootprop_trustfiles, QCgnutls_bootprop_keylist)
      (QCgnutls_bootprop_crlfiles, QCgnutls_bootprop_callbacks)
      (QCgnutls_bootprop_loglevel, QCgnutls_bootprop_hostname)
      (QCgnutls_bootprop_min_prime_bits, QCgnutls_bootprop_verify_flags)
      (QCgnutls_bootprop_callbacks_verify): Rename from
      Qgnutls_bootprop_..., all uses changed.
      * src/xfaces.c (QCignore_defface): Rename from Qignore_defface, all
      uses changed.
    • Paul Eggert's avatar
      * xfaces.c (Qframe_set_background_mode): Now static. · 19d5c50c
      Paul Eggert authored
      * dispextern.h (Qframe_set_background_mode): Remove decl.
    • Paul Eggert's avatar
  12. 13 Aug, 2011 1 commit
    • Jan Djärv's avatar
      Fix network-interface-list|info on newer BSD derived OS:es. · 377538cb
      Jan Djärv authored
      * configure.in: Add header check: sys/socket.h,
      ifaddrs.h, net/if_dl.h.  Check for getifaddrs and freeifaddrs.
      Check for sa_len in struct ifreq.ifr_addr (Bug#8477).
      * src/process.c: Include ifaddrs.h and net/if_dl.h if available (Bug#8477).
      (Fnetwork_interface_list): Allocate in increments of bytes instead
      of sizeof (struct ifreq).  Iterate over ifconf.ifc_req by counting
      bytes (Bug#8477).  Count bytes correctly when ifr_addr is a struct
      (struct ifflag_def): notrailers is smart on OSX.
      (Fnetwork_interface_info): Handle case when ifr_flags is negative.
      Get hardware address with getifaddrs if available.
  13. 12 Aug, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix bug #9284 with line/wrap-prefix property on display strings. · 08fff70c
      Eli Zaretskii authored
       src/xdisp.c (iterate_out_of_display_property): xassert that
       IT->position is set to within IT->object's boundaries.  Break from
       the loop as soon as EOB is reached; avoids infloops in redisplay
       when IT->position is set up wrongly due to some bug.  Set
       IT->current to match the bidi iterator unconditionally.
       (push_display_prop): Allow GET_FROM_STRING as IT->method on
       entry; avoids crashes when line/wrap-prefix is set on a display
       string.  Force push_it to save on the stack the current
       buffer/string position, to be restored by pop_it.  Fix flags in
       the iterator structure wrt the object coming from a display
       property, as `line-prefix' and `wrap-prefix' are not ``replacing''
  14. 08 Aug, 2011 3 commits