Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Alan Schmitt
On 2016-03-09 20:18, Rainer Hansen  writes:

> Sometimes I should read more carefully what I write. I want to use a
> static web site generator! So Wordpress is no option for me.

I maintain several very basic web sites in org. *Basic* is the keyword
here. Here is an example: http://ajacs.inria.fr/

Note that I suck at design and CSS, but I think this is orthogonal to
the matter at hand ;)

Each page is its own org file, and there is an additional file for the
left-hand bar.

Here is what index.org starts with:

#+INCLUDE: "common.org"

* body
  :PROPERTIES:
  :CUSTOM_ID: mainbody
  :HTML_CONTAINER_CLASS: container-mainbody
  :END:

** Welcome to the AJACS web site
Content goes here


The common.org is like this:

#+TITLE: AJACS
#+OPTIONS: toc:nil num:nil
#+HTML_HEAD: 

* sidebar
  :PROPERTIES:
  :CUSTOM_ID: sidebar
  :HTML_CONTAINER_CLASS: container-sidebar
  :END:

- [[http://ajacs.inria.fr/][Home]]
- [[./members.org][Members]]
- [[./meetings.org][Meetings]]

#+begin_center
#+ATTR_HTML: :width 100
[[./files/ANR.png]]\\
ANR-14-CE28-0008  
#+end_center


The layout is done using CSS. Here is an excerpt:

#+begin_src css
.container-mainbody {
margin-left:  200px;
padding: 10px;
}

.container-sidebar {
float: left;
width: 200px;
padding-top: 12px;
}

#postamble {
clear: both;
}

#mainbody, #sidebar {
display: none;
}

#text-sidebar li a {
color: rgb(54, 117, 148);
text-decoration: none;
}

#address {
display: none;
}

#text-address {
color: rgb(54, 117, 148);
text-align: center;
}

#mainheading {
text-align: center;
}

.container-sidebar ul {
list-style: none;
}
#+end_src


Finally this is all exported using a very simple Makefile

#+begin_src make
EMACS=emacs
BATCH_EMACS=$(EMACS) --batch -Q -l init.el

PUB_FILES=index.html meetings.html internships/proxies.html style.css

%.html: %.org common.org
$(BATCH_EMACS) $*.org -f org-html-export-to-html

all: $(PUB_FILES)

publish: $(PUB_FILES)
rsync -azR --no-p --rsh=ssh -O $^ gf:/home/groups/ajacs/htdocs/

.PHONY: all publish
#+end-src


Oh, I need to show the init.el as well for the export:

