1. 29 Jun, 2012 4 commits
    • Eli Zaretskii's avatar
      Fix the current directory of the Emacs process on MS-Windows. · 8d38f461
      Eli Zaretskii authored
       src/w32.c (getwd): Adjust commentary about startup_dir.
       (init_environment): Always call sys_access, even in non-MSVC
       builds.  Don't chdir to the directory of the Emacs executable.
       This undoes code from 1997 which was justified by the need to
       "avoid conflicts when removing and renaming directories".  But its
       downside was that every relative file name was being interpreted
       relative to the directory of the Emacs executable, which can never
       be TRT.  In particular, it broke sys_access when called with
       relative file names.
       (sys_access): Map GetLastError to errno.
      8d38f461
    • Dmitry Antipov's avatar
      * lisp/fringe.el (fringe-mode): Doc fix. · 2af3565e
      Dmitry Antipov authored
      * src/window.h (struct window): Change type of 'fringes_outside_margins'
      to bitfield.  Fix comment.  Adjust users accordingly.
      (struct window): Change type of 'window_end_bytepos' to ptrdiff_t.
      Adjust comment.
      * src/xdisp.c (try_window_id): Change type of 'first_vpos' and 'vpos'
      to ptrdiff_t.
      2af3565e
    • Dmitry Antipov's avatar
      3e984ee8
    • Dmitry Antipov's avatar
      * nsfns.m: Fix GLYPH_DEBUG usage assuming that it may be · ef884f23
      Dmitry Antipov authored
      undefined.  Convert from xassert to eassert.
      * nsmenu.m: Convert from xassert to eassert.
      * nsterm.m: Likewise.
      ef884f23
  2. 28 Jun, 2012 8 commits
    • Stefan Monnier's avatar
      * src/editfns.c (region_limit): Clip to narrowing. · 7d7e0027
      Stefan Monnier authored
      Fixes: debbugs:11770
      7d7e0027
    • Paul Eggert's avatar
      Avoid integer overflow on scroll-left and scroll-right. · aa754e6a
      Paul Eggert authored
      * window.c (HSCROLL_MAX): New macro.
      (Fscroll_left, Fscroll_right): Avoid undefined behavior on integer
      overflow when requested scroll falls outside ptrdiff_t range.
      aa754e6a
    • Dmitry Antipov's avatar
      * window.h (struct window): Change type of 'hscroll', · 80b00b08
      Dmitry Antipov authored
      'min_hscroll' and 'last_point' from Lisp_Object to ptrdiff_t,
      'last_modified' and 'last_overlay_modified' to EMACS_INT.
      Adjust users accordingly.
      * xdisp.c (try_cursor_movement): Replace type check with eassert.
      * window.c (Fscroll_left, Fscroll_right): Change type of 'hscroll'
      from EMACS_INT to ptrdiff_t.
      (make_window): Omit redundant initialization.
      80b00b08
    • Juanma Barranquero's avatar
    • Dmitry Antipov's avatar
      * window.h (struct window): Change type of 'use_time' and · 45942c7d
      Dmitry Antipov authored
      'sequence_number' from Lisp_Object to int.
      * frame.c (make_frame): Adjust users accordingly.
      * print.c (print_object): Likewise.
      * window.c (select_window, Fwindow_use_time, make_parent_window)
      (make_window): Likewise.
      45942c7d
    • Dmitry Antipov's avatar
      * configure.in: Add glyphs category to --enable-checking option. · e509cfa6
      Dmitry Antipov authored
      (GLYPH_DEBUG): Define if glyphs debugging is enabled.
      * src/dispextern.h (GLYPH_DEBUG): Now defined in config.h if
      enabled with --enable-checking=[all,glyphs] configure option.
      Fix GLYPH_DEBUG usage assuming that it may be undefined,
      adjust comments accordingly.
      * src/dispnew.c: Fix GLYPH_DEBUG usage assuming that it may be
      undefined, adjust comments accordingly.
      * src/image.c: Likewise.
      * src/scroll.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32term.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xterm.c: Likewise.
      e509cfa6
    • Dmitry Antipov's avatar
      Generalize run-time debugging checks. · a54e2c05
      Dmitry Antipov authored
      * configure.in (ENABLE_CHECKING): Update comment.
      * src/dispextern.h (XASSERTS): Remove.
      * src/fontset.c (xassert): Remove.
      Convert from xassert to eassert.
      * src/alloc.c: Convert from xassert to eassert.
      * src/bidi.c: Likewise.
      * src/dispnew.c: Likewise.
      * src/fns.c: Likewise.
      * src/fringe.c: Likewise.
      * src/ftfont.c: Likewise.
      * src/gtkutil.c: Likewise.
      * src/image.c: Likewise.
      * src/keyboard.c: Likewise.
      * src/menu.c: Likewise.
      * src/process.c: Likewise.
      * src/scroll.c: Likewise.
      * src/sound.c: Likewise.
      * src/term.c: Likewise.
      * src/w32console.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32term.c: Likewise.
      * src/window.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xselect.c: Likewise.
      * src/xterm.c: Likewise.
      a54e2c05
    • Andreas Schwab's avatar
      * gnutls.c (emacs_gnutls_handshake): Revert last change. Add QUIT · 57570cd3
      Andreas Schwab authored
      to make the loop interruptible.
      57570cd3
  3. 27 Jun, 2012 10 commits
  4. 26 Jun, 2012 8 commits
  5. 25 Jun, 2012 7 commits
  6. 24 Jun, 2012 3 commits