1. 05 Aug, 2013 2 commits
    • Dmitry Antipov's avatar
      New macro to iterate over live buffers similar to frames. · 8f3a2c26
      Dmitry Antipov authored
      * buffer.h (FOR_EACH_LIVE_BUFFER): New macro.
      (Vbuffer_alist, Qpriority, Qbefore_string, Qafter_string):
      Declare buffer-related variables here to offload lisp.h.
      * buffer.c (Vbuffer_alist): Adjust comment.
      (Fget_file_buffer, get_truename_buffer, Fother_buffer)
      (other_buffer_safely):
      * data.c (store_symval_forwarding):
      * dispnew.c (Fframe_or_buffer_changed_p):
      * fileio.c (Fdo_auto_save):
      * filelock.c (unlock_all_files):
      * minibuf.c (read_minibuf): Use FOR_EACH_LIVE_BUFFER.
      8f3a2c26
    • Glenn Morris's avatar
      Extract truncate-string-to-width tests to a separate file · 3e2cd454
      Glenn Morris authored
      * test/automated/mule-util.el: New file, with tests extracted from
      lisp/international/mule-util.el.
      Copyright years based on when the original test-suite comment was
      added to lisp/international/mule-util.el (in 2002).
      
      * lisp/international/mule-util.el: Extract comment test-suite out to
      separate file.
      3e2cd454
  2. 04 Aug, 2013 19 commits
    • Juanma Barranquero's avatar
      * lisp/frameset.el: Add new predicate values for frameset-restore args. · d5671a82
      Juanma Barranquero authored
        (frameset-live-filter-alist, frameset-persistent-filter-alist):
        New variables.
        (frameset-filter-alist): Use them.  Add autoload cookie.
        (frameset-filter-tty-to-GUI): Move from desktop.el and rename.
        (frameset--set-id, frameset--reuse-frame): Rename `frame-id' to
        `frameset--id' (it's supposed to be internal to frameset.el).
        (frameset--process-minibuffer-frames): Ditto.  Doc fix.
        (frameset--initial-params): New function.
        (frameset--get-frame): Use it.  Doc fix.
        (frameset--move-onscreen): Accept new PRED value for FORCE-ONSCREEN.
        Accept :all, not 'all.
        (frameset-restore): Add new predicate values for FORCE-ONSCREEN and
        FORCE-DISPLAY.  Use :keywords for constant arguments to avoid collision
        with fbound symbols.  Fix frame id matching, and remove matching ids if
        the frame being restored is deleted.  Obey :delete.
      
      * lisp/desktop.el (desktop-restore-forces-onscreen)
        (desktop-restore-reuses-frames): Document :keyword constant values.
        (desktop-filter-parameters-alist): Remove, now identical to
        frameset-filter-alist.
        (desktop--filter-tty*): Remove, moved to frameset.el.
        (desktop-save-frameset, desktop-restore-frameset):
        Do not pass :filters argument.
      d5671a82
    • Stephen Berman's avatar
      Add Todo mode user manual. · 016d3f7d
      Stephen Berman authored
      * doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add todo-mode.
      (todo-mode, $(buildinfodir)/todo-mode$(INFO_EXT)):
      (todo-mode.dvi, todo-mode.pdf): New rules.
      
      * doc/misc/todo-mode.texi: New file.
      
      * info/dir: Add todo-mode.
      016d3f7d
    • Stefan Monnier's avatar
      * lisp/subr.el (macrop): New function. · 671d5c16
      Stefan Monnier authored
      (text-clone--maintaining): New var.
      (text-clone--maintain): Rename from text-clone-maintain.  Use it
      instead of inhibit-modification-hooks.
      
      * lisp/emacs-lisp/nadvice.el (advice--normalize): For aliases to macros, use
      a proxy, so as handle autoloads and redefinitions of the target.
      (advice--defalias-fset, advice-remove): Use advice--symbol-function.
      
      * lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
      Remove bogus (arrayp . stringp) pair.  Add entries for `vectorp'.
      (pcase--mutually-exclusive-p): New function.
      (pcase--split-consp): Use it.
      (pcase--split-pred): Use it.  Optimize the case where `pat' is a qpat
      mutually exclusive with the current predicate.
      
      * test/automated/advice-tests.el (advice-tests-nadvice): Test removal
      before definition.
      (advice-tests-macroaliases): New test.
      
      * lisp/emacs-lisp/edebug.el (edebug-lookup-function): Remove function.
      (edebug-macrop): Remove.  Use `macrop' instead.
      * lisp/emacs-lisp/advice.el (ad-subr-p): Remove.  Use `subrp' instead.
      (ad-macro-p):
      * lisp/eshell/esh-cmd.el (eshell-macrop):
      * lisp/apropos.el (apropos-macrop): Remove.  Use `macrop' instead.
      671d5c16
    • Eli Zaretskii's avatar
      MS-Windows followup to last commit. · e443729d
      Eli Zaretskii authored
       lib-src/ntlib.h: Include fcntl.h.
       (mkostemp): Declare prototype.
       (mktemp): Don't redefine.
       lib-src/ntlib.c (mkostemp): New function.
      
      Fixes: debbugs:15015
      e443729d
    • Paul Eggert's avatar
      Fix some minor races in hosts lacking mkostemp. · e0fdb694
      Paul Eggert authored
      Gnulib's emulation of mkostemp doesn't have races that Emacs's does.
      * configure.ac (mkostemp): Remove check for this function;
      gnulib does the check now.
      (mkstemp): Remove check for this no-longer-used function.
      * lib/mkostemp.c, lib/secure_getenv.c, lib/tempname.c, lib/tempname.h:
      * m4/mkostemp.m4, m4/secure_getenv.m4, m4/tempname.m4:
      New files, copied from Gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * admin/merge-gnulib (GNULIB_MODULES): Add mkostemp.
      * lib-src/movemail.c (main):
      * lib-src/update-game-score.c (write_scores):
      Use mkostemp (which now works on all platforms, due to changes
      in the portability layer) rather than mktemp (which has a race)
      or mkstemp (which we no longer bother with).
      * src/callproc.c (create_temp_file):
      * src/filelock.c (create_lock_file):
      Assume mkostemp, since it's now provided by Gnulib.
      
      Fixes: debbugs:15015
      e0fdb694
    • Eli Zaretskii's avatar
      Minor fix of the last commit. · 484ab239
      Eli Zaretskii authored
      484ab239
    • Eli Zaretskii's avatar
      Implement mkostemp for MS-Windows. · 63f5c6c2
      Eli Zaretskii authored
       nt/mingw-cfg.site (ac_cv_func_mkostemp): New var with value of "yes".
       nt/inc/ms-w32.h (mkostemp): Declare prototype.
       nt/config.nt (HAVE_MKOSTEMP): Define to 1.
      
       src/w32.c (mkostemp): New function.
       (mktemp): Remove, no longer used.  Most of the code reused in mkostemp.
      
      Fixes: debbugs:15015
      63f5c6c2
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/nadvice.el (advice-function-mapc): Rename from advice-mapc. · 1d44e9dc
      Stefan Monnier authored
      (advice-mapc): New function, using it.
      (advice-function-member-p): New function.
      (advice--normalize): Store the cdr in advice--saved-rewrite since
      that's the part that will be changed.
      (advice--symbol-function): New function.
      (advice-remove): Handle removal before the function is defined.
      Adjust to new advice--saved-rewrite.
      (advice-member-p): Use advice-function-member-p and
      advice--symbol-function.
      1d44e9dc
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      * test/automated/icalendar-tests.el (icalendar-tests--test-export) · f8654242
      Glenn Morris authored
      (icalendar-tests--test-import): Remove debug messages.
      f8654242
    • Dmitry Antipov's avatar
      * dispnew.c (glyph_matrix_count, glyph_pool_count): · f0b79313
      Dmitry Antipov authored
      Move under GLYPH_DEBUG and ENABLE_CHECKING.
      (new_glyph_matrix, free_glyph_matrix, new_glyph_pool)
      (free_glyph_pool, check_glyph_memory): Likewise for
      all users.  Adjust comments where appropriate.
      f0b79313
    • Xue Fuqiao's avatar
      Merge: cleanup for vc-ignore. · 00f98a9d
      Xue Fuqiao authored
      00f98a9d
    • Xue Fuqiao's avatar
      Merge from mainline. · 99191b89
      Xue Fuqiao authored
      99191b89
    • Juanma Barranquero's avatar
      lisp/frameset.el (frameset--reuse-frame): Use correct frame-id to find frame. · a04d36a0
      Juanma Barranquero authored
      (frameset--set-id, frameset--process-minibuffer-frames)
      (frameset-restore): Rename parameter `frameset-id' to `frame-id'.
      a04d36a0
    • Xue Fuqiao's avatar
      Cleanup for vc-ignore. · ab419665
      Xue Fuqiao authored
      * vc/vc.el (vc-ignore): Rewrite.
      (vc-default-ignore-completion-table):
      (vc--read-lines):
      (vc--add-line, vc--remove-regexp): New functions.
      
      * vc/vc-svn.el (vc-svn-ignore): Doc fix.
      (vc-svn-ignore-completion-table): New function.
      
      * vc/vc-hg.el (vc-hg-ignore): Rewrite.
      (vc-hg-ignore-completion-table):
      (vc-hg-find-ignore-file): New functions.
      
      * vc/vc-git.el (vc-git-ignore): Rewrite.
      (vc-git-ignore-completion-table):
      (vc-git-find-ignore-file): New functions.
      
      * vc/vc-dir.el (vc-dir-menu-map): Add menu for vc-dir-ignore.
      
      * vc/vc-bzr.el (vc-bzr-ignore): Rewrite.
      (vc-bzr-ignore-completion-table):
      (vc-bzr-find-ignore-file): New functions.
      ab419665
    • Glenn Morris's avatar
      * test/automated/icalendar-tests.el (icalendar-tests--test-export) · 2ad0a067
      Glenn Morris authored
      (icalendar-tests--test-import): Try more precise TZ specification.
      2ad0a067
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      lisp/frameset.el: Fix typos and autoload cookies. · 51d30f2c
      Juanma Barranquero authored
      (frameset-p, frameset-save): Fix autoload cookies.
      (frameset-filter-minibuffer): Doc fix.
      (frameset-restore): Fix autoload cookie.  Fix typo in docstring.
      51d30f2c
    • Juanma Barranquero's avatar
      lisp/desktop.el (desktop-clear): Be more careful about deleting frames. · 5414a283
      Juanma Barranquero authored
      Do it only when called interactively and desktop-restore-frames is non-nil.
      Doc fix.
      (desktop-read): Set desktop-saved-frameset to nil.
      5414a283
  3. 03 Aug, 2013 13 commits
  4. 02 Aug, 2013 6 commits