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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28544 invoked from network); 10 Sep 2023 21:43:56 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 10 Sep 2023 21:43:56 -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.96) (envelope-from ) id 1qfSDi-004wGI-2k for ml@inbox.vuxu.org; Sun, 10 Sep 2023 16:43:54 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1qfSDi-005Y7i-17 for ml@inbox.vuxu.org; Sun, 10 Sep 2023 16:43:54 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1qfSDf-005Y7Z-1g for ding@lists.math.uh.edu; Sun, 10 Sep 2023 16:43:51 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qfSDa-00Gj6w-2G for ding@lists.math.uh.edu; Sun, 10 Sep 2023 16:43:51 -0500 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:From:To:Sender:Reply-To:Cc: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=CIMj7Zpb29UEvERnlcc2ucPUdYsRzgfauupzuoLhpfY=; b=HRPrr85Pgct7NaN0hCxIBUkQUN ydCKKG/82QEVJa1YiPqNtDiyk/TJjzLvJTYxjJBcvfSk/HYQKaKc1XYpWHM/vV9968hjHL8Qr4VcT RCKmhuznhq1xoD5Lt/0/2sSNyzVKzXXeXIGAfLTavegpwSCGKxUlcaPPVjpMKVSnWh0w=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qfSDH-0003KQ-KV for ding@gnus.org; Sun, 10 Sep 2023 23:43:31 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qfSDG-0005f0-11 for ding@gnus.org; Sun, 10 Sep 2023 23:43:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: View docx/doc documents from Gnus in Docview Date: Sun, 10 Sep 2023 14:43:15 -0700 Message-ID: <87jzsxogb0.fsf@ericabrahamsen.net> References: <8734zoskoe.fsf@thaodan.de> <87o7iango3.fsf@ericabrahamsen.net> <87il8hajv0.fsf@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:IPXaXmNrb6bZHQLTd2wExBbhi3o= List-ID: Precedence: bulk Björn Bidar writes: > Eric Abrahamsen writes: > >> Björn Bidar writes: >> >>> Hey, >>> >>> How can I make that I can view doc/docx document from the article >>> buffer >>> in Docview? >>> Opening them from dired already works, >> >> This is probably what you want. Use the prefix argument to select a >> part. >> >> K e runs the command gnus-article-view-part-externally (found in >> gnus-summary-mode-map), which is an autoloaded interactive >> byte-compiled Lisp function in ‘gnus-art.el’. >> >> It is bound to K e. >> >> (gnus-article-view-part-externally N) >> >> View MIME part N externally, which is the numerical prefix. > > I tried to select that option from the graphic menu when I select the > docx attachment by clicking on it with mouse. > However the only option it offers is to safe the attachment. > What does externally mean, externally of Gnus or externally of Emacs? It opens the file externally if it can find an external program to use, otherwise it saves the file. Unfortunately the mm-* and mailcap-* stuff is so perfectly impenetrable I don't think anyone has ever been able to figure it out. I eventually did this to force Gnus to open absolutely everything in `xdg-open`, no matter via which channel: (setq mailcap-mime-data '(("application" (".*" (viewer . "xdg-open %s"))))) Then I had to install mimeo and xdg-utils-mimeo because xdg-open itself is a horrible rat's maze. Then I had to uninstall Chromium because no matter what it insisted on opening all image/* files. That was one of those times I came very close to setting my computer on fire and becoming a Franciscan friar. Eric