Mercurial > emacs
annotate lisp/eshell/esh-maint.el @ 31383:860d7ac182e3
(vc-rcs-show-log-entry): New function.
(vc-rcs-checkin, vc-rcs-checkout): Don't set all properties.
(vc-rcs-register): If there is no RCS subdir, ask the
user whether to create one.
(vc-rcs-state-heuristic): Use
file-ownership-preserved-p.
(vc-rcs-checkout): Remove the error-handling for missing-rcs.
(vc-rcs-state-heuristic): Don't use file-writable-p.
(vc-rcs-print-log): Insert in the current buffer.
(vc-rcs-diff): Insert in the current buffer and remove unused arg
CMP.
(vc-rcs-workfile-unchanged-p): Use vc-do-command
instead of vc-simple-command.
(vc-rcs-fetch-master-state): Removed check for unlocked-changes to
avoid doing a diff when opening a file.
(vc-rcs-state): Added check for unlocked-changes.
(vc-rcs-header): Escape Id.
(vc-rcs-workfile-unchanged-p): Remove optional arg VERSION.
(vc-rcs-state): Call vc-workfile-unchanged-p, not the RCS-specific
version.
(vc-rcs-state-heuristic): Use file-writable-p instead
of comparing userids.
(vc-rcs-fetch-master-state): Handle the case where rcs is missing.
Simplify the logic by eliminating unreachable code.
(vc-rcs-diff): Only pass `2' to vc-do-command if necessary and
just do a recursive call if we need to retry.
(vc-rcs-checkout): Handle the case where rcs is missing by making
the buffer read-write if requested and re-signalling the error.
(vc-rcs-find-most-recent-rev): New function. The code
derives from the old vc-parse-buffer but uses the revision number
rather than the date (much easier to compare robustly).
(vc-rcs-fetch-master-state): Use `with-temp-buffer'. Adapt to the
new vc-parse-buffer (and vc-rcs-find-most-recent-rev). Find the
locking-user more directly. Check strict locking and set
checkout-model appropriately.
(vc-rcs-parse-locks): Remove.
(vc-rcs-latest-on-branch-p): Use with-temp-buffer and adapt to the
new vc-parse-buffer (and vc-rcs-find-most-recent-rev).
(vc-rcs-system-release): Use with-current-buffer and
vc-parse-buffer.
(vc-rcs-register, vc-rcs-checkout): Use with-current-buffer.
Merge in code
from vc-rcs-hooks.el. Don't require 'vc anymore.
(vc-rcs-responsible-p): Use expand-file-name instead of concat and
file-directory-p instead of file-exists-p.
(vc-rcs-exists): Remove.
(vc-rcs-header): New var.
Update Copyright.
(vc-rcs-rename-file): New function.
(vc-rcs-diff): Remove unused `backend' variable.
(vc-rcs-clear-headers): New function; code moved here
from vc-clear-headers in vc.el.
(tail): Provide vc-rcs and remove vc-rcs-logentry-check.
(vc-rcs-register): Parse command output to find master
file name and workfile version.
(vc-rcs-checkout): Removed call to vc-file-clear-masterprops.
Require vc and vc-rcs-hooks.
(vc-rcs-trunk-p, vc-rcs-branch-part): Move to vc-rcs-hooks.
(vc-rcs-backend-release-p): Remove (use vc-rcs-release-p).
(vc-release-greater-or-equal-p): Move from vc.
(vc-rcs-trunk-p, vc-rcs-branch-p, vc-rcs-branch-part,
vc-rcs-minor-part, vc-rcs-previous-version): Remove duplicates.
(vc-rcs-checkout): Add a missing `new-version' argument in the
call to vc-rcs-latest-on-branch-p. Hopefully that was the right
one.
(vc-rcs-steal-lock): Renamed from `vc-rcs-steal'.
Updated everything to use `vc-checkout-model'.
(vc-rcs-backend-release-p): function added. other
stuff updated to reference this function instead of the old
`vc-backend-release-p'.
(vc-rcs-logentry-check): Function added.
(vc-rcs-checkin, vc-rcs-previous-version)
(vc-rcs-checkout): Name space cleaned up. No more revision number
crunching function names that are not prefixed with vc-rcs.
(vc-rcs-checkout-model): Function added. References to
`vc-checkout-model' replaced.
(vc-rcs-admin): Added the query-only option as
required by the vc.el file.
(vc-rcs-exists): Function added.
(vc-*-checkout):
Use with-temp-file instead of /bin/sh. Merged from mainline
(vc-rcs-latest-on-branch-p): Moved to vc-rcs-hooks.el.
(vc-rcs-latest-on-branch-p, vc-rcs-trunk-p)
(vc-rcs-branch-p, vc-rcs-branch-part, vc-rcs-minor-part)
(vc-rcs-previous-version): Functions added.
(vc-rcs-diff): Function added.
(vc-rcs-checkout) Bug (typo) found and fixed.
(vc-rcs-register-switches) Variable `vc-rcs-register-switches' added.
Require vc when compiling.
(vc-rcs-print-log, vc-rcs-assign-name, vc-rcs-merge)
(vc-rcs-check-headers, vc-rcs-steal, vc-rcs-uncheck, vc-rcs-revert)
(vc-rcs-checkin): New functions (code from vc.el).
(vc-rcs-previous-version, vc-rcs-system-release, vc-rcs-checkout):
Doc fix.
(vc-rcs-release): Deleted. (Duplicated vc-rcs-system-release).
(vc-rcs-trunk-p, vc-rcs-branch-p, vc-rcs-branch-part)
(vc-rcs-minor-part, vc-rcs-previous-version, vc-rcs-release)
(vc-rcs-release-p, vc-rcs-admin, vc-rcs-checkout): New functions
from vc.el.
(vc-rcs-system-release):
Renamed from vc-rcs-backend-release.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 04 Sep 2000 19:47:43 +0000 |
parents | 34b1ab9d583d |
children | 8e57189d61b4 |
rev | line source |
---|---|
29876 | 1 ;;; esh-maint --- init code for building eshell |
2 | |
29934
34b1ab9d583d
Change spelling of the Free Software Foundation.
Gerd Moellmann <gerd@gnu.org>
parents:
29876
diff
changeset
|
3 ;; Copyright (C) 1999, 2000 Free Software Foundation |
29876 | 4 |
5 ;; This file is part of GNU Emacs. | |
6 | |
7 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
8 ;; it under the terms of the GNU General Public License as published by | |
9 ;; the Free Software Foundation; either version 2, or (at your option) | |
10 ;; any later version. | |
11 | |
12 ;; GNU Emacs is distributed in the hope that it will be useful, | |
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 ;; GNU General Public License for more details. | |
16 | |
17 ;; You should have received a copy of the GNU General Public License | |
18 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
19 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 ;; Boston, MA 02111-1307, USA. | |
21 | |
22 ;;; Commentary: | |
23 | |
24 ;;; Code: | |
25 | |
26 (provide 'esh-maint) | |
27 | |
28 (and (fboundp 'font-lock-add-keywords) | |
29 (font-lock-add-keywords | |
30 'emacs-lisp-mode | |
31 '(("(eshell-for\\>" . font-lock-keyword-face) | |
32 ("(eshell-deftest\\>" . font-lock-keyword-face) | |
33 ("(eshell-condition-case\\>" . font-lock-keyword-face)))) | |
34 | |
35 (if (file-directory-p "../pcomplete") | |
36 (add-to-list 'load-path "../pcomplete")) | |
37 | |
38 (if (locate-library "pcomplete") | |
39 (require 'pcomplete)) | |
40 | |
41 (eval-when-compile | |
42 (require 'cl) | |
43 (setq cl-optimize-speed 9)) | |
44 | |
45 ;; (defun eshell-generate-autoloads () | |
46 ;; (interactive) | |
47 ;; (require 'autoload) | |
48 ;; (setq generated-autoload-file | |
49 ;; (expand-file-name (car command-line-args-left))) | |
50 ;; (setq command-line-args-left (cdr command-line-args-left)) | |
51 ;; (batch-update-autoloads)) | |
52 | |
53 (require 'eshell) | |
54 (require 'esh-mode) ; brings in eshell-util | |
55 (require 'esh-opt) | |
56 (require 'esh-test) | |
57 | |
58 ;; (defun eshell-generate-main-menu () | |
59 ;; "Create the main menu for the eshell documentation." | |
60 ;; (insert "@menu | |
61 ;; * The Emacs shell:: eshell. | |
62 | |
63 ;; Core Functionality\n") | |
64 ;; (eshell-for module | |
65 ;; (sort (eshell-subgroups 'eshell) | |
66 ;; (function | |
67 ;; (lambda (a b) | |
68 ;; (string-lessp (symbol-name a) | |
69 ;; (symbol-name b))))) | |
70 ;; (insert (format "* %-34s" | |
71 ;; (concat (get module 'custom-tag) "::")) | |
72 ;; (symbol-name module) ".\n")) | |
73 ;; (insert "\nOptional Functionality\n") | |
74 ;; (eshell-for module | |
75 ;; (sort (eshell-subgroups 'eshell-module) | |
76 ;; (function | |
77 ;; (lambda (a b) | |
78 ;; (string-lessp (symbol-name a) | |
79 ;; (symbol-name b))))) | |
80 ;; (insert (format "* %-34s" | |
81 ;; (concat (get module 'custom-tag) "::")) | |
82 ;; (symbol-name module) ".\n")) | |
83 ;; (insert "@end menu\n")) | |
84 | |
85 ;; (defun eshell-make-texi () | |
86 ;; "Make the eshell.texi file." | |
87 ;; (interactive) | |
88 ;; (require 'eshell-auto) | |
89 ;; (require 'texidoc) | |
90 ;; (require 'pcomplete) | |
91 ;; (apply 'texidoc-files 'eshell-generate-main-menu "eshell.doci" | |
92 ;; (append | |
93 ;; (list "eshell.el") | |
94 ;; (sort (mapcar | |
95 ;; (function | |
96 ;; (lambda (sym) | |
97 ;; (let ((name (symbol-name sym))) | |
98 ;; (if (string-match "\\`eshell-\\(.*\\)" name) | |
99 ;; (setq name (concat "esh-" (match-string 1 name)))) | |
100 ;; (concat name ".el")))) | |
101 ;; (eshell-subgroups 'eshell)) | |
102 ;; 'string-lessp) | |
103 ;; (sort (mapcar | |
104 ;; (function | |
105 ;; (lambda (sym) | |
106 ;; (let ((name (symbol-name sym))) | |
107 ;; (if (string-match "\\`eshell-\\(.*\\)" name) | |
108 ;; (setq name (concat "em-" (match-string 1 name)))) | |
109 ;; (concat name ".el")))) | |
110 ;; (eshell-subgroups 'eshell-module)) | |
111 ;; 'string-lessp) | |
112 ;; (list "eshell.texi")))) | |
113 | |
114 ;; (defun eshell-make-readme () | |
115 ;; "Make the README file from eshell.el." | |
116 ;; (interactive) | |
117 ;; (require 'eshell-auto) | |
118 ;; (require 'texidoc) | |
119 ;; (require 'pcomplete) | |
120 ;; (texidoc-files nil "eshell.doci" "eshell.el" "README.texi") | |
121 ;; (set-buffer (get-buffer "README.texi")) | |
122 ;; (goto-char (point-min)) | |
123 ;; (search-forward "@chapter") | |
124 ;; (beginning-of-line) | |
125 ;; (forward-line -1) | |
126 ;; (kill-line 2) | |
127 ;; (re-search-forward "^@section User Options") | |
128 ;; (beginning-of-line) | |
129 ;; (delete-region (point) (point-max)) | |
130 ;; (insert "@bye\n") | |
131 ;; (save-buffer) | |
132 ;; (with-temp-buffer | |
133 ;; (call-process "makeinfo" nil t nil "--no-headers" "README.texi") | |
134 ;; (goto-char (point-min)) | |
135 ;; (search-forward "The Emacs Shell") | |
136 ;; (beginning-of-line) | |
137 ;; (delete-region (point-min) (point)) | |
138 ;; (write-file "README")) | |
139 ;; (delete-file "README.texi") | |
140 ;; (kill-buffer "README.texi")) | |
141 | |
142 ;;; esh-maint.el ends here |