From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Export as ODT, as ODT file is opening document automatically Date: Wed, 27 Mar 2013 17:26:40 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKynr-0001Bx-PY for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 18:26:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKynq-0000Lw-IZ for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 18:26:43 -0400 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:39636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKynq-0000LZ-7z for emacs-orgmode@gnu.org; Wed, 27 Mar 2013 18:26:42 -0400 Received: by mail-la0-f47.google.com with SMTP id fj20so16316271lab.6 for ; Wed, 27 Mar 2013 15:26:41 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Moe Cc: emacs-orgmode On Tue, Mar 26, 2013 at 5:14 PM, Christian Moe wrote: > > I cannot replicate this. `C-c C-e o o' works as expected. I don't use > openwith, so that may be where the problem lies. Yup. It's not actually openwith itself, but I tracked it down to: (openwith-mode t) I only have this setup for using Sunrise Commander (Emacs file manager) so I can open files from it. Something must be triggering openwith on Org-mode export to ODT. Can one set a conditional use of a mode? I'd be happy to adjust my config so that openwith only turns on when I use Sunrise. Best regards, John > > Yours, > Christian > > John Hendy writes: > >> I'm on =release_8.0-pre-181-ge7cfb4= and with =C-e o o=, LibreOffice >> immediately opens the file. I'd expect this with =C-e o O=, but not >> with =C-e o o=. >> >> I noticed that I have an openwith process running =soffice >> /path/to/file.odt=... is the exporter somehow triggering openwith to >> open it even though I haven't said to do so upon export? Here's my >> settings in .emacs: >> >> (openwith-associations (quote (("\\.pdf\\'" "evince" (file)) >> ("\\.mp3\\'" "vlc" (file)) ("\\.\\(?:mpe?g\\|avi\\|wmv\\|mov\\)\\'" >> "vlc" ("-idx" file)) ("\\.\\(?:jp?g\\|png\\)\\'" "geeqie" (file)) >> ("\\.\\(?:odg\\|odt\\|docx\\|doc\\)\\'" "soffice" (file)) >> ("\\.\\(?:odp\\|ppt\\|pptx\\)\\'" "soffice" (file)) >> ("\\.\\(?:xls\\|xlsx\\|ods\\)\\'" "soffice" (file))))) >> >> >> John >