comparison src/search.c @ 58567:47729f2cb184

(syms_of_search) <search-spaces-regexp>: Move 'doc:' marker out of doc string.
author Kim F. Storm <storm@cua.dk>
date Sat, 27 Nov 2004 01:08:45 +0000
parents 623ffd21f0ff
children 91ba6c641a60 f2ebccfa87d4
comparison
equal deleted inserted replaced
58566:b5f77e7bd232 58567:47729f2cb184
2858 list = Fcdr (list); 2858 list = Fcdr (list);
2859 } 2859 }
2860 else 2860 else
2861 { 2861 {
2862 int from; 2862 int from;
2863 2863
2864 if (MARKERP (marker)) 2864 if (MARKERP (marker))
2865 { 2865 {
2866 if (XMARKER (marker)->buffer == 0) 2866 if (XMARKER (marker)->buffer == 0)
2867 XSETFASTINT (marker, 0); 2867 XSETFASTINT (marker, 0);
2868 else 2868 else
2869 XSETBUFFER (last_thing_searched, XMARKER (marker)->buffer); 2869 XSETBUFFER (last_thing_searched, XMARKER (marker)->buffer);
2870 } 2870 }
2871 2871
2872 CHECK_NUMBER_COERCE_MARKER (marker); 2872 CHECK_NUMBER_COERCE_MARKER (marker);
2873 from = XINT (marker); 2873 from = XINT (marker);
2874 list = Fcdr (list); 2874 list = Fcdr (list);
2875 2875
2876 marker = Fcar (list); 2876 marker = Fcar (list);
2877 if (MARKERP (marker) && XMARKER (marker)->buffer == 0) 2877 if (MARKERP (marker) && XMARKER (marker)->buffer == 0)
2878 XSETFASTINT (marker, 0); 2878 XSETFASTINT (marker, 0);
2879 2879
2880 CHECK_NUMBER_COERCE_MARKER (marker); 2880 CHECK_NUMBER_COERCE_MARKER (marker);
2881 search_regs.start[i] = from; 2881 search_regs.start[i] = from;
2882 search_regs.end[i] = XINT (marker); 2882 search_regs.end[i] = XINT (marker);
2883 } 2883 }
2884 list = Fcdr (list); 2884 list = Fcdr (list);
3011 3011
3012 saved_last_thing_searched = Qnil; 3012 saved_last_thing_searched = Qnil;
3013 staticpro (&saved_last_thing_searched); 3013 staticpro (&saved_last_thing_searched);
3014 3014
3015 DEFVAR_LISP ("search-spaces-regexp", &Vsearch_spaces_regexp, 3015 DEFVAR_LISP ("search-spaces-regexp", &Vsearch_spaces_regexp,
3016 /* doc: Regexp to substitute for bunches of spaces in regexp search. 3016 doc: /* Regexp to substitute for bunches of spaces in regexp search.
3017 Some commands use this for user-specified regexps. 3017 Some commands use this for user-specified regexps.
3018 Spaces that occur inside character classes or repetition operators 3018 Spaces that occur inside character classes or repetition operators
3019 or other such regexp constructs are not replaced with this. 3019 or other such regexp constructs are not replaced with this.
3020 A value of nil (which is the normal value) means treat spaces literally. */); 3020 A value of nil (which is the normal value) means treat spaces literally. */);
3021 Vsearch_spaces_regexp = Qnil; 3021 Vsearch_spaces_regexp = Qnil;