- 'help-echo help-string))
- ((or ?g ?p ?I) (elopher-insert-margin "im") ; Image
- (insert-text-button display-string
- 'face elopher-image-face
- 'elopher-node (elopher-make-node elopher-current-node
- address
- #'elopher-get-image-node)
- 'action #'elopher-click-link
- 'follow-link t
- 'help-echo help-string))
- ((or ?4 ?9) (elopher-insert-margin "B") ; Binary
- (insert-text-button display-string
- 'face elopher-binary-face
- 'elopher-node (elopher-make-node elopher-current-node
- address
- #'elopher-get-node-download)
- 'action #'elopher-click-link
- 'follow-link t
- 'help-echo help-string))
- (?7 (elopher-insert-margin "S") ; Query
- (insert-text-button display-string
- 'face elopher-search-face
- 'elopher-node (elopher-make-node elopher-current-node
- address
- #'elopher-get-search-node)
- 'action #'elopher-click-link
- 'follow-link t
- 'help-echo help-string))
- (?h (elopher-insert-margin "W") ; Web link
- (let ((url (elt (split-string selector "URL:") 1)))
- (insert-text-button display-string
- 'face elopher-http-face
- 'elopher-url url
- 'action #'elopher-click-url
- 'follow-link t
- 'help-echo (format "mouse-1, RET: open url %s" url))))
- (?.) ; Occurs at end of index, can safely ignore.
- (tp (elopher-insert-margin (concat (char-to-string tp) "?"))
- (insert (propertize display-string
- 'face elopher-unknown-face))))
+ 'help-echo (format "mouse-1, RET: open %s on %s port %s"
+ selector host port)))
+ (pcase type
+ (?i (elopher-insert-margin) ; Information
+ (insert (propertize display-string
+ 'face 'elopher-info)))
+ (?h (elopher-insert-margin "W") ; Web link
+ (let ((url (elt (split-string selector "URL:") 1)))
+ (insert-text-button display-string
+ 'face 'elopher-url
+ 'elopher-url url
+ 'action #'elopher-click-url
+ 'follow-link t
+ 'help-echo (format "mouse-1, RET: open url %s" url))))
+ (?.) ; Occurs at end of index, can safely ignore.
+ (tp (elopher-insert-margin (concat (char-to-string tp) "?"))
+ (insert (propertize display-string
+ 'face elopher-unknown-face)))))