annotate lisp/efs/efs-mvs.el @ 124:9b50b4588a93 r20-1b15

Import from CVS: tag r20-1b15
author cvs
date Mon, 13 Aug 2007 09:26:39 +0200
parents 9f59509498e1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
1 ;; -*-Emacs-Lisp-*-
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
3 ;;
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
4 ;; File: efs-mvs.el
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
5 ;; Release: $efs release: 1.15 $
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 22
diff changeset
6 ;; Version: #Revision: 1.4 $
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
7 ;; RCS:
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
8 ;; Description: MVS support for efs
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
9 ;; Author: Sandy Rutherford <sandy@math.ubc.ca, sandy@itp.ethz.ch>
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
10 ;; Created: Sat Nov 14 02:04:54 1992
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
11 ;; Modified: Sun Nov 27 18:37:54 1994 by sandy on gandalf
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
12 ;; Language: Emacs-Lisp
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
13 ;;
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
14 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
15
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
16 ;;; This file is part of efs. See efs.el for copyright
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
17 ;;; (it's copylefted) and warrranty (there isn't one) information.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
18
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
19 ;;; --------------------------------------------------------
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
20 ;;; MVS support
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
21 ;;; --------------------------------------------------------
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
23 (provide 'efs-mvs)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
24 (require 'efs)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
25
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
26 (defconst efs-mvs-version
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
27 (concat (substring "$efs release: 1.15 $" 14 -2)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
28 "/"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 22
diff changeset
29 (substring "#Revision: 1.4 $" 11 -2)))
22
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
30
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
31 ;; What's the MVS character set for valid partitioned data sets?
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
32 ;; I'll guess [-A-Z0-9_$+]
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
33
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
34 ;; The top level directory in MVS contains partitioned data sets.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
35 ;; We will view these as directories. The data sets within each
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
36 ;; partitioned data set will be viewed as files.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
37 ;;
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
38 ;; In MVS an entry for a "sub-dir" may have the same name as a plain
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
39 ;; file. This is impossible in unix, so we retain the "dots" at the
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
40 ;; end of subdir names, to distinuguish.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
41 ;; i.e. FOO.BAR --> /FOO./BAR
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
42
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
43 (efs-defun efs-send-pwd mvs (host user &optional xpwd)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
44 ;; Broken quoting for PWD output on some MVS servers.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
45 (let* ((result (efs-send-cmd host user '(pwd) "Getting EXPLORER PWD"))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
46 (line (nth 1 result))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
47 dir)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
48 (and (car result)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
49 (efs-save-match-data
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
50 (and (string-match " \"'?\\([0-9A-Z]+\\)'?\"" line)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
51 (setq dir (substring line (match-beginning 1)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
52 (match-end 1))))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
53 (cons dir line)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
54
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
55 (efs-defun efs-fix-path mvs (path &optional reverse)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
56 ;; Convert PATH from UNIX-ish to MVS.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
57 (efs-save-match-data
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
58 (if reverse
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
59 (let ((start 0)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
60 (res "/"))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
61 ;; MVS has only files, some of which are partitioned
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
62 ;; into smaller files (partitioned data sets). We will
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
63 ;; assume that path starts with a partitioned dataset.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
64 (while (string-match "\\." path)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
65 ;; grab the dot too, because in mvs prefixes and plain
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
66 ;; files can have the same name.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
67 (setq res (concat res (substring path start (match-end 0)) "/")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
68 start (match-end 0)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
69 (concat res (substring path start)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
70 (let ((start 1)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
71 res)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
72 (while (string-match "/" path start)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
73 (setq res (concat res (substring path start (match-beginning 0)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
74 start (match-end 0)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
75 (concat res (substring path start))))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
76
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
77 (efs-defun efs-fix-dir-path mvs (dir-path)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
78 ;; Convert path from UNIX-ish to MVS for a DIR listing.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
79 (cond
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
80 ((string-equal "/" dir-path)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
81 " ")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
82 (t (concat (efs-fix-path 'mvs dir-path) "*"))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
83
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
84 (efs-defun efs-allow-child-lookup mvs (host user dir file)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
85 ;; Returns t if FILE in directory DIR could possibly be a subdir
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
86 ;; according to its file-name syntax, and therefore a child listing should
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
87 ;; be attempted.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
88 ;; MVS file system is flat. Only partitioned data sets are "subdirs".
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
89 (efs-save-match-data
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
90 (string-match "\\.$" file)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
91
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
92 (efs-defun efs-parse-listing mvs (host user dir path &optional switches)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
93 ;; Guesses the type of mvs listings.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
94 (efs-save-match-data
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
95 (goto-char (point-min))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
96 (cond
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
97 ((looking-at "Volume ")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
98 (efs-add-listing-type 'mvs:tcp host user)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
99 (efs-parse-listing 'mvs:tcp host user dir path switches))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
100
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
101 ((looking-at "[-A-Z0-9_$.+]+ ")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
102 (efs-add-listing-type 'mvs:nih host user)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
103 (efs-parse-listing 'mvs:nih host user dir path switches))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
104
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
105 (t
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
106 ;; Since MVS works on a template system, return an empty hashtable.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
107 (let ((tbl (efs-make-hashtable)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
108 (efs-put-hash-entry "." '(t) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
109 (efs-put-hash-entry ".." '(t) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
110 tbl)))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
111
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
112 (efs-defun efs-ls-dumb-check mvs (line host file path lsargs msg noparse
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
113 noerror nowait cont)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
114 ;; Because of the template structure of the MVS file system, empty
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
115 ;; directories are the same as non-existent. It's better for us to treat
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
116 ;; them as empty.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
117 (and (string-match "^550 " line)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
118 (let ((parse (or (null noparse) (eq noparse 'parse)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
119 (efs-parsable-switches-p lsargs t))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
120 (efs-add-to-ls-cache file lsargs "\n" parse)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
121 (if parse
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
122 (efs-set-files file (let ((tbl (efs-make-hashtable)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
123 (efs-put-hash-entry "." '(t) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
124 (efs-put-hash-entry ".." '(t) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
125 tbl)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
126 (if nowait
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
127 (progn
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
128 (if cont
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
129 (efs-call-cont cont "\n"))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
130 t)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
131 (if cont
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
132 (efs-call-cont cont "\n"))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
133 "\n"))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
134
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
135 ;;;; ----------------------------------------------------
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
136 ;;;; Support for the NIH FTP server.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
137 ;;;; ----------------------------------------------------
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
138
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
139 (efs-defun efs-parse-listing mvs:nih
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
140 (host user dir path &optional switches)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
141 ;; Parse the current buffer which is assumed to be an MVS listing
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
142 ;; Based on the listing format of the NIH server. Hope that this format
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
143 ;; is widespread. If a directory doesn't exist, get a 426 ftp error.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
144 ;; HOST = remote host name
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
145 ;; USER = user name
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
146 ;; DIR = directory as a remote full path
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
147 ;; PATH = directory in full efs-syntax
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
148 (let ((tbl (efs-make-hashtable))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
149 (top-p (string-equal "/" dir))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
150 ;; assume that everything top-level is a partitioned data set
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
151 )
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
152 (goto-char (point-min))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
153 (efs-save-match-data
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
154 (while (re-search-forward "^[-A-Z0-9_$.+]+" nil t)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
155 (efs-put-hash-entry
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
156 (concat (buffer-substring (match-beginning 0) (match-end 0))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
157 (and top-p "."))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
158 (list top-p) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
159 (forward-line 1))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
160 (efs-put-hash-entry "." '(t) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
161 (or top-p (efs-put-hash-entry ".." '(t) tbl)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
162 tbl))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
163
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
164 ;;; Tree dired support
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
165
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
166 (defconst efs-dired-mvs-re-exe
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
167 "^. [-A-Z0-9_$+]+\\.EXE "
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
168 "Regular expression to use to search for MVS executables.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
169
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
170 (or (assq 'mvs:nih efs-dired-re-exe-alist)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
171 (setq efs-dired-re-exe-alist
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
172 (cons (cons 'mvs:nih efs-dired-mvs-re-exe)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
173 efs-dired-re-exe-alist)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
174
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
175 (efs-defun efs-dired-insert-headerline mvs:nih (dir)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
176 ;; MVS has no total line, so we insert a blank line for
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
177 ;; aesthetics.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
178 (insert "\n")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
179 (forward-char -1)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
180 (efs-real-dired-insert-headerline dir))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
181
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
182 (efs-defun efs-dired-manual-move-to-filename mvs:nih
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
183 (&optional raise-error bol eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
184 ;; In dired, move to the first char of the filename on this line.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
185 ;; This is the MVS version.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
186 (or eol (setq eol (save-excursion (skip-chars-forward "^\n\r") (point))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
187 (let (case-fold-search)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
188 (if bol
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
189 (goto-char bol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
190 (skip-chars-backward "^\n\r")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
191 (setq bol (point)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
192 ;; MVS listings are pretty loose. Tough to tell when we've got a file line.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
193 (if (and
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
194 (> (- eol bol) 2)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
195 (progn
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
196 (forward-char 2)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
197 (skip-chars-forward " \t")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
198 (looking-at "[-A-Z0-9$_.+]+[ \n\r]")))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
199 (point)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
200 (goto-char bol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
201 (and raise-error (error "No file on this line")))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
202
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
203 (efs-defun efs-dired-manual-move-to-end-of-filename mvs:nih
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
204 (&optional no-error bol eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
205 ;; Assumes point is at the beginning of filename.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
206 ;; So, it should be called only after (dired-move-to-filename t).
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
207 ;; case-fold-search must be nil, at least for VMS.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
208 ;; On failure, signals an error or returns nil.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
209 ;; This is the MVS version.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
210 (let ((opoint (point)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
211 (and selective-display
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
212 (null no-error)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
213 (eq (char-after
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
214 (1- (or bol (save-excursion
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
215 (skip-chars-backward "^\r\n")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
216 (point)))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
217 ?\r)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
218 ;; File is hidden or omitted.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
219 (cond
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
220 ((dired-subdir-hidden-p (dired-current-directory))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
221 (error
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
222 (substitute-command-keys
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
223 "File line is hidden. Type \\[dired-hide-subdir] to unhide.")))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
224 ((error
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
225 (substitute-command-keys
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
226 "File line is omitted. Type \\[dired-omit-toggle] to un-omit."
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
227 )))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
228 (skip-chars-forward "-A-Z0-9$_.+" eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
229 (if (or (= opoint (point)) (not (memq (following-char) '(?\n ?\r ?\ ))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
230 (if no-error
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
231 nil
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
232 (error "No file on this line"))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
233 (point))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
234
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
235 (efs-defun efs-dired-get-filename mvs:nih
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
236 (&optional localp no-error-if-not-filep)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
237 (let ((name (efs-real-dired-get-filename localp no-error-if-not-filep))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
238 (parsed (efs-ftp-path (dired-current-directory))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
239 (if (and name (string-equal "/" (nth 2 parsed)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
240 (concat name ".")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
241 name)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
242
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
243 (efs-defun efs-dired-fixup-listing mvs:nih
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
244 (file path &optional switches wildcard)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
245 ;; MVS listings have trailing spaces to 80 columns.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
246 ;; Can lead to a mess after indentation.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
247 (goto-char (point-min))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
248 (while (re-search-forward " +$" nil t)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
249 (replace-match "")))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
250
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
251 ;;;; -------------------------------------------------------
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
252 ;;;; Support for the TCPFTP MVS server
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
253 ;;;; -------------------------------------------------------
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
254 ;;;
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
255 ;;; For TCPFTP IBM MVS V2R2.1 Does it really work?
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
256
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
257 (efs-defun efs-parse-listing mvs:tcp
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
258 (host user dir path &optional switches)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
259 ;; Parse the current buffer which is assumed to be an MVS listing
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
260 ;; Based on the listing format of the NIH server. Hope that this format
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
261 ;; is widespread. If a directory doesn't exist, get a 426 ftp error.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
262 ;; HOST = remote host name
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
263 ;; USER = user name
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
264 ;; DIR = directory as a remote full path
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
265 ;; PATH = directory in full efs-syntax
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
266 (efs-save-match-data
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
267 (goto-char (point-min))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
268 (and (looking-at "Volume ")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
269 (let ((top-tbl (efs-make-hashtable))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
270 (case-fold (memq 'mvs efs-case-insensitive-host-types))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
271 tbl-list file dn fn tbl dir-p)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
272 (forward-line 1)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
273 (while (not (eobp))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
274 (end-of-line)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
275 (setq file (buffer-substring (point)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
276 (progn (skip-chars-backward "^ ")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
277 (point)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
278 dn path
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
279 dir-p (string-match "\\." file))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
280 (efs-put-hash-entry file '(nil) top-tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
281 (if dir-p
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
282 (progn
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
283 (setq dir-p (1+ dir-p)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
284 fn (substring file 0 dir-p))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
285 (efs-put-hash-entry fn '(t) top-tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
286 (while dir-p
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
287 (setq dn (efs-internal-file-name-as-directory nil
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
288 (concat dn fn))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
289 file (substring file dir-p)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
290 tbl (cdr (assoc dn tbl-list)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
291 (or tbl (setq tbl (efs-make-hashtable)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
292 tbl-list (cons (cons dn tbl) tbl-list)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
293 (efs-put-hash-entry file '(nil) tbl)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
294 (setq dir-p (string-match "\\." file))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
295 (if dir-p
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
296 (progn
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
297 (setq dir-p (1+ dir-p)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
298 fn (substring file 0 dir-p))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
299 (efs-put-hash-entry fn '(t) tbl))))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
300 (forward-line 1))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
301 (while tbl-list
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
302 (efs-put-hash-entry (car (car tbl-list)) (cdr (car tbl-list))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
303 efs-files-hashtable case-fold)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
304 (setq tbl-list (cdr tbl-list)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
305 top-tbl))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
306
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
307 ;;; Tree Dired
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
308
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
309 (efs-defun efs-dired-manual-move-to-filename mvs:tcp
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
310 (&optional raise-error bol eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
311 ;; In dired, move to the first char of the filename on this line.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
312 ;; This is the MVS version.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
313 (or eol (setq eol (save-excursion (skip-chars-forward "^\n\r") (point))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
314 (let (case-fold-search)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
315 (if bol
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
316 (goto-char bol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
317 (skip-chars-backward "^\n\r")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
318 (setq bol (point)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
319 (if (and (re-search-forward " [0-9][0-9]/[0-9][0-9]/[0-9][0-9] " eol t)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
320 (progn
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
321 (goto-char eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
322 (skip-chars-backward "-A-Z0-9$_.")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
323 (char-equal (preceding-char) ?\ ))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
324 (/= eol (point)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
325 (point)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
326 (goto-char bol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
327 (and raise-error (error "No file on this line")))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
328
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
329 (efs-defun efs-dired-manual-move-to-end-of-filename mvs:tcp
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
330 (&optional no-error bol eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
331 ;; Assumes point is at the beginning of filename.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
332 ;; So, it should be called only after (dired-move-to-filename t).
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
333 ;; case-fold-search must be nil, at least for VMS.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
334 ;; On failure, signals an error or returns nil.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
335 ;; This is the MVS version.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
336 (let ((opoint (point)))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
337 (and selective-display
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
338 (null no-error)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
339 (eq (char-after
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
340 (1- (or bol (save-excursion
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
341 (skip-chars-backward "^\r\n")
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
342 (point)))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
343 ?\r)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
344 ;; File is hidden or omitted.
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
345 (cond
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
346 ((dired-subdir-hidden-p (dired-current-directory))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
347 (error
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
348 (substitute-command-keys
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
349 "File line is hidden. Type \\[dired-hide-subdir] to unhide.")))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
350 ((error
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
351 (substitute-command-keys
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
352 "File line is omitted. Type \\[dired-omit-toggle] to un-omit."
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
353 )))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
354 (skip-chars-forward "-A-Z0-9$_.+" eol)
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
355 (if (or (= opoint (point)) (not (memq (following-char) '(?\n ?\r ?\ ))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
356 (if no-error
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
357 nil
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
358 (error "No file on this line"))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
359 (point))))
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
360
8fc7fe29b841 Import from CVS: tag r19-15b94
cvs
parents:
diff changeset
361 ;;; end of efs-mvs.el