From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: emphasis borders, double quotes, and export Date: Sun, 06 Apr 2014 16:00:49 +0200 Message-ID: References: <87ha6iqoaq.fsf@gmail.com> <874n289avq.fsf@gmail.com> <877g746py8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWney-0001UT-RM for emacs-orgmode@gnu.org; Sun, 06 Apr 2014 10:03:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWnet-0000hY-7N for emacs-orgmode@gnu.org; Sun, 06 Apr 2014 10:02:56 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:33082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWnet-0000hG-16 for emacs-orgmode@gnu.org; Sun, 06 Apr 2014 10:02:51 -0400 In-Reply-To: <877g746py8.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 05 Apr 2014 12:17:03 +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: Nicolas Goaziou Cc: emacs-orgmode Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> Thank you for the suggestion. How can I do that? Add an "(org-reload)" >> in my async init file? Is there a more efficient way than loading org, >> setting the variable, and immediately reloading org again? > > You can set the variable before loading Org for the first time. I just tried it and I get the following error at start-up time: > Warning (initialization): An error occurred while loading `/Users/schmitta/.emacs.d/init.el': > > Symbol's value as variable is void: org-emphasis-regexp-components My init.el is quite short (as most of my configuration is in an org file). --8<---------------cut here---------------start------------->8--- ;; Turn off mouse interface early in startup to avoid momentary display (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) ;; remember this directory (setq emacsd-dir (file-name-directory (or load-file-name (buffer-file-name)))) ;; set this up before loading org (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,") ;; org-setup (add-to-list 'load-path (concat emacsd-dir "org/emacs/site-lisp/org")) (require 'org) ;; Then tangle and load the file (org-babel-load-file (expand-file-name "myconfig.org" emacsd-dir)) --8<---------------cut here---------------end--------------->8--- I assume the problem is that I want to change only one field of `org-emphasis-regexp-components' but it's not possible to do so because it's not defined before org is loaded. I guess one way to proceed is to split up `org-emphasis-regexp-components' into its four components, to be able to change only the one I need. Would such a patch be accepted? Thanks, Alan