Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
disabling doc-view mode
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim X  
View profile  
 More options Dec 4 2009, 2:54 am
Newsgroups: gnu.emacs.help
From: Tim X <t...@nospam.dev.null>
Date: Fri, 04 Dec 2009 18:54:11 +1100
Local: Fri, Dec 4 2009 2:54 am
Subject: disabling doc-view mode

Does anyone know how to disable/stop doc-view mode from attempting to
convert files when you are in dired and you hit view-file on a ps, pdf,
file? I seem to remember there was a variable you could set to disable
doc-view mode, but I cna't find it and there is nothing in the manual
about disabling it.

I'm running emacs 23 from CVS.

thanks,

Tim

--
tcross (at) rapttech dot com dot au


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim X  
View profile  
 More options Dec 4 2009, 6:33 am
Newsgroups: gnu.emacs.help
From: Tim X <t...@nospam.dev.null>
Date: Fri, 04 Dec 2009 22:33:08 +1100
Local: Fri, Dec 4 2009 6:33 am
Subject: Re: disabling doc-view mode

Klaus Straubinger <KSN...@UseNet.ArcorNews.DE> writes:
> Tim X <t...@nospam.dev.null> wrote:

>> Does anyone know how to disable/stop doc-view mode from attempting to
>> convert files when you are in dired and you hit view-file on a ps, pdf,
>> file?

