Show
Ignore:
Timestamp:
07/01/06 08:27:06 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/diff-mode.el

    r4079 r4098  
    439439                      (goto-char start) 
    440440                      (diff-beginning-of-file) (diff-hunk-next) (point))) 
    441          (nextfile (ignore-errors (diff-file-next) (point)))) 
     441         (nextfile (ignore-errors (diff-file-next) (point))) 
     442         (inhibit-read-only t)) 
    442443    (goto-char start) 
    443444    (if (and firsthunk (= firsthunk start) 
     
    458459                       (diff-hunk-prev) (point)))) 
    459460         (index (save-excursion 
    460                   (re-search-backward "^Index: " prevhunk t)))) 
     461                  (re-search-backward "^Index: " prevhunk t))) 
     462         (inhibit-read-only t)) 
    461463    (when index (setq start index)) 
    462464    (diff-end-of-file) 
     
    498500           (start2 (string-to-number (match-string 2))) 
    499501           (newstart1 (+ start1 (diff-count-matches "^[- \t]" (point) pos))) 
    500            (newstart2 (+ start2 (diff-count-matches "^[+ \t]" (point) pos)))) 
     502           (newstart2 (+ start2 (diff-count-matches "^[+ \t]" (point) pos))) 
     503           (inhibit-read-only t)) 
    501504      (goto-char pos) 
    502505      ;; Hopefully the after-change-function will not screw us over. 
     
    994997  (set (make-local-variable 'next-error-function) 'diff-next-error) 
    995998 
    996   (when (and (> (point-max) (point-min)) diff-default-read-only) 
    997     (toggle-read-only t)) 
     999  (setq buffer-read-only diff-default-read-only) 
    9981000  ;; setup change hooks 
    9991001  (if (not diff-update-on-the-fly) 
     
    13561358         (file2 (make-temp-file "diff2")) 
    13571359         (coding-system-for-read buffer-file-coding-system) 
     1360         (inhibit-read-only t) 
    13581361         old new) 
    13591362    (unwind-protect