Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Berry, Charles
John,

That's the ticket!

The only thing I miss in hydra-ox.el is being able to repeat subtree exports.

i.e. with the export dispatcher  when `C-c C-e C-s l l' is later followed by 
'C-u C-c C-e', it navigates back to the right headline and exports the right 
subtree.

Thanks,

Chuck

> On Feb 8, 2019, at 5:20 PM, John Kitchin  wrote:
> 
> my goto solution to keymap collisions is hydra. Here is one that shows how to 
> make one for exporting in org-mode:
> 
> https://github.com/abo-abo/hydra/blob/master/hydra-ox.el
> 
> 
> John
> 





Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread John Kitchin
my goto solution to keymap collisions is hydra. Here is one that shows how
to make one for exporting in org-mode:

https://github.com/abo-abo/hydra/blob/master/hydra-ox.el


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 Fri, Feb 8, 2019 at 7:32 PM Berry, Charles  wrote:

>
>
> > On Feb 8, 2019, at 12:27 AM, Jens Lechtenboerger <
> lech...@wi.uni-muenster.de> wrote:
> >
> > Hi there,
> >
> > I need to assign a key to an Org export back-end.  My first attempt
> > ended in a conflict, so I’d like to collect a (full?) list.
> >
>
> I'm not trolling, but ...
>
> There are about 30 packages on melpa.
>
> And doing a search on GitHub:
>
> `org-export-define-derived-backend  extension:.el language:"Emacs Lisp"'
>
> gave me over 9000 (!) results.
>
> And  `org-export-define-derived-backend extension:.org language:Org'
>
> gave me 54 more. Maybe some overlap.
>
> I am sure there are false positives. Some do not have a :menu. Some are
> copies used in init files. Some in the *.org files might just be
> commentary.
>
> But still there are a lot out there.
>
> ===
>
> Maybe a better angle is to think about how to extend the menu
> functionality to accommodate all of the possible collisions.  I'd offer to
> help in this, but I will not have any time for some weeks to come.
>
> Chuck
>
> p.s. I will go offline for a couple of weeks starting in 48 hours. So if I
> do not respond to a follow up, it is not because I am ignoring it.
>
>


Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Berry, Charles


> On Feb 8, 2019, at 12:27 AM, Jens Lechtenboerger  
> wrote:
> 
> Hi there,
> 
> I need to assign a key to an Org export back-end.  My first attempt
> ended in a conflict, so I’d like to collect a (full?) list.
> 

I'm not trolling, but ...

There are about 30 packages on melpa.

And doing a search on GitHub:

`org-export-define-derived-backend  extension:.el language:"Emacs Lisp"'

gave me over 9000 (!) results.

And  `org-export-define-derived-backend extension:.org language:Org'

gave me 54 more. Maybe some overlap.

I am sure there are false positives. Some do not have a :menu. Some are copies 
used in init files. Some in the *.org files might just be commentary. 

But still there are a lot out there.

===

Maybe a better angle is to think about how to extend the menu functionality to 
accommodate all of the possible collisions.  I'd offer to help in this, but I 
will not have any time for some weeks to come.

Chuck

p.s. I will go offline for a couple of weeks starting in 48 hours. So if I do 
not respond to a follow up, it is not because I am ignoring it.



Re: [O] [PATCH 1/3] org-habit: Add org-habit-scheduled-past-days

2019-02-08 Thread John Lee
On Thu, 7 Feb 2019, at 21:27, John Lee wrote:
> On Wed, 6 Feb 2019, at 21:32, Nicolas Goaziou wrote:
> > I applied them in master. Thank you.
> 
> Thank you!
> 
> > Could you provide an entry for ORG-NEWS file, too?

Attached.
From ded5296358ec2bcfbe58a662b5112226298bf43f Mon Sep 17 00:00:00 2001
From: John Lee 
Date: Fri, 8 Feb 2019 23:13:01 +
Subject: [PATCH] Add to ORG-NEWS for recent org-habit changes

---
 etc/ORG-NEWS | 25 +
 1 file changed, 25 insertions(+)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index bf14412fd..595d1895c 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -13,6 +13,16 @@ Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
 * Version 9.3
 
 ** Incompatible changes
+*** org-agenda now always shows the time of day for ~org-habit~ habits
+
+Scheduled items with an associated time of day don't normally show the
+time in the agenda if they were missed, because they're regarded as
+only a reminder of a specific appointment that was already missed.
+That behaviour is unchanged, except for scheduled items that represent
+~org-habit~ habits, which now always show any time designation,
+because the time of a habit is regarded as the time when the habit
+should be done, even if one repeat was missed.
+
 *** ob-clojure will not auto prepend ~(ns ..)~ statement now
 When tangling, user usually just want to tangle literally code instead
 of prepend inserting a ~(ns ..)~ statement before source block
@@ -54,6 +64,16 @@ alternative was removed and there is no more a :use-xcolor options
 since now it's implicitly always true.
 
 ** New features
+*** Support showing missed habits when ~org-scheduled-past-days~ is in effect
+
+This supports GTD-style workflows in which scheduled items are used as
+a way of "turning on" TODO items on a particular date, rather than as
+a means of creating calendar-based reminders to do tasks.  It was
+possible to achieve that using ~org-scheduled-past-days~, but that
+caused some habits to not be shown when it was time to do the habit.
+~org-habit-scheduled-past-days~ overrides that variable just for
+~org-habit~ items.
+
 *** Handle overlay specification for notes in Beamer export
 
 This aligns Beamer notes with slide overlays.
@@ -136,6 +156,11 @@ dynamic block in ~org-dynamic-block-alist~.
 It was unused throughout the code base.
 
 ** Miscellaneous
+*** Use face ~org-agenda-done~ for habits scheduled for future
+
+This has the effect that if you just did the habit, it is "greyed out"
+in the agenda (given appropriate face configuration).
+
 *** No more special indentation for description items
 
 Descriptions items are indented like regular ones, i.e., text starts
-- 
2.17.1



Re: [O] Refiling Completion Systems

2019-02-08 Thread Samuel Wales
the built-in ido completion is likely mostly redundant and that is i
think mostly why it was removed.  [ooh, disclaimers.]

to get your ido back, you can install ido-hacks, which will

  1] make ido work in all sorts of places including refile
  2] speed up ido by an enormous amount

you might need to make sure you have the right version.

there is also something like ido-everywhere, but idk if it has the
speeding up feature or whether it does ido in the same places.

alternatively, you can try helm [old, huge, different usage] or ivy
[new, fast].  icicles is not as popular.

i think both helm and ivy have c-spc ability or the equivalent.

ivy is the most like ido of the popular non-ido.

===

i use ido with ido-hacks and ido-clever-match.  the last one sorts
choices beautifully.  i get annoyed with different sort orders.

i might switch to ivy in the future if it can provide the same sort
order as ido-clever-match.  it provides options, but not that one.

it has been said that flx is a nice sorting option and that ivy can
provide it, but it was too slow last time i tried it.  idk if ivy
speeds flx up.  idk if it is close enough to ido-clever-match for me.


On 2/8/19, Bernt Hansen  wrote:
> Hi,
>
> I've been using org-mode for over ten years and at some point the ido
> completion for refiling went away -- probably when refiling functionalty
> was rewritten.  Is there a similar completion system available that I
> can use to locate my refile targets?  I really liked the ido search with
> incremental search refinement (C-SPC) of IDO to limit my targets until I
> find the one I want.
>
> I'm currently using
>
> (setq org-refile-use-outline-path t)
>
> but that isn't really working well when I don't remember the parent task
> heading :)
>
> I am currently using Org on Windows.
>
> GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17
> Org mode version 9.2.1 (release_9.2.1-195-gef1edf @
> c:/D-Drive/bin/org-mode/lisp/)
>
> Thanks for Org!
>
> Best regards,
> Bernt
>
>


-- 
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] Key bindings for Org export back-ends?

2019-02-08 Thread Jens Lechtenboerger
On 2019-02-08, at 10:54, Kaushal Modi wrote:

> On Fri, Feb 8, 2019 at 10:48 AM Thomas S. Dye  wrote:
>
>> One place for the list of key bindings might be here:
>> https://orgmode.org/worg/exporters/index.html
>>
>
> That's a great idea! How about creating a single Org table with columns
> like Name, Description, Binding, Core/Contributed, and then sort the rows
> by the Binding column?
>
> We can leave the obsolete exporters section separate as it is right now.

Should the description really go into a table?  Or might the table
just provide an overview before the current section “Core
exporters”?

Best wishes
Jens



[O] Weird Headline Behavior

2019-02-08 Thread Scott Randby
Hello,

I've been noticing some unusual behavior when I manipulate headlines (Org 9.2).

I have the following (or something similar) at the very end of many Org files:

* LOCAL VARIABLES
# Local Variables:
# mode: org
# coding: utf-8-unix
# End:

If I copy this subtree (C-c C-x M-w) and then yank it (C-c C-x C-y) into into 
the same file or another file, only the headline is yanked, the rest of the 
subtree is not.

In addition, if I decide to delete a different headline in the file (C-c C-x 
C-w) while the LOCAL VARIABLES headline is folded, then this appears on the 
display:

* LOCAL VARIABLES...# Local Variables:
# mode: org
# coding: utf-8-unix
# End:

I don't know if these facts are relevant or not, but this behavior happens when 
org-indent-mode is both on and off, and I have org-tags-column set to 0.

The folding behavior is not big deal since S-TAB or something similar corrects 
everything, but it is inconvenient to have to use regular copy and yank 
commands when I want to copy the subtree to a different file. Can anyone 
provide some insight into this?

Scott Randby





Re: [O] Refiling Completion Systems

2019-02-08 Thread John Kitchin
You might look into using ivy or helm for completion. You can turn on
ivy-mode, for example and it redfines all the completing-read type
functions in Emacs so that it all uses the ivy way to do it. They are
kind of similar, but have some different philosophies and key-binding
approaches. I found helm first, and liked it, but over time have drifted
to ivy for almost everything.

Bernt Hansen  writes:

> Hi,
>
> I've been using org-mode for over ten years and at some point the ido
> completion for refiling went away -- probably when refiling functionalty
> was rewritten.  Is there a similar completion system available that I
> can use to locate my refile targets?  I really liked the ido search with
> incremental search refinement (C-SPC) of IDO to limit my targets until I
> find the one I want.
>
> I'm currently using
>
> (setq org-refile-use-outline-path t)
>
> but that isn't really working well when I don't remember the parent task
> heading :)
>
> I am currently using Org on Windows.
>
> GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17
> Org mode version 9.2.1 (release_9.2.1-195-gef1edf @ 
> c:/D-Drive/bin/org-mode/lisp/)
>
> Thanks for Org!
>
> Best regards,
> Bernt


--
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] Key bindings for Org export back-ends?

2019-02-08 Thread Jens Lechtenboerger
On 2019-02-08, at 06:51, Kaushal Modi wrote:

> On Fri, Feb 8, 2019, 3:28 AM Jens Lechtenboerger  wrote:
>
>> - org-reveal [3]: R
>> - org-re-reveal [4]: r (conflict with RSS)
>
> I see that org-re-reveal is based off org-reveal. So do you see a use case
> where people would `require' both org-reveal and org-re-reveal? If not,
> then using the same binding as that of org-reveal should be fine too.

