1
0
Fork 0

- allowed pushing in the address visited queue only gemtext pages and gopher menu.

This commit is contained in:
cage 2022-09-04 16:37:51 +02:00
parent b3f37fb350
commit 72cef9943b
2 changed files with 44 additions and 46 deletions

View File

@ -547,7 +547,6 @@
:running))))
(multiple-value-bind (actual-iri host path query port fragment)
(gemini-client:displace-iri parsed-iri)
(declare (ignore actual-iri))
(gemini-client:debug-gemini "response is a stream")
(labels ((make-text-based-stream (gemini-format-p)
(let* ((starting-status (starting-status meta))
@ -586,6 +585,7 @@
(cond
((gemini-client:gemini-file-stream-p meta)
(gemini-client:debug-gemini "response is a gemini document stream")
(push-url-to-history specials:*message-window* actual-iri)
(make-text-based-stream t))
((gemini-client:text-file-stream-p meta)
(gemini-client:debug-gemini "response is a text stream")
@ -712,7 +712,6 @@
(if (find-db-stream-url actual-iri)
(progn
(gemini-client:debug-gemini "caching found for ~a" actual-iri)
(push-url-to-history specials:*message-window* actual-iri)
(db-entry-to-foreground actual-iri))
(progn
(gemini-client:debug-gemini "caching *not* found for ~a" actual-iri)
@ -727,7 +726,6 @@
(find-db-stream-url actual-iri)))
(when (null enqueue)
(ensure-just-one-stream-rendering))
(push-url-to-history specials:*message-window* actual-iri)
(gemini-client:request-dispatch url
gemini-client::dispatch-table
:certificate certificate

View File

@ -212,9 +212,9 @@
port
type
selector)))
(gemini-viewer:push-url-to-history message-win link)))
(cond
((gopher-parser::%line-type-dir-p type)
(gemini-viewer:push-url-to-history message-win link)
(let ((data (misc:make-fresh-array 0 :type '(unsigned-int 8))))
(gopher-client:request host
type
@ -254,7 +254,7 @@
(write-sequence buffer stream)))
(finish-output stream)
(os-utils:open-resource-with-external-program filesystem-utils:temp-file
nil)))))
nil)))))))
(defun open-menu-link ()
(a:when-let* ((win *gopher-window*)