[O] Questions after Attempt at using org-publish per https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html

2018-10-13 Thread Jud Taylor
I have some questions about how to use ox-publish to create static sites.

I have followed steps documented at 
https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html.

I have documented my steps and copied source and output at 
https://github.com/gptix/org-site-test

I have tried to search for answers on the emacs-orgmode mailing list, and on 
the web.

My three current issues:

- I do not understand how css info is being injected into output html files. I 
did not create any css file to be referenced, but styling is being included as 
CDATA.

- I do not understand what the
:auto-preamble t
in a component is for.

- I do not understand the relation between
(require 'ox-publish)
at the beginning of the tutorial, and
(require 'org-publish)
in the portion of the tutorial describing how to actually publish.

I'd love any help or a pointer to where I can read about these.

Thanks.

Sent with [ProtonMail](https://protonmail.com) Secure Email.

Re: [O] [PATCH] ob-core.el: Fix org-babel--string-to-number

2018-10-13 Thread Nicolas Goaziou
Hello,

qijian gong  writes:

> I've write a patch (see attachment) to fix the
> `org-babel--string-to-number` function.
>
> In my opinion, if people write the data in the form `0001`, it means that
> he wants to treat it as a string:

I added TINYCHANGE at the end of the commit message and applied your
patch on "next" branch (Org 9.3).

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] test-org-agenda: new test for setting priority

2018-10-13 Thread Nicolas Goaziou
Hello,

Dmitrii Gerasimov  writes:

> Hi. Was investigating what I has thought to be a bug in org-agenda, but
> turns out that it's something else in my setup. Ended up with a unit test
> in the process, hope it's useful.

I applied your patch. I added a TINYCHANGE cookie in case you haven't
signed FSF papers already.

Thank you.

-- 
Nicolas Goaziou



Re: [O] Feature request for clocktable step

2018-10-13 Thread Nicolas Goaziou
Hello,

Marcin Borkowski  writes:

> the manual says that I can say ":step day" or ":step week" in my clock
> reports.  Could I also be able to say ":step month" or ":step year"?

Done in "next" branch. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] [PATCH] test-org-agenda: new test for setting priority

2018-10-13 Thread Dmitrii Gerasimov
Hi. Was investigating what I has thought to be a bug in org-agenda, but
turns out that it's something else in my setup. Ended up with a unit test
in the process, hope it's useful.

-- 
Dmitrii Gerasimov
From 9076dda07a4a5e55ac07a0ccd943ead51db7b793 Mon Sep 17 00:00:00 2001
From: Dima Gerasimov 
Date: Sat, 13 Oct 2018 14:31:13 +0100
Subject: [PATCH] test-org-agenda: new test for setting priority

* testing/examples/agenda-file.org: add a subnote, make sure it has no
  impact on agenda
* testing/lisp/test-org-agenda.el (test-org-agenda/set-priority): new
  test
---
 testing/examples/agenda-file.org |  1 +
 testing/lisp/test-org-agenda.el  | 17 +
 2 files changed, 18 insertions(+)

diff --git a/testing/examples/agenda-file.org b/testing/examples/agenda-file.org
index 6579b1cc8..1c7264979 100644
--- a/testing/examples/agenda-file.org
+++ b/testing/examples/agenda-file.org
@@ -3,3 +3,4 @@
 <2017-03-10 Fri>
 * test agenda
 SCHEDULED: <2017-07-19 Wed>
+** subnote
diff --git a/testing/lisp/test-org-agenda.el b/testing/lisp/test-org-agenda.el
index 6aaa88fc3..b28e122e9 100644
--- a/testing/lisp/test-org-agenda.el
+++ b/testing/lisp/test-org-agenda.el
@@ -85,6 +85,23 @@
 	(looking-at " *agenda-file:Scheduled: *test agenda"
   (org-test-agenda--kill-all-agendas))
 
+(ert-deftest test-org-agenda/set-priority ()
+  "One informative line in the agenda. Check that org-agenda-priority updates the agenda."
+  (cl-assert (not org-agenda-sticky) nil "precondition violation")
+  (cl-assert (not (org-test-agenda--agenda-buffers))
+	 nil "precondition violation")
+  (let ((org-agenda-span 'day)
+	(org-agenda-files `(,(expand-file-name "examples/agenda-file.org"
+	   org-test-dir
+(org-agenda-list nil "<2017-07-19 Wed>")
+(set-buffer org-agenda-buffer-name)
+
+(should
+ (progn (goto-line 3)
+	(org-agenda-priority ?B)
+	(looking-at-p " *agenda-file:Scheduled: *\\[#B\\] test agenda"
+  (org-test-agenda--kill-all-agendas))
+
 (ert-deftest test-org-agenda/sticky-agenda-name ()
   "Agenda buffer name after having created one sticky agenda buffer."
   (cl-assert (not org-agenda-sticky) nil "precondition violation")
-- 
2.17.1



Re: [O] org-mode: Would like to add custom chars as org-list bullets

2018-10-13 Thread Colin Baxter
> Tom Burbage  writes:

> When I use simple lists, I would like to be able to mix in '!' and
> '?'  with '-' as these are sometimes more expressive of what the
> list item represents.  My request is that the list of characters
> org-list recognizes as being a valid "bullet" be customizable by
> the user.

Have a look at 
https://emacs.stackexchange.com/questions/35626/how-to-make-my-own-org-mode-text-emphasis-work-again.

Best wishes,