mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/doc-view.el (doc-view-set-doc-type): Ignore file name case; add .pps.
This commit is contained in:
parent
b92583c4bf
commit
005551fe36
2 changed files with 23 additions and 18 deletions
|
|
@ -1621,24 +1621,25 @@ If BACKWARD is non-nil, jump to the previous match."
|
|||
"Figure out the current document type (`doc-view-doc-type')."
|
||||
(let ((name-types
|
||||
(when buffer-file-name
|
||||
(cdr (assoc (file-name-extension buffer-file-name)
|
||||
'(
|
||||
;; DVI
|
||||
("dvi" dvi)
|
||||
;; PDF
|
||||
("pdf" pdf) ("epdf" pdf)
|
||||
;; PostScript
|
||||
("ps" ps) ("eps" ps)
|
||||
;; DjVu
|
||||
("djvu" djvu)
|
||||
;; OpenDocument formats
|
||||
("odt" odf) ("ods" odf) ("odp" odf) ("odg" odf)
|
||||
("odc" odf) ("odi" odf) ("odm" odf) ("ott" odf)
|
||||
("ots" odf) ("otp" odf) ("otg" odf)
|
||||
;; Microsoft Office formats (also handled
|
||||
;; by the odf conversion chain)
|
||||
("doc" odf) ("docx" odf) ("xls" odf) ("xlsx" odf)
|
||||
("ppt" odf) ("pptx" odf))))))
|
||||
(cdr (assoc-ignore-case
|
||||
(file-name-extension buffer-file-name)
|
||||
'(
|
||||
;; DVI
|
||||
("dvi" dvi)
|
||||
;; PDF
|
||||
("pdf" pdf) ("epdf" pdf)
|
||||
;; PostScript
|
||||
("ps" ps) ("eps" ps)
|
||||
;; DjVu
|
||||
("djvu" djvu)
|
||||
;; OpenDocument formats.
|
||||
("odt" odf) ("ods" odf) ("odp" odf) ("odg" odf)
|
||||
("odc" odf) ("odi" odf) ("odm" odf) ("ott" odf)
|
||||
("ots" odf) ("otp" odf) ("otg" odf)
|
||||
;; Microsoft Office formats (also handled by the odf
|
||||
;; conversion chain).
|
||||
("doc" odf) ("docx" odf) ("xls" odf) ("xlsx" odf)
|
||||
("ppt" odf) ("pps" odf) ("pptx" odf))))))
|
||||
(content-types
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue