all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files
@ 2022-04-15  7:28 Raoul Comninos
  2022-04-15  7:41 ` Eli Zaretskii
  2022-04-15  7:48 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Raoul Comninos @ 2022-04-15  7:28 UTC (permalink / raw)
  To: 54947

[-- Attachment #1: Type: text/plain, Size: 4219 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 4637 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files
  2022-04-15  7:28 bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files Raoul Comninos
@ 2022-04-15  7:41 ` Eli Zaretskii
  2022-04-15  7:48 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2022-04-15  7:41 UTC (permalink / raw)
  To: Raoul Comninos; +Cc: 54947

> From: Raoul Comninos <revcomninos@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files
  2022-04-15  7:28 bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files Raoul Comninos
  2022-04-15  7:41 ` Eli Zaretskii
@ 2022-04-15  7:48 ` Lars Ingebrigtsen
       [not found]   ` <CAHcEtGLfoZmBEb=JkRZg3QzJKQ81H6a4oYE1vXzjoiJ5250pww@mail.gmail.com>
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-15  7:48 UTC (permalink / raw)
  To: Raoul Comninos; +Cc: 54947

Raoul Comninos <revcomninos@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files
       [not found]   ` <CAHcEtGLfoZmBEb=JkRZg3QzJKQ81H6a4oYE1vXzjoiJ5250pww@mail.gmail.com>
@ 2022-04-16  9:22     ` Lars Ingebrigtsen
  2022-04-16  9:35       ` Raoul Comninos
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-16  9:22 UTC (permalink / raw)
  To: Raoul Comninos; +Cc: 54947

Raoul Comninos <revcomninos@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files
  2022-04-16  9:22     ` Lars Ingebrigtsen
@ 2022-04-16  9:35       ` Raoul Comninos
  0 siblings, 0 replies; 5+ messages in thread
From: Raoul Comninos @ 2022-04-16  9:35 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 54947

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

Great, thanks do much.

On Sat, 16 Apr 2022 at 11:22, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Raoul Comninos <revcomninos@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
>

[-- Attachment #2: Type: text/html, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-16  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-15  7:28 bug#54947: 29.0.50; Emacs does not invoke doc view to open odf files Raoul Comninos
2022-04-15  7:41 ` Eli Zaretskii
2022-04-15  7:48 ` Lars Ingebrigtsen
     [not found]   ` <CAHcEtGLfoZmBEb=JkRZg3QzJKQ81H6a4oYE1vXzjoiJ5250pww@mail.gmail.com>
2022-04-16  9:22     ` Lars Ingebrigtsen
2022-04-16  9:35       ` Raoul Comninos

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.