[O] Add ob-sclang.el for sclang Org-mode babel support in contrib/

2017-06-08 Thread numbch...@gmail.com
Here is my branch
https://github.com/stardiviner/org-mode/tree/feature/ob-sclang
Merge this branch?

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


Re: [O] org-link-minor-mode.el broken by recent org maint

2017-06-08 Thread Samuel Wales
On 6/8/17, Nicolas Goaziou  wrote:
>>> I don't know what is `org-link-minor-mode'.

it is rather nice to put org-id links in your elisp code [or any
non-org] so that you can click on them and get a description in your
org files.  or a website.  or a search link to a place in your code.

it does timestamps also.

> I added backward compatible aliases in "org-compat". Hopefully, this
> should make the minor mode operational again.

thank you.

stefan's link https://github.com/swhahn/org-link-minor-mode [possibly
his repo] looks like an up to date fork with additional changes.

> Samuel, would you want to contact the author and suggest him to make the
> following change:

swhahn seems to have made a similar change.

thanks.

-- 
The Kafka Pandemic: 

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
.



Re: [O] 6 failing tests on master branch

2017-06-08 Thread Nicolas Goaziou
Hello,

Kaushal Modi  writes:

> 6 unexpected results:
>FAILED  ob-fortran/list-matrix-from-table1
>FAILED  ob-fortran/list-matrix-from-table2
>FAILED  ob-fortran/list-var-from-table
>FAILED  test-org-export/file-uri
>FAILED  test-org/custom-properties
>FAILED  test-org/forward-paragraph
>
> I remember reading that someone else too saw the fortran errors.. Is it
> because I don't have fortran on my system?

No, I don't think so. OTOH, I have no idea about where this comes from.

> About the other 3 errors:

Since our buildbot doesn't report any problem, this seems specific to
Emacs master.

> Test test-org-export/file-uri condition:
> (ert-test-failed
>  ((should
>(equal "file://myself@some.where:papers/last.pdf"
>   (org-export-file-uri "/myself@some.where:papers/last.pdf")))
>   :form
>   (equal "file://myself@some.where:papers/last.pdf"
> "file:///myself@some.where:papers/last.pdf")
>   :value nil :explanation
>   (arrays-of-different-length 40 41
> "file://myself@some.where:papers/last.pdf"
> "file:///myself@some.where:papers/last.pdf" first-mismatch-at 7)))

This one should be easy to debug since 

  (org-export-file-uri "/myself@some.where:papers/last.pdf")

is easy to reproduce. Could you investigate where the spurious "/" comes
from?

