emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/doc/lispref ChangeLog variables.texi


From: Chong Yidong
Subject: [Emacs-diffs] emacs/doc/lispref ChangeLog variables.texi
Date: Fri, 16 Oct 2009 02:20:31 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      09/10/16 02:20:31

Modified files:
        doc/lispref    : ChangeLog variables.texi 

Log message:
        * variables.texi (Constant Variables): Distinguish from defconst
        variables.
        (Defining Variables): Add cindex.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/lispref/ChangeLog?cvsroot=emacs&r1=1.342&r2=1.343
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/lispref/variables.texi?cvsroot=emacs&r1=1.19&r2=1.20

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/ChangeLog,v
retrieving revision 1.342
retrieving revision 1.343
diff -u -b -r1.342 -r1.343
--- ChangeLog   15 Oct 2009 20:44:36 -0000      1.342
+++ ChangeLog   16 Oct 2009 02:20:29 -0000      1.343
@@ -1,3 +1,9 @@
+2009-10-16  Chong Yidong  <address@hidden>
+
+       * variables.texi (Constant Variables): Distinguish from defconst
+       variables.
+       (Defining Variables): Add cindex.
+
 2009-10-15  Chong Yidong  <address@hidden>
 
        * os.texi (Time of Day): Clarify that the microsecond part is

Index: variables.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/variables.texi,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- variables.texi      17 Jun 2009 02:58:57 -0000      1.19
+++ variables.texi      16 Oct 2009 02:20:30 -0000      1.20
@@ -134,6 +134,12 @@
 @code{nil} otherwise.
 @end defun
 
+These constants are fundamentally different from the ``constants''
+defined using the @code{defconst} special form (@pxref{Defining
+Variables}).  A @code{defconst} form serves to inform human readers
+that you do not intend to change the value of a variable, but Emacs
+does not raise an error if you actually change it.
+
 @node Local Variables
 @section Local Variables
 @cindex binding local variables
@@ -523,6 +529,7 @@
 at top level in a file where its value does not matter.
 @end defspec
 
address@hidden constant variables
 @defspec defconst symbol value [doc-string]
 This special form defines @var{symbol} as a value and initializes it.
 It informs a person reading your code that @var{symbol} has a standard




reply via email to

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