mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Fix tramp-sh-handle-insert-directory
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory): Remove also //DIRED-OPTIONS// line when there is no //DIRED// line.
This commit is contained in:
parent
2258ed01f4
commit
5b8e0b3154
@ -2742,8 +2742,8 @@ The method used must be an out-of-band method."
|
||||
;; End is followed by \n or by " -> ".
|
||||
(put-text-property start end 'dired-filename t))))))
|
||||
;; Remove trailing lines.
|
||||
(beginning-of-line)
|
||||
(while (looking-at "//")
|
||||
(goto-char (point-max))
|
||||
(while (re-search-backward (rx bol "//") nil 'noerror)
|
||||
(forward-line 1)
|
||||
(delete-region (match-beginning 0) (point))))
|
||||
;; Reset multibyte if needed.
|
||||
|
Loading…
Reference in New Issue
Block a user