1. 15 Aug, 2011 2 commits
  2. 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.
      5cf2b69b
    • 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.
      daf17d00
    • 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.
      (NSAPP_DATA2_RUNASSCRIPT): Define.
      
      * 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).
      08e3161a
    • 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_verify_hostname_error)
      (QCgnutls_bootprop_callbacks_verify): Rename from
      Qgnutls_bootprop_..., all uses changed.
      
      * src/xfaces.c (QCignore_defface): Rename from Qignore_defface, all
      uses changed.
      a3720aa2
    • Paul Eggert's avatar
      * xfaces.c (Qframe_set_background_mode): Now static. · 19d5c50c
      Paul Eggert authored
      * dispextern.h (Qframe_set_background_mode): Remove decl.
      19d5c50c
    • Paul Eggert's avatar
  3. 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
      sockaddr.
      (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.
      377538cb
  4. 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''
       properties.
      08fff70c
  5. 08 Aug, 2011 4 commits
  6. 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).
      58872834
    • 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'.
      75bfc667
  7. 06 Aug, 2011 2 commits
  8. 05 Aug, 2011 4 commits
    • Eli Zaretskii's avatar
      412b6358
    • 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.
      ec7cc85b
    • 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.
      35928349
    • 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.
      e2e2423b
  9. 04 Aug, 2011 4 commits
  10. 03 Aug, 2011 4 commits
  11. 02 Aug, 2011 5 commits
  12. 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)
      525d5e6e
  13. 30 Jul, 2011 1 commit
  14. 29 Jul, 2011 1 commit
  15. 28 Jul, 2011 2 commits
    • Andreas Schwab's avatar
      Implement ## reader macro · 9a79b20c
      Andreas Schwab authored
      * src/lread.c (read1): Read ## as empty symbol.
      
      * src/print.c (print_object): Print empty symbol as ##.
      9a79b20c
    • Alp Aker's avatar
      Fix for raise display property on NS (Bug#8913). · d55e9c53
      Alp Aker authored
      * src/nsfont.m (nsfont_open): Remove assignment to voffset and
      unnecessary vars hshink, expand, hd, full_height, min_height.
      (nsfont_draw): Use s->ybase as baseline for glyph drawing.
      
      * src/nsterm.h (nsfont_info): Remove voffset field.
      d55e9c53