melpa は http 接続をやめました。
Hello all. MELPA is now fully HTTPS. Using HTTP will 301 redirect to the HTTPS address. If you have issue please update your package-archives address to use HTTPS.
— MELPA (@melpa_emacs) 2020年7月4日
Please report any issues to https://t.co/GLVZRuFEyq
emacs から https で接続するには gnutls が要るので再ビルドします。
ビルドの前に、cygwin に gnutls と gnutls-devel をインストールしておきます。
configure の「--with-gnutls=no」指定は省いてビルドします。
$ ./configure --without-xim --with-w32 --without-xpm --without-imagemagick $ make $ ./src/emacs -Q $ make install
次に emacs の設定を修正します。
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") ; <- 追加した (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.milkbox.net/packages/")) ; <- https に変更 (package-initialize) (package-refresh-contents)
これで melpa に https で接続できるようになりました。