[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: Syntax and Hard Newlines

From: Herbert Euler
Subject: Re: Patch: Syntax and Hard Newlines
Date: Tue, 14 Nov 2006 09:35:17 +0800

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'?

Guanpeng Xu

Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]