From mboxrd@z Thu Jan 1 00:00:00 1970 From: hymie@lactose.homelinux.net Subject: Re: export code with backslashes Date: Wed, 18 Mar 2015 09:09:00 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYDjT-0001JQ-Ur for emacs-orgmode@gnu.org; Wed, 18 Mar 2015 09:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYDjP-0007RG-9V for emacs-orgmode@gnu.org; Wed, 18 Mar 2015 09:09:59 -0400 Received: from stats.bidvps.arvixevps.com ([162.254.165.91]:24247 helo=relay.mailchannels.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYDjO-00073t-Ng for emacs-orgmode@gnu.org; Wed, 18 Mar 2015 09:09:55 -0400 In-reply-to: Content-ID: <11230.1426684140.1@herman.local.net> 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: "Charles C. Berry" Cc: emacs-orgmode@gnu.org "Charles C. Berry" writes: > (defun org-export-ascii-filter-code (text back-end info) > "Replace `\\n' with `\\' in ascii code." > (if (eq back-end 'ascii) > (replace-regexp-in-string > "\n" "\\\n" > (org-babel-chomp > (org-export-string-as text 'ascii t)) > nil t) > text)) > (add-to-list 'org-export-filter-code-functions > 'org-export-ascii-filter-code) Just for the record..... I had an open running emacs. I changed my .emacs file, applied the change with M-x load-file .emacs , and it worked perfectly. But today, I opened emacs fresh, and was greeted with an error Symbol's value as variable is void: org-export-filter-code-functions I got the same error when I tried to M-x load-file .emacs But After I did an ascii export (in which the backslashes do not appear), I could then M-x load-file .emacs, no error, and the backslashes worked. I added (require 'ox) to my .emacs file, and that resolved the problem. This error only happens on my Windows machine. On my Unix machine, it appears to work correctly the first time, and I do not see any differences between the .emacs files on the two machines. --hymie! http://lactose.homelinux.net/~hymie hymie@lactose.homelinux.net