#+begin_src emacs-lisp
(add-to-list 'load-path (file-name-directory load-file-name))

(require 'local_settings)

(require 'org)
(require 'ox-html)

(setq org-html-postamble nil)
#+end_src


The local-settings.el file allows us to collaborate using different kind
of installations for org.

#+begin_src emacs-lisp
(setq emacsd-dir "/Users/schmitta/.emacs.d/")

;; (add-to-list 'load-path (concat emacsd-dir "org/emacs/site-lisp/org"))

(setq package-user-dir (concat emacsd-dir "elpa"))
(package-initialize)

(provide 'local_settings)
#+end_src

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-02, Mauna Loa Obs.): 404.02


signature.asc
Description: PGP signature


Re: [O] Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)]

2016-03-09 Thread Bill Burdick
(Hi Shlomi!)

When I export this to html, I get what looks to be the same error.  Here's
some info that may help track this down.

My org-version line:
Org-mode version 8.3.4 (8.3.4-9-gfda14f-elpaplus @
c:/Users/bill/.emacs.d/elpa/org-plus-contrib-20160307/)

The error I get:
org-element--current-element: Wrong type argument: integer-or-marker-p, nil
[2 times]

The stack trace:

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  org-element-plain-list-parser(122 (86) ((28 2 "- " nil nil nil 51) (51 2
"-" nil nil nil 55) (55 2 "-" nil nil nil 59) (59 2 "-" nil nil nil 63) (63
2 "- " nil nil nil 99) (99 2 "- " nil nil nil 135) (135 2 "- " nil nil nil
158)))
  org-element--current-element(122 element nil ((28 2 "- " nil nil nil 51)
(51 2 "-" nil nil nil 55) (55 2 "-" nil nil nil 59) (59 2 "-" nil nil nil
63) (63 2 "- " nil nil nil 99) (99 2 "- " nil nil nil 135) (135 2 "- " nil
nil nil 158)))
  org-element--parse-to(101)
  org-element-at-point()
  org-element-context()
  org-babel-exp-process-buffer(#<2>>)
  (unwind-protect (org-babel-exp-process-buffer reference) (kill-buffer
reference))
  (let ((reference (org-export-copy-buffer))) (unwind-protect
(org-babel-exp-process-buffer reference) (kill-buffer reference)))
  org-export-execute-babel-code()
  (progn (run-hook-with-args (quote org-export-before-processing-hook)
(progn nil (or (and (memq (aref backend 0)
cl-struct-org-export-backend-tags)) (signal (quote wrong-type-argument)
(list (quote org-export-backend) backend))) (aref backend 1)))
(org-export-expand-include-keyword) (org-export--delete-comments)
(org-macro-initialize-templates) (org-macro-replace-all org-macro-templates
nil parsed-keywords) (org-set-regexps-and-options)
(org-update-radio-target-regexp) (org-export-execute-babel-code)
(org-set-regexps-and-options) (org-update-radio-target-regexp) (goto-char
(point-min)) (save-excursion (run-hook-with-args (quote
org-export-before-parsing-hook) (progn nil (or (and (memq (aref backend 0)
cl-struct-org-export-backend-tags)) (signal (quote wrong-type-argument)
(list (quote org-export-backend) backend))) (aref backend 1
(org-set-regexps-and-options) (org-update-radio-target-regexp) (setq info
(org-export-install-filters (org-combine-plists info
(org-export-get-environment backend subtreep ext-plist (let
((backend-name (progn nil (or (and (memq ...
cl-struct-org-export-backend-tags)) (signal (quote wrong-type-argument)
(list ... backend))) (aref backend 1 (let ((--dolist-tail-- (plist-get
info :filter-options)) filter) (while --dolist-tail-- (setq filter (car
--dolist-tail--)) (let ((result (funcall filter info backend-name))) (if
result (progn (setq info result (setq --dolist-tail-- (cdr
--dolist-tail--) (org-macro-replace-all (list (cons "author"
(org-element-interpret-data (plist-get info :author))) (cons "date" (let*
((date (plist-get info :date)) (value (or ... ""))) (if (and (consp date)
(not ...) (eq ... ...)) (format "(eval (if (org-string-nw-p \"$1\") %s
%S))" (format "(org-timestamp-format '%S \"$1\")" ...) value) value)))
(cons "email" (org-element-interpret-data (plist-get info :email))) (cons
"title" (org-element-interpret-data (plist-get info :title))) (cons
"results" "$1")) (quote finalize) parsed-keywords) (setq tree
(org-element-parse-buffer nil visible-only))
(org-export--merge-external-footnote-definitions tree)
(org-export--prune-tree tree info) (org-export--remove-uninterpreted-data
tree info) (setq tree (org-export-filter-apply-functions (plist-get info
:filter-parse-tree) tree info)) (setq info (org-combine-plists info
(org-export-collect-tree-properties tree info))) (let* ((body
(org-element-normalize-string (or (org-export-data tree info) "")))
(inner-template (cdr (assq (quote inner-template) (plist-get info
:translate-alist (full-body (org-export-filter-apply-functions
(plist-get info :filter-body) (if (not (functionp inner-template)) body
(funcall inner-template body info)) info)) (template (cdr (assq (quote
template) (plist-get info :translate-alist) (org-no-properties
(org-export-filter-apply-functions (plist-get info :filter-final-output)
(if (or (not (functionp template)) body-only) full-body (funcall template
full-body info)) info
  (save-current-buffer (set-buffer --buf-copy) (goto-char (point-min))
(progn (run-hook-with-args (quote org-export-before-processing-hook) (progn
nil (or (and (memq (aref backend 0) cl-struct-org-export-backend-tags))
(signal (quote wrong-type-argument) (list (quote org-export-backend)
backend))) (aref backend 1))) (org-export-expand-include-keyword)
(org-export--delete-comments) (org-macro-initialize-templates)
(org-macro-replace-all org-macro-templates nil parsed-keywords)
(org-set-regexps-and-options) (org-update-radio-target-regexp)
(org-export-execute-babel-code) (org-set-regexps-and-options)
(org-update-radio-target-regexp) (goto-char (point-min)) (save-excursion
(run-hook-with-args (quote org-export-before-parsing-hook) (progn 

Re: [O] Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)]

2016-03-09 Thread Shlomi Vaknin
>
> Its been in master since Jan 2015.

Yeah, I guess I didnt update my packages in quite a while :P


>
> It works for me as does the same with `emacs-lisp' as the language
> under latex or html export to buffer or file using: Org-mode version
> 8.3.4 (release_8.3.4-635-g268486 ...) producing the expected document.
>
> Not sure what gives. Perhaps a mixed installation of org-mode?
>

So I checked this (to the best of my knowledge), I searched and removed
everything that had to do with org-mode, got master, compiled and installed
it. (org-version) now gives "Org-mode version 8.3.4
(release_8.3.4-635-g268486 @ ~/org-mode/org-mode/lisp/)"

and although the minimal example I posted above *does* work now, my real
file does not. I managed to make another non-working example (should I make
a gif showing what I see?):

---
 - src_elisp{3} {{{results(=3=)}}}

* B
  - src_elisp{3} {{{results(=3=)}}}
  -
  -
  -
  - src_elisp{3} {{{results(=3=)}}}
  - src_elisp{2} {{{results(=2=)}}}
  - {{{results(=2=)}}}
---

again, removing any line from this makes export work again. Otherwise I get
=org-element--current-element: Wrong type argument: integer-or-marker-p,
nil=

This might be something silly, but I really dont know what else to do and I
am quite stuck, I need to present my org file to emacs-hostile people :|

I have a new installation of emacs (used =find= to remove all other emacs
paths), new org-mode compiled from source (looked through =find= as well as
checked all 'load-path locations and removed anything I found) and no
custom init files What else could I check on my system?

I am using a mac, if that makes any differences..

Thanks for your help!


Re: [O] org-agenda error

2016-03-09 Thread Peter Salazar
Any thoughts on that? I'm not sure if it's related, but I also get errors
when I try to call helm-org-in-buffer-headings. Somehow the backtrace gets
immediately erased, so here's a screenshot:
http://i.imgur.com/FoTiwoq.png

On Mon, Mar 7, 2016 at 10:40 AM, Peter Salazar 
wrote:

> Well that's interesting. When I do C-u M-x org-reload and then call
> org-agenda, it displays correctly with no error.
>
> How do I debug? I already went into my config files and commented out all
> the code containing the word org-agenda, but the error still happens.
>
>
> On Mon, Mar 7, 2016 at 6:09 AM, Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> Peter Salazar  writes:
>>
>> > I'm suddenly getting "byte-code: Wrong type argument:
>> number-or-marker-p,
>> > nil" when I try to call org-agenda. This happens even when
>> org-agenda-files
>> > is set to nil. Here's the backtrace. Any thoughts on how I can track
>> down
>> > the source of the problem?
>>
>> Could you provide the backtrace running un-compiled Org? It is just
>> a matter of calling C-u M-x org-reload.
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>


Re: [O] org-export-babel-evaluate and header arguments

2016-03-09 Thread Charles C. Berry

On Wed, 9 Mar 2016, Anthony Cowley wrote:



If I have org-export-babel-evaluate set to nil, source blocks are not 
evaluated on export. However, if a source block has a :var header 
argument that calls another source block, I am prompted if the callee 
should be evaluated.


Given that the caller is not to be evaluated, I'm not sure I see a 
reason for the :var to be evaluated.


What gives here is that `org-babel-get-src-block-info' needs to develop 
all the header arguments regardless of evaluation of the code block, so 
:var gets handled.



Is there a way I can disable this argument evaluation?


Something like:

:var a=(and org-export-babel-evaluate (org-sbe "abc"))


See C-h f org-sbe RET

HTH,

Chuck



Re: [O] Bug: org-timer-current-timer missing in latest version? [8.2.5c (8.2.5c-dist @ /Users/david.rose/.emacs.d/addons/org/lisp/)]

2016-03-09 Thread Kyle Meyer
Hello,

David Rose  writes:

> (add-hook 'org-clock-in-hook '(lambda()
>   (if (not org-timer-current-timer)
>   (org-timer-set-timer '(16)
>
> This works fine on version 8.2.5c and earlier, but on 8.3.4 the variable
> does not seem to be present. When trying to clock in to a todo item I
> receive the following error:
>
> Symbol's value as variable is void: org-timer-current-timer

org-timer-current-timer was replaced with org-timer-countdown-timer in
173b0cb (org-timer.el: Merge API for the two timers, 2014-12-07).

--
Kyle



[O] org-export-babel-evaluate and header arguments

2016-03-09 Thread Anthony Cowley

If I have org-export-babel-evaluate set to nil, source blocks are not evaluated 
on export. However, if a source block has a :var header argument that calls 
another source block, I am prompted if the callee should be evaluated.

Given that the caller is not to be evaluated, I'm not sure I see a reason for 
the :var to be evaluated. Is there a way I can disable this argument evaluation?

My goal is quick exports, but in this case it actually seems like a bug since 
all of my code blocks are :session. If I give permission to evaluate the :var 
argument, it will result in an error since the session hasn't been updated with 
the evaluations of other source blocks.

Thanks,
Anthony



Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Brett Viren
Rainer Hansen  writes:

> Sometimes I should read more carefully what I write. I want to use a
> static web site generator! So Wordpress is no option for me.

Ah, okay! That makes more sense.  One day I will also learn to read what
I write.  :)

> Of course I could use Bootstrap with an Org-based static site
> generator. However, I my thinking is that I need to do a lot of
> customizations to use it as a blogging engine. Perhaps I am wrong. I
> would be happy if someone on the mailing-list has done it and can show
> that it is quite straight forward to do.

Yes, this desire to have the HTML match the CSS (without touching the
CSS) is one thing that drove me to rolling my own generator.  I didn't
want to muck with Org HTML export to make that match happen.

In the end, I found that most of what I wanted from Bootstrap relates to
what I think of as "outer" HTML - the banner, nav bar, menus, table of
contents, etc.  It ends up mattering less to me for the "inner" HTML of
the actual blog post or page payload content.  

If ever I do need to, I'm prepared develop some code to do some
rewriting of Org HTML during the generation.

> Yes, easy is relative. What I mean is that I can set it up in less than
> 4 hours through configuration. I want to be able to reuse the visual
> theme implemented in CSS for the rest of the web site in the time limit
> mentioned before.

When my system has some more polish then maybe your 4 hour limit can be
satisfied.  Right now, being my only customer, it may not pass your
definition of "easy".  But, you are welcome to take a look and try.

> Could you please provide some links? I am especially interested in
> tutorials on setting them up.

I don't guarantee that it will live up to its name but here is my
generator:

  https://github.com/brettviren/joyful-web

It's mostly Python based and uses Jinja2 templates.  Emacs is used to
generate a JSON dump of the org-element tree, to produce the HTML body
text and to make a PDF.

I don't have many examples in the source but I do inside my actual Org
content area.  Some things to look at include the main config file:

  https://github.com/brettviren/org-pub/blob/master/joy.cfg

an example template:

  https://github.com/brettviren/org-pub/tree/master/templates/topic.html

and, maybe look at how I call "joy" to rebuild the site.  I use "waf" to
do that and its control file is:

  https://github.com/brettviren/org-pub/blob/master/wscript

I only have this working on my laptop now so I can't show you the
results at the moment.  

-Brett.


signature.asc
Description: PGP signature


[O] Bug: org-timer-current-timer missing in latest version? [8.2.5c (8.2.5c-dist @ /Users/david.rose/.emacs.d/addons/org/lisp/)]

2016-03-09 Thread David Rose
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


In my current configuration I make use of org-timer for pomodoro
method.  This includes the following if statement in my .emacs file:

(add-hook 'org-clock-in-hook '(lambda()
(if (not org-timer-current-timer)
(org-timer-set-timer '(16)

This works fine on version 8.2.5c and earlier, but on 8.3.4 the variable
does not seem to be present. When trying to clock in to a todo item I
receive the following error:

Symbol's value as variable is void: org-timer-current-timer

When using M-x set-variable I am not able to set the variable as it
seemingly is not present.

Does org-timer not load from org-modules anymore or is there a better
way to do this?  Below is the entire code snippet for what I am doing.


;;
;;;  Pomodoro Settings
(add-to-list 'org-modules 'org-timer t)
(setq org-timer-default-timer 25)
(add-hook 'org-clock-in-hook '(lambda()
(if (not org-timer-current-timer)
(org-timer-set-timer '(16)
(add-hook 'org-clock-out-hook '(lambda()
 (setq org-mode-line-string nil)))
(add-hook 'org-timer-done-hook '(lambda()
  (start-process "org-mode" nil 
"/usr/local/bin/growlnotify -a Emacs.app -m 'Org-Mode (Pomodoro): Times up!")))



Thanks in advance!


//David

Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-04-10 on builder10-9.porkrind.org
Package: Org-mode version 8.2.5c (8.2.5c-dist @ 
/Users/david.rose/.emacs.d/addons/org/lisp/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . 
"\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . 
"\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" 
. "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("none" "[NO-DEFAULT-PACKAGES][NO-PACKAGES]" ("" . "") 
("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 )
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-clock-into-drawer "LOGBOOK"
 org-log-done 'note
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-finalize-agenda-hook '(my-org-agenda-to-appt)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-pdf-process '("pdflatex --shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex --shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex --shell-escape -interaction nonstopmode 
-output-directory %o %f")
 org-agenda-skip-scheduled-if-done t
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-todo-keyword-faces '(("Blocked" . "dark red") ("Done" . "dark green") 
("Planning" . "purple") ("Waiting" . "blue")
  ("Executing" . "yellow") ("Backlog" . org-warning))
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name 

[O] Bug: Exception when trying to export inlined-code [8.3.4 (8.3.4-9-gfda14f-elpa @ ~/.emacs.d/elpa/org-20160307/)]

2016-03-09 Thread Shlomi Vaknin
Hey, I am a dedicated org-mode user, and I absolutely love it! This is my
first post to this group.

Recently, one of my org files stopped being exportable (does not matter
what I try to export to). I traced the problem to be related to the new
inlined code result block {{{result()}}}. I tried a fresh installation of
emacs, with nothing extra installed and no custom configuration files with
the latest org mode, but the problem persists.

I am getting an exception =Wrong type argument: integer-or-marker-p,nil=
when trying to export my org file. I managed to systematically remove lines
from the file until I was left with the following skeleton that still
produces the problem in my setup:

--
* Test a
  - src_elisp{3}

* Test Q
  - src_elisp{3}
  - test
  - something
- src_elisp{3}
- src_elisp{3} {{{results(=3=)}}}
  src_elisp{3} {{{results(=3=)}}}
--

Interesting enough, if I remove any of these lines, the exporter works
again..
I am not sure why I am getting this problem, and would appreciate if anyone
else tries this out to know if its just a problem in my setup or is it a
legitimate bug.

Here is the backtrace:
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  org-element-plain-list-parser(98 (60) ((25 2 "- " nil nil nil 30) (30 2
"- " nil nil nil 39) (39 2 "- " nil nil nil 110) (53 4 "- " nil nil nil 72)
(72 4 "- " nil nil nil 110)))
  org-element--current-element(98 element nil ((25 2 "- " nil nil nil 30)
(30 2 "- " nil nil nil 39) (39 2 "- " nil nil nil 110) (53 4 "- " nil nil
nil 72) (72 4 "- " nil nil nil 110)))
  org-element--parse-to(77)
  org-element-at-point()
  org-element-context()
  org-babel-exp-process-buffer(#<2>>)
  org-export-execute-babel-code()
  org-export-as(html nil nil nil (:output-file "./org-bug.html"))
  org-export-to-file(html "./org-bug.html" nil nil nil nil nil)
  org-html-export-to-html(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)


Emacs  : GNU Emacs 25.1.50.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21
Version 10.9.5 (Build 13F1603)) of 2016-03-09
Package: Org-mode version 8.3.4 (8.3.4-9-gfda14f-elpa @
~/.emacs.d/elpa/org-20160307/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook
org-babel-show-result-all append local] 5]
(lambda nil (org-add-hook (quote change-major-mode-hook) (quote
org-show-block-all) (quote append) (quote local)))
(lambda nil
 (org-add-hook (quote change-major-mode-hook) (quote
org-babel-show-result-all) (quote append) (quote local)))
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Rainer Hansen
Rainer Hansen  writes:

> Sometimes I should read more carefully what I write. I want to use a
> static web site generator! So Wordpress is no option for me.
>
> Sorry for the confusion.
>
> Brett Viren  writes:
>
>> Rainer Hansen  writes:
>>
>>> I wonder what is the best way to create a blog for a company website
>>> with Orgmode. I do not want to use a static web site generator. The
>>> design of the web site is relying on Bootstrap and customs CSS.
>>
>> Just curious, why does wanting to use Bootstrap rule out an Org-based
>> static site generator for you?
> Of course I could use Bootstrap with an Org-based static site
> generator. However, I my thinking is that I need to do a lot of
> customizations to use it as a blogging engine. Perhaps I am wrong. I
> would be happy if someone on the mailing-list has done it and can show
> that it is quite straight forward to do. 
>>
>> I'm slowly developing just such a beast.  It Works For Me(TM) but is
>> still a bit raw for others unless they can deal with some Python
>> hacking and spotty documentation.
>>
>>> It should be easy to setup and to maintain for me?
>>
>> I think maybe you can better define what you mean by "easy"?  
>>
> Yes, easy is relative. What I mean is that I can set it up in less than
> 4 hours through configuration. I want to be able to reuse the visual
> theme implemented in CSS for the rest of the web site in the time limit
> mentioned before.
One more comment from my side. I am especially interested in writing my
blog posts in Orgmode and exporting them to either Jekyll or
Nikola. Does Jekyll or Nikola with the respective need less blog text
special syntax adaptations to post?

>
>> In the end, developing my own generator was easier than trying to adapt
>> existing ones.  There are a lot of great ones out there, especially if
>> you expand to allow Markdown ones (either native authoring or using
>> Org's Markdown export), but none do exactly what I wanted.
>>
>> -Brett.
> Could you please provide some links? I am especially interested in
> tutorials on setting them up.




Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Rainer Hansen
Arkadiusz Drabczyk  writes:

> On 2016-03-08, Rainer Hansen  wrote:
>> Hi,
>>
>> I wonder what is the best way to create a blog for a company website
>> with Orgmode. I do not want to use a static web site generator. The
>> design of the web site is relying on Bootstrap and customs CSS.
>> It should be easy to setup and to maintain for me?
>>
>> I am not only looking for proposals of tool chains but also why I should
>> use the proposed one.
>>
>> I do not want to have a lot of work in translating the existing CSS into
>> some new kind of format just for the web site generator.
>
> Are you going to use WordPress in conjunction with Bootstrap (I don't
> know if it's even possible)?  If yes, then
> https://github.com/punchagan/org2blog is a great choice.
Sorry for misleading you. I want to use a static web site
generator. Because of that WordPress is no option.




Re: [O] C-c ! org-time-stamp-inactive ?

2016-03-09 Thread Kyle Meyer
K  writes:

> I've run into the same problem, with both Org 8.3.4 and MELPA version
> 20160307, the usual C-c ! doesn't work anymore for inserting inactive
> timestamp.  If there's been no change to the default binding, any
> suggestions on how to debug this please?  Thanks!

I'd suggest verifying that the C-c ! binding works as expected with
emacs -Q when loading Org from either the maint or master branch.
Assuming all is fine when using emacs -Q, try to figure out what in your
configuration is causing the issue.  If you have no guesses at likely
culprits, you could try commenting out large chunks of your config
files, narrowing down from there.

--
Kyle



Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Rainer Hansen
Sometimes I should read more carefully what I write. I want to use a
static web site generator! So Wordpress is no option for me.

Sorry for the confusion.

Brett Viren  writes:

> Rainer Hansen  writes:
>
>> I wonder what is the best way to create a blog for a company website
>> with Orgmode. I do not want to use a static web site generator. The
>> design of the web site is relying on Bootstrap and customs CSS.
>
> Just curious, why does wanting to use Bootstrap rule out an Org-based
> static site generator for you?
Of course I could use Bootstrap with an Org-based static site
generator. However, I my thinking is that I need to do a lot of
customizations to use it as a blogging engine. Perhaps I am wrong. I
would be happy if someone on the mailing-list has done it and can show
that it is quite straight forward to do. 
>
> I'm slowly developing just such a beast.  It Works For Me(TM) but is
> still a bit raw for others unless they can deal with some Python
> hacking and spotty documentation.
>
>> It should be easy to setup and to maintain for me?
>
> I think maybe you can better define what you mean by "easy"?  
>
Yes, easy is relative. What I mean is that I can set it up in less than
4 hours through configuration. I want to be able to reuse the visual
theme implemented in CSS for the rest of the web site in the time limit
mentioned before.

> In the end, developing my own generator was easier than trying to adapt
> existing ones.  There are a lot of great ones out there, especially if
> you expand to allow Markdown ones (either native authoring or using
> Org's Markdown export), but none do exactly what I wanted.
>
> -Brett.
Could you please provide some links? I am especially interested in
tutorials on setting them up.







Re: [O] C-c ! org-time-stamp-inactive ?

2016-03-09 Thread K
Kyle Meyer  kyleam.com> writes:

> 
> Hello,
> 
> Luke Crook  balooga.com> writes:
> 
> > For me, C-c ! has suddenly become unbound and no longer inserts 
> > an inactive timestamp.  Has this changed in the base org-mode, or 
> > most likely is this an issue with my setup?
> 
> The default binding hasn't been changed in Org.
> 

I've run into the same problem, with both Org 8.3.4 and MELPA version
20160307, the usual C-c ! doesn't work anymore for inserting inactive
timestamp.  If there's been no change to the default binding, any
suggestions on how to debug this please?  Thanks!

K




Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Brett Viren
Rainer Hansen  writes:

> I wonder what is the best way to create a blog for a company website
> with Orgmode. I do not want to use a static web site generator. The
> design of the web site is relying on Bootstrap and customs CSS.

Just curious, why does wanting to use Bootstrap rule out an Org-based
static site generator for you?

I'm slowly developing just such a beast.  It Works For Me(TM) but is
still a bit raw for others unless they can deal with some Python
hacking and spotty documentation.

> It should be easy to setup and to maintain for me?

I think maybe you can better define what you mean by "easy"?  

In the end, developing my own generator was easier than trying to adapt
existing ones.  There are a lot of great ones out there, especially if
you expand to allow Markdown ones (either native authoring or using
Org's Markdown export), but none do exactly what I wanted.

-Brett.


signature.asc
Description: PGP signature


[O] [PATCH] Fix the single quote printed in the message printed by org-table-edit-formulas

2016-03-09 Thread Kaushal Modi
Hi all,

Can someone please review and commit this patch.

It basically prints the "C-c '" binding correctly in the echo area, using
straight quote instead of curly quote (matters in emacs 25.x). The details
are in the commit log below.


>From f4411b59d8dc4e5b3df79ccbcd87f6bfe5160776 Mon Sep 17 00:00:00 2001
From: Kaushal Modi 
Date: Wed, 9 Mar 2016 01:18:58 -0500
Subject: [PATCH] Fix the single quote printed in the message
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix the quote style when in the "C-c '" key-binding that is printed in the
echo via the substitute-command-keys function. In emacs 25.x, a straight
quote is rendered as a right-curly quote by default.

So below will render that single quote as curly.

(message "C-c '")

The fix is to print that quote verbatim using the "%s" modifier:

(message "%s" "C-c '")

Below is how this commit changes the message echoed in the
org-table-edit-formulas function.

Earlier:
  Edit formulas, finish with ‘C-c C-c’ or ‘C-c ’’.  See menu for more
commands.

After fix:
  Edit formulas, finish with ‘C-c C-c’ or ‘C-c '’.  See menu for more
commands.

Note the difference in the single quote style in "C-c '".
---
 lisp/org-table.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 488c912..0a25772 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3591,7 +3591,7 @@ Parameters get priority."
   (when (eq org-table-use-standard-references t)
  (org-table-fedit-toggle-ref-type))
   (org-goto-line startline)
-  (message
+  (message "%s"
 (substitute-command-keys "\\\
 Edit formulas, finish with `\\[org-ctrl-c-ctrl-c]' or
`\\[org-edit-special]'.  \
 See menu for more commands.")



--
Kaushal Modi


[O] org export to latex tables, with hlines and |

2016-03-09 Thread Uwe Brauer

Hi

When I use
orgtab radio tables in latex files with orgtbl minor mode enabled
the following template



 '(orgtbl-radio-table-templates
   (quote
((latex-mode "% BEGIN RECEIVE ORGTBL %n
% END RECEIVE ORGTBL %n
\\begin{comment}
#+ORGTBL: SEND %n orgtbl-to-latex  :lend \" hline\" :environment 
tabular
|/|<>|
| |  |
\\end{comment}
")


Does precisely what I want. Now I want the same behavior if I edit a
table in a org buffer and export it to latex.

Which variable needs to be set and how?

thanks

Uwe Brauer 




Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Arkadiusz Drabczyk
On 2016-03-08, Rainer Hansen  wrote:
> Hi,
>
> I wonder what is the best way to create a blog for a company website
> with Orgmode. I do not want to use a static web site generator. The
> design of the web site is relying on Bootstrap and customs CSS.
> It should be easy to setup and to maintain for me?
>
> I am not only looking for proposals of tool chains but also why I should
> use the proposed one.
>
> I do not want to have a lot of work in translating the existing CSS into
> some new kind of format just for the web site generator.

Are you going to use WordPress in conjunction with Bootstrap (I don't
know if it's even possible)?  If yes, then
https://github.com/punchagan/org2blog is a great choice.
-- 
Arkadiusz Drabczyk