1. 04 Sep, 2019 1 commit
  2. 03 Sep, 2019 1 commit
  3. 30 Aug, 2019 1 commit
  4. 29 Aug, 2019 1 commit
  5. 27 Aug, 2019 1 commit
    • Paul Eggert's avatar
      Fix Tramp rounding of file sizes and inode numbers · 0e2d559d
      Paul Eggert authored
      * lisp/net/tramp-sh.el (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes)
      (tramp-do-file-attributes-with-stat)
      (tramp-do-directory-files-and-attributes-with-stat):
      Format file sizes and inode numbers without trailing ".0",
      to avoid rounding errors when absolute values exceed 2**53
      (Bug#36940#94).  This fixes the problem for Emacs 27 and later,
      and doesn't hurt in earlier Emacs.
      0e2d559d
  6. 25 Aug, 2019 1 commit
    • Michael Albinus's avatar
      Fix a further part of Bug#36940 · ae7ab3b6
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes)
      (tramp-do-file-attributes-with-stat)
      (tramp-do-directory-files-and-attributes-with-stat): Return size
      and inode as floating number.  (Bug#36940).
      ae7ab3b6
  7. 23 Aug, 2019 8 commits
  8. 18 Aug, 2019 1 commit
  9. 17 Aug, 2019 1 commit
    • Paul Eggert's avatar
      More-compatible subsecond calendrical timestamps · 37257d6a
      Paul Eggert authored
      Instead of appending a subseconds member to the result of
      ‘decode-time’, this keeps the format unchanged unless you give
      a new optional argument to ‘decode-time’.  Also, the augmented
      format now puts the subsecond info in the SECONDS element, so
      the total number of elements is unchanged; this is more
      compatible with code that expects the traditional 9 elements,
      such as ‘(pcase decoded-time (`(,SEC ,MIN ,HOUR ,DAY ,MON
      ,YEAR ,DOW ,DST ,ZONE) ...) ...)’.
      * doc/lispref/os.texi, doc/misc/emacs-mime.texi, etc/NEWS:
      * lisp/net/soap-client.el (soap-decode-date-time):
      * lisp/simple.el (decoded-time):
      Document the new behavior.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      * lisp/calendar/iso8601.el (iso8601-parse)
      (iso8601-parse-time, iso8601-parse-duration)
      (iso8601--decoded-time):
      * lisp/calendar/parse-time.el (parse-time-string):
      * lisp/calendar/time-date.el (decoded-time-add)
      (decoded-time--alter-second):
      * lisp/org/org.el (org-parse-time-string):
      * lisp/simple.el (decoded-time):
      * src/timefns.c (Fdecode_time, Fencode_time):
      * test/lisp/calendar/icalendar-tests.el:
      (icalendar--decode-isodatetime):
      * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years)
      (test-iso8601-date-dates, test-iso8601-date-obsolete)
      (test-iso8601-date-weeks, test-iso8601-date-ordinals)
      (test-iso8601-time, test-iso8601-combined)
      (test-iso8601-duration, test-iso8601-intervals)
      (standard-test-dates, standard-test-time-of-day-fractions)
      (standard-test-time-of-day-beginning-of-day)
      (standard-test-time-of-day-utc)
      (standard-test-time-of-day-zone)
      (standard-test-date-and-time-of-day, standard-test-interval):
      * test/lisp/calendar/parse-time-tests.el (parse-time-tests):
      * test/src/timefns-tests.el (format-time-string-with-zone)
      (encode-time-dst-numeric-zone):
      Revert recent changes that added a SUBSECS member to
      calendrical timestamps, since that component is no longer
      present (the info, if any, is now in the SECONDS member).
      * lisp/calendar/time-date.el (decoded-time-add)
      (decoded-time--alter-second):
      Support fractional seconds in the new form.  Simplify.
      * src/timefns.c (Fdecode_time): Support new arg FORM.
      (Fencode_time): Support subsecond resolution.
      * test/src/timefns-tests.el (format-time-string-with-zone)
      (decode-then-encode-time): Test subsecond calendrical timestamps.
      37257d6a
  10. 12 Aug, 2019 3 commits
    • Michael Albinus's avatar
      Quote file names properly in Tramp · 88006cf5
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-file-truename)
      (tramp-handle-insert-directory):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-insert-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename):
      Use `tramp-compat-directory-name-p'.
      
      * lisp/net/tramp.el (tramp-drop-volume-letter)
      (tramp-handle-file-truename):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
      (tramp-sh-handle-file-truename):
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename):
      (tramp-sudoedit-handle-make-symbolic-link): Quote properly.
      
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quote)
      (tramp-compat-file-name-unquote): Add optional argument TOP.
      88006cf5
    • Michael Albinus's avatar
      Handle symbolic links properly in Tramp gfvs methods · f7b5e7d7
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-readable-p):
      Handle symbolic links.
      f7b5e7d7
    • Michael Albinus's avatar
      Fix caching problem in Tramp smb method · 55d82625
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties):
      Add "file-entries",
      55d82625
  11. 11 Aug, 2019 2 commits
    • Eric Abrahamsen's avatar
      Prompt for new sieve script names in sieve management · 73877cb3
      Eric Abrahamsen authored
      * lisp/net/sieve.el (sieve-edit-script): Otherwise the user ends up
      with a script named '<new script>.sieve'.
      73877cb3
    • Michael Albinus's avatar
      Retrieve start time from remote machine, use compat attrib functions · 95552e08
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-file-attribute-access-time)
      (tramp-compat-file-attribute-status-change-time): New defaliases.
      
      * test/lisp/net/tramp-tests.el (tramp--test-start-time): New defvar.
      (tramp--test-file-attributes-equal-p)
      (tramp-test19-directory-files-and-attributes): Use it.
      (tramp-test18-file-attributes)
      (tramp--test-file-attributes-equal-p, tramp-test20-file-modes)
      (tramp-test22-file-times, tramp--test-check-files):
      Use `tramp-compat-file-attribute-*' functions.
      95552e08
  12. 08 Aug, 2019 2 commits
    • Michael Albinus's avatar
      Work on Tramp backward compatibility · f9beb2bf
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
      * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-rename-file):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
      Use `tramp-compat-directory-name-p'.
      f9beb2bf
    • Michael Albinus's avatar
      Suppress false alarm in Tramp · 4084c160
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-dissect-file-name): Suppress false alarm.
      4084c160
  13. 07 Aug, 2019 1 commit
    • Robert Pluim's avatar
      Change nsm-should-check to look at local subnets · bc1cf28d
      Robert Pluim authored
      * lisp/net/nsm.el (nsm-network-same-subnet): New function.  Checks
      if an ip address is in the same subnet as another one.
      (nsm-should-check): Use nsm-network-same-subnet to see if we're
      connecting to a local subnet machine.  Remove checks for RFC1918 addresses.
      
      * test/lisp/net/nsm-tests.el: New file.  Test nsm-should-check functionality.
      bc1cf28d
  14. 06 Aug, 2019 2 commits
    • Paul Eggert's avatar
      decode-time now returns subsec too · b06917a4
      Paul Eggert authored
      The list that decode-time returns now contains an extra
      trailing component that counts the subseconds part of the
      original timestamp (Bug#36549).
      This builds on a suggestion by Lars Ingebrigtsen in:
      https://lists.gnu.org/r/emacs-devel/2019-07/msg00734.html
      * doc/lispref/os.texi (Time Conversion):
      * doc/misc/emacs-mime.texi (time-date):
      * etc/NEWS: Document this.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      * lisp/calendar/iso8601.el (iso8601-parse)
      (iso8601-parse-time, iso8601-parse-duration)
      (iso8601--decoded-time):
      * lisp/calendar/parse-time.el (parse-time-string):
      * lisp/calendar/time-date.el (make-decoded-time)
      (decoded-time-set-defaults):
      * lisp/org/org.el (org-fix-decoded-time)
      (org-parse-time-string):
      * src/timefns.c (Fdecode_time):
      Generate subsec member for decoded time.
      * lisp/calendar/time-date.el (decoded-time-add)
      Add the decoded subsec too.
      * lisp/simple.el (decoded-time): New subsec member.
      * src/data.c (Frem): Simplify zero-check to match that of new Fmod.
      (integer_mod): New function, with most of the guts of the old Fmod.
      Remove redundant zero-check.
      (Fmod): Use it.
      * src/timefns.c (Fencode_time): Handle new subsec member
      or (with the obsolescent calling convention) subsec arg.
      It defaults to 0.
      * test/lisp/calendar/icalendar-tests.el:
      (icalendar--decode-isodatetime):
      * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years)
      (test-iso8601-date-dates, test-iso8601-date-obsolete)
      (test-iso8601-date-weeks, test-iso8601-date-ordinals)
      (test-iso8601-time, test-iso8601-combined)
      (test-iso8601-duration, test-iso8601-intervals)
      (standard-test-dates, standard-test-time-of-day-fractions)
      (standard-test-time-of-day-beginning-of-day)
      (standard-test-time-of-day-utc)
      (standard-test-time-of-day-zone)
      (standard-test-date-and-time-of-day, standard-test-interval):
      * test/lisp/calendar/parse-time-tests.el (parse-time-tests):
      * test/src/timefns-tests.el (format-time-string-with-zone)
      (encode-time-dst-numeric-zone):
      Adjust to match new behavior.
      b06917a4
    • Paul Eggert's avatar
      New function time-convert · 89c63b35
      Paul Eggert authored
      This replaces the awkward reuse of encode-time to both convert
      calendrical timestamps to Lisp timestamps, and to convert Lisp
      timestamps to other forms.  Now, encode-time does just the
      former and the new function does just the latter.
      The new function builds on a suggestion by Lars Ingebrigtsen in:
      https://lists.gnu.org/r/emacs-devel/2019-07/msg00801.html
      and refined by Stefan Monnier in:
      https://lists.gnu.org/r/emacs-devel/2019-07/msg00803.html
      * doc/lispref/os.texi (Time of Day, Time Conversion):
      * doc/misc/emacs-mime.texi (time-date):
      * etc/NEWS: Update documentation.
      * lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
      * lisp/calendar/time-date.el (seconds-to-time, days-to-time):
      * lisp/calendar/timeclock.el (timeclock-seconds-to-time):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/completion.el (cmpl-hours-since-origin):
      * lisp/ecomplete.el (ecomplete-add-item):
      * lisp/emacs-lisp/cl-extra.el (cl--random-time):
      * lisp/emacs-lisp/timer.el (timer--time-sette...
      89c63b35
  15. 05 Aug, 2019 1 commit
    • Michael Albinus's avatar
      Improve Tramp's caching · 6c1d0d53
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-add-name-to-file)
      (tramp-handle-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-make-directory)
      (tramp-adb-handle-delete-directory)
      (tramp-adb-handle-delete-file, tramp-adb-handle-write-region)
      (tramp-adb-handle-set-file-modes)
      (tramp-adb-handle-set-file-times, tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file)
      (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file)
      (tramp-gvfs-handle-make-directory)
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-times, tramp-gvfs-set-file-uid-gid):
      * lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file)
      (tramp-rclone-handle-delete-directory)
      (tramp-rclone-handle-delete-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
      (tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
      (tramp-sh-handle-add-name-to-file)
      (tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
      (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
      (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-add-name-to-file)
      (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-delete-file)
      (tramp-smb-handle-make-directory-internal)
      (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-handle-rename-file, tramp-smb-handle-write-region):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-add-name-to-file)
      (tramp-sudoedit-do-copy-or-rename-file)
      (tramp-sudoedit-handle-delete-directory)
      (tramp-sudoedit-handle-delete-file)
      (tramp-sudoedit-handle-set-file-modes)
      (tramp-sudoedit-handle-set-file-times)
      (tramp-sudoedit-handle-make-symbolic-link): Do not flush all file
      properties of upper directory.
      
      * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties):
      New defun.
      (tramp-flush-file-properties, tramp-flush-directory-properties):
      Use it.
      
      * test/lisp/net/tramp-tests.el (tramp-time-diff): Declare.
      (tramp--test-file-attributes-equal-p): Handle also modification
      and status change time.
      6c1d0d53
  16. 04 Aug, 2019 2 commits
    • Paul Eggert's avatar
      Improve time function doc · 5f3f3884
      Paul Eggert authored
      * doc/misc/emacs-mime.texi (time-date): Don’t give
      parse-iso8601-time-string in the example, as the function is
      not autoloaded.
      * lisp/gnus/nndiary.el (nndiary-compute-reminders):
      No need to call encode-time or use floating point here.
      5f3f3884
    • Michael Albinus's avatar
      Implement set-file-* functions for tramp-gvfs.el · 2abcca23
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping):
      Add "gvfs-set-attribute".
      (tramp-gvfs-file-name-handler-alist):
      Add `tramp-gvfs-handle-set-file-modes',
      `tramp-gvfs-handle-set-file-times' and
      `tramp-gvfs-handle-set-file-uid-gid'.
      (tramp-gvfs-handle-set-file-modes)
      (tramp-gvfs-handle-set-file-times)
      (tramp-sh-handle-set-file-uid-gid): New defuns.
      
      * lisp/net/tramp.el (tramp-handle-write-region): Set file modes.
      
      * test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
      (tramp-test22-file-times): Do not skip for tramp-gvfs.el.
      2abcca23
  17. 02 Aug, 2019 3 commits
  18. 01 Aug, 2019 2 commits
    • Paul Eggert's avatar
      Fix two parse-time-months invalid assumptions · fbd2ea1f
      Paul Eggert authored
      * lisp/gnus/nnimap.el: Do not require parse-time.
      * lisp/gnus/nnimap.el (nnimap-find-expired-articles):
      * lisp/net/pop3.el (pop3-make-date):
      Just use system-time-locale and format-time-string; no need to
      refer to parse-time-months.
      * lisp/net/pop3.el (parse-time-months): Remove defvar.
      * lisp/net/tramp-smb.el (tramp-smb-read-file-entry):
      Add FIXME comment about this.
      fbd2ea1f
    • Basil L. Contovounesios's avatar
      Fix usage of remove-text-properties · 2267110b
      Basil L. Contovounesios authored
      * lisp/allout-widgets.el (allout-decorate-item-icon):
      * lisp/emacs-lisp/chart.el (chart-goto-xy):
      * lisp/forms.el (forms--make-format)
      (forms--make-format-elt-using-text-properties):
      * lisp/htmlfontify.el (hfy-unmark-trailing-whitespace):
      * lisp/net/newst-plainview.el (newsticker-hide-entry)
      (newsticker-show-entry):
      * lisp/nxml/nxml-mode.el (nxml-cleanup):
      * lisp/obsolete/longlines.el (longlines-unshow-hard-newlines)
      (longlines-encode-region):
      * lisp/org/ob-exp.el (org-babel-exp-process-buffer):
      * lisp/org/org-agenda.el (org-agenda-show-new-time):
      * lisp/progmodes/cc-defs.el
      (c-clear-char-property-with-value-function)
      (c-clear-char-property-with-value-on-char-function):
      * lisp/progmodes/ebrowse.el (ebrowse--hide):
      * lisp/progmodes/gdb-mi.el (gdb-send):
      * lisp/progmodes/idlw-shell.el
      (idlwave-retrieve-expression-from-level):
      * lisp/progmodes/make-mode.el (makefile-fill-paragraph):
      * lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
      * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
      * lisp/tmm.el (tmm-remove-inactive-mouse-face):
      Always pass an explicit plist to remove-text-properties.
      
      * lisp/dired.el (dired--unhide):
      * lisp/facemenu.el (facemenu-add-face):
      * lisp/htmlfontify.el (hfy-fontify-buffer):
      * lisp/iimage.el (iimage-mode-buffer):
      * lisp/image-file.el (image-file-yank-handler):
      * lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
      * lisp/textmodes/tex-mode.el (latex-env-before-change):
      * test/src/undo-tests.el (undo-test0):
      Use remove-list-of-text-properties in place of
      remove-text-properties where appropriate.
      2267110b
  19. 31 Jul, 2019 3 commits
  20. 30 Jul, 2019 3 commits