From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 1fcc552: lisp/gnus/registry.el (registry-prune): Allow registry to reach full size before pruning Date: Sat, 18 Apr 2015 10:20:30 -0400 Message-ID: References: <20150320104953.20367.194@vcs.savannah.gnu.org> <87bnilpv4d.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429366857 32554 80.91.229.3 (18 Apr 2015 14:20:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 14:20:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 16:20:43 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YjTbu-0002t7-Ad for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 16:20:42 +0200 Original-Received: from localhost ([::1]:45838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjTbt-0005t6-GX for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 10:20:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjTbn-0005sy-7i for emacs-devel@gnu.org; Sat, 18 Apr 2015 10:20:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjTbj-0002gK-UQ for emacs-devel@gnu.org; Sat, 18 Apr 2015 10:20:35 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:45177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjTbj-0002g9-OU for emacs-devel@gnu.org; Sat, 18 Apr 2015 10:20:31 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3IEKU8G020398; Sat, 18 Apr 2015 10:20:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 620D02174; Sat, 18 Apr 2015 10:20:30 -0400 (EDT) In-Reply-To: <87bnilpv4d.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 18 Apr 2015 06:51:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5280=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5280> : inlines <2752> : streams <1424550> : uri <1909894> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185591 Archived-At: > If initargs are to be avoided, maybe a compilation warning there would > be appropriate?[1] Agreed. I haven't implemented one yet, but it's crossed my mind, yes. The main problem is that in (oref a b), the compiler has no idea what is the possible class(es) of `a', so it can't look up that class to see if `b' is an initarg. What I'm thinking of doing is keeping track of all known slot names and all known initarg names, and if `b' is an initarg name but not a slot name, then emit the warning. This should work OK in practice since initargs tend to all be keywords, where slot names tend to all be non-keyword symbols. Stefan