From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6513 invoked from network); 13 Feb 2021 11:35:55 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2021 11:35:55 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lAtDM-00G7Rj-Jr for ml@inbox.vuxu.org; Sat, 13 Feb 2021 05:35:52 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1lAtDM-00CN0K-3O for ml@inbox.vuxu.org; Sat, 13 Feb 2021 05:35:52 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lAtDJ-00CN0C-MD for ding@lists.math.uh.edu; Sat, 13 Feb 2021 05:35:49 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lAtDH-00G7RO-6s for ding@lists.math.uh.edu; Sat, 13 Feb 2021 05:35:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References :Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=sswfPwA6nPYKEea4wAxY5dsNAbpBnpdHNm2OVQxcAxk=; b=HemH4oHut+I0nYDiDsINBDXwPz f1GOSjV74Ui1wnyRT/ohHdSbjzOFy7rr4WCa1WlzkiNCQoIZd26j3/k/w0pWBrv2X7t2oNkoBbIGa XGgIuoFhU51NHMw3HM6nt4s0IrgH6uNSudCXP55fZnOlCee/br80XelHyTN5nQfoJZRI=; Received: from mout.gmx.net ([212.227.17.20]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAtD9-0003hJ-G1 for ding@gnus.org; Sat, 13 Feb 2021 12:35:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613216135; bh=z/CvMAu2gWcV1byCMB7ySqMeVxUlenO8S1N0lo1CArA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:References; b=dX4ZNQJyTImm5x74uMG9zwj4sYAi8nlZsnTlvB3wKirjEXW96K34lRWOOYIm8CYPE 041zi9oT2XGLBMfGBkVtJEqGfb/wKSnyRqvxlY8wa1EXzKnPmWmfFcoapG82/aE5Kf 3o6F7w3NMRt9mNXsMHYXI63kBnO/Bf+ytePDsbjc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from bitburger ([87.151.60.200]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVvPJ-1lILsw3Bsz-00Rm0W; Sat, 13 Feb 2021 12:35:35 +0100 From: Felix Natter To: Adam =?utf-8?Q?Sj=C3=B8gren?= Cc: ding@gnus.org Subject: Re: View HTML Mail in Browser Date: Sat, 13 Feb 2021 12:34:05 +0100 Message-ID: <871rdkp5g2.fsf@gmx.net> References: <87wnvlz56f.fsf@gmx.net> <874kipqomu.fsf@igel.home> <87r1lsq3tt.fsf@gmx.net> <874kio3lrh.fsf@tullinup.koldfront.dk> <87mtwg6wxw.fsf@gmx.net> <87zh0gyrcq.fsf@tullinup.koldfront.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:DS+fNlK5P1MEZ6+X46LvYv2A/beJHIp3K8GsNaxKY6BINC0/w0c EpQApEwEkvBrRoGO8NsGOqOR1uTi0u9+3zVuU3/wslLvN+2jybvXivl59Dr4PM6MmxAbsf7 dXwxq5ZoSi4442lWG5VipA8kW1m6hMDTS1oGcAd2OgsE+Jx8LUGR9GBQT0iJ5Kj7wcV/YS7 QVrQa+pq6pTBS1SUM5WyQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:557n7ZlLAiw=:stAx9nc8ugHlTwZ1QLOowK Qy2x3Ubg0j956Rdq4dvpUZMfNREzlcSE+trQ6XyFn8vqhVuFZielyUDW1ZZos96JlNWzEors6 2BM0dta/JzPItlk2tf6XOurbNpePVtPfAA7oGIBMXQ9un7+DI76lpteU8mmdmc7xPoYqr6IxF DELgyTv9uhY70gkh0eds9EaAJdMuWtgL4sPSN58pRjWTlTt+bsdQ7MjS51ZyO1unEUK3GPA7A hmHs0IF5ficfmIpEBkUy7I2Yc6fOOSWXpT/LSkWrQfqs5LAtABVNdKeU+klJZVEO1WFFpULOc kVh0EDhca2XzPQ5NpYNMFmYowBRNeO4dsvgPaHWXy4X352dbuxQ9A7grRaaIqdnI0aFWNEOc4 rNJ/00hJCyVGSOv1PDDS5CT7sdyJX1Zg27N3qvamLhYFKIENgOiJA56i0jN6BSCYI3YeNWs6z FfhsiXcOmDfOhmsnUCBqAx8iQHb9J9WHwDQYJCGtuk38LFBAGBhdlJiOpVCdEDyMWTF0DXqXY 0atEyQm4i5aLqlUKu00Chu/PUMQAbKaczdAp1B8rd+3kWE2Okw1AWBQQa84YfErXFFicUryAp Qpafw12YFQUa392CFHocL5Uk34m0jbVgkuJUQ5s+/WL4P0F3tj6vw4FCrQxJqlfkjDJSwEz5e 0uQUJpz2FPMhVnI0RZnFyCHGwW4ubGREAWmVOxFFpXtsRfeJT0GkAyOSUUa4D6mv1NTRAqWpe RK2OKQsjbfK9YlxiQaQCqfW+vYEtML5Incbb6pZiSChJOjYZn7g6Or8DEDZu4+MzgYcIoZw9v 1EN6KgV0zLLRNoRV9PY57+aVoml0bdmZWLVGyveL1E0tOQbhj9ALwI543DGV6hGTXIZssu1Z4 JEuXm4iCMxkc+68TFl4w== List-ID: Precedence: bulk hello Adam, Adam Sj=C3=B8gren writes: > Felix writes: > >>> What is problem are you trying to solve? > >> I would like to open mails using w3m by default, >> and if I hit K H I would like to open it in the browser: > > Ah, ok, I missed the w3m part (shr works better for me), and then got > confused about what wasn't working for you, sorry! no problem. >> There must be some configuration that prevents this for me: > > Yes, that is very odd, it works "out of the box" for me. > > Oh, wait, how do you start Emacs? I have a vague memory that there might > still be parts that check for X once, and then never rechecks, meaning > that you get different behaviour if you start a Emacs as a daemon in the > background without X, or from an Emacs that starts up with an X window. > > Could that be it? No, I don't do this. > I.e. to check, stop Emacs completely, start Emacs in X, read an HTML > email, press K H? This is what I'm doing. > If not, my next step would be to M-x edebug-defun on > gnus-article-browse-html-article and gnus-article-browse-html-parts and > then step through them and see what happens. > > It looks like the latter ends up calling browse-url-of-file, so you > might want to experiment with that one, to see if it opens Firefox when > called on a file - if not, then that's a clue. > > E.g. if you in a *scratch* buffer evaluate: > > (browse-url-of-file "test.html") That didn't open anything in the browser. > > do you then get a Firefox window trying to open test.html? > > If not, is your value of: Jackpot! I had (defun browse-url-firefox-new-tab (url &optional new-window) "Open URL in a new tab in Firefox." (interactive (browse-url-interactive-arg "URL: ")) (let ((cmd (shell-command-to-string (concat "/usr/bin/firefox -remote -client -a any 'openUR= L(" url ",new-tab)'")))) (unless (string=3D "" cmd) (message "Starting Firefox...") (start-process (concat "firefox " url) nil "/usr/bin/firefox" ur= l) (message "Starting Firefox...done")))) (setq browse-url-browser-function (quote browse-url-firefox-new-tab)) in my ~/.emacs.el. once I deactivated this: (setq browse-url-browser-function (quote browse-url-firefox)) with this in my .gnus.el: (setq mm-text-html-renderer 'shr) it now renders using shr by default, and when I press K H it renders in FF (in a new tab) :-) Many Thanks! Best Regards, --=20 Felix Natter