I don’t recommend that but org-re-reveal should allow for a parallel
installation.  Therefore, I would like to bind a different key.

> I'm pretty sure there are many more Org backends out there. For example, I
> have a little ox-minutes backend that uses the M binding (and overrides the
> binding for ox-man, but that's fine for me as I don't use ox-man).
>
> We can start collecting a list of all Org backends on the Worg wiki. That's
> a good idea.

OK, let’s see whether additional input arrives.

> But doing so in order to not override the binding of some
> other backend might not be possible.

Fair enough.  At least some guidance will be given.

>> Or C-r?  So far, no back-end uses the
>> control key.  Any reasons not to do this?
>>
>
> You could probably use C-, but one has to ensure that it doesn't
> override the inbuilt bindings like C-s (C-c C-e C-s ..). Also, not sure if
> that override would actually be effective.

On my machine using "?\C-r" instead of "?r" as letter works,
(resulting in integer number 18 in org-export-registered-backends).
However, the Org Export Dispatcher shows "[^R]" as key, which is not
ideal.

Best wishes
Jens



[O] Bug: Description field of links in included files is not resolved correctly in HTML export. [9.2.1 (9.2.1-elpa @ c:/Program Files/emacs/share/emacs/26.1/site-lisp/elpa/org-9.2.1/)]

2019-02-08 Thread Dietrich Foethke
Description: I use a master org file "master.org" in a directory named
"foo" that includes another org file "other.org" stored in subdirectory
named "foo/bar". In the master file I include the other org file using:

