From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id BB58F6DE204C for ; Sun, 26 Feb 2017 02:03:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.506 X-Spam-Level: X-Spam-Status: No, score=0.506 tagged_above=-999 required=5 tests=[AWL=-0.146, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6bk3CKsQsfXI for ; Sun, 26 Feb 2017 02:03:47 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 5E5476DE2046 for ; Sun, 26 Feb 2017 02:03:46 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 6C4E210005A; Sun, 26 Feb 2017 12:03:16 +0200 (EET) From: Tomi Ollila To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: use (system-name) instead of system-name In-Reply-To: <20170226092830.20215-1-jani@nikula.org> References: <20170226092830.20215-1-jani@nikula.org> User-Agent: Notmuch/0.23.5+113~gfa95df1 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 10:03:48 -0000 On Sun, Feb 26 2017, Jani Nikula wrote: > Fix the deprecation warning: > > In notmuch-maildir-fcc-make-uniq-maildir-id: > emacs/notmuch-maildir-fcc.el:279:53:Warning: =E2=80=98system-name=E2=80= =99 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 necess= ary." > (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 > --=20 > 2.11.0 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch