1. 28 Aug, 2011 2 commits
    • Paul Eggert's avatar
      * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int, · 9250f758
      Paul Eggert authored
      to avoid potential buffer overflow issues on typical 64-bit hosts.
      (whatlen_max): New static var.
      (main): Avoid buffer overflow if subsidiary command length is
      greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
      result might not fit in 'int'.
    • Paul Eggert's avatar
      Integer and memory overflow issues. · 17107bb6
      Paul Eggert authored
      * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to
      avoid potential buffer overflow issues on typical 64-bit hosts.
      Return void *, not long *.
      (get_current_dir_name): Report a failure, instead of looping
      forever, if buffer size calculation overflows.  Treat malloc
      failures like realloc failures, as that has better behavior and is
      more consistent.  Do not check whether xmalloc returns NULL, as
      that's not possible.
      (message): Do not arbitrarily truncate message to 2048 bytes when
      sending it to stderr; use vfprintf instead.
      (get_server_config, set_local_socket)
      (start_daemon_and_retry_set_socket): Do not alloca
      arbitrarily-large buffers; that's not safe.
      (get_server_config, set_local_socket): Do not use sprintf when its
      result might not fit in 'int'.
      (set_local_socket): Do not assume uid fits in 'int'.
  2. 26 Aug, 2011 10 commits
  3. 25 Aug, 2011 17 commits
  4. 24 Aug, 2011 11 commits
    • Paul Eggert's avatar
      Merge from trunk. · 011ba6ea
      Paul Eggert authored
    • Juri Linkov's avatar
      More uses of `error' and `warning' faces. · f22f4808
      Juri Linkov authored
      * lisp/battery.el (battery-update): Use the face `error' instead of
      * lisp/ibuffer.el (ibuffer-marked-face): Change default face from
      `font-lock-warning-face' to `warning'.
      (ibuffer-deletion-face): Change default face from
      `font-lock-type-face' to `error'.
      * lisp/proced.el (proced-marked): Inherit from `error' instead of
      Fixes: debbugs:6117
    • Juri Linkov's avatar
      * lisp/faces.el (success): Change face color from "Green3" to · 6a93965e
      Juri Linkov authored
      "ForestGreen" on light background.
      Fixes: debbugs:9353
    • Chong Yidong's avatar
      Rename quit-restore-window into quit-window. · 1ed43b09
      Chong Yidong authored
      * lisp/window.el (quit-window): Renamed from quit-restore-window.  Use
      same arglist as old quit-window.
      (frame-auto-delete): Doc fix.
      * lisp/view.el (view-mode-exit): Use quit-window.
    • 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
    • Juri Linkov's avatar
      "C-s M-p" brings the tip of the search ring. · 11dcdbb2
      Juri Linkov authored
      * lisp/isearch.el (isearch-ring-adjust1): Start visiting previous
      search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
      (isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
      for empty search string (when the last search string is reused
      automatically) to adjust the isearch ring to the last element and
      prepare the correct index for further M-p commands.
      Fixes: debbugs:9185
    • 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
    • Kenichi Handa's avatar
      merge trunk · fd294c69
      Kenichi Handa authored
    • Kenichi Handa's avatar
      international/ucs-normalize.el: If decomposition property of CHAR is the... · de62b4df
      Kenichi Handa authored
      international/ucs-normalize.el: If decomposition property of CHAR is the default one (i.e. a list of CHAR itself), treat it as nil.
    • Steve Chapel's avatar
      * etc/refcards/refcard.tex: Add a few more commands. (tiny change) · c1ec8ad0
      Steve Chapel authored
      Fixes: debbugs:9343