From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: [bug] new exporter fails on read only files Date: Thu, 26 Apr 2012 22:06:21 +0930 Message-ID: <87k412k6uy.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNNwD-0002d2-KF for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 08:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNNw7-00013i-4o for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 08:36:45 -0400 Received: from va3ehsobe010.messaging.microsoft.com ([216.32.180.30]:8001 helo=va3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNNw7-00013E-0t for emacs-orgmode@gnu.org; Thu, 26 Apr 2012 08:36:39 -0400 Received: from mail195-va3 (localhost [127.0.0.1]) by mail195-va3-R.bigfish.com (Postfix) with ESMTP id 6A78E240653 for ; Thu, 26 Apr 2012 12:36:35 +0000 (UTC) Received: from VA3EHSMHS032.bigfish.com (unknown [10.7.14.247]) by mail195-va3.bigfish.com (Postfix) with ESMTP id E8B19220487 for ; Thu, 26 Apr 2012 12:36:30 +0000 (UTC) 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: emacs-orgmode@gnu.org Hello all, >From one of the recent threads (on producing latex files for ACM publications), I was finally motivated to try the new export engine. I have run into a small problem: org-export-dispatch fails if the file is read only. I often have read only files as I use RCS as my version control system for one-off standalone files (as opposed to git or mercurial for larger projects). Specifically, I have added (require 'org-export) (require 'org-e-latex) to my org customisation. Then, while visiting a read only file, I try M-x org-export-dispatch RET p and I get the error: ,---- | org-refresh-category-properties: Buffer is read-only: # `---- This doesn't happen if I use the old exporter (C-c C-e p). Also, the error does not appear if I try the new export engine on a writable file. Toggling debug-on-error doesn't actually put me in the debugger when the error occurs, by the way. I *think* am running an up to date org (from an hour or so ago) but the org-version information (auto-generated for my signature) seems confused... but maybe that's a problem for another day? Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 : using Org-mode version 7.8.06 (release_7.8.09.392.ge0222)