From: Rusi <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: When/where does setq work?
Date: Wed, 2 Apr 2014 21:04:44 -0700 (PDT) [thread overview]
Message-ID: <f6eb1c44-6881-4d47-940c-aa6824dbdef4@googlegroups.com> (raw)
In-Reply-To: <mailman.18784.1396479749.10748.help-gnu-emacs@gnu.org>
On Thursday, April 3, 2014 4:32:19 AM UTC+5:30, Florian v. Savigny wrote:
> Hi Rusi,
> > org-export-html-style is an org-mode variable defined in org-html.el.
> > Its 'effect' is the css styles that are used by org's html export
> > eg
> > code {
> > color: #00f;
> > }
> > makes the color of code in <code> </code> blocks blue
> > Now I edit my-org.css
> > code {
> > color: #7f7f7f
> > }
> > (ie the new color is now grey)
> But at this point you run your load-my-css, don't you?
> > And I export the (some) org file I am working on.
> > It still shows as blue.
> > This is what I mean by "no effect"
> This is the kind of scenario that we were hinting at: Chances are that
> there are simply some added layers of complexity between the variable
> and its effect (for whatever technological reason - as humans, we find
> this counterintuitive). Example: When loaded, org-html.el sets a
> variable to the value of org-export-html-style. (In that case,
> reloading org-html.el after running load-my-css should have the same
> effect as restarting emacs.) But this is just an example for
> illustration. It is better to simply try:
> C-h v org-export-html-style
> after running load-my-css as I have indicated above. My guess is it's
> perfectly set to the new value then. If not, try the edebug-defun
> method and report, please.
Yes its getting set.
So now it looks that org mode is 'early-binding' that variable:
ie its using the initial value of that variable and not using the
new value when/if its changed.
However thats strange since, even after org-reload it keeps its old value...
Guess I'll ask on the org list.
next prev parent reply other threads:[~2014-04-03 4:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 7:00 When/where does setq work? Rusi
2014-04-02 12:57 ` lee
2014-04-02 18:06 ` Florian v. Savigny
[not found] ` <mailman.18759.1396461983.10748.help-gnu-emacs@gnu.org>
2014-04-02 22:04 ` Rusi
2014-04-02 23:02 ` Florian v. Savigny
[not found] ` <mailman.18784.1396479749.10748.help-gnu-emacs@gnu.org>
2014-04-03 4:04 ` Rusi [this message]
2014-04-03 14:49 ` Florian v. Savigny
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f6eb1c44-6881-4d47-940c-aa6824dbdef4@googlegroups.com \
--to=rustompmody@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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.
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).