(with-current-buffer (get-buffer-create pgg-output-buffer)
(buffer-disable-undo)
(erase-buffer)
- (let ((proto (url-type (url-generic-parse-url url))))
+ (let ((proto (url-type (url-generic-parse-url url)))
+ buffer-file-name)
(unless (memq (intern proto) '(http finger))
(insert (format "Protocol %s is not supported.\n" proto)))
(url-insert-file-contents url)
(progn
(delete-region (point-min) (match-beginning 0))
(when (re-search-forward "^-+END" nil t)
- (delete-region (progn (beginning-of-line 2)
- (point))
+ (delete-region (progn (end-of-line) (point))
(point-max)))
+ (insert "\n")
(with-temp-buffer
(insert-buffer-substring pgg-output-buffer)
(pgg-snarf-keys-region (point-min)(point-max))))