From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: EWW/SHR Feature Request Date: Wed, 13 Jul 2016 19:44:29 -0700 Message-ID: References: <21292.24135.442736.223060@lapdog.roam.corp.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468464314 23492 80.91.229.3 (14 Jul 2016 02:45:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 02:45:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 14 04:45:13 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bNWeH-0003ta-35 for ged-emacs-devel@m.gmane.org; Thu, 14 Jul 2016 04:45:13 +0200 Original-Received: from localhost ([::1]:51062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNWeF-0002mh-TM for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2016 22:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNWdk-0002mc-L1 for emacs-devel@gnu.org; Wed, 13 Jul 2016 22:44:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNWdg-0002zT-G3 for emacs-devel@gnu.org; Wed, 13 Jul 2016 22:44:39 -0400 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:36580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNWdg-0002zL-8L for emacs-devel@gnu.org; Wed, 13 Jul 2016 22:44:36 -0400 Original-Received: by mail-pa0-x231.google.com with SMTP id pp5so16775357pac.3 for ; Wed, 13 Jul 2016 19:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=UTn3VLV3t17k7qWHxUFu+giTkWAvfKjSq+9LErlmIkw=; b=az2p938Iz1rRRNwd7S7BzH2Pzk4taRyyAcDMSA4JEhTdo3zWfjF/wCRf+EmnWtEvzR 7p/wB9r8UoGUncH1UiCnSQ/IKkNYwor8iLV9TaLNCLchkYW0NgP2YvQjVx8uTb+WPGNu t3Uc5Qm9eQzA1mInFzlZrvCHq384sZEfqgpoYtQNsNTsGjklMdYY7pOvvVeWioxlzQHa gVRd7CXcV9QuoXw1YoXHd7Ed25DIFj7KSNvgN4hGpmwqVlTKiBJCtaDFG3U+4nahr9qo QUVbUXuq7jZWBuG5p1TnVA6v+9SR8vHIAEcoP6Bg5D/t9nzBgtd24DcurDZU349zMwRX duBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=UTn3VLV3t17k7qWHxUFu+giTkWAvfKjSq+9LErlmIkw=; b=bSghyHh5G+yyVZzTQteh263GewYClfu13B4vFNCUYOuonGOYL88zec/1tozQMoIFWO zvcuscq6937YH/INQ57LG0QIJ/BjfEcIShXVrITPioNbqMqjsbIqqWgJOH9cn0gCIr7t d3Ngys3zBqxRWP9eIdlCfI3Lf2a6m2WYJXiDfI7tEdIpRXuXHEjf1pS0N0NmQs8HuwF3 JaVjtglDdzZHhwFu/PNMI6YGRoeWj985mwv6Wt9BVhjvKnfTetczqadREPtoyvnns6vD OtJLpx8aP+++d7G10NK27DiYo+wwG3cqR7QngHROEorCpuSWy1DoO895fRU5vZcQptdN hYuQ== X-Gm-Message-State: ALyK8tJdtIaHjLXoIY7mYaaC9yoekKWA3Nao02B+P6IuOKG1WMHUkoRiy3fsqXdBHMY98/f7 X-Received: by 10.66.182.13 with SMTP id ea13mr19101977pac.89.1468464274681; Wed, 13 Jul 2016 19:44:34 -0700 (PDT) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id b7sm52019pat.27.2016.07.13.19.44.32 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 13 Jul 2016 19:44:32 -0700 (PDT) In-Reply-To: <21292.24135.442736.223060@lapdog.roam.corp.google.com> (T. V. Raman's message of "Fri, 21 Mar 2014 08:44:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205667 Archived-At: Following up to myself: For now I solved my use-case by advising eww-browse-with-external-browser -- that function is presently called by EWW for content-types matching eww-use-external-browser-for-content-type the default value of that var is "\\`\\(video/\\|audio/\\|application/ogg\\)" i.e. video/audio types, and those were the types I wanted to handle within Emacs. Longer term, there are two ways we could go: 1. EWW already has functions for handling PDF, img types etc. -- we could set EWW up to handle audio/video via a user configurable function, with the default handing off to a full-blown browser as now. 2. The other alternative would be to process the user's mailcap file, but that might not be ideal because in general most users will want the .mailcap file to govern their primary browser's behavior. --