1. 03 Jul, 2012 6 commits
    • 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
  2. 02 Jul, 2012 8 commits
  3. 01 Jul, 2012 4 commits
  4. 30 Jun, 2012 19 commits
    • Juanma Barranquero's avatar
      lib-src/makefile.w32-in (CTAGS_CFLAGS): Remove EMACS_NAME. · b95b7254
      Juanma Barranquero authored
      Already defined in ETAGS_CFLAGS.
      b95b7254
    • Glenn Morris's avatar
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Remove outdated and unnecessary dbus- declarations. · 9bf0aa15
      Glenn Morris authored
      * net/secrets.el, net/tramp-gvfs.el, net/xesam.el, net/zeroconf.el:
      Remove outdated and unnecessary dbus- declarations.
      (They are in defined dbus.el now.)
      9bf0aa15
    • 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. · c9240d7a
      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/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.
        src/ w32proc.c (sys_select): Accept and ignore one more argument.
        src/w32.c (emacs_gnutls_pull): Call select with one more argument.
      
        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.
      c9240d7a
    • 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
    • Chong Yidong's avatar
      Fix use of eval-and-compile in regexps in xml.el. · b3218de1
      Chong Yidong authored
      * xml.el (xml-*-re): Convert defvars into defconsts, and
      eval-and-compile them so eval-and-compile works on derivatives.
      (xml--entity-replacement-text): Use eval-and-comple.
      b3218de1
    • Chong Yidong's avatar
      xml.el: Fix last change. · 53dc3c68
      Chong Yidong authored
      53dc3c68
    • Michael Albinus's avatar
      * vc/vc-git.el (vc-git-registered): Use cache property · a40c87a0
      Michael Albinus authored
      `git-registered'.
      (vc-git-mode-line-string): Call `vc-working-revision' instead of
      `vc-git-working-revision' in order to benefit from the cache.
      (vc-git-root): Use cache property `git-root'.
      a40c87a0
    • Dmitry Gutov's avatar
      * vc/vc-hooks.el (vc-before-save): Clear cache if file has been · ac87de97
      Dmitry Gutov authored
      removed (likely outside Emacs).
      ac87de97
    • Stefan Monnier's avatar
      40c2a143
    • Stefan Monnier's avatar
    • Chong Yidong's avatar
      * xml.el: Implement XML parameter entities. · 7f3fbd5d
      Chong Yidong authored
      (xml-parameter-entity-alist): New variable.
      (xml-parse-region, xml-parse-fragment): Preserve previous values
      of xml-entity-alist and xml-parameter-entity-alist, so that
      repeated calls on different documents do not change them.
      (xml-parse-tag): Fix doctype regexp.
      (xml--entity-replacement-text): New function.
      (xml-parse-dtd): Use it.  Don't handle system entities; doing that
      properly requires url retrieval which is unimplemented.
      (xml-escape-string): Doc fix.
      7f3fbd5d
    • 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
    • Stefan Monnier's avatar
  5. 29 Jun, 2012 3 commits
    • Eli Zaretskii's avatar
      Undo change in xdisp.c in 2012-06-29T11:48:08Z!dmantipov@yandex.ru. · 2e5a6631
      Eli Zaretskii authored
       src/xdisp.c (try_window_id): Undo last change.  'int' is wide 
       enough to hold vertical pixel positions on screen.
      2e5a6631
    • 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