From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#23184: 25.0.92; User-friendly way to override doc-view-mode as MIME viewer Date: Sat, 02 Apr 2016 10:49:12 +0300 Message-ID: <87shz4pi13.fsf@iki.fi> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459583427 25289 80.91.229.3 (2 Apr 2016 07:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 07:50:27 +0000 (UTC) To: 23184@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 09:50:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1amGJy-0002J9-TL for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 09:50:15 +0200 Original-Received: from localhost ([::1]:48431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amGJx-0000zr-UT for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 03:50:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amGJt-0000y8-AF for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:50:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amGJm-00082F-Rk for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:50:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amGJm-00082B-Nq for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amGJm-00040V-G9 for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Teemu Likonen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 07:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23184 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145958337015357 (code B ref -1); Sat, 02 Apr 2016 07:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2016 07:49:30 +0000 Original-Received: from localhost ([127.0.0.1]:47767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amGJF-0003zd-Ph for submit@debbugs.gnu.org; Sat, 02 Apr 2016 03:49:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amGJD-0003zO-Dy for submit@debbugs.gnu.org; Sat, 02 Apr 2016 03:49:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amGJ7-0007ku-26 for submit@debbugs.gnu.org; Sat, 02 Apr 2016 03:49:22 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amGJ6-0007kn-Ux for submit@debbugs.gnu.org; Sat, 02 Apr 2016 03:49:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amGJ5-0000s7-M7 for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:49:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amGJ0-0007he-LQ for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:49:19 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.199]:40852 helo=johanna1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amGJ0-0007gz-6h for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 03:49:14 -0400 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Original-Received: from mithlond.arda (84.251.143.106) by johanna1.inet.fi (9.0.002.03-2-gbe5d057) id 56EFE4F500ED0547 for bug-gnu-emacs@gnu.org; Sat, 2 Apr 2016 10:49:12 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.84_2) (envelope-from ) id 1amGIy-0000sf-EK for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 10:49:12 +0300 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115860 Archived-At: This is a wish list issue. Emacs has mailcap-mime-data variable which is used to decide how various contents are displayed. The variable is (or seems to be) bootstrapped from operating system's mailcap configuration but Emacs overrides some parts of it with (viewer . doc-view-mode) or (viewer . pdf-view-mode). Not all users want to use doc-view-mode for displaying mime contents. I wish there was an easy way to not use doc-view-mode or to move its priority to the bottom of the viewer list. Currently I use this hack to get completely rid of doc-view-mode: (with-eval-after-load 'mailcap (require 'cl-lib) (setq mailcap-mime-data (mapcar (lambda (major) (cons (car major) (cl-remove-if (lambda (minor) (cl-some (lambda (x) (and (eq 'viewer (car x)) (cl-member (cdr x) '(doc-view-mode pdf-view-mode)))) (cdr minor))) (cdr major)))) mailcap-mime-data))) In GNU Emacs 25.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2016-03-29 built on mithlond Repository revision: 06495c96ae0f5a0fa1d56f47750624138f80cb94 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.3 (jessie) Configured using: 'configure --prefix=/home/dtw/local --with-x-toolkit=gtk3 --with-xwidgets --with-wide-int' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS Important settings: value of $LC_MESSAGES: C value of $LANG: fi_FI.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Group Minor modes in effect: diff-auto-refine-mode: t gnus-topic-mode: t gnus-undo-mode: t ido-everywhere: t global-undo-tree-mode: t show-paren-mode: t winner-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/.emacs.d/omat/elisp/loaddefs hides /home/dtw/local/share/emacs/25.0.92/lisp/loaddefs Features: (shadow nnir emacsbug sendmail ielm vc vc-dispatcher paredit misearch multi-isearch dired-aux bookmark qp flow-fill mm-archive vc-git diff-mode sort gnus-cite mail-extr gnus-async gnus-bcklg gnus-ml disp-table gnus-topic nndraft nnmh imap utf-7 epa-file epa network-stream nsm auth-source starttls nnml nnmbox nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-bogofilter gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message dired format-spec rfc822 mml mml-sec password-cache epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit ido seq undo-tree diff paren winner rx slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations advice bridge slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime derived gud apropos compile etags xref cl-seq project eieio byte-opt bytecomp byte-compile cl-extra help-mode cconv eieio-core arc-mode archive-mode noutline outline easy-mmode pp comint ansi-color ring hyperspec cl-macs thingatpt browse-url cl gv slime-autoloads edmacro kmacro cl-loaddefs pcase cl-lib finder-inf tex-site info package easymenu epg-config server time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 365872 33679) (symbols 48 42316 0) (miscs 40 409 620) (strings 32 86104 6555) (string-bytes 1 2641019) (vectors 16 41398) (vector-slots 8 1502103 214153) (floats 8 544 688) (intervals 56 837 207) (buffers 976 52) (heap 1024 91844 26157)) <#secure method=pgpmime mode=sign>