From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Request to patch the =org-html-fontify-code= function in =ox-html.el= Date: Sun, 20 Jul 2014 14:15:11 -0400 Message-ID: <87ha2bc2xc.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8ve1-0006e7-BR for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:15:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8vdv-0007Lw-GS for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:15:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:49899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8vdv-0007Ls-6x for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 14:15:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X8vds-0006jb-DS for emacs-orgmode@gnu.org; Sun, 20 Jul 2014 20:15:24 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2014 20:15:24 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2014 20:15:24 +0200 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 Kaushal writes: > Full details are in my reddit post here: > http://www.reddit.com/r/emacs/comments/2b5x5g/funny_characters_appended_at_new_line_to_source/ > > To fix this problem by adding the following code after the > line (funcall lang-mode) in the org-html-fontify-code defun > in ox-html.el. > > (when (require 'fill-column-indicator nil 'noerror) > (fci-mode -1)) > > Can this fix be integrated into ox-html.el?  > Not really: the above would cause an error if fci-mode is undefined. You'll have to add a bit more checking before calling it - check out the doc for fboundp: C-h f fboundp RET -- Nick