Mercurial > emacs
comparison lisp/diff-mode.el @ 25979:e1d167cf6e96
(vc-backend-diff): get rid of the autoloaded advice.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 11 Oct 1999 09:53:03 +0000 |
parents | 1c62cbeca833 |
children | 16ee8d330c59 |
comparison
equal
deleted
inserted
replaced
25978:35064c2e86d7 | 25979:e1d167cf6e96 |
---|---|
752 (save-excursion | 752 (save-excursion |
753 (goto-char (car diff-unhandled-changes)) (diff-beginning-of-hunk) | 753 (goto-char (car diff-unhandled-changes)) (diff-beginning-of-hunk) |
754 (diff-fixup-modifs (point) (cdr diff-unhandled-changes)))) | 754 (diff-fixup-modifs (point) (cdr diff-unhandled-changes)))) |
755 (setq diff-unhandled-changes nil))) | 755 (setq diff-unhandled-changes nil))) |
756 | 756 |
757 ;;;###autoload | |
758 (defadvice vc-backend-diff (around diff-mode-vc activate) | |
759 ;; BEWARE!! when this is autoloaded, CL might not be available | |
760 (condition-case () | |
761 (with-current-buffer "*vc-diff*" (setq buffer-read-only nil)) | |
762 (error nil)) | |
763 ad-do-it | |
764 (condition-case () | |
765 (with-current-buffer "*vc-diff*" | |
766 (if (memq major-mode '(fundamental-mode diff-mode)) (diff-mode))) | |
767 (error nil))) | |
768 | |
769 | |
770 ;;;; | 757 ;;;; |
771 ;;;; The main function | 758 ;;;; The main function |
772 ;;;; | 759 ;;;; |
773 | 760 |
774 ;;(autoload 'diff-mode "diff-mode" "Major mode for viewing context diffs." t) | 761 ;;(autoload 'diff-mode "diff-mode" "Major mode for viewing context diffs." t) |