#+INCLUDE: "./bar/other.org"

In "other.org" I include an image that is stored in a directory
"foo/bar/images". Later on I want to export "master.org" as HTML so I
use the trick from the manual to create a thumbnail view of my image in
the HTML page and show the full image when the image is clicked. To do
that I add the following line to "other.org":

[[file:./images/myImage.jpg][file:./images/myImageSmall.jpg]]

When I export "master.org" as HTML, the first link is resolved correctly
as "./bar/images/myImage.jpg" while the link in the description field
is included as is, i.e. as "./images/myImageSmall.jpg". Consequently the
small image is not found and is displayed on the HTML page.

D.

Emacs  : GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Package: Org mode version 9.2.1 (9.2.1-elpa @ c:/Program 
Files/emacs/share/emacs/26.1/site-lisp/elpa/org-9.2.1/)

current state:
==
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-html-format-inlinetask-function 
'org-html-format-inlinetask-default-function
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-reveal-start-hook '(org-decrypt-entry)
 org-mode-hook '(#[0 "\301\211.\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-all append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5] 
org-babel-result-hide-spec
 org-babel-hide-all-hashes)
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300.\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-export-backends '(ascii html icalendar latex odt org)
 org-ascii-format-drawer-function #[771 ".\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
 org-occur-hook '(org-first-headline-recenter)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("id" :follow org-id-open) ("eww" :follow eww :store 
