1. 04 Jul, 2012 8 commits
  2. 03 Jul, 2012 10 commits
    • Paul Eggert's avatar
      * fileio.c: Improve handling of file time marker. (Bug#11852) · dbeed9a6
      Paul Eggert authored
      (special_mtime): New function.
      (Finsert_file_contents, Fverify_visited_file_modtime):
      Use it to set special mtime values consistently.
      dbeed9a6
    • Andreas Schwab's avatar
      * fileio.c (Finsert_file_contents): Properly handle st_mtime · 636334d6
      Andreas Schwab authored
      marker for non-existing file.
      636334d6
    • Glenn Morris's avatar
      * src/lisp.h (Fread_file_name): Restore EXFUN · e2017fe2
      Glenn Morris authored
      (it's not a normal DEFUN and did not make it into globals.h).
      e2017fe2
    • Tom Tromey's avatar
      Auto-generate EXFUN using make-docfile · 404dbd37
      Tom Tromey authored
      src
      	* window.c (Fset_window_margins, Fset_window_fringes)
      	(Fset_window_scroll_bars, Fset_window_vscroll): No longer static.
      	* textprop.c (Fprevious_property_change): No longer static.
      	* syntax.c (Fsyntax_table_p): No longer static.
      	* process.c (Fget_process, Fprocess_datagram_address): No longer
      	static.
      	* keymap.c (Flookup_key, Fcopy_keymap): No longer static.
      	* keyboard.c (Fcommand_execute): No longer static.
      	Remove EXFUN.
      	* insdel.c (Fcombine_after_change_execute): No longer static.
      	* image.c (Finit_image_library): No longer static.
      	* fileio.c (Fmake_symbolic_link): No longer static.
      	* eval.c (Ffetch_bytecode): No longer static.
      	* editfns.c (Fuser_full_name): No longer static.
      	* doc.c: (Fdocumentation_property, Fsnarf_documentation): No
      	longer static.
      	* buffer.c (Fset_buffer_major_mode, Fdelete_overlay): No longer
      	static.
      	* dired.c (Ffile_attributes): No longer static.
      	* composite.c (Fcomposition_get_gstring): No longer static.
      	* callproc.c (Fgetenv_internal): No longer static.
      
      	* ccl.h: Remove EXFUNs.
      	* buffer.h: Remove EXFUNs.
      	* dispextern.h: Remove EXFUNs.
      	* intervals.h: Remove EXFUNs.
      	* fontset.h: Remove EXFUN.
      	* font.h: Remove EXFUNs.
      	* dosfns.c (system_process_attributes): Remove EXFUN.
      	* keymap.h: Remove EXFUNs.
      	* lisp.h: Remove EXFUNs.
      	* w32term.h: Remove EXFUNs.
      	* window.h: Remove EXFUNs.
      	* xsettings.h: Remove EXFUN.
      	* xterm.h: Remove EXFUN.
      
      lib-src
      	* make-docfile.c (enum global_type) <FUNCTION>: New constant.
      	(struct global) <value>: New field.
      	(add_global): Add 'value' argument.
      	(compare_globals): Sort functions at the end.
      	(close_emacs_globals): New function.
      	(write_globals): Handle functions.
      	(scan_c_file): Call add_global for DEFUN.
      404dbd37
    • Glenn Morris's avatar
      Speed up generate-new-buffer-name for invisible buffers (bug#1229) · 8e4fd1e1
      Glenn Morris authored
      * src/buffer.c (Fgenerate_new_buffer_name):
      Speed up finding a new buffer for invisible buffers.
      
      * src/lisp.h (Frandom): Make it visible to C.
      8e4fd1e1
    • Dmitry Antipov's avatar
      Fix block vector allocation code to allow VECTOR_BLOCK_SIZE · ca95b3eb
      Dmitry Antipov authored
      values which aren't power of 2.
      * alloc.c (VECTOR_FREE_LIST_SIZE_MASK): New macro.  Verify
      it's value and the value of VECTOR_BLOCK_SIZE.  Adjust users
      accordingly.
      ca95b3eb
    • Stefan Monnier's avatar
      * src/alloc.c (mark_object): Revert part of last patch to use `switch'. · 7555c33f
      Stefan Monnier authored
      * src/lisp.h (Lisp_Misc, Lisp_Fwd): Move around to group better.
      7555c33f
    • Dmitry Antipov's avatar
      * alloc.c (allocate_vector_block): Remove redundant · d12e8f5a
      Dmitry Antipov authored
      calls to mallopt if DOUG_LEA_MALLOC is defined.
      (allocate_vectorlike): If DOUG_LEA_MALLOC is defined,
      avoid calls to mallopt if zero_vector is returned.
      d12e8f5a
    • Dmitry Antipov's avatar
      * alloc.c (check_string_bytes): If GC_CHECK_STRING_BYTES · 296094c3
      Dmitry Antipov authored
      is enabled, avoid dereferencing NULL current_sblock if
      running undumped.
      296094c3
    • Dmitry Antipov's avatar
      Cleanup basic buffer management. · 36429c89
      Dmitry Antipov authored
      * buffer.h (struct buffer): Change layout to use generic vector
      marking code.  Fix some comments.  Change type of 'clip_changed'
      to bitfield.  Remove unused #ifndef old.
      (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): Remove.
      (GET_OVERLAYS_AT): Fix indentation.
      (for_each_per_buffer_object_at): New macro.
      * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
      (Fbuffer_local_variables): Use it.
      (init_buffer_once, syms_of_buffer): Remove unused #ifndef old.
      * alloc.c (allocate_buffer): Adjust to match new layout of
      struct buffer.  Fix comment.
      (mark_overlay): New function.
      (mark_buffer): Use it.  Use mark_vectorlike to mark normal
      Lisp area of struct buffer.
      (mark_object): Use it.  Adjust marking of misc objects
      and related comments.
      36429c89
  3. 02 Jul, 2012 3 commits
  4. 30 Jun, 2012 6 commits
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Make --no-site-lisp work for --enable-locallisppath elements · ca26824c
      Glenn Morris authored
      without "site-lisp" in the name.
      Ref http://debbugs.gnu.org/10208#25, point iii).
      
      * configure.in (standardlisppath): New output variable.
      (lisppath): Use standardlisppath.
      * Makefile.in (standardlisppath): New, set by configure.
      (epaths-force): Use standardlisppath and locallisppath rather than lisppath.
      
      * src/epaths.in (PATH_SITELOADSEARCH): New.
      * src/lread.c (init_lread): Use PATH_SITELOADSEARCH.
      
      * nt/paths.h (PATH_SITELOADSEARCH): New.
      
      Fixes: debbugs:11658
      ca26824c
    • Eli Zaretskii's avatar
      Fix last entry in src/ChangeLog. · 9ff8f76b
      Eli Zaretskii authored
      9ff8f76b
    • Eli Zaretskii's avatar
      Adapt the MS-DOS build to the latest changes. · 0d23c240
      Eli Zaretskii authored
       msdos/mainmake.v2 (bootstrap-clean): Do a maintainer-clean in lib, not
       bootstrap-clean (which doesn't exist).
       msdos/inttypes.h (PRIuMAX) [__DJGPP__ < 2.04]: Define to "llu".
       msdos/sedleim.inp (MKDIR_P): Edit to DOS "md" command.
       msdos/sed1v2.inp: (LIB_CLOCK_GETTIME): Edit to empty.
       Remove lines that invoke PAXCTL.
       (clean): Fix recipe not to run Unixy shell commands.
       msdos/sed2v2.inp (GETTIMEOFDAY_TIMEZONE): Edit to 'struct timezone'.
       (HAVE_STRNCASECMP): Edit to 1.
       msdos/sed3v2.inp (LIB_CLOCK_GETTIME): Edit to empty.
       (C_SWITCH_SYSTEM): Add "-I../msdos".
       msdos/sedlibmk.inp (GNULIB_GETTIMEOFDAY, GNULIB_PSELECT)
       (GNULIB_SELECT, HAVE_STRUCT_TIMEVAL, HAVE_SYS_SELECT_H)
       (HAVE_SYS_TIME_H, NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H)
       (NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H, NEXT_SYS_SELECT_H)
       (NEXT_SYS_TIME_H, REPLACE_GETTIMEOFDAY, REPLACE_PSELECT)
       (REPLACE_STRUCT_TIMEVAL): Edit to appropriate values.
       (BUILT_SOURCES): Edit out sys/select.h and sys/time.h.
       (mostlyclean-local, distclean-generic): Fix recipe not to run
       Unixy shell commands.
      
       src/sysselect.h [DOS_NT]: Don't include sys/select.h.
       src/s/ms-w32.h (select, pselect): Don't define here, they are
       defined in sysselect.h
       src/sysselect.h (pselect) [!HAVE_PSELECT]: Redirect to sys_select.
       src/sysdep.c: Don't include dos.h and dosfns.h.
       src/process.c (sys_select):
       src/msdos.c (sys_select): Accept one more argument and ignore it.
       src/msdos.c (event_timestamp, sys_select): Use gnulib's gettime;
       adapt data types and code to that.
       src/dosfns.c:
       src/msdos.c (gettime, settime): Define away the prototypes in dos.h,
       which clashes with the gnulib function of the same name.
      
       lisp/emacs-lisp/timer.el (timer-until): Subtract results of
       float-time, instead of taking float-time of the result of
       time-subtract, since float-time signals an error for negative time
       arguments.
      0d23c240
    • Andreas Schwab's avatar
      * font.c (font_style_to_value, font_style_symbolic) · c5e4379c
      Andreas Schwab authored
      (font_prop_validate_style): Add type checks for values in
      font_style_table.
      c5e4379c
    • Andreas Schwab's avatar
      * lisp.h (CHECK_RANGED_INTEGER): Make value to check the first · af5a5a98
      Andreas Schwab authored
      argument.
      * character.c, charset.c, menu.c, process.c, window.c: Adjust all
      uses.
      af5a5a98
  5. 29 Jun, 2012 5 commits
  6. 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