[O] clock start time is gone

2017-06-05 Thread Samuel Wales
recent maint.

just wondering what i could be doing wrong.

it is /usually/ the case that i get clock start tmie is gone when i
try to clock out.
it isn't gone.  so i do org-clock-cancel, which is slow.  this leaves
the start time.

so i do org-clock-in, which presents me with all the options.  i
choose K because i want to be clocked out.

but it ignores the K and keeps me clocked in.

so i clock out.  btw, clocking out is slow.
org-clock-remove-empty-clock-drawer takes up 95% of the time.

and this leaves me with a correct clock line and a new clock line with
0 time on it.

so then i have to kill the new clock line.

what i'd prefer is for clocking out to just work and be fast, without
extra actions required.  clearly i am doing something wrong.

-- 
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] org to static site?

2017-06-05 Thread Scott Randby
On 06/05/2017 05:16 PM, Nick Dokos wrote:
> Scott Randby  writes:
> 
>> On 06/05/2017 01:59 AM, John Ankarström wrote:
>>> On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby  
>>> wrote:

 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
>>>
>>> Sounds interesting.
>>>
>>> Do you have any way to generate an index page for your blog?
>>
>> I have an idea about how to generate an index page, but I haven't had
>> time to work out the details. Instead, since it isn't much work, I will
>> add entries by hand to an index page. I don't have an index page right
>> now because it isn't useful for my students.
>>
>> Actually, my site isn't a blog, it is for the classes I teach. I post
>> class notes, class audio, and other items for each class. What I like
>> about using my own site for teaching is that students don't need to log
>> into a learning management system to get the lessons. I've also designed
>> the site so that it works well on mobile devices (which is why the
>> design is very simple). Below is a link to the site I used for one of my
>> courses last semester and a link to a page containing some templates and
>> notes for things I didn't use last semester but might use in the future.
>> I don't have my source code posted anywhere yet, but I'm thinking about
>> setting up a Git repository somewhere as soon as I get a better grasp of
>> Git. Well, I'm also not sure if anyone else cares about such simple code.
>>
> 
> You'd be surprised :-) I think there is a *need* for simple code, the simpler
> the better. If I can do anything to push you along, let me know!

Okay, I consider your comment a push. My two obstacles are time and weak
understanding of Git. I will work on overcoming both.

> 
>> http://srandby.org/2017-1/356-001/home.html
>>
>> http://srandby.org/lesson-examples/lessons.html
>>
>> Org is amazing. I don't know elisp, I'm certainly not an advanced user
>> of Emacs, and I don't know how to do that really sophisticated Org stuff
>> that others talk about on this list, but I can make a functional web
>> site with Org without trouble by using the basic export functions.
>> Adding new pages, editing old pages, and updating is trivial. I know a
>> lot of people who use Markdown and static site generators, but Org is
>> much better for my purposes. And I can use it for many other things too.
>> Sorry for this unnecessary rant, but I just love Org.
>>
> 
> Can this paragraph please be added to http://orgmode.org/worg/org-quotes.html?
> It certainly added a smile to my day.

Sure, it can be added. I'm glad you liked it.

Scott Randby

> 




Re: [O] org to static site?

2017-06-05 Thread Nick Dokos
Scott Randby  writes:

> On 06/05/2017 01:59 AM, John Ankarström wrote:
>> On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby  wrote:
>>>
>>> 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
>> 
>> Sounds interesting.
>> 
>> Do you have any way to generate an index page for your blog?
>
> I have an idea about how to generate an index page, but I haven't had
> time to work out the details. Instead, since it isn't much work, I will
> add entries by hand to an index page. I don't have an index page right
> now because it isn't useful for my students.
>
> Actually, my site isn't a blog, it is for the classes I teach. I post
> class notes, class audio, and other items for each class. What I like
> about using my own site for teaching is that students don't need to log
> into a learning management system to get the lessons. I've also designed
> the site so that it works well on mobile devices (which is why the
> design is very simple). Below is a link to the site I used for one of my
> courses last semester and a link to a page containing some templates and
> notes for things I didn't use last semester but might use in the future.
> I don't have my source code posted anywhere yet, but I'm thinking about
> setting up a Git repository somewhere as soon as I get a better grasp of
> Git. Well, I'm also not sure if anyone else cares about such simple code.
>

