]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: use (system-name) instead of system-name
authorJani Nikula <jani@nikula.org>
Sun, 26 Feb 2017 09:28:30 +0000 (11:28 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 26 Feb 2017 11:37:01 +0000 (07:37 -0400)
Fix the deprecation warning:

In notmuch-maildir-fcc-make-uniq-maildir-id:
emacs/notmuch-maildir-fcc.el:279:53:Warning: ‘system-name’ is an obsolete
    variable (as of 25.1); use (system-name) instead

I've used (system-name) since at least 2011, so it must have been
around quite a while.

emacs/notmuch-maildir-fcc.el

index a754b60c7ea3d828202b89482cc52c5785cd6599..777658ccfb4aa89124910448f0bc519d7f12edfa 100644 (file)
@@ -276,7 +276,7 @@ If CREATE is non-nil then create the folder if necessary."
 (defun notmuch-maildir-fcc-make-uniq-maildir-id ()
    (let* ((ftime (float-time))
          (microseconds (mod (* 1000000 ftime) 1000000))
 (defun notmuch-maildir-fcc-make-uniq-maildir-id ()
    (let* ((ftime (float-time))
          (microseconds (mod (* 1000000 ftime) 1000000))
-         (hostname (notmuch-maildir-fcc-host-fixer system-name)))
+         (hostname (notmuch-maildir-fcc-host-fixer (system-name))))
      (setq notmuch-maildir-fcc-count (+ notmuch-maildir-fcc-count 1))
      (format "%d.%d_%d_%d.%s"
             ftime
      (setq notmuch-maildir-fcc-count (+ notmuch-maildir-fcc-count 1))
      (format "%d.%d_%d_%d.%s"
             ftime