From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Patch for fields of `struct buffer' Date: Fri, 28 Jan 2011 18:23:07 +0100 Message-ID: <874o8tdjt0.fsf@kfs-lx.rd.rdm> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1296235704 7069 80.91.229.12 (28 Jan 2011 17:28:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 17:28:24 +0000 (UTC) Cc: Emacs discussions To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 28 18:28:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pis7K-0006e3-U5 for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2011 18:28:15 +0100 Original-Received: from localhost ([127.0.0.1]:43419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pis2Y-0003Mq-DI for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2011 12:23:18 -0500 Original-Received: from [140.186.70.92] (port=48143 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pis2U-0003Mi-8d for emacs-devel@gnu.org; Fri, 28 Jan 2011 12:23:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pis2T-00036n-4J for emacs-devel@gnu.org; Fri, 28 Jan 2011 12:23:14 -0500 Original-Received: from smtp.fullrate.dk ([90.185.1.42]:51933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pis2S-00036O-VH for emacs-devel@gnu.org; Fri, 28 Jan 2011 12:23:13 -0500 Original-Received: from kfs-lx.rd.rdm.cua.dk (1405ds6-amb.0.fullrate.dk [95.166.178.253]) by smtp.fullrate.dk (Postfix) with SMTP id A5B5A9CD58; Fri, 28 Jan 2011 18:23:08 +0100 (CET) In-Reply-To: (Tom Tromey's message of "Thu, 27 Jan 2011 13:18:37 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 90.185.1.42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135162 Archived-At: Tom Tromey writes: > Here is the promised change to buffer fields. > > I need volunteers to complete this patch; or at least the ok on > proceeding to temporarily break the build. See below for details. > Just wondering how "unreadable" the resulting code becomes with all those new macros .... Rather than defining all the individual BUF_xxxx(buf) macros for each field buf->xxxx field, would it be possible to factor this out in a single accessor macro like B_(buf, XXXX) If necessary, behind the scenes (by help of the proprocessor), this could further map into a BUF_xxxx(buf) macro, but I don't know what kind of mapping the BUF_XXXX macros are supposed to do, so I cannot say whether it is possible or not... Kim