1. 16 Aug, 2011 2 commits
    • 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.
  2. 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.
  3. 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
  4. 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.
  5. 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''
  6. 08 Aug, 2011 4 commits
  7. 07 Aug, 2011 2 commits
    • Chong Yidong's avatar
      * composite.c (autocmp_chars): Don't reset point. · 58872834
      Chong Yidong authored
      That is done by restore_point_unwind (Bug#5984).
    • Juri Linkov's avatar
      Minor doc fixes. Remove duplicate ChangeLog entries. · 75bfc667
      Juri Linkov authored
      * doc/emacs/dired.texi (Operating on Files): Rewrite according to the fact
      that `dired-do-chmod' doesn't use the `chmod' program anymore.
      * lisp/faces.el (list-faces-display): Remove extra angle bracket
      from `help-mode-map'.
      * lisp/info.el (Info-history-toc-nodes): Doc fix.
      * lisp/longlines.el (longlines-mode): Doc fix.
      * src/editfns.c (Fformat_time_string): Doc fix, add tag `usage:'
      to show the arg `TIME' instead of `TIMEVAL'.
  8. 06 Aug, 2011 2 commits
  9. 05 Aug, 2011 4 commits
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Make bidi_cache_total_alloc static. · ec7cc85b
      Eli Zaretskii authored
       src/bidi.c <bidi_cache_total_alloc>: Now static.
       (bidi_initialize): Initialize bidi_cache_total_alloc.
    • Eli Zaretskii's avatar
      Fix bug #9221 with resource allocation under word-wrap. · 35928349
      Eli Zaretskii authored
      Add diagnostic facility for monitoring memory allocated for cache shelving.
       src/xdisp.c (display_line): Release buffer allocated for shelved bidi
       cache.  (Bug#9221)
       src/bidi.c (bidi_shelve_cache, bidi_unshelve_cache): Track total
       amount allocated this far in `bidi_cache_total_alloc'.
       (bidi_unshelve_cache): Accept an additional argument JUST_FREE; if
       non-zero, only free the data buffer without restoring the cache
       contents.  All callers changed.
       src/dispextern.h (bidi_unshelve_cache): Update prototype.
       src/xdisp.c (SAVE_IT, pos_visible_p, move_it_in_display_line_to)
       (move_it_in_display_line, move_it_to)
       (move_it_vertically_backward, move_it_by_lines): Replace the call
       to xfree to an equivalent call to bidi_unshelve_cache.
       (move_it_in_display_line_to): Fix logic of returning
       MOVE_POS_MATCH_OR_ZV in the bidi case.
    • Eli Zaretskii's avatar
      Fix bug #9229 with cursor positioning on display strings. · e2e2423b
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Prefer the candidate glyph that
       came from a string character with a `cursor' property.
  10. 04 Aug, 2011 4 commits
  11. 03 Aug, 2011 4 commits
  12. 02 Aug, 2011 5 commits
  13. 01 Aug, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix bug #9212 with selective-display under bidi. · 525d5e6e
      Eli Zaretskii authored
       src/xdisp.c (forward_to_next_line_start): Accept additional argument
       BIDI_IT_PREV, and store into it the state of the bidi iterator had
       on the newline.
       (reseat_at_next_visible_line_start): Use the bidi iterator state
       returned by forward_to_next_line_start to restore the state of
       it->bidi_it after backing up to previous newline.  (Bug#9212)