From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: Patch: Syntax and Hard Newlines Date: Tue, 14 Nov 2006 09:35:17 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1163468220 32266 80.91.229.2 (14 Nov 2006 01:37:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 01:37:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 14 02:36:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjnDI-0002ho-Gl for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2006 02:35:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjnDH-0002cW-SI for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2006 20:35:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GjnD1-0002WZ-Fw for emacs-devel@gnu.org; Mon, 13 Nov 2006 20:35:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GjnCz-0002V1-Kb for emacs-devel@gnu.org; Mon, 13 Nov 2006 20:35:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjnCz-0002UW-BL for emacs-devel@gnu.org; Mon, 13 Nov 2006 20:35:29 -0500 Original-Received: from [65.54.246.86] (helo=bay0-omc1-s14.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GjnCs-0006HA-Iz; Mon, 13 Nov 2006 20:35:22 -0500 Original-Received: from hotmail.com ([64.4.26.19]) by bay0-omc1-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Nov 2006 17:35:21 -0800 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 13 Nov 2006 17:35:21 -0800 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Tue, 14 Nov 2006 01:35:17 GMT X-Originating-IP: [202.165.107.100] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: rms@gnu.org, emacs-devel@gnu.org X-OriginalArrivalTime: 14 Nov 2006 01:35:21.0026 (UTC) FILETIME=[25DB4A20:01C7078D] 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:62265 Archived-At: >However, if C code is going to examine the value of that variable >frequently, it would be more efficient to make it a C-level >variable defined with DEFVAR_PER_BUFFER in buffer.c. The `use-hard-newlines' mode is defined in ``paragraphs.el'' as (define-minor-mode use-hard-newlines ... So, the variable `use-hard-newlines' is defined by evaluating the forms returned by calling macro `define-minor-mode'. I know if the forms like (defvar var val "doc") are evaluated many times, `val' will not take effect except for the first time, but can we just define the variable `use-hard-newlines' in buffer.c without changing the definition of `use-hard-newlines' that defined with `define-minor-mode'? Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/