From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: ieieo Date: Fri, 14 Jun 2019 14:13:02 +0200 Message-ID: References: <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="53174"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 14 14:25:48 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 1hblHA-000DhH-AW for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2019 14:25:48 +0200 Original-Received: from localhost ([::1]:51012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hblH9-0005DF-8J for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2019 08:25:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52709) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbl4z-0005R6-NG for emacs-devel@gnu.org; Fri, 14 Jun 2019 08:13:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbl4x-0005j7-Te for emacs-devel@gnu.org; Fri, 14 Jun 2019 08:13:13 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:40986) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbl4x-0005dj-M0 for emacs-devel@gnu.org; Fri, 14 Jun 2019 08:13:11 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbl4o-0002o5-Ag; Fri, 14 Jun 2019 14:13:04 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUREBS9v74oJytTU1dz dHY7Oz9EDn//AAACYElEQVQ4jXWU3Y6jMAyFI2gfoBJzz4T6vsXxfSHJPXXw+7/KHtPOjka74woJ 5YuPf2m4/GKhlOU/xwUgA3yxjzIsS+blBcrw9+IA/yL5BWA/VHIqJQEMP48hb7IzwKUMX1IDFBb8 IDE48BjLK0BOKXE6Eg3fGoNHQ/DyBsPyDZbLRxLmfwHEC7Okn1LllfmXFHI+jLO/cUqFG557MBPh GOO4Pe7VtLd1DGT6GVgyzziPpiVa69YHgOgTgEUBqJ/WKe9bXTcAA2A2V5qm60zF1n2CR5NnMDYC iJOk0LKW6wRvZgCDEEWjR+1L0WdrFFvK96B+X2PT+bGnUk9rFWoFwGUIQGyse026zpWSA1WFGDWe zrrn6cZtFYBnEDI4mDD1HdKop2vj8gYQa9LG2JGO7ZSQX0FWXpwr2TZ2aluv1XuFOsYQOjJmxQup duuaLWX5DLAIIBsulEqj2Nwazy9gUNIQTrlFnXZTYXXQRThEKPHYRZomUhR1DfEIYR5qxnOOuGQH IJi5Qz/SGKJUMWuYhxoZKoEkdSV7YwHE9sAY7eEQbtchzaihOMCgrMoROmyLErdSasPsfB6MmeP8 TBVyWKCMlROP0Zp6df3pRkoJ3wGjwnuQOLUjWdq7pTgoiH4A9N2V5nodSk2XIXtaABYtevnzWqCE 7c0G870y71NUpNdh2lhTHxA2Ef0zzIj309ZFX2TxNbhCynyDKLW9O74mVlcGIAUw2+e1F4z7GABG ECCIZhmW42aYcGoS38C33gi7HWf0u9V5fAEZQwfQZDrDNZnoG+QDQIsIoNVGb/Db39IfiP7LaOyY phsAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Thu, 13 Jun 2019 12:16:10 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 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:237600 Archived-At: Stefan Monnier writes: >> (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). Yes, but the byte compiler will also output this warning... so you get the warning twice, but only the second is on a form that allows jumping to the definition: `object-print' is an obsolete generic function (as of 26.1); use `cl-print-object' instead. In toplevel form: emacs-lisp/eieio.el:850:11:Warning: `object-print' is an obsolete function (as of 26.1); use `cl-print-object' instead. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no