From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#21953: Eliminate warnings in the emacs-25 release branch Date: Wed, 25 Nov 2015 09:31:16 +0000 Message-ID: <20151125093116.GA2007@acm.fritz.box> References: <20151124195543.33077.qmail@mail.muc.de> <565500B0.9090308@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1448443833 18237 80.91.229.3 (25 Nov 2015 09:30:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Nov 2015 09:30:33 +0000 (UTC) Cc: 21953@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 25 10:30:21 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1WP5-0003Ee-Ul for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 10:30:20 +0100 Original-Received: from localhost ([::1]:44059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1WP2-0003Cd-Hu for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Nov 2015 04:30:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1WOy-0003CW-4P for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 04:30:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1WOu-0004VY-RU for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 04:30:12 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1WOu-0004VU-O4 for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 04:30:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1WOt-0004bs-3k for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2015 04:30:07 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Nov 2015 09:30:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21953 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21953-submit@debbugs.gnu.org id=B21953.144844377417643 (code B ref 21953); Wed, 25 Nov 2015 09:30:06 +0000 Original-Received: (at 21953) by debbugs.gnu.org; 25 Nov 2015 09:29:34 +0000 Original-Received: from localhost ([127.0.0.1]:52060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1WOM-0004aV-4h for submit@debbugs.gnu.org; Wed, 25 Nov 2015 04:29:34 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:42407) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1WO1-0004Zx-OS for 21953@debbugs.gnu.org; Wed, 25 Nov 2015 04:29:32 -0500 Original-Received: (qmail 70144 invoked by uid 3782); 25 Nov 2015 09:29:12 -0000 Original-Received: from acm.muc.de (p5B146B74.dip0.t-ipconnect.de [91.20.107.116]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 25 Nov 2015 10:29:11 +0100 Original-Received: (qmail 2101 invoked by uid 1000); 25 Nov 2015 09:31:16 -0000 Content-Disposition: inline In-Reply-To: <565500B0.9090308@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109222 Archived-At: Hello, Dmitry. On Wed, Nov 25, 2015 at 02:28:32AM +0200, Dmitry Gutov wrote: > On 11/24/2015 09:55 PM, Alan Mackenzie wrote: > > Sir, I take exception to that! :-) Last time I looked (about 10 minutes > > ago), CC Mode produced but a single byte compiler warning. > That's a pretty cool result. I don't see any warnings left, actually. Actually, at the time I wrote that email, there were two. One of those only showed itself when the cc-*.el files were compiled one at a time (as is done in building Emacs) rather than all together. But I've got rid of these last two too. > > That partly explains the warning left in CC Mode, yes. > I see you're taking a systematic approach to backward compatibility, > with dynamic selection of definitions, aliases (and probably something > else). Were any of those made specifically to avoid a byte-compilation > warning? I wonder if that's worth it. The backward compatibility stuff has been there for decades (well, over ten years anyway, possibly over twenty). Most of the stuff in cc-fix.el has been fixed in all supported platforms, in particular in Emacs. That is why cc-fix.el isn't needed (and doesn't exist) in Emacs. But `delete-dups' still doesn't exist in XEmacs 21.4.x. Whether it's worth it? I suppose, some time "soon", I should get rid of backward compatibility stuff not needed any more, and also wierd hacks (like defining a function with "(eval '(defun cc-bytecomp-load ...))" because a proper byte compilation caused XEmacs to dump core back in 2003). -- Alan Mackenzie (Nuremberg, Germany).