Mercurial > emacs
comparison lispref/text.texi @ 10364:981b97215c46
Fix buffer-undo-list.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 08 Jan 1995 19:20:03 +0000 |
parents | ff5d8881a3eb |
children | 4cc0a5e1bdac |
comparison
equal
deleted
inserted
replaced
10363:f9f787d5e5ff | 10364:981b97215c46 |
---|---|
926 @item (@var{beg} . @var{end}) | 926 @item (@var{beg} . @var{end}) |
927 This kind of element indicates how to delete text that was inserted. | 927 This kind of element indicates how to delete text that was inserted. |
928 Upon insertion, the text occupied the range @var{beg}--@var{end} in the | 928 Upon insertion, the text occupied the range @var{beg}--@var{end} in the |
929 buffer. | 929 buffer. |
930 | 930 |
931 @item (@var{pos} . @var{deleted}) | 931 @item (@var{text} . @var{position}) |
932 This kind of element indicates how to reinsert text that was deleted. | 932 This kind of element indicates how to reinsert text that was deleted. |
933 The deleted text itself is the string @var{deleted}. The place to | 933 The deleted text itself is the string @var{text}. The place to |
934 reinsert it is @var{pos}. | 934 reinsert it is @code{(abs @var{position})}. |
935 | 935 |
936 @item (t @var{high} . @var{low}) | 936 @item (t @var{high} . @var{low}) |
937 This kind of element indicates that an unmodified buffer became | 937 This kind of element indicates that an unmodified buffer became |
938 modified. The elements @var{high} and @var{low} are two integers, each | 938 modified. The elements @var{high} and @var{low} are two integers, each |
939 recording 16 bits of the visited file's modification time as of when it | 939 recording 16 bits of the visited file's modification time as of when it |
946 Here's how you might undo the change: | 946 Here's how you might undo the change: |
947 | 947 |
948 @example | 948 @example |
949 (put-text-property @var{beg} @var{end} @var{property} @var{value}) | 949 (put-text-property @var{beg} @var{end} @var{property} @var{value}) |
950 @end example | 950 @end example |
951 | |
952 @item @var{position} | |
953 This element indicates where point was at an earlier time. | |
954 Undoing this element sets point to @var{position}. | |
951 | 955 |
952 @item nil | 956 @item nil |
953 This element is a boundary. The elements between two boundaries are | 957 This element is a boundary. The elements between two boundaries are |
954 called a @dfn{change group}; normally, each change group corresponds to | 958 called a @dfn{change group}; normally, each change group corresponds to |
955 one keyboard command, and undo commands normally undo an entire group as | 959 one keyboard command, and undo commands normally undo an entire group as |