diff options
| author | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
| commit | 2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch) | |
| tree | f26dc9f22861dc37610de319d05255de058c221b /src/intervals.c | |
| parent | 0c747cb143fa227e78f350ac353d703f489209df (diff) | |
| parent | 175069efeb080517afefdd44a06f7a779ea8c25c (diff) | |
| download | emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip | |
Merge from trunk
Diffstat (limited to 'src/intervals.c')
| -rw-r--r-- | src/intervals.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/intervals.c b/src/intervals.c index 5e08e13d23b..def63c43cc4 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1875,15 +1875,6 @@ lookup_char_property (Lisp_Object plist, register Lisp_Object prop, int textprop | |||
| 1875 | } | 1875 | } |
| 1876 | 1876 | ||
| 1877 | 1877 | ||
| 1878 | /* Set point "temporarily", without checking any text properties. */ | ||
| 1879 | |||
| 1880 | INLINE void | ||
| 1881 | temp_set_point (struct buffer *buffer, EMACS_INT charpos) | ||
| 1882 | { | ||
| 1883 | temp_set_point_both (buffer, charpos, | ||
| 1884 | buf_charpos_to_bytepos (buffer, charpos)); | ||
| 1885 | } | ||
| 1886 | |||
| 1887 | /* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to | 1878 | /* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to |
| 1888 | byte position BYTEPOS. */ | 1879 | byte position BYTEPOS. */ |
| 1889 | 1880 | ||
| @@ -1906,6 +1897,15 @@ temp_set_point_both (struct buffer *buffer, | |||
| 1906 | BUF_PT (buffer) = charpos; | 1897 | BUF_PT (buffer) = charpos; |
| 1907 | } | 1898 | } |
| 1908 | 1899 | ||
| 1900 | /* Set point "temporarily", without checking any text properties. */ | ||
| 1901 | |||
| 1902 | INLINE void | ||
| 1903 | temp_set_point (struct buffer *buffer, EMACS_INT charpos) | ||
| 1904 | { | ||
| 1905 | temp_set_point_both (buffer, charpos, | ||
| 1906 | buf_charpos_to_bytepos (buffer, charpos)); | ||
| 1907 | } | ||
| 1908 | |||
| 1909 | /* Set point in BUFFER to CHARPOS. If the target position is | 1909 | /* Set point in BUFFER to CHARPOS. If the target position is |
| 1910 | before an intangible character, move to an ok place. */ | 1910 | before an intangible character, move to an ok place. */ |
| 1911 | 1911 | ||