comparison lisp/vc.el @ 23792:ec06ad058029

(vc-dired-window-configuration, vc-ediff-windows, vc-ediff-result, vc-dired-switches, vc-dired-terse-mode): Added defvars to suppress compilation warnings.
author André Spiegel <spiegel@gnu.org>
date Wed, 02 Dec 1998 13:34:59 +0000
parents 9717d57c40c1
children da77f7e4d272
comparison
equal deleted inserted replaced
23791:364d36c8f631 23792:ec06ad058029
3 ;; Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
4 4
5 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> 5 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6 ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> 6 ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de>
7 7
8 ;; $Id: vc.el,v 1.238 1998/10/30 19:11:08 fx Exp spiegel $ 8 ;; $Id: vc.el,v 1.239 1998/11/04 15:09:38 spiegel Exp spiegel $
9 9
10 ;; This file is part of GNU Emacs. 10 ;; This file is part of GNU Emacs.
11 11
12 ;; GNU Emacs is free software; you can redistribute it and/or modify 12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by 13 ;; it under the terms of the GNU General Public License as published by
925 (setq version (read-string "New version level: "))) 925 (setq version (read-string "New version level: ")))
926 926
927 ;; OK, let's do the checkin 927 ;; OK, let's do the checkin
928 (vc-checkin file version comment) 928 (vc-checkin file version comment)
929 ))))) 929 )))))
930
931 (defvar vc-dired-window-configuration)
930 932
931 (defun vc-next-action-dired (file rev comment) 933 (defun vc-next-action-dired (file rev comment)
932 ;; Do a vc-next-action-on-file on all the marked files, possibly 934 ;; Do a vc-next-action-on-file on all the marked files, possibly
933 ;; passing on the log comment we've just entered. 935 ;; passing on the log comment we've just entered.
934 (let ((dired-buffer (current-buffer)) 936 (let ((dired-buffer (current-buffer))
1557 (if (y-or-n-p "Conflicts detected. Resolve them now? ") 1559 (if (y-or-n-p "Conflicts detected. Resolve them now? ")
1558 (vc-resolve-conflicts "WORKFILE" "MERGE SOURCE") 1560 (vc-resolve-conflicts "WORKFILE" "MERGE SOURCE")
1559 (message "File contains conflict markers")) 1561 (message "File contains conflict markers"))
1560 (message "Merge successful")))))) 1562 (message "Merge successful"))))))
1561 1563
1564 (defvar vc-ediff-windows)
1565 (defvar vc-ediff-result)
1566
1562 ;;;###autoload 1567 ;;;###autoload
1563 (defun vc-resolve-conflicts (&optional name-A name-B) 1568 (defun vc-resolve-conflicts (&optional name-A name-B)
1564 "Invoke ediff to resolve conflicts in the current buffer. 1569 "Invoke ediff to resolve conflicts in the current buffer.
1565 The conflicts must be marked with rcsmerge conflict markers." 1570 The conflicts must be marked with rcsmerge conflict markers."
1566 (interactive) 1571 (interactive)
1643 (message "Please resolve conflicts now; exit ediff when done") 1648 (message "Please resolve conflicts now; exit ediff when done")
1644 nil)))) 1649 nil))))
1645 1650
1646 ;; The VC directory major mode. Coopt Dired for this. 1651 ;; The VC directory major mode. Coopt Dired for this.
1647 ;; All VC commands get mapped into logical equivalents. 1652 ;; All VC commands get mapped into logical equivalents.
1653
1654 (defvar vc-dired-switches)
1655 (defvar vc-dired-terse-mode)
1648 1656
1649 (define-derived-mode vc-dired-mode dired-mode "Dired under VC" 1657 (define-derived-mode vc-dired-mode dired-mode "Dired under VC"
1650 "The major mode used in VC directory buffers. It works like Dired, 1658 "The major mode used in VC directory buffers. It works like Dired,
1651 but lists only files under version control, with the current VC state of 1659 but lists only files under version control, with the current VC state of
1652 each file being indicated in the place of the file's link count, owner, 1660 each file being indicated in the place of the file's link count, owner,