From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109327: Generalize INTERNAL_FIELD between buffers, keyboards and frames. Date: Sat, 04 Aug 2012 09:31:43 -0700 Organization: UCLA Computer Science Department Message-ID: <501D4E6F.6040702@cs.ucla.edu> References: <50191B54.2070705@yandex.ru> <5019FE2D.2060005@yandex.ru> <501B8C48.3000704@yandex.ru> <501C1F4D.5010007@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344097916 1879 80.91.229.3 (4 Aug 2012 16:31:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2012 16:31:56 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 04 18:31:53 2012 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 1SxhGY-000090-U9 for ged-emacs-devel@m.gmane.org; Sat, 04 Aug 2012 18:31:51 +0200 Original-Received: from localhost ([::1]:44022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxhGY-00064H-8a for ged-emacs-devel@m.gmane.org; Sat, 04 Aug 2012 12:31:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxhGV-000641-Nb for emacs-devel@gnu.org; Sat, 04 Aug 2012 12:31:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxhGU-0006RJ-Py for emacs-devel@gnu.org; Sat, 04 Aug 2012 12:31:47 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:49193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxhGU-0006RB-Jz for emacs-devel@gnu.org; Sat, 04 Aug 2012 12:31:46 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id AE5BC39E8017; Sat, 4 Aug 2012 09:31:45 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W52YhiuuY7iA; Sat, 4 Aug 2012 09:31:45 -0700 (PDT) Original-Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 36B4C39E8015; Sat, 4 Aug 2012 09:31:45 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:152175 Archived-At: On 08/03/2012 03:52 PM, Stefan Monnier wrote: >> return frame_buffer_list (XFRAME (frame)); > And then we have to remember that it's a "trivial" function that > can't GC? I can see disliking "frame_buffer_list (FOO)" (as opposed to "FOO->buffer_list") on length grounds, but I don't understand disliking it on GC grounds. The Emacs internals have lots of functions that don't call the GC; having some more shouldn't make that much difference one way or another. If there's a need to more easily distinguish between functions that call the GC, and functions that don't, there are good ways to do that -- perhaps Emacs could be taught to highlight one set of functions and not the other, or we could even institute a naming convention. But surely it goes too far to suppress functional notation merely because some functions call the garbage collector and others don't.