emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: emphasis borders, double quotes, and export
Date: Sun, 06 Apr 2014 16:00:49 +0200	[thread overview]
Message-ID: <m2mwfytved.fsf@polytechnique.org> (raw)
In-Reply-To: <877g746py8.fsf@gmail.com> (Nicolas Goaziou's message of "Sat, 05 Apr 2014 12:17:03 +0200")

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
> Alan Schmitt <alan.schmitt@polytechnique.org> 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

--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?



  reply	other threads:[~2014-04-06 14:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-28 13:58 emphasis borders, double quotes, and export Alan Schmitt
2014-03-28 15:10 ` Alan Schmitt
2014-03-28 16:29   ` Nicolas Goaziou
2014-03-28 17:22     ` Alan Schmitt
2014-04-04 13:08     ` Alan Schmitt
2014-04-04 19:02       ` Nicolas Goaziou
2014-04-04 21:52         ` Nick Dokos
2014-04-04 22:35           ` Nicolas Goaziou
2014-04-05  3:04             ` Nick Dokos
2014-04-05  9:41         ` Alan Schmitt
2014-04-05 10:17           ` Nicolas Goaziou
2014-04-06 14:00             ` Alan Schmitt [this message]
2014-04-06 14:13               ` Nicolas Goaziou
2014-04-06 19:04                 ` Alan Schmitt
2014-04-06 19:37                   ` Nicolas Goaziou
2014-04-06 21:34                     ` Nick Dokos
2014-04-07 12:57                     ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2mwfytved.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).