| 2207 | | (while (and (re-search-forward dired-subdir-regexp nil t) |
|---|
| 2208 | | ;; Avoid taking a file name ending in a colon |
|---|
| 2209 | | ;; as a subdir name. |
|---|
| 2210 | | (not (save-excursion |
|---|
| 2211 | | (goto-char (match-beginning 0)) |
|---|
| 2212 | | (beginning-of-line) |
|---|
| 2213 | | (forward-char 2) |
|---|
| 2214 | | (save-match-data (looking-at dired-re-perms))))) |
|---|
| 2215 | | (save-excursion |
|---|
| 2216 | | (goto-char (match-beginning 1)) |
|---|
| 2217 | | (setq new-dir-name |
|---|
| 2218 | | (buffer-substring-no-properties (point) (match-end 1)) |
|---|
| 2219 | | new-dir-name |
|---|
| 2220 | | (save-match-data |
|---|
| 2221 | | (if (and R-ftp-base-dir-regex |
|---|
| 2222 | | (not (string= new-dir-name default-directory)) |
|---|
| 2223 | | (string-match R-ftp-base-dir-regex new-dir-name)) |
|---|
| 2224 | | (concat default-directory |
|---|
| 2225 | | (substring new-dir-name (match-end 0))) |
|---|
| 2226 | | (expand-file-name new-dir-name)))) |
|---|
| 2227 | | (delete-region (point) (match-end 1)) |
|---|
| 2228 | | (insert new-dir-name)) |
|---|
| | 2207 | (while (re-search-forward dired-subdir-regexp nil t) |
|---|
| | 2208 | ;; Avoid taking a file name ending in a colon |
|---|
| | 2209 | ;; as a subdir name. |
|---|
| | 2210 | (unless (save-excursion |
|---|
| | 2211 | (goto-char (match-beginning 0)) |
|---|
| | 2212 | (beginning-of-line) |
|---|
| | 2213 | (forward-char 2) |
|---|
| | 2214 | (save-match-data (looking-at dired-re-perms))) |
|---|
| | 2215 | (save-excursion |
|---|
| | 2216 | (goto-char (match-beginning 1)) |
|---|
| | 2217 | (setq new-dir-name |
|---|
| | 2218 | (buffer-substring-no-properties (point) (match-end 1)) |
|---|
| | 2219 | new-dir-name |
|---|
| | 2220 | (save-match-data |
|---|
| | 2221 | (if (and R-ftp-base-dir-regex |
|---|
| | 2222 | (not (string= new-dir-name default-directory)) |
|---|
| | 2223 | (string-match R-ftp-base-dir-regex new-dir-name)) |
|---|
| | 2224 | (concat default-directory |
|---|
| | 2225 | (substring new-dir-name (match-end 0))) |
|---|
| | 2226 | (expand-file-name new-dir-name)))) |
|---|
| | 2227 | (delete-region (point) (match-end 1)) |
|---|
| | 2228 | (insert new-dir-name))) |
|---|