Changes between Version 2 and Version 3 of HemlockProgrammer/TheCurrentEnvironment


Ignore:
Timestamp:
Jan 15, 2008, 12:15:06 AM (12 years ago)
Author:
gz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HemlockProgrammer/TheCurrentEnvironment

    v2 v3  
     1[HemlockProgrammer Back to Table of Contents]
    12[[PageOutline]]
    23
    34= 5. The Current Environment =
    45
    5 == 5.1. Different Scopes ==
     6== 5.1. Different Scopes ==#DifferentScopes
    67
    7 In Hemlock the values of variables (page 23), key-bindings (page 29)
    8 and character-attributes (page 37) may depend on the current-buffer
    9 (page 9) and the modes active in it.  There are three possible scopes
    10 for Hemlock values:
     8In Hemlock the "current" values of [HemlockProgrammer/HemlockVariables variables],
     9[HemlockProgrammer/Commands key bindings] and
     10[HemlockProgrammer/CharacterAttributes character-attributes]
     11depend on the [HemlockProgrammer/Buffers#CurrentBuffer current buffer]
     12and the modes active in it.  There are three possible scopes for
     13Hemlock values:
    1114
    1215 buffer local::
    13   The value is present only if the buffer it is local to is the current-buffer.
     16  The value is present only if the buffer it is local to is the current buffer.
    1417
    1518 mode local::
    16   The value is present only when the mode it is local to is
    17   active in the current-buffer.
     19  The value is present only when the mode it is local to is active in the current buffer.
    1820
    1921 global::
    2022  The value is always present unless shadowed by a buffer or mode local value.
    2123
    22 == 5.2. Shadowing ==
     24== 5.2. Shadowing ==#Shadowing
    2325
    24 It is possible for there to be a conflict between different values for
    25 the same thing in different scopes.  For example, there be might a
    26 global binding for a given variable and also a local binding in the
    27 current buffer.  Whenever there is a conflict shadowing occurs,
    28 permitting only one of the values to be visible in the current
    29 environment.
     26It is possible that there are different values for the same thing in
     27in different scopes.  For example, there be might a global binding for a given
     28variable and also a local binding in the current buffer.  Whenever there is a
     29conflict, shadowing occurs, permitting only one of the values to be visible in
     30the current environment.
    3031
    3132The process of resolving such a conflict can be described as a search
     
    3839 4. Global values.
    3940
     41[HemlockProgrammer Back to Table of Contents]