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: Installing `struct buffer' patch Date: Mon, 14 Feb 2011 12:36:24 -0500 Message-ID: References: <4D47DFD4.1040108@gmail.com> <87r5ba7ejz.fsf@stupidchicken.com> <87mxly7e4f.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297705003 11546 80.91.229.12 (14 Feb 2011 17:36:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 17:36:43 +0000 (UTC) Cc: Tom Tromey , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 14 18:36:36 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 1Pp2Lj-00062J-6n for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 18:36:35 +0100 Original-Received: from localhost ([127.0.0.1]:40674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp2Li-0005xj-Db for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 12:36:34 -0500 Original-Received: from [140.186.70.92] (port=50512 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp2Lb-0005xY-VM for emacs-devel@gnu.org; Mon, 14 Feb 2011 12:36:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp2La-0006WT-L9 for emacs-devel@gnu.org; Mon, 14 Feb 2011 12:36:27 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:3300 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp2La-0006WN-H6 for emacs-devel@gnu.org; Mon, 14 Feb 2011 12:36:26 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFb2WE1MCqmX/2dsb2JhbACmCnS7QoVeBIUEjzk X-IronPort-AV: E=Sophos;i="4.60,469,1291611600"; d="scan'208";a="91690935" Original-Received: from 76-10-169-151.dsl.teksavvy.com (HELO ceviche.home) ([76.10.169.151]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 14 Feb 2011 12:36:24 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 07AF866188; Mon, 14 Feb 2011 12:36:24 -0500 (EST) In-Reply-To: <87mxly7e4f.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 14 Feb 2011 11:52:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:136007 Archived-At: Chong> What do you think about replacing B_ with lots of individual macros, Chong> like BUF_UNDO_LIST, BUF_NAME, etc.? This might be ugly in buffer.h, but Chong> the rest of the code would be more understandable. >> This is exactly what I did originally, but Stefan asked me to change it >> to B_. Yes, I like having a single macro and seeing the field name "as-is" rather than "as part of a macro name, capitalized". But I agree that B_ is not very satisfactory. > How bout replacing B_ with something like BUFFER_VAR? Sounds good. Or if we want something shorted, we can shorten BUFFER_VAR to just BVAR (like we do for SDATA, ASIZE, ...). Stefan