From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: When/where does setq work? Date: Wed, 2 Apr 2014 21:04:44 -0700 (PDT) Message-ID: References: <5b43106c-3389-4e57-aee1-ab55c035da85@googlegroups.com> <87k3b7j3dm.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1396520351 24112 80.91.229.3 (3 Apr 2014 10:19:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 10:19:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 12:19:04 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WVeIY-00075K-G2 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 11:51:02 +0200 Original-Received: from localhost ([::1]:41618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVYtx-0002Jg-LH for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 00:05:17 -0400 X-Received: by 10.66.183.239 with SMTP id ep15mr18930152pac.7.1396497885498; Wed, 02 Apr 2014 21:04:45 -0700 (PDT) X-Received: by 10.50.25.4 with SMTP id y4mr162999igf.10.1396497885382; Wed, 02 Apr 2014 21:04:45 -0700 (PDT) Original-Path: usenet.stanford.edu!l13no2115402iga.0!news-out.google.com!gi6ni106igc.0!nntp.google.com!l13no2115397iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.36.219; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.36.219 User-Agent: G2/1.0 Injection-Date: Thu, 03 Apr 2014 04:04:45 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:204654 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96911 Archived-At: 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 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.