[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doc-view compilation warnings
From: |
Tassilo Horn |
Subject: |
Re: doc-view compilation warnings |
Date: |
Tue, 23 Oct 2007 22:00:16 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
Hi Stefan,
>>> > +(push '("\\.[eE]?[pP][sS]\\'" . doc-view-mode-maybe) auto-mode-alist)
>>> > +(push '("\\.[Dd][Vv][Ii]\\'" . doc-view-mode-maybe) auto-mode-alist)
>>> > +(push '("\\.[Pp][Dd][Ff]\\'" . doc-view-mode-maybe) auto-mode-alist)
>>>
>>> In general loading a file should not have side effects like this.
>>> IMHO, it is not idea to do things this way...
>
>> So what would you suggest? A function `doc-view-initialize' that
>> does this?
>
> You could put it directly into files.el.
That would load doc-view unconditionally when a user opens a pdf/ps/dvi
file. That's ok with me, but others might think different.
But someone should decide: Is loading doc-view when opening ps/pdf/dvi
files ok?
> Or (tho less good) put it into `doc-view-mode' (so loading the file
> doesn't have any side-effect, though using doc-view does).
But then a user would need to open a document and enable d-v-m manually
in order to have it (or its minor mode) activated automatically when
opening another doc.
IMO a setup function would be better then.
Bye,
Tassilo
- Re: doc-view compilation warnings, (continued)
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/21
- Re: doc-view compilation warnings, Richard Stallman, 2007/10/22
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/23
- Re: doc-view compilation warnings, Dan Nicolaescu, 2007/10/23
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/23
- Re: doc-view compilation warnings, Dan Nicolaescu, 2007/10/23
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/23
- Re: doc-view compilation warnings, Dan Nicolaescu, 2007/10/23
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/23
- Re: doc-view compilation warnings, Stefan Monnier, 2007/10/23
- Re: doc-view compilation warnings,
Tassilo Horn <=
- Re: doc-view compilation warnings, Stefan Monnier, 2007/10/23
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/24
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/24
- Re: doc-view compilation warnings, Tassilo Horn, 2007/10/24
- doc-view.patch waiting for installation (was: doc-view compilation warnings), Tassilo Horn, 2007/10/26
- Re: doc-view.patch waiting for installation, Glenn Morris, 2007/10/28
- Re: doc-view.patch waiting for installation, Tassilo Horn, 2007/10/29
- Re: doc-view.patch waiting for installation, Glenn Morris, 2007/10/30
- Case folding for auto-mode-alist (was: doc-view.patch waiting for installation), Reiner Steib, 2007/10/30
- Re: Case folding for auto-mode-alist, Stefan Monnier, 2007/10/30