> Test test-org/custom-properties condition:
> (ert-test-failed
>  ((should
>(let
>(...)
>  (org-test-with-temp-text "* H
> :PROPERTIES:
> :FOO: val
> :END:
> " ... ...)))
>   :form
>   (let
>   ((org-custom-properties ...))
> (org-test-with-temp-text "* H
> :PROPERTIES:
> :FOO: val
> :END:
> "
>  (org-toggle-custom-properties-visibility)
>  (org-invisible-p2)))
>   :value nil))
>FAILED  646/734  test-org/custom-properties
>
> (ert-test-failed
>  ((should
>(org-test-with-temp-text "#+BEGIN_CENTER
> P1
>
> P2
> #+END_CENTER
> P3"
> (org-hide-block-toggle)
> (org-forward-paragraph)
> (looking-at "P3")))
>   :form
>   (let
>   ((inside-text ...)
>(org-mode-hook nil))
> (with-temp-buffer
>   (org-mode)
>   (let ... ...)
>   (org-hide-block-toggle)
>   (org-forward-paragraph)
>   (looking-at "P3")))
>   :value nil))
>FAILED  668/734  test-org/forward-paragraph

These one are related to invisible text. I don't what is going to change
in this area in next Emacs release.

> I have an unrelated make test question too.
>
> If I add a test, say test-org/foo, in order to make learning ert and org
> test writing faster, it is possible to run just that one test-org/foo and
> not the whole suite?

You can run, e.g.,

  BTEST_RE="foo" make test


Regards,

-- 
Nicolas Goaziou



[O] How to get rid of first line indent?

2017-06-08 Thread Birnle

Dear group,

How do I get rid of the (first) line indent in org mode? I type some 
text (book length) in:


* Some heading text
Here is some text in one line in
visual mode that wraps nicely
and looks like it should.

** Another header
And some more text in just one
line in visual mode that wraps
as it should.

Then I do something – I don’t know what it is, but suddenly the 
first line of the same text is indented to the level of the header by 
white space:


* Some heading text
  Here is some text in one line
in visual mode that wraps nicely
and looks like it should.

** Another header
   And some more text in just
one line in visual mode that
wraps as it should.

I’ve searched for hours but couldn’t find a solution. As a totally 
new Emacs and org (and evil) mode user I don’t know what to do. Please 
help!


Best,
Birnle



[O] 6 failing tests on master branch

2017-06-08 Thread Kaushal Modi
Hello,

I ran make test today using the latest version of org master branch (and
latest of emacs master), and I see 6 failures:

6 unexpected results:
   FAILED  ob-fortran/list-matrix-from-table1
   FAILED  ob-fortran/list-matrix-from-table2
   FAILED  ob-fortran/list-var-from-table
   FAILED  test-org-export/file-uri
   FAILED  test-org/custom-properties
   FAILED  test-org/forward-paragraph

I remember reading that someone else too saw the fortran errors.. Is it
because I don't have fortran on my system?

About the other 3 errors:

Test test-org-export/file-uri condition:
(ert-test-failed
 ((should
   (equal "file://myself@some.where:papers/last.pdf"
  (org-export-file-uri "/myself@some.where:papers/last.pdf")))
  :form
  (equal "file://myself@some.where:papers/last.pdf"
"file:///myself@some.where:papers/last.pdf")
  :value nil :explanation
  (arrays-of-different-length 40 41
"file://myself@some.where:papers/last.pdf"
"file:///myself@some.where:papers/last.pdf" first-mismatch-at 7)))
   FAILED  406/734  test-org-export/file-uri

Test test-org/custom-properties condition:
(ert-test-failed
 ((should
   (let
   (...)
 (org-test-with-temp-text "* H
:PROPERTIES:
:FOO: val
:END:
" ... ...)))
  :form
  (let
  ((org-custom-properties ...))
(org-test-with-temp-text "* H
:PROPERTIES:
:FOO: val
:END:
"
 (org-toggle-custom-properties-visibility)
 (org-invisible-p2)))
  :value nil))
   FAILED  646/734  test-org/custom-properties

(ert-test-failed
 ((should
   (org-test-with-temp-text "#+BEGIN_CENTER
P1

P2
#+END_CENTER
P3"
(org-hide-block-toggle)
(org-forward-paragraph)
(looking-at "P3")))
  :form
  (let
  ((inside-text ...)
   (org-mode-hook nil))
(with-temp-buffer
  (org-mode)
  (let ... ...)
  (org-hide-block-toggle)
  (org-forward-paragraph)
  (looking-at "P3")))
  :value nil))
   FAILED  668/734  test-org/forward-paragraph

---

I have an unrelated make test question too.

If I add a test, say test-org/foo, in order to make learning ert and org
test writing faster, it is possible to run just that one test-org/foo and
not the whole suite?
-- 

Kaushal Modi


Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-08 Thread Matt Price
Thanks for CCing me, Nicholas. I'll take a look at this in the next 24
hours -- have been away form my computer all day and have lots of stuff
to respond to!

matt


On 06/08/2017 03:24 PM, Nicolas Goaziou wrote:
> Hello,
>
> "N. Raghavendra"  writes:
>
>> Continuing the soliloquy, I was wondering if any of the maintainers have
>> seen this patch,
> I saw it.
>
>> and the bug that it addresses.
> That is above my pay-grade. I'm Cc'ing Matt Price, who introduced klipse
> feature, for some insight.
>
>> If they have, I'd appreciate some indicator of what is being done
>> about it.
> You posted the patch only two days ago. I hope you understand a "bump"
> may be a bit early at this point.
>
> Anyway, thank you for the patch. I hope this can be sorted out quickly.
>
> Regards,
>




[O] Prepended list item captures get placed among LOGBOOK entries

2017-06-08 Thread Bruce V Chiarelli
Hello,

I'll explain the problem with this example:


* Run this in =emacs -Q= with the latest org
  #+BEGIN_SRC emacs-lisp
;(add-to-list 'load-path "~/build/org-mode/lisp")
;;; ensure we are using the latest Org

(setq org-capture-templates (quote (("x" "Testing" item
  (file+headline "~/org/Testing.org" "Test 
headline")
  "- %U Thoughts:" :prepend t
(setq org-log-into-drawer t)
  #+END_SRC

* TODO Test headline
  SCHEDULED: <2017-06-09 Fri +1d>
  :PROPERTIES:
  :LAST_REPEAT: [2017-06-08 Thu 12:11]
  :END:
  :LOGBOOK:
  - State "DONE"   from "TODO"   [2017-06-08 Thu 12:11]
  :END:
  - I would expect the capture to go immediately above this line, but it
goes in the drawer instead.


If I use org-capture with template "x", the entry is placed into the
LOGBOOK drawer above the state change line.

Of course, if org-log-into-drawer set to nil, there is no good way of
keeping the state change list and the capture list separate at all (nor
should there be, IMO, as long as org-habit doesn't get confused). But at
least with the logbook drawer enabled, the current behavior seems wrong.



Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-08 Thread N. Raghavendra
At 2017-06-08T21:24:31+02:00, Nicolas Goaziou wrote:

> I'm Cc'ing Matt Price, who introduced klipse feature, for some
> insight.

Thanks for the reply, and for the information.  I'll wait for Matt
Price's response.

> You posted the patch only two days ago. I hope you understand a "bump"
> may be a bit early at this point.

Certainly.  It was less a bump than an expression of concern that my
messages may have been lost in the general mileu of the mailing list.

Cheers,
Raghu.

-- 
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/



Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-08 Thread Nicolas Goaziou
Hello,

"N. Raghavendra"  writes:

> Continuing the soliloquy, I was wondering if any of the maintainers have
> seen this patch,

I saw it.

> and the bug that it addresses.

That is above my pay-grade. I'm Cc'ing Matt Price, who introduced klipse
feature, for some insight.

> If they have, I'd appreciate some indicator of what is being done
> about it.

You posted the patch only two days ago. I hope you understand a "bump"
may be a bit early at this point.

Anyway, thank you for the patch. I hope this can be sorted out quickly.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] ox-html.el: Fix display of language indicators for source blocks

2017-06-08 Thread N. Raghavendra
At 2017-06-06T20:50:21+05:30, N. Raghavendra wrote:

> CSS rules like
>
> pre.src-awk:before { content: 'Awk'; }
>
> in `org-html-style-default' don't work in the current Org version,
> because the class attribute has been moved from the `pre' element to a
> `code' child of that element.  As a result, the name of the language
> isn't dipslayed when hovering over a source block in the HTML file.

Continuing the soliloquy, I was wondering if any of the maintainers have
seen this patch, and the bug that it addresses.  If they have, I'd
appreciate some indicator of what is being done about it.

Cheers,
Raghu.

-- 
N. Raghavendra , http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/



Re: [O] insert cell inside an org-mode table?

2017-06-08 Thread John Kitchin
This looks like exactly the solution Sharon is looking for! What a great
community we have that it even already exists! Thanks for pointing to it.

Michael Brand writes:

> Hi Sharon
>
> On Thu, Jun 8, 2017 at 4:21 PM, Sharon Kimble
>  wrote:
>
>> Okay, imagine that you have this table -
>>
>> | fruit  | one| two|
>> |++|
>> | pear   | orange | grape  |
>> | banana | grapefruit | satsuma|
>> | tomato | potato | clementine |
>>
>> And you discover that you've missed out apples and you want to put them
>> where 'grapefruit' currently is, I would like the following to happen -
>>
>> | fruit  | one| two|
>> |++|
>> | pear   | orange | grape  |
>> | banana | apple  | satsuma|
>> | tomato | grapefruit | clementine |
>> || potato ||
>>
>> Where the rest of the column gets shifted downwards by one cell.
>>
>> Now that is a very simplistic table, the one that I'm hoping to build
>> will be 6 columns by about 60 rows, so having the ability to shift rows
>> downwards from inserting a cell would be vital to its successful usage.
>
> This is not built-in but you can look here at the last example:
> "Rearrange one or more field within the same row or column"
> http://orgmode.org/worg/org-hacks.html#field-same-row-or-column
>
> Michael


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



[O] trying to fixing & make it useful this org-blog.el

2017-06-08 Thread RSM
Hi, group. I know there are some other solutions about blogging from EMACS
out there but I find *org-blog.el* free from dependences other than emacs
and org-mode. Plus it's light and straightforward however outdated as I
guess.
I've been trying to make it works, tried e.g. (see line 127 in this
pastebin=> https://pastebin.com/8HyViHRp)  it called for *'ox-publish'*
rather than *'org-publish*', the old engine & led by error output, but
unsuccessful I don't know what else to do.

Any clue, plesse??


Re: [O] org-link-minor-mode.el broken by recent org maint

2017-06-08 Thread Stefan Hahn
Please see:

https://github.com/swhahn/org-link-minor-mode

With kind regards,
Stefan


Re: [O] insert cell inside an org-mode table?

2017-06-08 Thread Michael Brand
Hi Sharon

On Thu, Jun 8, 2017 at 4:21 PM, Sharon Kimble
 wrote:

> Okay, imagine that you have this table -
>
> | fruit  | one| two|
> |++|
> | pear   | orange | grape  |
> | banana | grapefruit | satsuma|
> | tomato | potato | clementine |
>
> And you discover that you've missed out apples and you want to put them
> where 'grapefruit' currently is, I would like the following to happen -
>
> | fruit  | one| two|
> |++|
> | pear   | orange | grape  |
> | banana | apple  | satsuma|
> | tomato | grapefruit | clementine |
> || potato ||
>
> Where the rest of the column gets shifted downwards by one cell.
>
> Now that is a very simplistic table, the one that I'm hoping to build
> will be 6 columns by about 60 rows, so having the ability to shift rows
> downwards from inserting a cell would be vital to its successful usage.

This is not built-in but you can look here at the last example:
"Rearrange one or more field within the same row or column"
http://orgmode.org/worg/org-hacks.html#field-same-row-or-column

Michael



Re: [O] insert cell inside an org-mode table?

2017-06-08 Thread Sharon Kimble
John Kitchin  writes:

> Not really. Could you give an example of before and after?
>
> For example if you are in the middle of a row and want to insert a cell
> in that row, what should happen? Should the just that row get longer? Or
> should you just add a new column? How should the cells around it shift?

Okay, imagine that you have this table -

| fruit  | one| two|
|++|
| pear   | orange | grape  |
| banana | grapefruit | satsuma|
| tomato | potato | clementine |

And you discover that you've missed out apples and you want to put them
where 'grapefruit' currently is, I would like the following to happen -

| fruit  | one| two|
|++|
| pear   | orange | grape  |
| banana | apple  | satsuma|
| tomato | grapefruit | clementine |
|| potato ||

Where the rest of the column gets shifted downwards by one cell.

Now that is a very simplistic table, the one that I'm hoping to build
will be 6 columns by about 60 rows, so having the ability to shift rows
downwards from inserting a cell would be vital to its successful usage.

Thanks
Sharon.

>
> Sharon Kimble writes:
>
>> John Kitchin  writes:
>>
>>> I don't totally understand what you want to do. You can insert a row or 
>>> column into a table.
>>>
>>>   org-table-insert-column
>>>   org-table-insert-row
>>>
>>> Are you trying to do something different than that?
>>
>> Yes, I would like to just insert a single cell into a place within the
>> table, and then be able to adjust all other rows and cells around it, so
>> that it appears no different from any of the original cells. So that its
>> assimilated into the table as a whole.
>>
>> Does this help explain what I want to do?
>>
>> Thanks
>> Sharon.
>>
>>>
>>> John
>>>
>>> ---
>>> Professor John Kitchin
>>> Doherty Hall A207F
>>> Department of Chemical Engineering
>>> Carnegie Mellon University
>>> Pittsburgh, PA 15213
>>> 412-268-7803
>>> @johnkitchin
>>> http://kitchingroup.cheme.cmu.edu
>>>
>>> On Wed, Jun 7, 2017 at 6:31 AM, Sharon Kimble  
>>> wrote:
>>>
>>> I maintain my 'DrugFacts' website in mediawiki. I write my article in
>>> org-mode, export to mediawiki, correct the citations, then cut and paste
>>> into my mediawiki page. And it all works very well.
>>>
>>> But the front-page is a right swine! Here is the first two rows of my 
>>> mediawiki front-page -
>>>
>>> --8<---cut here---start->8---
>>> {| 
>>> | '''Illegal'''
>>> | '''Category's'''
>>> | '''Legal'''
>>> | '''Prescription only'''
>>> | '''Substitute'''
>>> | '''Others'''
>>> |-
>>> |* [[Amphetamines]]
>>> |* [[:Category:Anaesthetics|Anaesthetics]]
>>> |* [[Alcohol]]
>>> |* [[Alprazolam]]
>>> |* [[Buprenorphine]]
>>> |* [[Flumazenil]]
>>> |-
>>> --8<---cut here---end--->8---
>>>
>>> And because writing mediawiki tables leads to brain damage, and a desire
>>> to consume 6 pints of beer as the world is going to end in ten minutes,
>>> according to Douglas Adams and Ford Prefect, I'm intending to create the
>>> table in org-mode and then export to mediawiki, correct as necessary,
>>> and upload. Which brings me to my question.
>>>
>>> Is it possible to insert a cell *inside* an org-mode table please, and
>>> auto-shuffle other rows/columns about to fit? According to the 'Table'
>>> menu in emacs, there isn't a way of doing it, and neither does the
>>> org-mode manual say that it can be done. But perhaps other people have
>>> found a way of doing it please?
>>>
>>> Hopefully thanks
>>> Sharon.
>>> --
>>> A taste of linux = http://www.sharons.org.uk
>>> TGmeds = http://www.tgmeds.org.uk
>>> DrugFacts = https://www.drugfacts.org.uk
>>> Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
>>>
>
>
> --
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu

-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7


signature.asc
Description: PGP signature


Re: [O] insert cell inside an org-mode table?

2017-06-08 Thread John Kitchin
Not really. Could you give an example of before and after?

For example if you are in the middle of a row and want to insert a cell
in that row, what should happen? Should the just that row get longer? Or
should you just add a new column? How should the cells around it shift?



Sharon Kimble writes:

> John Kitchin  writes:
>
>> I don't totally understand what you want to do. You can insert a row or 
>> column into a table.
>>
>>   org-table-insert-column
>>   org-table-insert-row
>>
>> Are you trying to do something different than that?
>
> Yes, I would like to just insert a single cell into a place within the
> table, and then be able to adjust all other rows and cells around it, so
> that it appears no different from any of the original cells. So that its
> assimilated into the table as a whole.
>
> Does this help explain what I want to do?
>
> Thanks
> Sharon.
>
>>
>> John
>>
>> ---
>> Professor John Kitchin
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> http://kitchingroup.cheme.cmu.edu
>>
>> On Wed, Jun 7, 2017 at 6:31 AM, Sharon Kimble  
>> wrote:
>>
>> I maintain my 'DrugFacts' website in mediawiki. I write my article in
>> org-mode, export to mediawiki, correct the citations, then cut and paste
>> into my mediawiki page. And it all works very well.
>>
>> But the front-page is a right swine! Here is the first two rows of my 
>> mediawiki front-page -
>>
>> --8<---cut here---start->8---
>> {| 
>> | '''Illegal'''
>> | '''Category's'''
>> | '''Legal'''
>> | '''Prescription only'''
>> | '''Substitute'''
>> | '''Others'''
>> |-
>> |* [[Amphetamines]]
>> |* [[:Category:Anaesthetics|Anaesthetics]]
>> |* [[Alcohol]]
>> |* [[Alprazolam]]
>> |* [[Buprenorphine]]
>> |* [[Flumazenil]]
>> |-
>> --8<---cut here---end--->8---
>>
>> And because writing mediawiki tables leads to brain damage, and a desire
>> to consume 6 pints of beer as the world is going to end in ten minutes,
>> according to Douglas Adams and Ford Prefect, I'm intending to create the
>> table in org-mode and then export to mediawiki, correct as necessary,
>> and upload. Which brings me to my question.
>>
>> Is it possible to insert a cell *inside* an org-mode table please, and
>> auto-shuffle other rows/columns about to fit? According to the 'Table'
>> menu in emacs, there isn't a way of doing it, and neither does the
>> org-mode manual say that it can be done. But perhaps other people have
>> found a way of doing it please?
>>
>> Hopefully thanks
>> Sharon.
>> --
>> A taste of linux = http://www.sharons.org.uk
>> TGmeds = http://www.tgmeds.org.uk
>> DrugFacts = https://www.drugfacts.org.uk
>> Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
>>


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] order of evaluation upon export: macros are evaluated too soon

2017-06-08 Thread Nicolas Goaziou
Hello,

Eric S Fraga  writes:

> I do wonder, philosophically, about the use cases for macro expansion
> and the resulting implementation.  My understanding is that macros are
> only for export so should they not pay attention to export exclusion
> directives?

Macros are expanded prior to Babel code evaluation—they can make nice
shortcuts for long Babel calls—so they have to obey to the same rules as
Babel code evaluation, which ignores ":noexport:" directive. I do
realize that macros, however, are expanded within commented trees; this
is a mistake I am going to fix.

Of course, if we accept to limit more macro expansion scope, we get more
latitude in choosing the position of the expansion stage during the
export process. I'm open to discussions about it, and more generally,
about macros' features.

Regards,

-- 
Nicolas Goaziou



Re: [O] Minor addition to Speed Keys info node

2017-06-08 Thread Kaushal Modi
On Thu, Jun 8, 2017 at 6:50 AM Nicolas Goaziou 
wrote:

> This never happens. Master is a strict superset of maint.
>

Thanks. That takes care of my merging concerns.
-- 

Kaushal Modi


Re: [O] order of evaluation upon export: macros are evaluated too soon

2017-06-08 Thread Eric S Fraga
On Wednesday,  7 Jun 2017 at 19:56, Nicolas Goaziou wrote:

[...]

> What about simply removing macros in :noexport: trees from
> a pre-processing-hook?

Hi Nicolas,

Thanks for the suggestion.  It makes sense but the problem (for me) is
the "simply" in the above. ;-)

But Charles's solution works perfectly so I'm happy!

I do wonder, philosophically, about the use cases for macro expansion
and the resulting implementation.  My understanding is that macros are
only for export so should they not pay attention to export exclusion
directives?

Thanks again,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


Re: [O] order of evaluation upon export: macros are evaluated too soon

2017-06-08 Thread Eric S Fraga
On Wednesday,  7 Jun 2017 at 18:43, Charles C. Berry wrote:

[...]

> Maybe implement somethng like this:
>
> #+BEGIN_SRC emacs-lisp
>(defun n-noexport (x y)
>  (let ((tags (nth 5 (org-heading-components
>(unless (and tags
>  (string-match ":noexport:" tags))
>   (org-macro--counter-increment x y
> #+END_SRC
>
> #+MACRO: n2 (eval (n-noexport "$1" "$2"))

This is really straightforward and solves my problem perfectly.  Thank
you!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113


signature.asc
Description: PGP signature


Re: [O] Org-mode ELPA repository package is not very updated?

2017-06-08 Thread numbch...@gmail.com
​​
Seems currently have two solutions:

1. copy the latest `ob-clojure.el` to `.emacs.d/elpa/org-20170608/`. It
works, and I'm using this currently. But really not a good way.

2. use `(use-package org :load-path "/path/to/org-mode/source-code/" :pin
manual)`. But this has source code mixed issue, because other MELPA
packages dependent on `org`. So not sure Emacs will load which one. I use
`locate-library` found sometimes is ELPA org, sometimes is source code org.
Is there a way to fix this issue?

This is the question which I asked in IRC #emacs:

 I use package with: (use-package org [11:32]
   :load-path "~/Code/Emacs/org-mode/lisp/"
   :pin manual
   ;; :quelpa (org :fetcher git :repo
  "~/Code/Emacs/org-mode/lisp/")
   :mode (("\\.org$" . org-mode))
   :config
   ;; (load "~/Code/Emacs/org-mode/lisp/org.el")
   (use-package org-plus-contrib
 :load-path "~/Code/Emacs/org-mode/contrib/lisp/"
 :pin manual)
   ) But some MELPA packages requires `org`, I use Org-mode
ELPA
  repo (defvar elpa-org '("org"   . "http://orgmode.org/elpa/;))
.
  But I found `locate-library` "org" library files are mixed,
some
  library is from `:load-path`, some are from ELPA package. How
to
  fix this issue?



[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Thu, Jun 8, 2017 at 6:54 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> "numbch...@gmail.com" <numbch...@gmail.com> writes:
>
> > ​​ If so, the latest `ob-clojure.el` commits are bug fix obviously.
> >
> > #+BEGIN_EXAMPLE
> > 7ed93eba5 * Fix incorrect argument call in ob-clojure.el
> > 98d672de3 * Update "25.2" defcustom :version's that remain in master
> > 0d3683f2c *   Merge branch 'maint'
> >   |\
> > 713f78501 | * Update copyright years
> > 2c466ebff * | ob-clojure: Normalize :show-process syntax
> > cd4186c5c * | ob-clojure: Small refactoring
> > 56c0ce4a8 * | ob-clojure: Add :show-process
> >   |/
> > #+END_EXAMPLE
> >
> > I need the latest commit bug fix `7ed93eba5 * Fix incorrect argument call
> > in ob-clojure.el`.
>
> Apparently, this fix landed in master, so it should land in Org 9.1. It
> may be so because it sits on top of other modifications to ob-clojure
> that are not strict bug-fixes.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Exporting to html and opening external browser doesn't work

2017-06-08 Thread Nicolas Goaziou
Hello,

"Miriam Mayer"  writes:

> Emacs-version: 25.2.1 (x86_64-unknown-linux-gnu (I'm using Arch Linux)
> GTK+ version 3.22.10) as of 2017-04-22 Org-mode-version: 8.2.10
> I created a file with C-x C-f and named it 'test.org' to get into
> org-mode. Exporting to html and opening in a browser via C-c C-e
> h o doesn't work. The standard browser isn't opened. The html code is
> however exported into another buffer within emacs.

You may want to look into `org-file-apps' variable.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-link-minor-mode.el broken by recent org maint

2017-06-08 Thread Nicolas Goaziou
Hello,

Kaushal Modi  writes:

> On Thu, Jun 8, 2017, 2:52 AM Nicolas Goaziou  wrote:
>
>> Hello,
>>
>> Samuel Wales  writes:
>>
>> > org-link-minor-mode broken by recent maint.  both links and tses.
>>
>> I don't know what is `org-link-minor-mode'.
>>
>
> I don't use this package, but it looks like this one:
> https://github.com/seanohalpin/org-link-minor-mode

OK. Thank you.

I added backward compatible aliases in "org-compat". Hopefully, this
should make the minor mode operational again.
>
> Also it hasn't been updated in 5 years; it's from org 7 era.

Samuel, would you want to contact the author and suggest him to make the
following change:

  (let ((org-link-minor-mode-keywords
 (list
  '(org-activate-angle-links (0 'org-link t))
  '(org-activate-plain-links)
  '(org-activate-bracket-links (0 'org-link t))
  '(org-activate-dates (0 'org-date t))
  ))
...))

  =>

  (let ((org-link-minor-mode-keywords
 '((org-activate-links
...)

Regards,

-- 
Nicolas Goaziou



Re: [O] Org-mode ELPA repository package is not very updated?

2017-06-08 Thread Nicolas Goaziou
Hello,

"numbch...@gmail.com"  writes:

> ​​ If so, the latest `ob-clojure.el` commits are bug fix obviously.
>
> #+BEGIN_EXAMPLE
> 7ed93eba5 * Fix incorrect argument call in ob-clojure.el
> 98d672de3 * Update "25.2" defcustom :version's that remain in master
> 0d3683f2c *   Merge branch 'maint'
>   |\
> 713f78501 | * Update copyright years
> 2c466ebff * | ob-clojure: Normalize :show-process syntax
> cd4186c5c * | ob-clojure: Small refactoring
> 56c0ce4a8 * | ob-clojure: Add :show-process
>   |/
> #+END_EXAMPLE
>
> I need the latest commit bug fix `7ed93eba5 * Fix incorrect argument call
> in ob-clojure.el`.

Apparently, this fix landed in master, so it should land in Org 9.1. It
may be so because it sits on top of other modifications to ob-clojure
that are not strict bug-fixes.

Regards,

-- 
Nicolas Goaziou



Re: [O] Minor addition to Speed Keys info node

2017-06-08 Thread Nicolas Goaziou
Hello,

Kaushal Modi  writes:

> And in the case there are commits that should not be merged to master, you
> just cherry-pick, right?

This never happens. Master is a strict superset of maint.

Regards,

-- 
Nicolas Goaziou



Re: [O] Org-mode ELPA repository package is not very updated?

2017-06-08 Thread numbch...@gmail.com
​​
If so, the latest `ob-clojure.el` commits are bug fix obviously.

#+BEGIN_EXAMPLE
7ed93eba5 * Fix incorrect argument call in ob-clojure.el
98d672de3 * Update "25.2" defcustom :version's that remain in master
0d3683f2c *   Merge branch 'maint'
  |\
713f78501 | * Update copyright years
2c466ebff * | ob-clojure: Normalize :show-process syntax
cd4186c5c * | ob-clojure: Small refactoring
56c0ce4a8 * | ob-clojure: Add :show-process
  |/
#+END_EXAMPLE

I need the latest commit bug fix `7ed93eba5 * Fix incorrect argument call
in ob-clojure.el`.



[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Mon, Jun 5, 2017 at 9:09 PM, Nick Dokos  wrote:

> "numbch...@gmail.com"  writes:
>
> > I found Org-mode ELPA released source code is old and does not include
> some
> > patches and updates.
> >
> > For example, file `ob-clojure.el` I found org-mode source has the latest
> source
> > code, but not in Org-mode ELPA package source code. The latest commit of
> > `ob-clojure.el` is about 3 monthes ago.
> >
> > I installed both packages `org` and `org-plus-contrib` in ELPA
> repository.
> >
>
> The ELPA package tracks the maintenance branch which only gets bug fixes.
>
> --
> Nick
>
>
>


Re: [O] Org-mode ELPA repository package is not very updated?

2017-06-08 Thread numbch...@gmail.com
Yes, I install `org` and `org-plus-contrib` from `"http://orgmode.org/elpa/
"`.

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Tue, Jun 6, 2017 at 12:58 AM, B.V. Raghav  wrote:

> "numbch...@gmail.com"  writes:
>
> > I installed both packages `org` and `org-plus-contrib` in ELPA
> repository.
> You might be looking for:
>
> #+BEGIN_SOURCE elisp
>   (require 'package)
>   (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/;) t)
>   (package-initialize)
>   (package-refresh-contents)
>   (package-install "org")
> #+END_SOURCE
>
> Or did you actually mean the same by `ELPA repository'
>
> Thanks
> r
> --
> (B.V. Raghav)
>


Re: [O] Minor addition to Speed Keys info node

2017-06-08 Thread Kaushal Modi
On Wed, Jun 7, 2017, 6:56 PM Nicolas Goaziou  wrote:

> Why would you? It is a good habit to merge maint into master after
> a patch.


Just because I cannot always be sure that all the commits made by someone
else in maint branch are applicable in master branch too.

I didn't do it for my own commit because I'm about to commit
> something else and wanted to reduce a bit the number of merge commits.


Thanks, that makes sense.

So typically one wouldn't come across a decision point if they should or
shouldn't merge the maint branch commits made by someone else.

And in the case there are commits that should not be merged to master, you
just cherry-pick, right?
-- 

Kaushal Modi


Re: [O] org-link-minor-mode.el broken by recent org maint

2017-06-08 Thread Kaushal Modi
On Thu, Jun 8, 2017, 2:52 AM Nicolas Goaziou  wrote:

> Hello,
>
> Samuel Wales  writes:
>
> > org-link-minor-mode broken by recent maint.  both links and tses.
>
> I don't know what is `org-link-minor-mode'.
>

I don't use this package, but it looks like this one:
https://github.com/seanohalpin/org-link-minor-mode

Also it hasn't been updated in 5 years; it's from org 7 era.

> --

Kaushal Modi


Re: [O] insert cell inside an org-mode table?

2017-06-08 Thread Sharon Kimble
John Kitchin  writes:

> I don't totally understand what you want to do. You can insert a row or 
> column into a table.
>
>     org-table-insert-column
>     org-table-insert-row
>
> Are you trying to do something different than that?

Yes, I would like to just insert a single cell into a place within the
table, and then be able to adjust all other rows and cells around it, so
that it appears no different from any of the original cells. So that its
assimilated into the table as a whole.

Does this help explain what I want to do?

Thanks
Sharon.

>
> John
>
> ---
> Professor John Kitchin 
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>
> On Wed, Jun 7, 2017 at 6:31 AM, Sharon Kimble  
> wrote:
>
> I maintain my 'DrugFacts' website in mediawiki. I write my article in
> org-mode, export to mediawiki, correct the citations, then cut and paste
> into my mediawiki page. And it all works very well.
>
> But the front-page is a right swine! Here is the first two rows of my 
> mediawiki front-page -
>
> --8<---cut here---start->8---
> {| 
> | '''Illegal'''
> | '''Category's'''
> | '''Legal'''
> | '''Prescription only'''
> | '''Substitute'''
> | '''Others'''
> |-
> |* [[Amphetamines]]
> |* [[:Category:Anaesthetics|Anaesthetics]]
> |* [[Alcohol]]
> |* [[Alprazolam]]
> |* [[Buprenorphine]]
> |* [[Flumazenil]]
> |-
> --8<---cut here---end--->8---
>
> And because writing mediawiki tables leads to brain damage, and a desire
> to consume 6 pints of beer as the world is going to end in ten minutes,
> according to Douglas Adams and Ford Prefect, I'm intending to create the
> table in org-mode and then export to mediawiki, correct as necessary,
> and upload. Which brings me to my question.
>
> Is it possible to insert a cell *inside* an org-mode table please, and
> auto-shuffle other rows/columns about to fit? According to the 'Table'
> menu in emacs, there isn't a way of doing it, and neither does the
> org-mode manual say that it can be done. But perhaps other people have
> found a way of doing it please?
>
> Hopefully thanks
> Sharon.
> --
> A taste of linux = http://www.sharons.org.uk
> TGmeds = http://www.tgmeds.org.uk
> DrugFacts = https://www.drugfacts.org.uk
> Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
>

-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7


signature.asc
Description: PGP signature


Re: [O] org to static site?

2017-06-08 Thread Ken Mankoff
I haven't seen anyone mention org-spec https://github.com/thi-ng/org-spec
or these themes: https://github.com/fniessen/org-html-themes
Both seem like they would make for a fine class webpage.
The original request didn't go into details, but for most teaching
websites, wordpress is overkill, and a single page (or a few, manually
linked) are enough.

  -k.

On Tue, Jun 6, 2017 at 12:12 PM, Fabrice Popineau <
fabrice.popin...@supelec.fr> wrote:

> I do the same, albeit I won't qualify my setup as 'simple'.
> I export all my teaching stuff, personal web page and so on from Org
> files, one file per
> course or topic. I export html files, reveal presentations, pdf files for
> exams or reference documents,
> even IPython notebooks (thanks to John Kitchin).
> I haven' t found an easy way to rely on ox-publish  for subtree publishing
> with this scheme where you keep everything in the same Org file.
> The problem was with navigation. I use a templating system
> where I compute menus and body documents that are inserted in
> some html template. So I had to write all the functions that will
> do this computation and resolve cross links (not yet perfect in this are).
>
>
>
> 2017-06-04 20:26 GMT+02:00 Scott Randby :
>
>> On 05/31/2017 11:00 AM, Matt Price wrote:
>> > I'm trying to wean myself off of Wordpress for next year's teaching
>> > websites, and am wondering what solutions other people are using for
>> > turning a collection of org pages and/or subtrees into a static html
>> > site. I am leaning towards Hugo but honestly not for any sensible
>> > reason; I've seen other people use Jekyll, though the fact that Github
>> > doesn't support direct conversion from org-mode removes some of Jekyll's
>> > appeal; and I know there are a number of other solutions too.
>> >
>> > So, I would love to hear what you all recommend.
>>
>> Maybe this is too primitive, but I keep all the content in one Org file
>> and export the text under each top-level headline as a single HTML page.
>> I use some simple macros if I need to export more than one top-level
>> headline. I keep the CSS code in a separate file. Keeping all the
>> content in one file makes it really easy to add new pages and edit old
>> pages. I use a preamble for site navigation.
>>
>> Scott Randby
>>
>>
>
>
> --
> Fabrice Popineau
> -
> SUPELEC
> Département Informatique
> 3, rue Joliot Curie
> 91192 Gif/Yvette Cedex
> Tel direct : +33 (0) 169851950 <+33%201%2069%2085%2019%2050>
> Standard : +33 (0) 169851212 <+33%201%2069%2085%2012%2012>
> --
>
>


Re: [O] org-link-minor-mode.el broken by recent org maint

2017-06-08 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> org-link-minor-mode broken by recent maint.  both links and tses.

I don't know what is `org-link-minor-mode'.

Regards,

-- 
Nicolas Goaziou