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

View File

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