You'd be surprised :-) I think there is a *need* for simple code, the simpler
the better. If I can do anything to push you along, let me know!

> http://srandby.org/2017-1/356-001/home.html
>
> http://srandby.org/lesson-examples/lessons.html
>
> Org is amazing. I don't know elisp, I'm certainly not an advanced user
> of Emacs, and I don't know how to do that really sophisticated Org stuff
> that others talk about on this list, but I can make a functional web
> site with Org without trouble by using the basic export functions.
> Adding new pages, editing old pages, and updating is trivial. I know a
> lot of people who use Markdown and static site generators, but Org is
> much better for my purposes. And I can use it for many other things too.
> Sorry for this unnecessary rant, but I just love Org.
>

Can this paragraph please be added to http://orgmode.org/worg/org-quotes.html?
It certainly added a smile to my day.

-- 
Nick




Re: [O] No operator defined for property header-args

2017-06-05 Thread Nicolas Goaziou
Hello,

Kevin Foley  writes:

> I'm getting the error "No operator defined for property header-args" when
> trying to run `org-property-action` on the `header-args` property below:
>
> * outline header
> :PROPERTIES:
> :header-args:bash::tangle yes
> :END:
>
> I'm able to set the same properties using
>
> #+PROPERTY: header-args:bash :tangle yes
>
> I've tried running `emacs -Q` and get the same error.  I'm using
> org-version is 9.0.7

I'm not able to reproduce it. Could you post an ECM and a backtrace?

Regards,

-- 
Nicolas Goaziou



Re: [O] org to static site?

2017-06-05 Thread Scott Randby
On 06/05/2017 01:59 AM, John Ankarström wrote:
> On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby  wrote:
>>
>> 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
> 
> Sounds interesting.
> 
> Do you have any way to generate an index page for your blog?

I have an idea about how to generate an index page, but I haven't had
time to work out the details. Instead, since it isn't much work, I will
add entries by hand to an index page. I don't have an index page right
now because it isn't useful for my students.

Actually, my site isn't a blog, it is for the classes I teach. I post
class notes, class audio, and other items for each class. What I like
about using my own site for teaching is that students don't need to log
into a learning management system to get the lessons. I've also designed
the site so that it works well on mobile devices (which is why the
design is very simple). Below is a link to the site I used for one of my
courses last semester and a link to a page containing some templates and
notes for things I didn't use last semester but might use in the future.
I don't have my source code posted anywhere yet, but I'm thinking about
setting up a Git repository somewhere as soon as I get a better grasp of
Git. Well, I'm also not sure if anyone else cares about such simple code.

http://srandby.org/2017-1/356-001/home.html

http://srandby.org/lesson-examples/lessons.html

Org is amazing. I don't know elisp, I'm certainly not an advanced user
of Emacs, and I don't know how to do that really sophisticated Org stuff
that others talk about on this list, but I can make a functional web
site with Org without trouble by using the basic export functions.
Adding new pages, editing old pages, and updating is trivial. I know a
lot of people who use Markdown and static site generators, but Org is
much better for my purposes. And I can use it for many other things too.
Sorry for this unnecessary rant, but I just love Org.

Scott

> 
> - John
> 
> 




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

2017-06-05 Thread B.V. Raghav
"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] newbye questions

2017-06-05 Thread Eric Abrahamsen
François Patte  writes:

> Le 05/06/2017 à 12:07, Eric Abrahamsen a écrit :
>> François Patte  writes:
>> 
>>> Le 05/06/2017 à 01:33, Eric Abrahamsen a écrit :
 François Patte  writes:

