From: plugd Date: Mon, 9 Aug 2021 14:45:23 +0000 (+0200) Subject: Can now open gophermap files with file:. X-Git-Tag: v3.3.0~20 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=2ebb812f7d0df8f0e338355f1722a6bb0950befa Can now open gophermap files with file:. --- diff --git a/elpher.el b/elpher.el index 1dfdded..c6627df 100644 --- a/elpher.el +++ b/elpher.el @@ -1687,6 +1687,8 @@ Assumes UTF-8 encoding for all text files." (elpher-render-text (decode-coding-string body 'utf-8))) ((or "jpg" "jpeg" "gif" "png" "bmp" "tif" "tiff") (elpher-render-image body)) + ((or "gopher" "gophermap") + (elpher-render-index (elpher-decode body))) (_ (elpher-render-download body)))) (elpher-restore-pos)))) diff --git a/elpher.texi b/elpher.texi index 5892db3..3b54a31 100644 --- a/elpher.texi +++ b/elpher.texi @@ -683,6 +683,11 @@ particular their extension. The current mappings are as follows: Plain text documents. All local text files are assumed to be UTF-8-encoded. +@item @samp{gophermap},@samp{gopher} + +Gophermap files, i.e. files containing a valid directory list as specified +by RFC 1436. + @item @samp{gemini},@samp{gmi} Gemini documents (i.e. documents of MIME type ``text/gemini''). All @@ -703,10 +708,6 @@ much that elpher can sensibly do with unknown binary files.) @end table -Gophermap files (i.e. files containing literally the intended output of -querying a directory selector according to RFC 1436) cannot yet rendered -using @samp{file:}. - @node About pages, Customization, Local files, Top @chapter About pages