comparison lisp/vc-hooks.el @ 23693:295cf395a392

(vc-toggle-read-only): Doc fix.
author Karl Heuer <kwzh@gnu.org>
date Wed, 11 Nov 1998 18:47:32 +0000
parents 6b2b3ceeb3cd
children 5fc7c26535d5
comparison
equal deleted inserted replaced
23692:8540faafb684 23693:295cf395a392
3 ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998 Free Software Foundation, Inc. 3 ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 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-hooks.el,v 1.111 1998/08/08 07:11:40 rms Exp fx $ 8 ;; $Id: vc-hooks.el,v 1.112 1998/09/14 17:26:39 fx Exp kwzh $
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
960 960
961 (defun vc-toggle-read-only (&optional verbose) 961 (defun vc-toggle-read-only (&optional verbose)
962 "Change read-only status of current buffer, perhaps via version control. 962 "Change read-only status of current buffer, perhaps via version control.
963 If the buffer is visiting a file registered with version control, 963 If the buffer is visiting a file registered with version control,
964 then check the file in or out. Otherwise, just change the read-only flag 964 then check the file in or out. Otherwise, just change the read-only flag
965 of the buffer. With prefix argument, ask for version number." 965 of the buffer.
966 With prefix argument, ask for version number to check in or check out.
967 Check-out of a specified version number does not lock the file;
968 to do that, use this command a second time with no argument."
966 (interactive "P") 969 (interactive "P")
967 (if (or (and (boundp 'vc-dired-mode) vc-dired-mode) 970 (if (or (and (boundp 'vc-dired-mode) vc-dired-mode)
968 ;; use boundp because vc.el might not be loaded 971 ;; use boundp because vc.el might not be loaded
969 (vc-backend (buffer-file-name))) 972 (vc-backend (buffer-file-name)))
970 (vc-next-action verbose) 973 (vc-next-action verbose)