~ubuntu-branches/ubuntu/karmic/emacs-snapshot/karmic

« back to all changes in this revision

Viewing changes to lisp/compare-w.el

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-04-05 09:14:30 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20090405091430-kdbnqkmwgbtzraxs
Tags: 1:20090320-1ubuntu1
upload to jaunty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;;; compare-w.el --- compare text between windows for Emacs
2
2
 
3
3
;; Copyright (C) 1986, 1989, 1993, 1997, 2001, 2002, 2003, 2004,
4
 
;;   2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
4
;;   2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
5
 
6
6
;; Maintainer: FSF
7
7
;; Keywords: convenience files
36
36
  :group 'tools)
37
37
 
38
38
(defcustom compare-windows-whitespace "\\(\\s-\\|\n\\)+"
39
 
  "*Regexp or function that defines whitespace sequences for `compare-windows'.
 
39
  "Regexp or function that defines whitespace sequences for `compare-windows'.
40
40
That command optionally ignores changes in whitespace.
41
41
 
42
42
The value of `compare-windows-whitespace' is normally a regexp, but it
53
53
  :group 'compare-windows)
54
54
 
55
55
(defcustom compare-ignore-whitespace nil
56
 
  "*Non-nil means `compare-windows' ignores whitespace."
 
56
  "Non-nil means `compare-windows' ignores whitespace."
57
57
  :type 'boolean
58
58
  :group 'compare-windows
59
59
  :version "22.1")
60
60
 
61
61
(defcustom compare-ignore-case nil
62
 
  "*Non-nil means `compare-windows' ignores case differences."
 
62
  "Non-nil means `compare-windows' ignores case differences."
63
63
  :type 'boolean
64
64
  :group 'compare-windows)
65
65
 
66
66
(defcustom compare-windows-sync 'compare-windows-sync-default-function
67
 
  "*Function or regexp that is used to synchronize points in two
 
67
  "Function or regexp that is used to synchronize points in two
68
68
windows if before calling `compare-windows' points are located
69
69
on mismatched positions.
70
70
 
93
93
  :version "22.1")
94
94
 
95
95
(defcustom compare-windows-sync-string-size 32
96
 
  "*Size of string from one window that is searched in second window.
 
96
  "Size of string from one window that is searched in second window.
97
97
 
98
98
Small number makes difference regions more fine-grained, but it
99
99
may fail by finding the wrong match.  The bigger number makes
105
105
  :version "22.1")
106
106
 
107
107
(defcustom compare-windows-recenter nil
108
 
  "*List of two values, each of which is used as argument of
 
108
  "List of two values, each of which is used as argument of
109
109
function `recenter' called in each of two windows to place
110
110
matching points side-by-side.
111
111
 
116
116
  :version "22.1")
117
117
 
118
118
(defcustom compare-windows-highlight t
119
 
  "*Non-nil means compare-windows highlights the differences.
 
119
  "Non-nil means compare-windows highlights the differences.
120
120
The value t removes highlighting immediately after invoking a command
121
121
other than `compare-windows'.
122
122
The value `persistent' leaves all highlighted differences.  You can clear