GNU bug report logs -
#54947
29.0.50; Emacs does not invoke doc view to open odf files
Previous Next
Reported by: Raoul Comninos <revcomninos <at> gmail.com>
Date: Fri, 15 Apr 2022 07:30:02 UTC
Severity: normal
Tags: moreinfo
Found in version 29.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54947 in the body.
You can then email your comments to 54947 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54947
; Package
emacs
.
(Fri, 15 Apr 2022 07:30:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Raoul Comninos <revcomninos <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 15 Apr 2022 07:30:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When I try to open an odt file in Emacs I get this error:
File mode specification error: (error Conflicting types: name says (odf)
but content says (epub))
This is despite the fact that I have this in my init file:
(add-to-list 'auto-mode-alist '("\\.odt\\'" . doc-view-mode))
In GNU Emacs 29.0.50 (build 2, x86_64-w64-mingw32)
of 2022-04-14 built on DESKTOP-M9O01RB
Repository revision: 203c503ff22e6c3c7b75d0e30d1974bb0ca9e60a
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.19044
System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.1645)
Configured using:
'configure --with-native-compilation'
Configured features:
ACL DBUS GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES
NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP XPM ZLIB
Important settings:
value of $LANG: ENS
locale-coding-system: cp1252
Major mode: Fundamental
Minor modes in effect:
dired-async-mode: t
recentf-mode: t
savehist-mode: t
save-place-mode: t
global-hi-lock-mode: t
hi-lock-mode: t
delete-selection-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-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
line-number-mode: t
global-visual-line-mode: t
visual-line-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message yank-media rfc822 mml mml-sec
epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode
mailabbrev gmm-utils mailheader sendmail mail-utils doc-view jka-compr
image-mode exif bookmark text-property-search pp dired-async dired-aux
comp comp-cstr warnings cl-extra help-mode remember derived kmacro
dired-x dired dired-loaddefs markdown-mode color thingatpt smart-quotes
org-download org-element avl-tree generator org-attach org-id org-refile
org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote
org-src ob-comint org-pcomplete pcomplete comint ansi-color org-list
org-faces org-entities noutline outline easy-mmode org-version
ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601
time-date ol rx org-keys oc org-compat advice org-macs org-loaddefs
format-spec find-func cal-menu calendar cal-loaddefs url-http url
url-proxy url-privacy url-expand url-methods url-history mailcap
url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr url-cookie url-domsuf url-util url-gw nsm rmc puny url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map seq gv byte-opt bytecomp byte-compile cconv
url-vars async ace-window subr-x avy ring lorem-ipsum unfill two-column
recentf tree-widget wid-edit cl-loaddefs cl-lib savehist saveplace
hi-lock delsel cus-load iso-transl tooltip eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice simple 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 composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads
w32notify dbusbind w32 lcms2 multi-tty make-network-process
native-compile emacs)
Memory information:
((conses 16 238817 13190)
(symbols 48 21577 1)
(strings 32 68938 2238)
(string-bytes 1 2013433)
(vectors 16 31930)
(vector-slots 8 542596 17192)
(floats 8 230 340)
(intervals 56 1790 0)
(buffers 992 14))
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54947
; Package
emacs
.
(Fri, 15 Apr 2022 07:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 54947 <at> debbugs.gnu.org (full text, mbox):
> From: Raoul Comninos <revcomninos <at> gmail.com>
> Date: Fri, 15 Apr 2022 09:28:35 +0200
>
> When I try to open an odt file in Emacs I get this error:
>
> File mode specification error: (error Conflicting types: name says (odf)
> but content says (epub))
>
> This is despite the fact that I have this in my init file:
>
> (add-to-list 'auto-mode-alist '("\\.odt\\'" . doc-view-mode))
I cannot reproduce this. I'm guessing some other customization, or
maybe some package you load, is involved. Please see which other
factors affect this, and please post a recipe that can be used to
reproduce this problem starting from "emacs -Q" (if some packages need
to be loaded, please make that part of the recipe).
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54947
; Package
emacs
.
(Fri, 15 Apr 2022 07:50:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 54947 <at> debbugs.gnu.org (full text, mbox):
Raoul Comninos <revcomninos <at> gmail.com> writes:
> When I try to open an odt file in Emacs I get this error:
>
> File mode specification error: (error Conflicting types: name says (odf)
> but content says (epub))
>
> This is despite the fact that I have this in my init file:
>
> (add-to-list 'auto-mode-alist '("\\.odt\\'" . doc-view-mode))
The error message comes from doc-view-mode, so it is being used here.
But have you checked whether the message is gives is correct? It's
saying that you're giving it a file called .odf while the contents of
the file is really an epub file.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 15 Apr 2022 07:50:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54947
; Package
emacs
.
(Sat, 16 Apr 2022 09:23:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 54947 <at> debbugs.gnu.org (full text, mbox):
Raoul Comninos <revcomninos <at> gmail.com> writes:
> No, the files are definitely odt not epub.
I downloaded an odf file and was able to reproduce the problem, and I've
now pushed a fix to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 29.1, send any further explanations to
54947 <at> debbugs.gnu.org and Raoul Comninos <revcomninos <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 16 Apr 2022 09:23:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54947
; Package
emacs
.
(Sat, 16 Apr 2022 09:37:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 54947 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Great, thanks do much.
On Sat, 16 Apr 2022 at 11:22, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Raoul Comninos <revcomninos <at> gmail.com> writes:
>
> > No, the files are definitely odt not epub.
>
> I downloaded an odf file and was able to reproduce the problem, and I've
> now pushed a fix to Emacs 29.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[Message part 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 14 May 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.