From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: ieieo Date: Thu, 13 Jun 2019 12:16:10 -0400 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> <83a7eo9nsh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="157685"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 13 20:18:33 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbUIz-000eu5-1D for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2019 20:18:33 +0200 Original-Received: from localhost ([::1]:43358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbUIx-00049X-LR for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2019 14:18:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47195) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbSOf-0008I2-2z for emacs-devel@gnu.org; Thu, 13 Jun 2019 12:16:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbSOd-0006tJ-60 for emacs-devel@gnu.org; Thu, 13 Jun 2019 12:16:16 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:10006) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbSOd-0006ml-1d for emacs-devel@gnu.org; Thu, 13 Jun 2019 12:16:15 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 45495100944 for ; Thu, 13 Jun 2019 12:16:14 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4436710087A for ; Thu, 13 Jun 2019 12:16:13 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1560442573; bh=7214sYfUqoCHa2RxzKwrUV2zwxm9biBbXjFmtLcqETA=; h=From:To:Subject:References:Date:In-Reply-To:From; b=ETWQbelAIgQLoVkAhBzU0bLCYTOrXvtweg+T7U0xu+Fs6W+9enZswKhO5PjRz2ubI 3/sJvNxtlfOQBwC9dR7p4XAJSQlSEzPhXGfiwG1Thz3YmkgtvRRiGnnuqsUfReaIdF pZs65ZpGpP1ZuY+yBhBrVTNbAs6vn85JuE4DBC0uf4I5pzQMi/UD2AuXAUhiVRYDtZ Iqt+lroNiv2bWHWdaxui3FEpy8CuilfK4/ibhrMEYmX6i3V47axKjd6NwAbmkmZM4z 9A0D/knqatNswQR9gNCv15nfuRWm0nHcMqq+BYpl0reog6b70lhaKWlINvC0nVBjSn Vrh9h1DuVR8zw== Original-Received: from alfajor (cm-84.215.66.78.getinternet.no [84.215.66.78]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DE3F0120B98 for ; Thu, 13 Jun 2019 12:16:12 -0400 (EDT) In-Reply-To: (Lars Ingebrigtsen's message of "Thu, 13 Jun 2019 15:50:31 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:237538 Archived-At: > (pcase-let* ((`(,uses-cnm . ,fun) (cl--generic-lambda args body))) > `(progn > ,(and (get name 'byte-obsolete-info) > (or (not (fboundp 'byte-compile-warning-enabled-p)) > (byte-compile-warning-enabled-p 'obsolete)) > (let* ((obsolete (get name 'byte-obsolete-info))) > (macroexp--warn-and-return > (macroexp--obsolete-warning name obsolete "generic function") > nil))) IIUC, this is to emit a warning when a package defines a method for an obsolete generic-function (e.g. a method for object-print) so that the author is made aware of the need to port the method to the new generic function (e.g. cl-print-object). Stefan