Changeset 4079 for trunk/lisp/diff-mode.el
- Timestamp:
- 05/13/06 11:31:18 (3 years ago)
- Files:
-
- trunk/lisp/diff-mode.el (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/diff-mode.el
r4073 r4079 634 634 START and END are either taken from the region (if a prefix arg is given) or 635 635 else cover the whole bufer." 636 (interactive (if current-prefix-arg637 (list ( mark) (point))636 (interactive (if (or current-prefix-arg (and transient-mark-mode mark-active)) 637 (list (region-beginning) (region-end)) 638 638 (list (point-min) (point-max)))) 639 639 (unless (markerp end) (setq end (copy-marker end))) … … 723 723 With a prefix argument, convert unified format to context format." 724 724 (interactive (if (and transient-mark-mode mark-active) 725 (list ( mark) (point) current-prefix-arg)725 (list (region-beginning) (region-end) current-prefix-arg) 726 726 (list (point-min) (point-max) current-prefix-arg))) 727 727 (if to-context … … 796 796 START and END are either taken from the region (if a prefix arg is given) or 797 797 else cover the whole bufer." 798 (interactive (if current-prefix-arg799 (list ( mark) (point))798 (interactive (if (or current-prefix-arg (and transient-mark-mode mark-active)) 799 (list (region-beginning) (region-end)) 800 800 (list (point-min) (point-max)))) 801 801 (unless (markerp end) (setq end (copy-marker end))) … … 858 858 START and END are either taken from the region (if a prefix arg is given) or 859 859 else cover the whole bufer." 860 (interactive (if current-prefix-arg861 (list ( mark) (point))860 (interactive (if (or current-prefix-arg (and transient-mark-mode mark-active)) 861 (list (region-beginning) (region-end)) 862 862 (list (point-min) (point-max)))) 863 863 (let ((inhibit-read-only t)) … … 1070 1070 (defun diff-hunk-text (hunk destp char-offset) 1071 1071 "Return the literal source text from HUNK as (TEXT . OFFSET). 1072 if DESTP is nilTEXT is the source, otherwise the destination text.1072 If DESTP is nil, TEXT is the source, otherwise the destination text. 1073 1073 CHAR-OFFSET is a char-offset in HUNK, and OFFSET is the corresponding 1074 1074 char-offset in TEXT." … … 1303 1303 is given) determines whether to jump to the old or the new file. 1304 1304 If the prefix arg is bigger than 8 (for example with \\[universal-argument] \\[universal-argument]) 1305 then `diff-jump-to-old-file' is also set, for the next invocations."1305 then `diff-jump-to-old-file' is also set, for the next invocations." 1306 1306 (interactive (list current-prefix-arg last-input-event)) 1307 1307 ;; When pointing at a removal line, we probably want to jump to
