Changeset 4166 for trunk/lisp/diff-mode.el
- Timestamp:
- 09/18/06 20:48:14 (2 years ago)
- Files:
-
- trunk/lisp/diff-mode.el (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/diff-mode.el
r4111 r4166 1260 1260 msg line-offset))) 1261 1261 1262 (defvar diff-apply-hunk-to-backup-file nil) 1262 1263 1263 1264 (defun diff-apply-hunk (&optional reverse) … … 1276 1277 ((null line-offset) 1277 1278 (error "Can't find the text to patch")) 1279 ((with-current-buffer buf 1280 (and buffer-file-name 1281 (backup-file-name-p buffer-file-name) 1282 (not diff-apply-hunk-to-backup-file) 1283 (not (set (make-local-variable 'diff-apply-hunk-to-backup-file) 1284 (yes-or-no-p (format "Really apply this hunk to %s? " 1285 (file-name-nondirectory 1286 buffer-file-name))))))) 1287 (error (substitute-command-keys 1288 (format "Use %s\\[diff-apply-hunk] to apply it to the other file" 1289 (if (not reverse) "\\[universal-argument] "))))) 1278 1290 ((and switched 1279 1291 ;; A reversed patch was detected, perhaps apply it in reverse.
