From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Various fixes for early init file changes Date: Thu, 8 Mar 2018 20:30:10 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1520558896 23403 195.159.176.226 (9 Mar 2018 01:28:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2018 01:28:16 +0000 (UTC) Cc: emacs-devel To: Radon Rosborough Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 09 02:28:12 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eu6pP-0005zs-De for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2018 02:28:11 +0100 Original-Received: from localhost ([::1]:42748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu6rS-0001Ms-7B for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2018 20:30:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eu6rM-0001Mi-Lx for emacs-devel@gnu.org; Thu, 08 Mar 2018 20:30:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eu6rM-00014d-0l for emacs-devel@gnu.org; Thu, 08 Mar 2018 20:30:12 -0500 Original-Received: from mail-ot0-x233.google.com ([2607:f8b0:4003:c0f::233]:32873) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eu6rL-000149-Sn for emacs-devel@gnu.org; Thu, 08 Mar 2018 20:30:11 -0500 Original-Received: by mail-ot0-x233.google.com with SMTP id y11so7338709otg.0 for ; Thu, 08 Mar 2018 17:30:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vpMeOo3oQiAzz6Z2wNyxOaczsUvBMM6kf1MshiDuk4c=; b=dxkU5PQOvlch1/od0FnccH6/ZYtPhccuqmL9hnszM7olhVuycRmsKuJUR/L8WNuYFs paFsmK4+RaGxdsqq22OPN2KASRNCBgA/yHlNy9grngTDBGlQTyG89JJ9Afc01D9n65mK UWaEj6yjSBNEA0FQUj77fXy95OlilqnPeF4NBUFisMzKZ2lkvdWlaysA7oH2ydO6d11j 385rFaHyyYmqyg2IJkjJR8ESImJvnWR71ZpeVE3JKaN5rV/YmyOjAXMIJoQ40CnlFvEa 9hkvfjS4jfX+M8OIktJSZzxNEqndRj1jQwCDKi3ZIOF+KAqHRXIEwNo7cZMN+QlyXvbc +2yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vpMeOo3oQiAzz6Z2wNyxOaczsUvBMM6kf1MshiDuk4c=; b=EPttpyrGPYZI+a7si8Ahm6dhD4J0g94KoF0NG5LgXx4RLJS+bhzclpJlyKgNENLe4N 9OhEHtgWBSNNGojDn8Hrj5yGRnmA0SC1mnML/2AxoNTVZKEPlFh3/PkqfQGp5KS4ZWKM Y/G7QM1Tcub4FHRy5KzJO4stNLndyVlOPfnvg50jmkTsDGaxlTVsCb0RWWHkKdsrPuuk V4Yl+r2wcnMnkclnVa/rfx1l390rgrA1GtcoI9W0ABa7T0jyKl04RFIGJgE6DsxjlJjI QuZtTsb5hhtXfRfIAv4IPz9v59gWy5f12PDIiuMvdzE75lyhGhHIgh89QnzfBgB9cIzq iQeA== X-Gm-Message-State: AElRT7EgOirxHP3enbjdC+xi/VSh5xsgoy3RuN42qrfSvQVn8/yA++Ae ZngCraOgG+vtpMcbmrVWQKcVzKoR+d/8wap0FOg= X-Google-Smtp-Source: AG47ELtvWhRQWGcQm38jFF07yTwcUEQGE1G2fQu4T9ZmPPaUIx4vywzkd92/wNEwC0wnrqa7P8WQPV1ngSKjOnEK4es= X-Received: by 10.157.97.130 with SMTP id g2mr20371061otk.82.1520559011074; Thu, 08 Mar 2018 17:30:11 -0800 (PST) Original-Received: by 10.74.59.65 with HTTP; Thu, 8 Mar 2018 17:30:10 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223525 Archived-At: On Sat, Mar 3, 2018 at 12:31 AM, Radon Rosborough wrote: > 3. Warn if `package-initialize' is called twice. This causes Emacs to > emit a warning, by default, if `package-initialize' is called twice > during init. I expect this to cause people a lot of warnings, but I > think this is a good thing, since the alternative (currently) is a > pretty bad performance regression if people leave a now-superfluous > extra call to `package-initialize' in their init files. Plus, the fix > is trivial: just delete the extra call. For people who really do want > to call `package-initialize' twice for some reason, there is a new > variable `package-warn-on-reinitialization' which can be customized to > disable the warning. You could use (lwarn '(package reinitialize) :warning "Unnecessary call to `package-initialize' in init file") and then the warning could be suppressed by adding '(package reinitialize) to warning-suppress-types instead of creating a new custom option.