Changes between Version 1 and Version 2 of HemlockProgrammer/Utilities


Ignore:
Timestamp:
Jan 16, 2008, 12:38:45 AM (12 years ago)
Author:
gz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HemlockProgrammer/Utilities

    v1 v2  
     1[HemlockProgrammer Back to Table of Contents]
    12[[PageOutline]]
    23
     
    910other user-visible features.
    1011
    11 == 16.1. String-table Functions ==
     12== 16.1. String-table Functions ==#StringTableFunctions
    1213
    1314String tables are similar to Common Lisp hash tables in that they
     
    2728space may make the Echo Area commands fail or work unexpectedly.
    2829
    29 make-string-table                [Function]
     30`make-string-table`              [Function]
    3031
    3132This function creates an empty string table that uses separator as the
     
    3839
    3940
    40 string-table-p          string-table     [Function]
     41`string-table-p`        string-table     [Function]
    4142
    4243This function returns t if string-table is a string-table object,
     
    4546
    4647
    47 string-table-separator          string-table     [Function]
     48`string-table-separator`        string-table     [Function]
    4849
    4950This function returns the separator character given to
     
    5253
    5354
    54 delete-string   string table     [Function]
    55 
    56 clrstring       table    [Function]
     55`delete-string`         string table     [Function]
     56
     57`clrstring`     table    [Function]
    5758
    5859delete-string removes any entry for string from the string-table
     
    6263
    6364
    64 getstring       string table     [Function]
     65`getstring`     string table     [Function]
    6566
    6667This function returns as multiple values, first the value
     
    7475
    7576
    76 complete-string         string tables    [Function]
     77`complete-string`       string tables    [Function]
    7778
    7879This function completes string as far as possible over the list of
     
    111112
    112113
    113 find-ambiguous          string table     [Function]
    114 
    115 find-containing         string table     [Function]
     114`find-ambiguous`        string table     [Function]
     115
     116`find-containing`       string table     [Function]
    116117
    117118find-ambiguous returns a list in alphabetical order of all the strings
     
    126127
    127128
    128 do-strings      (string-var value-var table result) declaration tag statement    [Macro]
     129`do-strings`    (string-var value-var table result) declaration tag statement    [Macro]
    129130
    130131This macro iterates over the strings in table in alphabetical
     
    132133value-var to an entry's value.
    133134
    134 == 16.2. Ring Functions ==
     135== 16.2. Ring Functions ==#RingFunctions
    135136
    136137There are various purposes in an editor for which a ring of values can
     
    140141modes and commands maintain as a history mechanism.
    141142
    142 make-ring       length &optional delete-function         [Function]
     143`make-ring`     length &optional delete-function         [Function]
    143144
    144145Makes an empty ring object capable of holding up to length Lisp
     
    148149
    149150
    150 ringp   ring     [Function]
     151`ringp`         ring     [Function]
    151152
    152153Returns t if ring is a ring object, otherwise nil.
     
    154155
    155156
    156 ring-length     ring     [Function]
     157`ring-length`   ring     [Function]
    157158
    158159Returns as multiple-values the number of elements which ring currently
     
    161162
    162163
    163 ring-ref        ring index       [Function]
     164`ring-ref`      ring index       [Function]
    164165
    165166Returns the index'th item in the ring, where zero is the index of the
     
    168169
    169170
    170 ring-push       object ring      [Function]
     171`ring-push`     object ring      [Function]
    171172
    172173Pushes object into ring, possibly causing the oldest item to go away.
     
    174175
    175176
    176 ring-pop        ring     [Function]
     177`ring-pop`      ring     [Function]
    177178
    178179Removes the most recently pushed object from ring and returns it. If
     
    181182
    182183
    183 rotate-ring     ring offset      [Function]
     184`rotate-ring`   ring offset      [Function]
    184185
    185186With a positive offset, rotates ring forward that many times. In a
     
    188189element. A negative offset rotates the ring the other way.
    189190
    190 16.3 Undoing commands
    191 
    192 save-for-undo   name method &optional cleanup method-undo buffer         [Function]
     191== 16.3 Undoing commands ==#UndoingCommands
     192
     193`save-for-undo`         name method &optional cleanup method-undo buffer         [Function]
    193194               
    194195This saves information to undo a command. Name is a string to display
     
    207208
    208209
    209 make-region-undo        kind name region &optional mark-or-region        [Function]
     210`make-region-undo`      kind name region &optional mark-or-region        [Function]
    210211               
    211212This handles three common cases that commands fall into when setting
     
    264265
    265266
     267
     268[HemlockProgrammer Back to Table of Contents]