From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System)
To: Chong Yidong <cyd@stupidchicken.com>
Subject: bug#4377: marked as done (allow one to still choose xpdf instead of doc-view)
Date: Sun, 13 Sep 2009 02:10:05 +0000 [thread overview]
Message-ID: <handler.4377.D4377.12528074862821.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 878wgpb89x.fsf@jidanni.org
[-- Attachment #1: Type: text/plain, Size: 884 bytes --]
Your message dated Sat, 12 Sep 2009 22:06:11 -0400
with message-id <87skerbnu4.fsf@cyd.mit.edu>
and subject line Re: allow one to still choose xpdf instead of doc-view
has caused the Emacs bug report #4377,
regarding allow one to still choose xpdf instead of doc-view
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)
--
4377: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4377
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
[-- Attachment #2: Type: message/rfc822, Size: 3949 bytes --]
From: jidanni@jidanni.org
To: yamaoka@jpl.org
Cc: emacs-w3m@namazu.org, emacs-pretest-bug@gnu.org
Subject: allow one to still choose xpdf instead of doc-view
Date: Wed, 09 Sep 2009 02:28:42 +0800
Message-ID: <878wgpb89x.fsf@jidanni.org>
My god, that's tons and tons of lisp to add to one's .emacs file, just
to say "I wish to have emacs still call xpdf when encountering a .pdf
file, like back before they introduced doc-view".
I'm filing an emacs-pretest-bug so they will make it easier to allow one
to choose if one wants doc-view, or stick with xpdf.
>>>>> "KY" == Katsumi Yamaoka <yamaoka@jpl.org> writes:
>>>>> jidanni@jidanni.org wrote:
>> The only way to get xpdf called on them is via dired-do-shell-command,
>> which knows about xpdf.
KY> Is what you want the one like this?
KY> (defadvice dired-view-file (around use-xpdf activate)
KY> "Use xpdf to view a pdf file."
KY> (unless (let ((file (dired-get-file-for-visit)))
KY> (and (not (file-directory-p file))
KY> (let ((case-fold-search t))
KY> (string-match "\\.pdf\\'" file))
KY> (prog1
KY> t
KY> (call-process "xpdf" nil nil nil file))))
KY> ad-do-it))
KY> The `v' key in the dired buffer uses xpdf to display a file iff
KY> its extension is ".pdf".
KY> Otherwise,
KY> (autoload 'mailcap-parse-mailcaps "mailcap" nil t)
KY> (autoload 'mm-mailcap-command "mm-decode")
KY> (defadvice dired-view-file (around use-mailcap-mime-data activate)
KY> "Use an external viewer to view a file according to `mailcap-mime-data'."
KY> (unless (let ((file (dired-get-file-for-visit))
KY> extension type command)
KY> (and (not (file-directory-p file))
KY> (progn
KY> (mailcap-parse-mailcaps)
KY> (setq extension (file-name-extension file)))
KY> (setq type (mailcap-extension-to-mime extension))
KY> (setq command (mailcap-mime-info type))
KY> (setq command (mm-mailcap-command command file nil))
KY> (prog1
KY> t
KY> (shell-command command))))
KY> ad-do-it))
KY> There will be other ELisp packages that use external viewers.
KY> `gnus-dired-find-file-mailcap' is it, though it may not be your
KY> taste.
[-- Attachment #3: Type: message/rfc822, Size: 1350 bytes --]
From: Chong Yidong <cyd@stupidchicken.com>
To: jidanni@jidanni.org
Cc: yamaoka@jpl.org, 4377-done@emacsbugs.donarmstrong.com
Subject: Re: allow one to still choose xpdf instead of doc-view
Date: Sat, 12 Sep 2009 22:06:11 -0400
Message-ID: <87skerbnu4.fsf@cyd.mit.edu>
> My god, that's tons and tons of lisp to add to one's .emacs file, just
> to say "I wish to have emacs still call xpdf when encountering a .pdf
> file, like back before they introduced doc-view".
One line solution:
(setq auto-mode-alist (rassq-delete-all 'doc-view-mode auto-mode-alist))
next parent reply other threads:[~2009-09-13 2:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87skerbnu4.fsf@cyd.mit.edu>
[not found] ` <878wgpb89x.fsf@jidanni.org>
2009-09-13 2:10 ` Emacs bug Tracking System [this message]
2009-09-13 15:10 ` bug#4377: marked as done (allow one to still choose xpdf instead of doc-view) Leo
2009-09-13 15:21 ` jidanni
2009-09-14 1:31 ` Stefan Monnier
2009-09-14 14:55 ` James Cloos
2009-09-15 13:31 ` Chong Yidong
2009-09-16 1:01 ` Stefan Monnier
[not found] ` <mailman.6712.1253022430.2239.bug-gnu-emacs@gnu.org>
2009-09-15 19:25 ` Tassilo Horn
[not found] ` <mailman.6626.1252892829.2239.bug-gnu-emacs@gnu.org>
2009-09-14 7:13 ` Tassilo Horn
2009-09-14 15:27 ` Stefan Monnier
2009-09-14 18:09 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=handler.4377.D4377.12528074862821.ackdone@emacsbugs.donarmstrong.com \
--to=owner@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.