1. 04 Jul, 2012 19 commits
    • Paul Eggert's avatar
      * alloc.c (PSEUDOVECTOR_NBYTES): Remove stray ';' · 356e7178
      Paul Eggert authored
      that causes compilation to fail on pre-C99 compilers.
      356e7178
    • Juanma Barranquero's avatar
      Remove obsolete configuration options (Windows port). · 95f61aa2
      Juanma Barranquero authored
      * admin/CPP-DEFINES (LISP_FLOAT_TYPE): Remove, obsolete.
      
      * nt/config.nt (LISP_FLOAT_TYPE, HAVE_XFREE386, USE_TEXT_PROPERTIES)
      (GSSAPI, HAVE_LIBINTL, HAVE_LIBGSSAPI_KRB5, HAVE_LIBGSSAPI)
      (HAVE_GSSAPI_H, HAVE_LIBXBD, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET)
      (HAVE_MEMCMP): Remove, obsolete.
      
      * src/s/ms-w32.h (LISP_FLOAT_TYPE, HAVE_MEMCMP, HAVE_MEMCPY)
      (HAVE_MEMMOVE, HAVE_MEMSET): Don't set, obsolete.
      95f61aa2
    • Juanma Barranquero's avatar
      Fix ChangeLog typos. · d209e2fb
      Juanma Barranquero authored
      d209e2fb
    • Chong Yidong's avatar
      Clean up syntax-table usage in xml.el · 566df3fc
      Chong Yidong authored
      * xml.el (xml--parse-buffer): Use xml-syntax-table.
      (xml-parse-tag): Likewise, and avoid changing entity tables.
      (xml-syntax-table): Define from scratch, making sure not to give
      x2000 and other Unicode spaces whitespace syntax, since those are
      not spaces in XML.
      (xml-parse-fragment): Delete unused function.
      (xml-name-start-char-re, xml-name-char-re, xml-name-re)
      (xml-names-re, xml-nmtoken-re, xml-nmtokens-re, xml-char-ref-re)
      (xml-entity-ref, xml-pe-reference-re)
      (xml-reference-re,xml-att-value-re, xml-tokenized-type-re)
      (xml-notation-type-re, xml-enumeration-re, xml-enumerated-type-re)
      (xml-att-type-re, xml-default-decl-re, xml-att-def-re)
      (xml-entity-value-re): Use syntax references in regexps where
      possible; no need to define inside a let-binding.
      (xml-parse-dtd): Use xml-pe-reference-re.
      (xml-entity-or-char-ref-re): New defconst.
      (xml-parse-string, xml-substitute-special): Use it.
      566df3fc
    • Stefan Monnier's avatar
      * lisp/files.el (locate-dominating-file): Allow `name' to be a predicate. · 0781098a
      Stefan Monnier authored
      (find-file--read-only): New function.
      (find-file-read-only, find-file-read-only-other-window)
      (find-file-read-only-other-frame): Use it.
      (insert-file-contents-literally): Don't `fset'.
      (get-free-disk-space): Use locate-dominating-file.
      0781098a
    • Dmitry Antipov's avatar
      * buffer.c (init_buffer_once): Fix initialization of · 3884d954
      Dmitry Antipov authored
      headers for buffer_defaults and buffer_local_symbols.
      Reported by Juanma Barranquero <lekktu@gmail.com>.
      3884d954
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el (byte-compile): Don't signal an error if the · b5771c0d
      Stefan Monnier authored
      function is already compiled.
      b5771c0d
    • Stefan Monnier's avatar
      Turn VECTOR_FREE_LIST_FLAG into PVEC_FREE. · ee28be33
      Stefan Monnier authored
      * src/lisp.h (enum pvec_type): Use fewer bits.
      (PSEUDOVECTOR_SIZE_BITS): New constant.
      (PSEUDOVECTOR_SIZE_MASK, PVEC_TYPE_MASK): Use it.
      (XSETPVECTYPESIZE, XSETTYPED_PSEUDOVECTOR, DEFUN): Adapt code to
      change in pvec_type.
      (PSEUDOVECTOR_TYPEP): New macro.
      (TYPED_PSEUDOVECTORP): Use it.
      * src/fns.c (internal_equal): Adapt code to extract pvectype.
      * src/emacs.c (gdb_pvec_type): Update type.
      * src/alloc.c (PSEUDOVECTOR_NBYTES): New macro.
      (VECTOR_FREE_LIST_SIZE_MASK): Remove (=> PSEUDOVECTOR_SIZE_MASK).
      (VECTOR_FREE_LIST_FLAG): Remove (=> PVEC_FREE).
      (SETUP_ON_FREE_LIST): Use XSETPVECTYPESIZE.
      (sweep_vectors): Use it.  Use local var `total_bytes' instead of
      abusing vector->header.next.nbytes.
      (live_vector_p): Use PVEC_TYPE.
      (mark_object): Adapt code to extract pvectype.  Use switch.
      ee28be33
    • Glenn Morris's avatar
      Auto-commit of generated files. · 1a9746de
      Glenn Morris authored
      1a9746de
    • Paul Eggert's avatar
      Merge from gnulib. · 013aabf1
      Paul Eggert authored
      * lib/alloca.in.h: New version from gnulib, incorporating:
      2012-07-03 alloca: add support for HP NonStop TNS/E native
      013aabf1
    • Paul Eggert's avatar
      * doprnt.c (doprnt): Don't assume string length fits in 'int'. · c7f2cd7f
      Paul Eggert authored
      Tighten new eassert a bit.
      c7f2cd7f
    • Dmitry Antipov's avatar
      Fix compilation with --enable-gcc-warnings and -O1 · 8ce70ed2
      Dmitry Antipov authored
      optimization level.
      * configure.in: If --enable-gcc-warnings, disable
      -Wunsafe-loop-optimizations for -O1 optimization level.
      * src/doprnt.c (doprnt): Change type of tem to int, initialize
      to avoid compiler warning.  Add eassert.
      * src/search.c (simple_search): Initialize match_byte to avoid
      compiler warning.  Add eassert.
      8ce70ed2
    • Paul Eggert's avatar
      Avoid weird behavior with large horizontal scrolls. · 24a212eb
      Paul Eggert authored
      Without this change, for example, large hscroll values would
      mess up Emacs's display on Fedora 15 x86, presumably due to
      overflows in int calculations in the display code.
      Also, if buffers had long lines, Emacs would freeze.
      * window.c (HSCROLL_MAX): Reduce to 100000, and make it visible to GDB.
      (set_window_hscroll): New function, containing the old guts of
      Fset_window_hscroll.  Return the clipped value.
      (Fset_window_hscroll, Fscroll_left, Fscroll_right): Use it.
      This avoids the need to check against PTRDIFF_MAX.
      24a212eb
    • Paul Eggert's avatar
    • Dmitry Antipov's avatar
    • Stefan Monnier's avatar
    • Paul Eggert's avatar
      Remove stray empty line. · b3264a61
      Paul Eggert authored
      b3264a61
    • Paul Eggert's avatar
      * regex.c: Suppress GCC warning on RHEL 6. (Bug#11207) · 63807d47
      Paul Eggert authored
      Conditionalize the pragmas on GCC 4.5 or later, not GCC 4.3 or later,
      since GCC 4.4.6 issues a bogus warning for them.
      63807d47
    • Paul Eggert's avatar
      Fix bugs in file timestamp newness comparisons. · 39adff0d
      Paul Eggert authored
      * fileio.c (Ffile_newer_than_file_p):
      * lread.c (Fload): Use full timestamp resolution of files,
      not just the 1-second resolution, so that files that are only
      slightly newer still count as newer.
      * fileio.c (Ffile_newer_than_file_p): Don't assume file
      timestamps fit in 'int'; this fixes a Y2038 bug on most hosts.
      39adff0d
  2. 03 Jul, 2012 16 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
    • Paul Eggert's avatar
      9c46aab9
    • 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
    • Michael Albinus's avatar
      * vc/ediff-diff.el (ediff-same-file-contents): Fix it for remote · b4886f6e
      Michael Albinus authored
      files on the same host.
      b4886f6e
    • Andreas Schwab's avatar
      Fixes: debbugs:11848 · b9d82339
      Andreas Schwab authored
      * help-fns.el (describe-function-1): Only call
      help-fns--autoloaded-p when we have a file name.
      b9d82339
    • Chong Yidong's avatar
      * xml.el: Protect parser against XML bombs. · a76e6535
      Chong Yidong authored
      (xml-entity-expansion-limit): New variable.
      (xml-parse-string, xml-substitute-special): Use it.
      (xml-parse-dtd): Avoid infloop if the DTD is not terminated.
      
      * test/automated/xml-parse-tests.el: Update testcases.
      a76e6535
    • 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
    • Glenn Morris's avatar
      Tweak bug-reference-bug-regexp setting · b544fef2
      Glenn Morris authored
      * lisp/progmodes/bug-reference.el (bug-reference-bug-regexp):
      Allow linking to specific messages in debbugs reports (eg 123#5).
      b544fef2
    • Katsumi Yamaoka's avatar
  3. 02 Jul, 2012 5 commits