From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: When/where does setq work? Date: Wed, 2 Apr 2014 00:00:41 -0700 (PDT) Message-ID: <5b43106c-3389-4e57-aee1-ab55c035da85@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1396526094 492 80.91.229.3 (3 Apr 2014 11:54:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2014 11:54:54 +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 13:54:47 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 1WVeLc-0001eo-Rb for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2014 11:54:12 +0200 Original-Received: from localhost ([::1]:36669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVFEe-0001yV-Eg for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2014 03:05:20 -0400 X-Received: by 10.180.189.18 with SMTP id ge18mr10231828wic.1.1396422042621; Wed, 02 Apr 2014 00:00:42 -0700 (PDT) X-Received: by 10.50.122.10 with SMTP id lo10mr197722igb.11.1396422041958; Wed, 02 Apr 2014 00:00:41 -0700 (PDT) Original-Path: usenet.stanford.edu!z11no1668501lbi.1!news-out.google.com!vq6ni1257lbb.1!nntp.google.com!ur14no994266igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.21.201; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.21.201 User-Agent: G2/1.0 Injection-Date: Wed, 02 Apr 2014 07:00:41 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:204643 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:96928 Archived-At: I have the following function. It sets the org-export-html-style variable to inline CSS. ---------------------------- (defun load-my-css() "Returns string from css file (hardwired) suitable for inline css" (interactive) (setq org-export-html-style (with-temp-buffer (insert "\n\n") (buffer-string)))) (load-my-css) ------------------------------ The intent is that for various reasons I want inline CSS not a linked style sheet. Towards that it reads the my-org.css file into a temp-buffer and stores that into a suitable style variable. Now it works... kinda but not properly. That is it works once from my init. However 1. edit my-org.css 2. save 3. M-x load-my-css has no effect Restart emacs and it takes effect Any clues??