1. 26 Jul, 2015 5 commits
    • Paul Eggert's avatar
      New optional ZONE arg for format-time-string etc. · af32fa95
      Paul Eggert authored
      This simplifies time conversions in other time zones.
      It also prevents display-time-world tampering with TZ (Bug#21020).
      * admin/admin.el (add-release-logs):
      Use improved add-log-time-format API.
      * admin/merge-gnulib (GNULIB_MODULES): Add time_rz, timegm.
      (GNULIB_TOOL_FLAGS): Avoid flexmember, setenv, unsetenv.
      * configure.ac (tzalloc): Remove test for this, since
      Emacs no longer uses HAVE_TZALLOC directly.
      * doc/lispref/os.texi (Time of Day, Time Conversion)
      (Time Parsing):
      * etc/NEWS: Document the new behavior.
      Merge from gnulib, incorporating:
      2015-07-25 strftime: fix newly-introduced bug on Solaris
      2015-07-23 fprintftime, strftime: use timezone_t args
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/strftime.c, lib/strftime.h, lib/time.in.h, m4/sys_time_h.m4:
      * m4/time_h.m4:
      Update from gnulib.
      * lib/time_rz.c, lib/timegm.c, m4/time_rz.m4, m4/timegm.m4:
      New files from gnulib.
      * lisp/time-stamp.el (time-stamp-string):
      * lisp/time.el (display-time-world-list)
      Use new API, with time zone arg.
      * lisp/time.el (display-time-world-display):
      Fix race when current-time advances while we're running.
      * lisp/vc/add-log.el (add-log-iso8601-time-zone)
      (add-log-iso8601-time-string): Accept optional time zone arg.
      * lisp/vc/add-log.el (add-change-log-entry):
      * lisp/vc/log-edit.el (log-edit-changelog-ours-p): Use new arg.
      * nt/gnulib.mk: Propagate lib/gnulib.mk changes here.
      Add rules for the time module, since they're now needed
      for tzalloc etc.
      * src/conf_post.h (getenv_TZ, setenv_TZ): New macros.
      (emacs_getenv_TZ, emacs_setenv_TZ): New decls.
      * src/editfns.c: Include errno.h.
      (set_time_zone_rule): Omit unnecessary forward decl.
      (initial_tz): Remove, replacing with ...
      (local_tz, wall_clock_tz, utc_tz): New static vars and constants.
      (tzeqlen): New constant; prefer it to (sizeof "TZ=" - 1).
      (emacs_localtime_rz, emacs_mktime_z, xtzalloc, xtzfree)
      (tzlookup): New static functions.
      (init_editfns): New arg DUMPING.  All uses changed.
      (init_editfns): Omit most initialization if dumping, not if
      !initialized.  Initialize wall_clock_tz and local_tz.
      (emacs_nmemftime, format_time_string): Time zone argument can now
      be any time zone, not just a boolean for UTC or local time.  All
      callers changed.
      (Fformat_time_string, Fencode_time, Fcurrent_time_string)
      (Fcurrent_time_zone): New optional arg ZONE.
      (Fdecode_time, Fset_time_zone_rule): ZONE arg can now also take
      the same form as with the other new additions.
      (decode_time_zone): Remove; no longer needed.
      (tzvalbuf): Now file-scope.
      (emacs_getenv_TZ, emacs_setenv_TZ): New functions.
      (syms_of_editfns): Define Qwall.
      * src/editfns.c (mktime_z) [!HAVE_TZALLOC]:
      * src/systime.h (mktime_z, timezone_t, tzalloc, tzfree)
      Remove; now supplied by gnulib.
      * src/emacs.c (main):
      * src/lisp.h (init_editfns): Adjust to init_editfns API change.
    • Shigeru Fukaya's avatar
      Fix infinite loop in delete-consecutive-dups · 4c55786d
      Shigeru Fukaya authored
      * lisp/subr.el (delete-consecutive-dups): Work even if the last
      element is nil (Bug#20588).  Avoid rescan of a circular list in
      deletion of last element.
    • Martin Rudalics's avatar
      Have `x-frame-geometry' return nil for terminal and initial frames (Bug#21132) · fac84926
      Martin Rudalics authored
      * src/nsfns.m (Fx_frame_geometry):
      * src/xfns.c (Fx_frame_geometry): Return nil for initial and
      terminal frames.
      * src/w32fns.c (Fw32_frame_menu_bar_size, Fw32_frame_rect)
      (Fx_frame_geometry): Return nil for terminal frames
    • Glenn Morris's avatar
      ; Auto-commit of ChangeLog files. · f2576da4
      Glenn Morris authored
    • HOSOYA Kei's avatar
      * etc/tutorials/TUTORIAL.ja: Improve translation. · 2cf501ce
      HOSOYA Kei authored
      Copyright-paperwork-exempt: yes
  2. 25 Jul, 2015 2 commits
    • Eli Zaretskii's avatar
      Avoid crashes when w32 GUI functions are called in -batch · 7c3506ed
      Eli Zaretskii authored
      * src/w32fns.c (Fx_frame_geometry, Fw32_frame_rect)
      (Fw32_frame_menu_bar_size, Fw32_send_sys_command): Don't call
      FRAME_W32_WINDOW for initial frame.  (Bug#21132)
    • Eli Zaretskii's avatar
      Fix flyspell-check-previous-highlighted-word · 5e63841f
      Eli Zaretskii authored
      * lisp/textmodes/flyspell.el
      (flyspell-check-previous-highlighted-word): Really accept a
      numeric argument, as the doc string describes.  Fix an off-by-one
      error in looking up overlays, so invocation with point immediately
      after a word would check that word.  Clarify the doc string as
      Suggested by N. Jackson <nljlistbox2@gmail.com>.  (Bug#21129)
  3. 24 Jul, 2015 5 commits
  4. 23 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Fix some Tramp problems with HP-UX · 8e03731c
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
      Add "tab0" to stty call.
      * test/automated/tramp-tests.el (tramp-persistency-file-name):
      Set to nil.
      (tramp--test-hpux-p): New defun.
      (tramp--test-utf8): Use it.
  5. 22 Jul, 2015 7 commits
  6. 21 Jul, 2015 7 commits
    • Stefan Monnier's avatar
      (advice--called-interactively-skip): Fix inf-loop (bug#21083) · 5abadebc
      Stefan Monnier authored
      * lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip):
      Fix inf-loop (bug#21083).
    • Glenn Morris's avatar
      * test/automated/package-test.el (package-test-signed): · 492ea241
      Glenn Morris authored
      Update for recent changes.
    • Glenn Morris's avatar
      * test/automated/elisp-mode-tests.el · 3046b176
      Glenn Morris authored
      Update for recent xref name changes.
    • Dmitry Gutov's avatar
      Make eldoc timer non-repeatable · 7f58daf8
      Dmitry Gutov authored
      * lisp/emacs-lisp/eldoc.el (eldoc-schedule-timer): Make the timer
      non-repeatable.  Since it's on post-command hook, that just wasted
      CPU cycles.
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      Sync with Tramp repository · b0dbf4c0
      Michael Albinus authored
      * doc/misc/tramp.texi (Configuration): Note, that Tramp must be
      required prior changing its configuration.
      (Connection caching, Predefined connection information)
      (Remote shell setup): Fix typos.
      (Predefined connection information): Describe, how to overwrite
      parameters of `tramp-methods'.
      (Remote programs, Remote processes, Traces and Profiles):
      Simplify example.
      (Remote programs): Remove superfluous comment.
      * doc/misc/trampver.texi: Update release number.
      * lisp/net/tramp-cache.el (tramp-connection-properties): Adapt docstring.
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun.
      (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it.
      (tramp-gvfs-handle-make-directory): Reimplement PARENTS handling,
      "gvfs-mkdir -p ..." does not work robust.
      (tramp-gvfs-maybe-open-connection): Adapt `tramp-get-method-parameter' call.
      * lisp/net/tramp-sh.el (tramp-methods):
      Add `tramp-remote-shell-login' parameter where it fits.
      (tramp-get-remote-path): Use it.
      (tramp-make-copy-program-file-name): Fix quoting for "psftp" method.
      (all): Adapt `tramp-get-method-parameter' calls.
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-get-method-parameter): Replace argument METHOD by VEC.
      Check also for hits in `tramp-connection-properties'.  Adapt docstring.
      (tramp-get-remote-tmpdir): Cache only the local name of tmpdir.
      (all): Adapt `tramp-get-method-parameter' calls.
      * lisp/net/trampver.el Update release number.
      * test/automated/tramp-tests.el (tramp--instrument-test-case):
      Add "^make-symbolic-link not supported$" to `debug-ignored-errors'.
      (tramp-test13-make-directory, tramp--test-adb-p)
      (tramp--test-smb-or-windows-nt-p): Simplify.
      (tramp--test-ftp-p, tramp--test-gvfs-p): New defuns.
      (tramp--test-special-characters): Fix docstring.  Add gvfs and ftp tests.
      (tramp--test-utf8): Fix docstring.
    • Dmitry Gutov's avatar
      Add new xref-query-replace command · b6ac30ab
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref--match-buffer-bounds): New
      function, extracted from xref-pulse-momentarily.
      (xref-query-replace): New command.
      (xref--query-replace-1): New helper function.
      (xref--xref-buffer-mode-map): Add `r' binding.
  7. 20 Jul, 2015 6 commits
    • Dmitry Gutov's avatar
      ; Fix a typo · 4051fb20
      Dmitry Gutov authored
    • Paul Eggert's avatar
      Simplify icalendar decoding of Z dates · 136dd7bc
      Paul Eggert authored
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      Simplify calculation of time strings with trailing "Z".
    • Dmitry Gutov's avatar
      Do not corrupt grep-find-ignored-files · 057f9349
      Dmitry Gutov authored
      * lisp/progmodes/project.el (project-ignores): Change the order of
      the arguments to nconc, in order not to corrupt grep-find-ignored-files.
    • Dmitry Gutov's avatar
      Add xref-match-item, and use it · 5330a45e
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-match-bounds): New generic function.
      (xref-file-location): Add reader for the column slot.
      (xref-match-item): New class.
      (xref-match-bounds): A method implementation for it.
      (xref-make-match): New constructor function.
      (xref--current-item): New private variable.
      (xref-pulse-momentarily): Use it.
      (xref--pop-to-location): Change the first argument to an xref
      item, instead of location, bind xref--current-item.
      Update all callers.
      (xref-next-line, xref-prev-line, xref--next-error-function)
      (xref--mouse-2): Look for the property `xref-item',
      instead of `xref-location'.
      (xref--item-at-point): Likewise.  This function replaces
      `xref-location-at-point'.  Update all callers.
      (xref--insert-xrefs): Add the `xref-item' text property, instead
      of `xref-location'.
      (xref--collect-match): Use xref-make-match.
    • Dmitry Gutov's avatar
      Rename xref--xref to xref-item · 10ac9dbd
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-item): Rename from `xref--xref'.
      Update all references.
    • Dmitry Gutov's avatar
      Rename xref description slot to summary · e29206e8
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref--xref): Rename the `description'
      slot to `summary'.
  8. 19 Jul, 2015 6 commits
  9. 18 Jul, 2015 1 commit
    • Eli Zaretskii's avatar
      Fix info-apropos when the default encoding is Latin-N · 3d139d59
      Eli Zaretskii authored
      * lisp/info.el (Info-find-node-2): Reset the buffer's encoding to
      'undecided', so that it is set to the encoding of the Info file we
      are about to insert.  Otherwise, 'info-apropos' will fail to find
      some index nodes in some UTF-8 encoded files, if the buffer's
      previous encoding is Latin-N or some such.