> Bonjour,
>
> Ijust discovered org-mode for emacs and I want to explore the
> capabilities of this mode for LaTeX documents.
>
> I have a few preliminary questions:
>
> 1- I installed org-mode from ELPA and I get a warning message when I
> open a *.org file:
>
> Eager macro-expansion failure: (error "Autoloading failed to define
> function nnir-article-group")
>
> What does it mean and how to get rid of this message.

 That's a macro from Gnus, the mail/news client. I'm not quite sure why
 it would be getting triggered from Org. Would you run
 `toggle-debug-on-error', and trigger the warning again?
>>>
>>> I don't know much with the lisp syntax; here is what I have done:
>>> opened emacs,
>>> M-x  toggle-debug-on-error RET
>>> C-f file.org
>>>
>>> And the message is still there
>>>
>>> This message does not appear if I open file without the .org extension.
>> 
>> Sorry -- of course it's a *warning*, not an error.
>> 
>> My only guess is that this is caused by the call to `nnir-article-group'
>> inside `org-gnus-store-link' in the file org-gnus.el. That file has
>> 
>> (eval-when-compile (require 'gnus-sum))
>> 
>> And gnus-sum.el has:
>> 
>> (autoload 'nnir-article-group "nnir" nil nil 'macro)
>> 
>> So theoretically that should take care of it.
>> 
>> What version of Emacs are you using?
>
> 25.2.1
>
> and org-mode version: 9.0.7 (from elpa)

I'm sorry, I just don't know enough about how Emacs loads and evaluates
these forms to tell you what's going wrong. The nnir macro should
definitely be available in your setup. I don't even know why loading
that Org library would make it complain.

Hopefully someone with more experience can take it from here. Sorry!

E




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

2017-06-05 Thread Nick Dokos
"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-insert-heading "hello")

2017-06-05 Thread John Kitchin
arg is for the prefix arg.You want this:

(org-insert-heading)
(insert "hello")

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 Mon, Jun 5, 2017 at 12:55 AM,  wrote:

>
> (org-insert-heading "hello") emacs lisp function ignores argument and
> inserts blank heading.
>
> I think is a change of mode to add the argument but which command.
>
>
>


Re: [O] Org-mode link returned path is truncated when contains space

2017-06-05 Thread numbch...@gmail.com
I checked Org-mode package version with `org-version`, get `9.0.7`, still
have this issue. I updated to latest org-mode ELPA version.

[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 Wed, May 31, 2017 at 10:06 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> "numbch...@gmail.com"  writes:
>
> > I have a link in org-moe file like this:
> >
> >  #+BEGIN_SRC org
> >  [[file:Data/images/logos/Full color Git logo for light backgrounds.png]]
> >  #+END_SRC
> >
> >
> >  *The file did exist.*
> >
> >  I have elisp code like this to fontify link when the file does not
> exist:
> >
> >  #+BEGIN_SRC emacs-lisp
> >  (org-link-set-parameters
> >   "file"
> >   ;; TODO: fix path contains space case.
> >   :face (lambda (path) (if (file-exists-p path) 'org-link 'org-warning)))
> >  #+END_SRC
> >
> >
> >  But it is fontied as red. I tried to debug info by print of ~path~ in
> > upper `org-link-set-parameters` lambda function.
> >
> >  It return for path:
> >
> >  #+BEGIN_EXAMPLE
> >  "Data/images/logos/Full"
> >  #+END_EXAMPLE
>
> Could you update Org to a more recent version, e.g., 9.0.7. It may have
> been fixed already.
>
> Regards,
>
> --
> Nicolas Goaziou
>


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

2017-06-05 Thread numbch...@gmail.com
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.


[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/


[O] No operator defined for property header-args

2017-06-05 Thread Kevin Foley
I'm getting the error "No operator defined for property header-args" when
trying to run `org-property-action` on the `header-args` property below:

* outline header
:PROPERTIES:
:header-args:bash::tangle yes
:END:

I'm able to set the same properties using

#+PROPERTY: header-args:bash :tangle yes

I've tried running `emacs -Q` and get the same error.  I'm using
org-version is 9.0.7


Re: [O] newbye questions

2017-06-05 Thread François Patte
Le 05/06/2017 à 12:07, Eric Abrahamsen a écrit :
> François Patte  writes:
> 
>> Le 05/06/2017 à 01:33, Eric Abrahamsen a écrit :
>>> François Patte  writes:
>>>
 Bonjour,

 Ijust discovered org-mode for emacs and I want to explore the
 capabilities of this mode for LaTeX documents.

 I have a few preliminary questions:

 1- I installed org-mode from ELPA and I get a warning message when I
 open a *.org file:

 Eager macro-expansion failure: (error "Autoloading failed to define
 function nnir-article-group")

 What does it mean and how to get rid of this message.
>>>
>>> That's a macro from Gnus, the mail/news client. I'm not quite sure why
>>> it would be getting triggered from Org. Would you run
>>> `toggle-debug-on-error', and trigger the warning again?
>>
>> I don't know much with the lisp syntax; here is what I have done:
>> opened emacs,
>> M-x  toggle-debug-on-error RET
>> C-f file.org
>>
>> And the message is still there
>>
>> This message does not appear if I open file without the .org extension.
> 
> Sorry -- of course it's a *warning*, not an error.
> 
> My only guess is that this is caused by the call to `nnir-article-group'
> inside `org-gnus-store-link' in the file org-gnus.el. That file has
> 
> (eval-when-compile (require 'gnus-sum))
> 
> And gnus-sum.el has:
> 
> (autoload 'nnir-article-group "nnir" nil nil 'macro)
> 
> So theoretically that should take care of it.
> 
> What version of Emacs are you using?

25.2.1

and org-mode version: 9.0.7 (from elpa)


-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte



signature.asc
Description: OpenPGP digital signature


Re: [O] newbye questions

2017-06-05 Thread Eric Abrahamsen
François Patte  writes:

> Le 05/06/2017 à 01:33, Eric Abrahamsen a écrit :
>> François Patte  writes:
>> 
>>> Bonjour,
>>>
>>> Ijust discovered org-mode for emacs and I want to explore the
>>> capabilities of this mode for LaTeX documents.
>>>
>>> I have a few preliminary questions:
>>>
>>> 1- I installed org-mode from ELPA and I get a warning message when I
>>> open a *.org file:
>>>
>>> Eager macro-expansion failure: (error "Autoloading failed to define
>>> function nnir-article-group")
>>>
>>> What does it mean and how to get rid of this message.
>> 
>> That's a macro from Gnus, the mail/news client. I'm not quite sure why
>> it would be getting triggered from Org. Would you run
>> `toggle-debug-on-error', and trigger the warning again?
>
> I don't know much with the lisp syntax; here is what I have done:
> opened emacs,
> M-x  toggle-debug-on-error RET
> C-f file.org
>
> And the message is still there
>
> This message does not appear if I open file without the .org extension.

Sorry -- of course it's a *warning*, not an error.

My only guess is that this is caused by the call to `nnir-article-group'
inside `org-gnus-store-link' in the file org-gnus.el. That file has

(eval-when-compile (require 'gnus-sum))

And gnus-sum.el has:

(autoload 'nnir-article-group "nnir" nil nil 'macro)

So theoretically that should take care of it.

What version of Emacs are you using?

I really don't know why this would be happening (I'm not very good at
debugging compile/load errors), but I'll bet the above is the source of
the problem.

Eric





Re: [O] newbye questions

2017-06-05 Thread François Patte
Le 05/06/2017 à 01:33, Eric Abrahamsen a écrit :
> François Patte  writes:
> 
>> Bonjour,
>>
>> Ijust discovered org-mode for emacs and I want to explore the
>> capabilities of this mode for LaTeX documents.
>>
>> I have a few preliminary questions:
>>
>> 1- I installed org-mode from ELPA and I get a warning message when I
>> open a *.org file:
>>
>> Eager macro-expansion failure: (error "Autoloading failed to define
>> function nnir-article-group")
>>
>> What does it mean and how to get rid of this message.
> 
> That's a macro from Gnus, the mail/news client. I'm not quite sure why
> it would be getting triggered from Org. Would you run
> `toggle-debug-on-error', and trigger the warning again?

I don't know much with the lisp syntax; here is what I have done:
opened emacs,
M-x  toggle-debug-on-error RET
C-f file.org

And the message is still there

This message does not appear if I open file without the .org extension.


-- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte



signature.asc
Description: OpenPGP digital signature


[O] (org-insert-heading "hello")

2017-06-05 Thread f . nikolakopoulos


(org-insert-heading "hello") emacs lisp function ignores argument and 
inserts blank heading.


I think is a change of mode to add the argument but which command.




Re: [O] org to static site?

2017-06-05 Thread John Ankarström
On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby  wrote:
> 
> 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

Sounds interesting.

Do you have any way to generate an index page for your blog?

- John