org-eww-store-link)
   ("rmail" :follow org-rmail-open :store 
org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link 
:export org-irc-export)
   ("info" :follow org-info-open :export org-info-export 
:store org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("docview" :follow org-docview-open :export 
org-docview-export :store org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store 
org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export 
:complete org-bbdb-complete-link :store org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys") 
("file+emacs") ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link) ("file" :complete 
org-file-complete-link)
   ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" 
path ("help" :follow org--open-help-link)
   ("http" :follow (lambda (path) (browse-url (concat 
"http:" path
   ("https" :follow (lambda (path) (browse-url (concat 
"https:" path
   ("mailto" :follow (lambda (path) (browse-url (concat 
"mailto:; path
   ("news" :follow (lambda (path) (browse-url (concat 
"news:; path ("shell" :follow org--open-shell-link))
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 

Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Kaushal Modi
On Fri, Feb 8, 2019 at 10:48 AM Thomas S. Dye  wrote:

> One place for the list of key bindings might be here:
> https://orgmode.org/worg/exporters/index.html
>

That's a great idea! How about creating a single Org table with columns
like Name, Description, Binding, Core/Contributed, and then sort the rows
by the Binding column?

We can leave the obsolete exporters section separate as it is right now.


Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Thomas S. Dye

One place for the list of key bindings might be here:
https://orgmode.org/worg/exporters/index.html

All the best,
Tom


Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Jens Lechtenboerger
On 2019-02-08, at 06:51, Kaushal Modi wrote:

> On Fri, Feb 8, 2019, 3:28 AM Jens Lechtenboerger  wrote:
>
>> - org-reveal [3]: R
>> - org-re-reveal [4]: r (conflict with RSS)
>
> I see that org-re-reveal is based off org-reveal. So do you see a use case
> where people would `require' both org-reveal and org-re-reveal? If not,
> then using the same binding as that of org-reveal should be fine too.

I don’t recommend that but org-re-reveal should allow for a parallel
installation.  Therefore, I would like to bind a different key.

> I'm pretty sure there are many more Org backends out there. For example, I
> have a little ox-minutes backend that uses the M binding (and overrides the
> binding for ox-man, but that's fine for me as I don't use ox-man).
>
> We can start collecting a list of all Org backends on the Worg wiki. That's
> a good idea.

OK, let’s see whether additional input arrives.

> But doing so in order to not override the binding of some
> other backend might not be possible.

Fair enough.  At least some guidance will be given.

>> Or C-r?  So far, no back-end uses the
>> control key.  Any reasons not to do this?
>>
>
> You could probably use C-, but one has to ensure that it doesn't
> override the inbuilt bindings like C-s (C-c C-e C-s ..). Also, not sure if
> that override would actually be effective.

On my machine using "?\C-r" instead of "?r" as letter works,
(resulting in integer number 18 in org-export-registered-backends).
However, the Org Export Dispatcher shows "[^R]" as key, which is not
ideal.

Best wishes
Jens



[O] Refiling Completion Systems

2019-02-08 Thread Bernt Hansen
Hi,

I've been using org-mode for over ten years and at some point the ido
completion for refiling went away -- probably when refiling functionalty
was rewritten.  Is there a similar completion system available that I
can use to locate my refile targets?  I really liked the ido search with
incremental search refinement (C-SPC) of IDO to limit my targets until I
find the one I want.

I'm currently using

(setq org-refile-use-outline-path t)

but that isn't really working well when I don't remember the parent task
heading :)

I am currently using Org on Windows.

GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17
Org mode version 9.2.1 (release_9.2.1-195-gef1edf @ 
c:/D-Drive/bin/org-mode/lisp/)

Thanks for Org!

Best regards,
Bernt



Re: [O] Key bindings for Org export back-ends?

2019-02-08 Thread Kaushal Modi
On Fri, Feb 8, 2019, 3:28 AM Jens Lechtenboerger 
> - org-reveal [3]: R
> - org-re-reveal [4]: r (conflict with RSS)
>

I see that org-re-reveal is based off org-reveal. So do you see a use case
where people would `require' both org-reveal and org-re-reveal? If not,
then using the same binding as that of org-reveal should be fine too.


Where could we document the resulting list?
>

I'm pretty sure there are many more Org backends out there. For example, I
have a little ox-minutes backend that uses the M binding (and overrides the
binding for ox-man, but that's fine for me as I don't use ox-man).

We can start collecting a list of all Org backends on the Worg wiki. That's
a good idea. But doing so in order to not override the binding of some
other backend might not be possible.

I’m thinking of changing org-re-reveal to p (for presentation) or v
> (as occurring letter).


What about R as I suggested above?

  Or C-r?  So far, no back-end uses the
> control key.  Any reasons not to do this?
>

You could probably use C-, but one has to ensure that it doesn't
override the inbuilt bindings like C-s (C-c C-e C-s ..). Also, not sure if
that override would actually be effective.

>


[O] Dokuwiki backend ?

2019-02-08 Thread FAb
Hi,

Is there a discussion why there is no more export to dokuwiki ? (Or
someone will be nice to sum it up to me ?)

I'm sad, I have a lot of documentation to write and share in a dokuwiki.

Thank you

FAb




Re: [O] Arithmetic range error

2019-02-08 Thread Colin Baxter
> "Kyle" == Kyle Meyer  writes:

Kyle> Nicolas Goaziou  writes:
>> Colin Baxter  writes:
>> 
>>> I can now confirm that if the above commit is reversed then my
>>> Arithmetic range error disappears.
>>> 
>>> diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index
>>> d9fc8d2..2144aa1 100644 --- a/lisp/ox-publish.el +++
>>> b/lisp/ox-publish.el @@ -1366,7 +1366,9 @@ does not exist."
>>> (expand-file-name (or (file-symlink-p file) file)
>>> (file-name-directory file) (if (not attr) (error "No such
>>> file: \"%s\"" file) - (floor (float-time
>>> (file-attribute-modification-time attr)) + (+ (ash (car (nth
>>> 5 attr)) 16) + (cadr (nth 5 attr)) +;; (floor (float-time
>>> (file-attribute-modification-time attr))
>> 
>> I think it is worth reporting it to Emacs devel list, because the
>> commented code doesn't look wrong.

Kyle> And in the report it'd be good to include some of the
Kyle> information asked for elsewhere in this thread (full
Kyle> backtrace, system details) as well as a recipe to reproduce.
Kyle> I haven't had any luck triggering the issue, but that's
Kyle> unsurprisingly given that the code looks correct and the
Kyle> number reported in the error isn't extreme:

Kyle> (floor 1549541220.7500212) ; => 1549541220
Kyle> (format-time-string "%Y-%m-%d %I:%M:%S" (seconds-to-time
Kyle> 1549541220.7500212)) ; => "2019-02-07 07:07:00"

With a very inelegant ECM below, I can reproduce the arithmetic range
error in emacs-26.1 but not in the development emacs-27.0.50. I have
tested the ECM on machines running Debian 3.16.0-7-686-pae and
4.9.0-8-686-pae, with the same results.

1. emacs -Q 

2. We need a directory for testing. This ECM uses ~/temp.

3. In the scratch buffer, evaluate the following:

#+begin_src emacs-lisp
(add-to-list 'load-path (expand-file-name "~/path/to/git/org-mode/lisp"))
#+end_src

#+begin_src emacs-lisp
(setq org-publish-project-alist
  '(("org"
 :base-directory "~/temp/"
 :publishing-directory "~/temp"
 :publishing-function org-html-publish-to-html)))
#+end_src

4. Create file ~/temp/test.org.

5. Enter some text (e.g. This is a test) in test.org and save file.

6. M-x org-publish-current-file .

7. A satisfactory ~/temp/test.html is produced.

8. emacs-26.1 gives 'org-publish-cache-ctime-of-src: Arithmetic range error'.

9. emacs-27.0.50 gives no arithmetic range error.

10. Also no errors are produced if emacs-26.1 and emacs-27.0.50 use only
their generic org-modes, namely 'release_9.1.9-65-g5e4542'.

I hope to post a report to emacs-dev later today.

Best wishes,

-- 
Colin Baxter
m43...@yandex.com



[O] Mutually-exclusive Org tags still inherit each other

2019-02-08 Thread Tina Russell
First of all, I want to say that I really appreciate Org Mode, I wouldn’t
be using Emacs without it, and it’s where I spend the vast majority of my
time in Emacs. Thank you all!

So, according to the Org documentation: “You can also group together tags
that are mutually exclusive by using braces … Selecting a tag in a group of
mutually exclusive tags will turn off any other tags from that group.

But, if I do this…

#+TAGS: { place(c) container(c) object(o) }

* Room :place:
** Box :container:
*** Toy :object:

…and then use (org-get-tags) on “Toy,” it reports that it has the tags
“place”, “container”, and “object”, even though these tags are all defined
to be mutually exclusive! This is a problem, since turning off tag
inheritance (for a document or for specific tags) seems to be an
all-or-nothing affair. That means if I wanted to do this:

* Room :place:
** Bookcase
** Dresser
** Desk
** Nightstand
** Closet
*** Box :container:
 Toy :object:

…and then search for all headings with the tag “place,” either (with tag
inheritance) everything, including “Box” and “Toy,” will be returned, or
(without tag inheritance) only “Room” would be returned. (I could put a tag
on every heading where I want it inherited, but that would both defeat the
purpose of inheritance and make it difficult to manage large trees.)

I can’t find any solutions to this online, so I’m posting this here. I hope
it can get fixed. Thank you!

—Tina


[O] Key bindings for Org export back-ends?

2019-02-08 Thread Jens Lechtenboerger
Hi there,

I need to assign a key to an Org export back-end.  My first attempt
ended in a conflict, so I’d like to collect a (full?) list.

Built-in
- iCalendar: c
- HTML: h
- Texinfo: i
- LaTeX and Beamer: l
- Man: M
- Markdown: m
- ODT: o
- Org: O
- Publish: P
- Plain text: t

Contrib (ox-bibtex, ox-extra, ox-confluence without keys):
- Deck.js: d
- Freemind: f
- Groff: g
- Taskjuggler: J
- KOMA: k
- RSS: r
- s5: s

Other:
- ox-hugo [1]: H
- org-opml [2]: m (conflict with Markdown)
- org-reveal [3]: R
- org-re-reveal [4]: r (conflict with RSS)
- ox-rst [5]: r (conflict with RSS)
- ox-slimhtml [6]: s (conflict with s5)

So, these keys are taken:
c, d, f, g, h, H, i, J, k, l, M, m, o, O, P, R, r, s, t

Besides, SPC, DEL, C-a, C-b, C-f, C-n, C-p, C-s, C-v are taken.

Anyone with additional back-ends and keys?  Where could we document
the resulting list?

I’m thinking of changing org-re-reveal to p (for presentation) or v
(as occurring letter).  Or C-r?  So far, no back-end uses the
control key.  Any reasons not to do this?

Best wishes
Jens


[1] https://ox-hugo.scripter.co/
[2] https://github.com/org-opml/org-opml
[3] https://github.com/yjwen/org-reveal
[4] https://gitlab.com/oer/org-re-reveal
[5] https://github.com/msnoigrs/ox-rst
[6] https://github.com/balddotcat/ox-slimhtml