> (rassq-delete-all #'doc-view-mode auto-mode-alist) did help for me,
> at least in Emacs 23.1.  This rather radical solution disables all
> automatic choices of doc-view-mode, i.e., also for normal file opening.

Thanks Klaus. that was all I had come up with as well. Seems it may be
the way to go if no other suggestions come up.

thanks.

Tim

--
tcross (at) rapttech dot com dot au


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Dec 4 2009, 8:37 am
Newsgroups: gnu.emacs.help
From: Tassilo Horn <tass...@member.fsf.org>
Date: Fri, 04 Dec 2009 14:37:38 +0100
Local: Fri, Dec 4 2009 8:37 am
Subject: Re: disabling doc-view mode

Tim X <t...@nospam.dev.null> writes:
> Does anyone know how to disable/stop doc-view mode from attempting to
> convert files when you are in dired and you hit view-file on a ps, pdf,
> file?

I'm a bit curious.  Which mode would you expect when trying to view an
ps/pdf/dvi file in emacs?

Bye,
Tassilo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 More options Dec 4 2009, 2:05 pm
Newsgroups: gnu.emacs.help
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Fri, 04 Dec 2009 14:05:01 -0500
Local: Fri, Dec 4 2009 2:05 pm
Subject: Re: disabling doc-view mode

>>> Does anyone know how to disable/stop doc-view mode from attempting to
>>> convert files when you are in dired and you hit view-file on a ps, pdf,
>>> file?
>> I'm a bit curious.  Which mode would you expect when trying to view an
>> ps/pdf/dvi file in Emacs?
> For PostScript, I would expect ps-mode, of course:
> | (ps-mode)
> | Major mode for editing PostScript with GNU Emacs.

I don't know about you, but that's what I get by default (and I can
then view it with doc-view via C-c C-c).

> Unfortunately, there are no specialized modes for editing PDF and DVI
> files, so I would expect that a default mode for viewing binary files
> is chosen.

You could use find-file-literally for that.  Or of course

  (add-to-list 'auto-mode-alist '("\\.pdf\\'" . fundamental-mode))
  (add-to-list 'auto-mode-alist '("\\.dvi\\'" . fundamental-mode))

-- Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim X  
View profile  
 More options Dec 4 2009, 5:18 pm
Newsgroups: gnu.emacs.help
From: Tim X <t...@nospam.dev.null>
Date: Sat, 05 Dec 2009 09:18:48 +1100
Local: Fri, Dec 4 2009 5:18 pm
Subject: Re: disabling doc-view mode

Tassilo Horn <tass...@member.fsf.org> writes:
> Tim X <t...@nospam.dev.null> writes:

>> Does anyone know how to disable/stop doc-view mode from attempting to
>> convert files when you are in dired and you hit view-file on a ps, pdf,
>> file?

> I'm a bit curious.  Which mode would you expect when trying to view an
> ps/pdf/dvi file in emacs?

I have my own conversion mode which I've been running for the past 9
years. The image rendering of files is of no use to me - I need the
files converted into plain text. Unfortunately, the two are treading on
each others toes. I know that I would probably be able to do something
with doc-view mode to give me what I want, but the mode I've written
also handles doc, docx, xls and ppt, plus integrates with browse-url so
that if I try to view-file on any of these types, it gives me a text
rendering that I can use.  It is also a lot faster than doc-view.

I need it in text because I use emacspeak and it won't work with images.

Tim

--
tcross (at) rapttech dot com dot au


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marten...@gmail.com  
View profile  
 More options Sep 27 2012, 11:04 pm
Newsgroups: gnu.emacs.help
From: marten...@gmail.com
Date: Thu, 27 Sep 2012 20:04:31 -0700 (PDT)
Local: Thurs, Sep 27 2012 11:04 pm
Subject: Re: disabling doc-view mode
PS & PDF are text files, so I expect my text editor to open them as text files. I want to see the ASCII.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
marten...@gmail.com  
View profile  
 More options Sep 27 2012, 11:04 pm
Newsgroups: gnu.emacs.help
From: marten...@gmail.com
Date: Thu, 27 Sep 2012 20:04:31 -0700 (PDT)
Local: Thurs, Sep 27 2012 11:04 pm
Subject: Re: disabling doc-view mode
PS & PDF are text files, so I expect my text editor to open them as text files. I want to see the ASCII.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Sep 28 2012, 3:40 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Fri, 28 Sep 2012 09:40:26 +0200
Local: Fri, Sep 28 2012 3:40 am
Subject: Re: disabling doc-view mode

> Date: Thu, 27 Sep 2012 20:04:31 -0700 (PDT)
> From: marten...@gmail.com
> Cc: help-gnu-em...@gnu.org

> PS & PDF are text files, so I expect my text editor to open them as text files. I want to see the ASCII.

If they are text files, then how come Notepad or nedit don't show them
as text?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Dyballa  
View profile  
 More options Sep 28 2012, 4:45 am
Newsgroups: gnu.emacs.help
From: Peter Dyballa <Peter_Dyba...@Web.DE>
Date: Fri, 28 Sep 2012 10:44:54 +0200
Local: Fri, Sep 28 2012 4:44 am
Subject: Re: disabling doc-view mode

Am 28.09.2012 um 05:04 schrieb marten...@gmail.com:

> PS & PDF are text files, so I expect my text editor to open them as text files. I want to see the ASCII.

Try something like:

        (delete '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)

(Remove types you don't want to be touched by this customisation!)

Anyway, with C-c you can switch back to "ASCII" (and forth) and when you're fast enough (or your computer is slow) you can stop doc-view-mode from doing the conversion.

--
Greetings

  Pete

»¿ʇı̣ əsnqɐ ʇ,uɐɔ noʎ ɟı̣
ɓuı̣ɥʇʎuɐ sı̣ pooɓ ʇɐɥʍ«


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 More options Sep 29 2012, 1:09 pm
Newsgroups: gnu.emacs.help
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Sat, 29 Sep 2012 13:09:37 -0400
Local: Sat, Sep 29 2012 1:09 pm
Subject: Re: disabling doc-view mode

>    (delete '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)

This is pretty brittle.  Rather than try to "remove behavior" it's often
easier to add behavior:

  (add-to-list 'auto-mode-alist '("\\.ps\\'" . ps-mode))

You can also use M-x find-file-literally RET.  Or of course use C-c C-c
to switch from doc-view-mode to the "other" mode (ps-mode,
fundamental-mode, ...).

        Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Dyballa  
View profile  
 More options Sep 29 2012, 5:12 pm
Newsgroups: gnu.emacs.help
From: Peter Dyballa <Peter_Dyba...@Web.DE>
Date: Sat, 29 Sep 2012 23:11:59 +0200
Local: Sat, Sep 29 2012 5:11 pm
Subject: Re: disabling doc-view mode

Am 29.09.2012 um 19:09 schrieb Stefan Monnier:

>>        (delete '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)

> This is pretty brittle.  Rather than try to "remove behavior" it's often
> easier to add behavior:

>  (add-to-list 'auto-mode-alist '("\\.ps\\'" . ps-mode))

GNU Emacs 24.2.50 already has:

 ("\\.[eE]?[pP][sS]\\'" . ps-mode)
 ("\\.\\(?:PDF\\|DVI\\|OD[FGPST]\\|DOCX?\\|XLSX?\\|PPTX?\\|pdf\\|dvi\\|od[fg pst]\\|docx?\\|xlsx?\\|pptx?\\)\\'" . doc-view-mode-maybe)

GNU Emacs 23.4 already has:

 ("\\.[eE]?[pP][sS]\\'" . ps-mode)
 ("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)

So it seems to me that Marten has something customised that PS files are opened in doc-view-mode…

--
Greetings

  Pete

Hard Disk, n.:
        A device that allows users to delete vast quantities of data with simple mnemonic commands.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin Rodgers  
View profile  
 More options Oct 18 2012, 11:20 pm
Newsgroups: gnu.emacs.help
From: Kevin Rodgers <kevin.d.rodg...@gmail.com>
Date: Thu, 18 Oct 2012 21:18:06 -0600
Local: Thurs, Oct 18 2012 11:18 pm
Subject: Re: disabling doc-view mode
On 9/29/12 11:09 AM, Stefan Monnier wrote:

>>        (delete '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)

> This is pretty brittle.  Rather than try to "remove behavior" it's often
> easier to add behavior:

>    (add-to-list 'auto-mode-alist '("\\.ps\\'" . ps-mode))

Or:

(setq auto-mode-alist
       (delq (rassq 'doc-view-mode auto-mode-alist) auto-mode-alist))

> You can also use M-x find-file-literally RET.  Or of course use C-c C-c
> to switch from doc-view-mode to the "other" mode (ps-mode,
> fundamental-mode, ...).

--
Kevin Rodgers
Denver, Colorado, USA

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »