aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c4
-rw-r--r--src/fns.c3
-rw-r--r--src/image.c8
-rw-r--r--src/indent.c1
-rw-r--r--src/search.c85
5 files changed, 68 insertions, 33 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8756cbbbd7d..24c997fcdbd 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2224,7 +2224,9 @@ advance_to_char_boundary (ptrdiff_t byte_pos)
2224 2224
2225DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, 2225DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text,
2226 1, 1, 0, 2226 1, 1, 0,
2227 doc: /* Swap the text between current buffer and BUFFER. */) 2227 doc: /* Swap the text between current buffer and BUFFER.
2228Using this function from `save-excursion' might produce surprising
2229results, see Info node `(elisp)Swapping Text'. */)
2228 (Lisp_Object buffer) 2230 (Lisp_Object buffer)
2229{ 2231{
2230 struct buffer *other_buffer; 2232 struct buffer *other_buffer;
diff --git a/src/fns.c b/src/fns.c
index 3895ada325d..31f0fd27418 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -449,8 +449,7 @@ the codeset part of the locale cannot be \"UTF-8\" on MS-Windows.
449If your system does not support a locale environment, this function 449If your system does not support a locale environment, this function
450behaves like `string-equal'. 450behaves like `string-equal'.
451 451
452Do NOT use this function to compare file names for equality, only 452Do NOT use this function to compare file names for equality. */)
453for sorting them. */)
454 (Lisp_Object s1, Lisp_Object s2, Lisp_Object locale, Lisp_Object ignore_case) 453 (Lisp_Object s1, Lisp_Object s2, Lisp_Object locale, Lisp_Object ignore_case)
455{ 454{
456#if defined __STDC_ISO_10646__ || defined WINDOWSNT 455#if defined __STDC_ISO_10646__ || defined WINDOWSNT
diff --git a/src/image.c b/src/image.c
index 1770de7e8ff..7a554ef1b63 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8910,13 +8910,13 @@ and `imagemagick-types-inhibit'. */)
8910{ 8910{
8911 Lisp_Object typelist = Qnil; 8911 Lisp_Object typelist = Qnil;
8912 size_t numf = 0; 8912 size_t numf = 0;
8913 ExceptionInfo ex; 8913 ExceptionInfo *ex;
8914 char **imtypes; 8914 char **imtypes;
8915 size_t i; 8915 size_t i;
8916 8916
8917 GetExceptionInfo(&ex); 8917 ex = AcquireExceptionInfo ();
8918 imtypes = GetMagickList ("*", &numf, &ex); 8918 imtypes = GetMagickList ("*", &numf, ex);
8919 DestroyExceptionInfo(&ex); 8919 DestroyExceptionInfo (ex);
8920 8920
8921 for (i = 0; i < numf; i++) 8921 for (i = 0; i < numf; i++)
8922 { 8922 {
diff --git a/src/indent.c b/src/indent.c
index 1015259cedd..f8c180d3e2b 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2030,6 +2030,7 @@ whether or not it is currently displayed in some window. */)
2030 struct position pos; 2030 struct position pos;
2031 pos = *vmotion (PT, PT_BYTE, XINT (lines), w); 2031 pos = *vmotion (PT, PT_BYTE, XINT (lines), w);
2032 SET_PT_BOTH (pos.bufpos, pos.bytepos); 2032 SET_PT_BOTH (pos.bufpos, pos.bytepos);
2033 it.vpos = pos.vpos;
2033 } 2034 }
2034 else 2035 else
2035 { 2036 {
diff --git a/src/search.c b/src/search.c
index 7c4a02491db..3d4846644ee 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2157,12 +2157,17 @@ DEFUN ("search-backward", Fsearch_backward, Ssearch_backward, 1, 4,
2157 doc: /* Search backward from point for STRING. 2157 doc: /* Search backward from point for STRING.
2158Set point to the beginning of the occurrence found, and return point. 2158Set point to the beginning of the occurrence found, and return point.
2159An optional second argument bounds the search; it is a buffer position. 2159An optional second argument bounds the search; it is a buffer position.
2160The match found must not extend before that position. 2160 The match found must not begin before that position. A value of nil
2161 means search to the beginning of the accessible portion of the buffer.
2161Optional third argument, if t, means if fail just return nil (no error). 2162Optional third argument, if t, means if fail just return nil (no error).
2162 If not nil and not t, position at limit of search and return nil. 2163 If not nil and not t, position at limit of search and return nil.
2163Optional fourth argument COUNT, if non-nil, means to search for COUNT 2164Optional fourth argument COUNT, if a positive number, means to search
2164 successive occurrences. If COUNT is negative, search forward, 2165 for COUNT successive occurrences. If COUNT is negative, search
2165 instead of backward, for -COUNT occurrences. 2166 forward, instead of backward, for -COUNT occurrences. A value of
2167 nil means the same as 1.
2168With COUNT positive, the match found is the COUNTth to last one (or
2169 last, if COUNT is 1 or nil) in the buffer located entirely before
2170 the origin of the search; correspondingly with COUNT negative.
2166 2171
2167Search case-sensitivity is determined by the value of the variable 2172Search case-sensitivity is determined by the value of the variable
2168`case-fold-search', which see. 2173`case-fold-search', which see.
@@ -2177,13 +2182,17 @@ DEFUN ("search-forward", Fsearch_forward, Ssearch_forward, 1, 4, "MSearch: ",
2177 doc: /* Search forward from point for STRING. 2182 doc: /* Search forward from point for STRING.
2178Set point to the end of the occurrence found, and return point. 2183Set point to the end of the occurrence found, and return point.
2179An optional second argument bounds the search; it is a buffer position. 2184An optional second argument bounds the search; it is a buffer position.
2180The match found must not extend after that position. A value of nil is 2185 The match found must not end after that position. A value of nil
2181 equivalent to (point-max). 2186 means search to the end of the accessible portion of the buffer.
2182Optional third argument, if t, means if fail just return nil (no error). 2187Optional third argument, if t, means if fail just return nil (no error).
2183 If not nil and not t, move to limit of search and return nil. 2188 If not nil and not t, move to limit of search and return nil.
2184Optional fourth argument COUNT, if non-nil, means to search for COUNT 2189Optional fourth argument COUNT, if a positive number, means to search
2185 successive occurrences. If COUNT is negative, search backward, 2190 for COUNT successive occurrences. If COUNT is negative, search
2186 instead of forward, for -COUNT occurrences. 2191 backward, instead of forward, for -COUNT occurrences. A value of
2192 nil means the same as 1.
2193With COUNT positive, the match found is the COUNTth one (or first,
2194 if COUNT is 1 or nil) in the buffer located entirely after the
2195 origin of the search; correspondingly with COUNT negative.
2187 2196
2188Search case-sensitivity is determined by the value of the variable 2197Search case-sensitivity is determined by the value of the variable
2189`case-fold-search', which see. 2198`case-fold-search', which see.
@@ -2197,14 +2206,19 @@ See also the functions `match-beginning', `match-end' and `replace-match'. */)
2197DEFUN ("re-search-backward", Fre_search_backward, Sre_search_backward, 1, 4, 2206DEFUN ("re-search-backward", Fre_search_backward, Sre_search_backward, 1, 4,
2198 "sRE search backward: ", 2207 "sRE search backward: ",
2199 doc: /* Search backward from point for match for regular expression REGEXP. 2208 doc: /* Search backward from point for match for regular expression REGEXP.
2200Set point to the beginning of the match, and return point. 2209Set point to the beginning of the occurrence found, and return point.
2201The match found is the one starting last in the buffer
2202and yet ending before the origin of the search.
2203An optional second argument bounds the search; it is a buffer position. 2210An optional second argument bounds the search; it is a buffer position.
2204The match found must start at or after that position. 2211 The match found must not begin before that position. A value of nil
2212 means search to the beginning of the accessible portion of the buffer.
2205Optional third argument, if t, means if fail just return nil (no error). 2213Optional third argument, if t, means if fail just return nil (no error).
2206 If not nil and not t, move to limit of search and return nil. 2214 If not nil and not t, position at limit of search and return nil.
2207Optional fourth argument is repeat count--search for successive occurrences. 2215Optional fourth argument COUNT, if a positive number, means to search
2216 for COUNT successive occurrences. If COUNT is negative, search
2217 forward, instead of backward, for -COUNT occurrences. A value of
2218 nil means the same as 1.
2219With COUNT positive, the match found is the COUNTth to last one (or
2220 last, if COUNT is 1 or nil) in the buffer located entirely before
2221 the origin of the search; correspondingly with COUNT negative.
2208 2222
2209Search case-sensitivity is determined by the value of the variable 2223Search case-sensitivity is determined by the value of the variable
2210`case-fold-search', which see. 2224`case-fold-search', which see.
@@ -2221,10 +2235,17 @@ DEFUN ("re-search-forward", Fre_search_forward, Sre_search_forward, 1, 4,
2221 doc: /* Search forward from point for regular expression REGEXP. 2235 doc: /* Search forward from point for regular expression REGEXP.
2222Set point to the end of the occurrence found, and return point. 2236Set point to the end of the occurrence found, and return point.
2223An optional second argument bounds the search; it is a buffer position. 2237An optional second argument bounds the search; it is a buffer position.
2224The match found must not extend after that position. 2238 The match found must not end after that position. A value of nil
2239 means search to the end of the accessible portion of the buffer.
2225Optional third argument, if t, means if fail just return nil (no error). 2240Optional third argument, if t, means if fail just return nil (no error).
2226 If not nil and not t, move to limit of search and return nil. 2241 If not nil and not t, move to limit of search and return nil.
2227Optional fourth argument is repeat count--search for successive occurrences. 2242Optional fourth argument COUNT, if a positive number, means to search
2243 for COUNT successive occurrences. If COUNT is negative, search
2244 backward, instead of forward, for -COUNT occurrences. A value of
2245 nil means the same as 1.
2246With COUNT positive, the match found is the COUNTth one (or first,
2247 if COUNT is 1 or nil) in the buffer located entirely after the
2248 origin of the search; correspondingly with COUNT negative.
2228 2249
2229Search case-sensitivity is determined by the value of the variable 2250Search case-sensitivity is determined by the value of the variable
2230`case-fold-search', which see. 2251`case-fold-search', which see.
@@ -2240,14 +2261,19 @@ DEFUN ("posix-search-backward", Fposix_search_backward, Sposix_search_backward,
2240 "sPosix search backward: ", 2261 "sPosix search backward: ",
2241 doc: /* Search backward from point for match for regular expression REGEXP. 2262 doc: /* Search backward from point for match for regular expression REGEXP.
2242Find the longest match in accord with Posix regular expression rules. 2263Find the longest match in accord with Posix regular expression rules.
2243Set point to the beginning of the match, and return point. 2264Set point to the beginning of the occurrence found, and return point.
2244The match found is the one starting last in the buffer
2245and yet ending before the origin of the search.
2246An optional second argument bounds the search; it is a buffer position. 2265An optional second argument bounds the search; it is a buffer position.
2247The match found must start at or after that position. 2266 The match found must not begin before that position. A value of nil
2267 means search to the beginning of the accessible portion of the buffer.
2248Optional third argument, if t, means if fail just return nil (no error). 2268Optional third argument, if t, means if fail just return nil (no error).
2249 If not nil and not t, move to limit of search and return nil. 2269 If not nil and not t, position at limit of search and return nil.
2250Optional fourth argument is repeat count--search for successive occurrences. 2270Optional fourth argument COUNT, if a positive number, means to search
2271 for COUNT successive occurrences. If COUNT is negative, search
2272 forward, instead of backward, for -COUNT occurrences. A value of
2273 nil means the same as 1.
2274With COUNT positive, the match found is the COUNTth to last one (or
2275 last, if COUNT is 1 or nil) in the buffer located entirely before
2276 the origin of the search; correspondingly with COUNT negative.
2251 2277
2252Search case-sensitivity is determined by the value of the variable 2278Search case-sensitivity is determined by the value of the variable
2253`case-fold-search', which see. 2279`case-fold-search', which see.
@@ -2265,10 +2291,17 @@ DEFUN ("posix-search-forward", Fposix_search_forward, Sposix_search_forward, 1,
2265Find the longest match in accord with Posix regular expression rules. 2291Find the longest match in accord with Posix regular expression rules.
2266Set point to the end of the occurrence found, and return point. 2292Set point to the end of the occurrence found, and return point.
2267An optional second argument bounds the search; it is a buffer position. 2293An optional second argument bounds the search; it is a buffer position.
2268The match found must not extend after that position. 2294 The match found must not end after that position. A value of nil
2295 means search to the end of the accessible portion of the buffer.
2269Optional third argument, if t, means if fail just return nil (no error). 2296Optional third argument, if t, means if fail just return nil (no error).
2270 If not nil and not t, move to limit of search and return nil. 2297 If not nil and not t, move to limit of search and return nil.
2271Optional fourth argument is repeat count--search for successive occurrences. 2298Optional fourth argument COUNT, if a positive number, means to search
2299 for COUNT successive occurrences. If COUNT is negative, search
2300 backward, instead of forward, for -COUNT occurrences. A value of
2301 nil means the same as 1.
2302With COUNT positive, the match found is the COUNTth one (or first,
2303 if COUNT is 1 or nil) in the buffer located entirely after the
2304 origin of the search; correspondingly with COUNT negative.
2272 2305
2273Search case-sensitivity is determined by the value of the variable 2306Search case-sensitivity is determined by the value of the variable
2274`case-fold-search', which see. 2307`case-fold-search', which see.