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: project.el Date: Thu, 13 Jun 2019 15:24:25 +0200 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> <83a7eo9nsh.fsf@gnu.org> <53005f09-cc1f-abd2-ec41-a3645db0e57c@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133402"; 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: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 13 16:48:43 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 1hbR1t-000YUs-8K for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2019 16:48:41 +0200 Original-Received: from localhost ([::1]:40598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbR1s-00045g-7x for ged-emacs-devel@m.gmane.org; Thu, 13 Jun 2019 10:48:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49979) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbPiT-00085A-PP for emacs-devel@gnu.org; Thu, 13 Jun 2019 09:24:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbPiS-0002HH-0r for emacs-devel@gnu.org; Thu, 13 Jun 2019 09:24:33 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:52006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbPiR-0002ER-EJ for emacs-devel@gnu.org; Thu, 13 Jun 2019 09:24:31 -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 1hbPiL-00008W-NT; Thu, 13 Jun 2019 15:24:28 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEWKgoDr5+S0q6dSLikp DAxmXFu1o8AQAAACa0lEQVQ4jU2TwbaqMAxFA9o5rZd5Gy9zMe3ctyjzQs3//8pNKvqMC1h2k5Oc tMDAAIZrYuba2f8BAwAwF1/6HoO1vDEH0ykoUIqwwgwC8lxXLA2IkKyWwkZfxFCpC01Kl6GgR9QM QfiuYbgAS/HEnXNuQOzRoYWRRUpC790v8z5tW+Lb0ZX0pVU6P6Ub7fdk7g00Jxqbil9vRw0R0ZZk HdRgoPoGNSWurFdJFifwLzCmd2mu1Qf85WtwyQYYd62caCGizVs857wOgAOMZTdsQKPO0kSWsGJF AHjWvmQsnYsnBYDyG+8YrpSqss3RVcFSE8DoeXenVLguz9nRbwNECUbszW5IZpF4HtJT1tdKiWF8 TL3LiZ+F0zY2kHMhAUZ8S8cJELuLgueyGiKZbmnu0Js6D8VQ/nlcjNYo6g/qiajOCP0Ux8fPImDg 9BotP/PssPfkHiOL1CAW5Em1xjxbNBDt4iCuYK0L9iG7ey6Q+BMVLHK/3RF13jR4mVJA38s/N52X W149AObFOXkj9DLQEWwU7bzqgIna6UE9QEMD297hhB5OCsDo+RJQa+5SaRVX3VM5L3J3YC997qLI Il4FSBF/SF1MnqOcBZnjIsDsso1BM66U/0U97HxqUjKWJuVqTTLlZippRz20xsCVgv3br0ggiCW9 HJTPHHb5iAy8UsDpjlGO+rhbsW7RWac1ZOdrIo04f3+cAiLRBzgMYiW40DKUxK8MZ6EIeC/HL6kT tww61GZ8p8iuHV2R3ONdvhv9cnXrD7DQq90jwcPh44gDeG3rBaTOFzj37gW0IYpi/v7pSp3HrF0d UuED/gC6e8GtCTaUYgAAAABJRU5ErkJggg== In-Reply-To: <53005f09-cc1f-abd2-ec41-a3645db0e57c@yandex.ru> (Dmitry Gutov's message of "Thu, 13 Jun 2019 16:10:32 +0300") 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:237514 Archived-At: Dmitry Gutov writes: >> OK, then I think the right solution here is to just make project.el >> require xref, and if you later change the functions, then we'll get a >> new error at that point. > > Fine by me, but we've previously dealt with these warnings using > declare-function, see > > (declare-function xref--show-xrefs "xref") > (declare-function xref-backend-identifier-at-point "xref") > (declare-function xref--find-ignores-arguments "xref") That's a better idea, especially since xref requires project.el, so just requiring xref would be circular. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no