[PATCH] emacs: use (system-name) instead of system-name

Tomi Ollila tomi.ollila at iki.fi
Sun Feb 26 02:03:16 PST 2017


On Sun, Feb 26 2017, Jani Nikula <jani at nikula.org> wrote:

> 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.

It sure is. LGTM.

Tomi


> ---
>  emacs/notmuch-maildir-fcc.el | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
> index a754b60c7ea3..777658ccfb4a 100644
> --- a/emacs/notmuch-maildir-fcc.el
> +++ b/emacs/notmuch-maildir-fcc.el
> @@ -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))
> -	  (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
> -- 
> 2.11.0
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list