emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] ox-odt messes with auto-mode-alist  [9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)]
@ 2024-02-16 14:57 Visuwesh
  2024-02-16 17:10 ` Max Nikulin
  2024-02-18 15:50 ` Ihor Radchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Visuwesh @ 2024-02-16 14:57 UTC (permalink / raw)
  To: emacs-orgmode


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

ox-odt.el contains the following lines at the end of file:

    ;;; Library Initializations

    (dolist (desc org-odt-file-extensions)
      ;; Let Emacs open all OpenDocument files in archive mode.
      (add-to-list 'auto-mode-alist
               (cons (concat  "\\." (car desc) "\\'") 'archive-mode)))

Is there a reason why this is done?  This breaks the expected result of
opening .odt and friends using doc-view-mode, and causes unnecessary
confusion (it is not particularly easy to find too since grepping
through Emacs for "\\.odt" fails).

Emacs  : GNU Emacs 30.0.50 (build 42, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw scroll bars)
 of 2024-01-31
Package: Org mode version 9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)


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

* Re: [BUG] ox-odt messes with auto-mode-alist [9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)]
  2024-02-16 14:57 [BUG] ox-odt messes with auto-mode-alist [9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)] Visuwesh
@ 2024-02-16 17:10 ` Max Nikulin
  2024-02-18 15:50 ` Ihor Radchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Max Nikulin @ 2024-02-16 17:10 UTC (permalink / raw)
  To: emacs-orgmode

On 16/02/2024 21:57, Visuwesh wrote:
> 
>      (dolist (desc org-odt-file-extensions)
>        ;; Let Emacs open all OpenDocument files in archive mode.
>        (add-to-list 'auto-mode-alist
>                 (cons (concat  "\\." (car desc) "\\'") 'archive-mode)))
> 
> Package: Org mode version 9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)

git log -1 76468c --
fatal: bad revision '76468c'

See

Ihor Radchenko. Re: [BUG] ox-odt.el overrides auto-mode-alist defaults 
[9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]
Sat, 09 Dec 2023 10:49:04 +0000.
https://list.orgmode.org/87plzfslb3.fsf@localhost



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

* Re: [BUG] ox-odt messes with auto-mode-alist  [9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)]
  2024-02-16 14:57 [BUG] ox-odt messes with auto-mode-alist [9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)] Visuwesh
  2024-02-16 17:10 ` Max Nikulin
@ 2024-02-18 15:50 ` Ihor Radchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2024-02-18 15:50 UTC (permalink / raw)
  To: Visuwesh; +Cc: emacs-orgmode

Visuwesh <visuweshm@gmail.com> writes:

> ox-odt.el contains the following lines at the end of file:
>
>     ;;; Library Initializations
>
>     (dolist (desc org-odt-file-extensions)
>       ;; Let Emacs open all OpenDocument files in archive mode.
>       (add-to-list 'auto-mode-alist
>                (cons (concat  "\\." (car desc) "\\'") 'archive-mode)))

These lines are no longer there on the latest main.
Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2024-02-18 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16 14:57 [BUG] ox-odt messes with auto-mode-alist [9.7-pre (release_9.6.11-1090-g76468c.dirty @ /home/viz/lib/emacs/straight/build/org/)] Visuwesh
2024-02-16 17:10 ` Max Nikulin
2024-02-18 15:50 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).