Lines Matching defs:sync
68 (defcustom compare-windows-sync 'compare-windows-sync-default-function
73 The value of `compare-windows-sync' can be a function. The
75 matching text. If the value of `compare-windows-sync' is a
80 `compare-windows-sync-default-function' that is able to
90 If the value of this variable is `nil' (option \"No sync\"), then
93 :type '(choice function regexp (const :tag "No sync" nil))
97 (defcustom compare-windows-sync-string-size 32
142 (defvar compare-windows-sync-point nil)
165 If `compare-windows-sync' is non-nil, then successive calls of
179 (sync-func (if (stringp compare-windows-sync)
180 'compare-windows-sync-regexp
181 compare-windows-sync)))
241 (if (not sync-func)
246 (setq compare-windows-sync-point nil)
247 (funcall sync-func)
251 (funcall sync-func)
296 (defun compare-windows-sync-regexp ()
297 (if (stringp compare-windows-sync)
298 (re-search-forward compare-windows-sync nil t)))
302 ;; and one of them is stored in compare-windows-sync-point
304 (defun compare-windows-sync-default-function ()
305 (if (not compare-windows-sync-point)
312 (region-size compare-windows-sync-string-size)
313 (string-size compare-windows-sync-string-size)
326 ;; on first iteration it is 2*compare-windows-sync-string-size,
352 (setq compare-windows-sync-point (or (cadr p12) t)))
354 (if (numberp compare-windows-sync-point)
355 (goto-char compare-windows-sync-point))
356 (setq compare-windows-sync-point nil)))