1. 24 Jan, 2020 1 commit
    • Stephen Gildea's avatar
      ; Clarify what time-stamp-active enables · fd091967
      Stephen Gildea authored
      Fix documentation strings and comments for time-stamp.  Most notably:
      * lisp/time-stamp.el (time-stamp-active): in the doc string, clarify
      that time-stamp-active does not add time-stamp to any hook.
  2. 01 Jan, 2020 1 commit
  3. 14 Nov, 2019 1 commit
    • Stephen Gildea's avatar
      time-stamp: update support for time zone numeric offset · 1d189843
      Stephen Gildea authored
      * time-stamp.el (time-stamp-string-preprocess): Change new format for
      numeric time zone from %:z to %5z to match format-time-string better.
      (time-stamp-format): Document support for numeric time zone.
      See discussion in bug#32931.
      * NEWS: Mention time-stamp-format %5z.
  4. 06 Nov, 2019 1 commit
    • Stephen Gildea's avatar
      time-stamp: add support for time zone numeric offset · 9ce67baa
      Stephen Gildea authored
      * time-stamp.el: Implement %:z as expanding to the numeric time zone
      offset, to address the feature request of bug#32931.  Do not document it
      yet, to discourage compatibility problems in mixed Emacs 26 and Emacs 27
      environments.  Documentation will be added in a subsequent release at
      least two years later.  (We cannot yet use %z for numeric time zone
      because in Emacs 26 it was documented to do something else.)
      * time-stamp-tests.el (time-stamp-test-format-time-zone): expand this
      test and break it into two tests, time-stamp-test-format-time-zone-name
      and time-stamp-test-format-time-zone-offset.
  5. 27 Oct, 2019 1 commit
    • Stephen Gildea's avatar
      time-stamp-time-zone: update customization · 113ff954
      Stephen Gildea authored
      * time-stamp.el (time-stamp-time-zone): Support customization with
      an integer offset (a new possible value of the ZONE argument to
      format-time-string in Emacs 27).
      Update the safe-local-variable predicate from string-or-null-p
      (describing time-stamp-time-zone's domain before 2015) to new
      predicate time-stamp-zone-type-p (describing the current domain).
      * time-stamp-tests.el (time-stamp-test-helper-zone-type-p): New test.
  6. 13 Oct, 2019 1 commit
    • Stephen Gildea's avatar
      Minor tweaks to time-stamp documentation strings · d9a01dcd
      Stephen Gildea authored
      * time-stamp.el (time-stamp): Reformat the explanation of the
      variables that affect time-stamp, for easier reading.  In particular,
      wrap the documentation to 75 characters, so that it displays neatly as
      a before-save-hook customization option.
      * time-stamp-tests.el (with-time-stamp-test-env): Use imperative voice,
      per checkdoc.
  7. 10 Oct, 2019 1 commit
  8. 09 Oct, 2019 1 commit
    • Stephen Gildea's avatar
      time-stamp: revert recent change to "%04y" · 600bcde6
      Stephen Gildea authored
      * time-stamp.el (time-stamp-string-preprocess): Revert change to "%04y"
      format made 2 weeks ago by commit 0e568838 (the previous commit to
      this file).  Although undocumented, "%04y" was discovered to be in use
      in the wild (2016) and had not issued a warning that it would change.
      Add a warning that it will change.
      * time-stamp-tests.el (time-stamp-test-year-2digit): add test of "%04y"
  9. 01 Oct, 2019 2 commits
    • Stephen Gildea's avatar
      Move undocumented time-stamp formats closer to format-time-string · 0e568838
      Stephen Gildea authored
      * time-stamp.el (time-stamp-string-preprocess): Update some undocumented
      formatting characters of time-stamp format for closer (still incomplete)
      alignment with format-time-string.  They have displayed a warning since
      Emacs 20 (released in 1997), so it is unlikely anyone is using them.
      * time-stamp-tests.el: Update tests to match new expectations.
    • Stephen Gildea's avatar
      time-stamp doc: recommend formats closer to format-time-string · 8ba1ca54
      Stephen Gildea authored
      * time-stamp.el (time-stamp-format, time-stamp-pattern): Update
      recommended (documented) formats.  No code changes, just documentation.
      All recommended formats are compatible at least as far back as Emacs
      22.1 (released in 2007) and are now closer to compatibility with
      * time-stamp-tests.el: Update test comments to match.
  10. 23 Sep, 2019 1 commit
    • Stephen Gildea's avatar
      Expand time-stamp unit tests to cover all formatting options · a33cda16
      Stephen Gildea authored
      * time-stamp-tests.el: Expand unit tests to cover all formatting options.
      These tests validate time-stamp-pattern formatting that has existed
      since at least Emacs 22 (released in 2007).  The tests cover both
      documented behavior and behavior implemented to support future migrations.
      * time-stamp.el (time-stamp-string): Add a second argument (TIME) to
      open a testing seam.  Have the unit tests call this public function.
      * time-stamp.el (time-stamp-string, time-stamp-string-preprocess):
      Remove the second pass through time-string--format.  (Previously both
      functions called it.)  It was used only to handle "%", but this is now
      handled by having time-stamp-string-preprocess not double it.
      Not doubling the "%" in time-stamp-string-preprocess fixes the padding
      of "%2%", which was discovered by the new unit tests to be wrong.
  11. 26 Jul, 2019 1 commit
  12. 26 May, 2019 1 commit
  13. 01 Jan, 2019 1 commit
  14. 01 Jan, 2018 1 commit
  15. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
  16. 13 Feb, 2017 1 commit
  17. 01 Jan, 2017 1 commit
  18. 16 Feb, 2016 1 commit
  19. 21 Jan, 2016 1 commit
  20. 14 Jan, 2016 1 commit
  21. 12 Jan, 2016 1 commit
    • Paul Eggert's avatar
      Fix time-stamp-time-zone bugs introduced in July · fe6efddc
      Paul Eggert authored
      This fixes a bug introduced when the July changes to
      format-time-string installed, as the changes were not
      correctly handled in this module (Bug#22302).
      Also, document time stamp time zones.
      * lisp/time-stamp.el (time-stamp-time-zone): Document values better.
      (time-stamp--format): New private function.
      (time-stamp-string, time-stamp-string-preprocess)
      (time-stamp-do-number): Use it.
      * doc/emacs/files.texi (Time Stamps): Mention time zones.
      * doc/misc/autotype.texi (Timestamps): Document time-stamp-time-zone.
  22. 01 Jan, 2016 1 commit
  23. 17 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
  24. 25 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
  25. 26 Jul, 2015 1 commit
    • 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.
  26. 01 Jan, 2015 2 commits
  27. 01 Jan, 2014 1 commit
  28. 01 Jan, 2013 1 commit
  29. 17 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Update docstrings and comments to use "init file" terminology. · 865fe16f
      Chong Yidong authored
      * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
      * comint.el (comint-prompt-read-only):
      * custom.el (defcustom):
      * hi-lock.el (hi-lock-mode):
      * ibuffer.el (ibuffer-formats):
      * ielm.el (ielm-prompt-read-only):
      * novice.el (disable-command):
      * saveplace.el (toggle-save-place):
      * speedbar.el (speedbar-supported-extension-expressions):
      * startup.el (auto-save-list-file-prefix, init-file-user)
      (after-init-hook, inhibit-startup-echo-area-message):
      * strokes.el (strokes-help):
      * time-stamp.el (time-stamp):
      * calendar/calendar.el (calendar, diary-file):
      * calendar/diary-lib.el (diary-mail-entries, diary)
      * calendar/holidays.el (holidays, calendar-holidays):
      * calendar/lunar.el (lunar-phases):
      * calendar/solar.el (sunrise-sunset):
      * emulation/edt.el (edt-load-keys):
      * emulation/viper.el (viper-mode):
      * eshell/em-alias.el (eshell-command-aliases-list):
      * eshell/esh-util.el (eshell-convert-numeric-arguments):
      * international/ogonek.el (ogonek-information):
      * net/tramp-cmds.el (tramp-bug):
      * net/quickurl.el (quickurl-reread-hook-postfix):
      * play/decipher.el (decipher-font-lock-keywords):
      * progmodes/cc-styles.el (c-set-style):
      * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
      * progmodes/inf-lisp.el (inferior-lisp-prompt):
      * progmodes/octave-mod.el (octave-mode):
      * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
      * progmodes/verilog-mode.el (verilog-read-defines):
      * textmodes/two-column.el (2C-mode): Likewise.
  30. 11 Jan, 2012 1 commit
  31. 05 Jan, 2012 1 commit
  32. 08 Aug, 2011 1 commit
    • Chong Yidong's avatar
      Lisp code shouldn't use set-time-zone-rule except through setenv. · 37e11a63
      Chong Yidong authored
      * time.el (display-time-world-list, display-time-world-display):
      * time-stamp.el (time-stamp-string):
      * vc/add-log.el (add-change-log-entry): Use setenv instead of
      * src/editfns.c (Fset_time_zone_rule): Document relationship with the
      setenv function.
      Fixes: debbugs:7337
  33. 19 Apr, 2011 1 commit
  34. 26 Jan, 2011 1 commit
  35. 25 Jan, 2011 1 commit
  36. 15 Jan, 2011 1 commit
  37. 02 Jan, 2011 1 commit
  38. 13 Jan, 2010 1 commit