all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14188: 24.3.50; ODF files and auto-mode-alist
@ 2013-04-11 19:55 Stephen Berman
  2013-04-11 20:14 ` Eli Zaretskii
  2013-04-17 13:43 ` Tassilo Horn
  0 siblings, 2 replies; 7+ messages in thread
From: Stephen Berman @ 2013-04-11 19:55 UTC (permalink / raw)
  To: 14188

The extension .od[fgpst] for ODF files occurs twice as part of a key in
the default value of auto-mode-alist, paired first with archive-mode and
later with doc-view-mode-maybe.  As a result, visiting such a file shows
the directory-style listing of the archive instead of the files content.
To see the latter, you have to explicitly invoke doc-view-mode.  But if
.od[fgpst] is removed from the key paired with archive-mode, then
visiting such a file shows the content after conversion, and when you
type C-c C-c, it switches to the archive listing, due to
magic-fallback-mode-alist.[1]  I think this is better behavior.  I can't
test files with the other extensions in the problematic entry
("\\.\\(sx[dmicw]\\|od[fgpst]\\|oxt\\)\\'" . archive-mode), so I don't
know if the whole entry should be deleted or only "od[fgpst]\\|".


In GNU Emacs 24.3.50.1 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4)
 of 2013-04-09 on rosalinde
Bzr revision: 112253 rgm@gnu.org-20130409101736-f1vzgrwt88suqqis
Windowing system distributor `The X.Org Foundation', version 11.0.11203000
System Description:	openSUSE 12.2 (x86_64)

Configured using:
 `configure --without-toolkit-scroll-bars CFLAGS=-g3 -O0'

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Footnotes: 
[1]  Actually, it only switches to the archive listing if the global
value of major-mode is fundamental-mode.  I don't know if this is a bug,
so I'll ask about it on emacs-devel. 






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

end of thread, other threads:[~2013-04-18  7:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 19:55 bug#14188: 24.3.50; ODF files and auto-mode-alist Stephen Berman
2013-04-11 20:14 ` Eli Zaretskii
2013-04-11 20:51   ` Stephen Berman
2013-04-17 13:43 ` Tassilo Horn
2013-04-17 18:30   ` Stephen Berman
2013-04-18  6:34     ` Tassilo Horn
2013-04-18  7:56       ` Stephen Berman

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.