Re: org-clock idle time in pgtk Emacs

2023-02-02 Thread Julien Cubizolles
idle_time import IdleMonitor monitor = IdleMonitor.get_monitor() print(f"{1000*monitor.get_idle_time():.0f}") --8<---cut here---end--->8--- -- Julien Cubizolles

Re: org-clock idle time in pgtk Emacs

2023-01-31 Thread Julien Cubizolles
dle-seconds)) ((and (eq window-system 'x) org-x11idle-exists-p) (org-x11-idle-seconds)) + ((and (eq window-system 'pgtk) org-pgtkidle-exists-p) +(org-pgtk-idle-seconds)) (t (org-emacs-idle-seconds > Please, make sure that the pgtk option works on Wayland as well (or not, > but we will then need to wait until someone tests the patch on Wayland). It's working in Wayland, with a pgtk build. -- Julien Cubizolles

Re: org-x11idle-exists-p with emacs --daemon

2022-10-28 Thread Julien Cubizolles
rks both in a X11 and in a wayland session (provided your org-clock-x11idle-program-name works in both, mine does). There is another use of window-sytem in the org-mode source, namely in org-get-x-clipboard in org-compat.el, but I don't know if it's safe to make the switch there. -- Julien Cubizolles

org-x11idle-exists-p with emacs --daemon

2022-10-27 Thread Julien Cubizolles
actually), and org-x11idle-exists-p relies on (eq window-system 'x) which is somehow not set in the terminal when the daemon. For the time being, it manually set org-x11idle-exists-p to true but shouldn't all this tests on (eq-window-system) be run each time a new frame is created ? -- Julien

Font-locking lost when using some local variables

2022-08-02 Thread Julien Cubizolles
art->8--- # -*- buffer-auto-save-file-name: nil -*- * Test ** Hello --8<---cut here---end--->8--- -- Julien Cubizolles

org-clock idle time in pgtk Emacs

2022-05-24 Thread Julien Cubizolles
from idle_time import IdleMonitor monitor = IdleMonitor.get_monitor() print(f"{1000*monitor.get_idle_time():.0f}") --8<---cut here-------end--->8--- -- Julien Cubizolles

run org-clock-load after org-revert-all-org-buffers ?

2022-01-25 Thread Julien Cubizolles
advising org-revert-all-org-buffers? -- Julien Cubizolles

Re: reevaluating org-x11idle-exists-p with new org-clock-x11idle-program-name

2021-05-26 Thread Julien Cubizolles
Julien Cubizolles writes: > Tim Cross writes: > >> Julien Cubizolles writes: >> >>> I'm using a custom python program to display x11 idle time. I've set >>> org-clock-x11idle-program-name accordingly but org-x11idle-exists-p is >>> still nil. I'm g

Re: reevaluating org-x11idle-exists-p with new org-clock-x11idle-program-name

2021-05-25 Thread Julien Cubizolles
Tim Cross writes: > Julien Cubizolles writes: > >> I'm using a custom python program to display x11 idle time. I've set >> org-clock-x11idle-program-name accordingly but org-x11idle-exists-p is >> still nil. I'm guessing it's defvar'ed in org-clock.el before >>

reevaluating org-x11idle-exists-p with new org-clock-x11idle-program-name

2021-05-24 Thread Julien Cubizolles
indeed sets it to t. I could do (setq org-x11idle-exists-p t) but there must be a better way to handle the definition of a new org-clock-x11idle-program-name. -- Julien Cubizolles

Remove old clock entries

2021-02-28 Thread Julien Cubizolles
older ones or better, removing the entries older than some date. Is there some variable to that effect ? -- Julien Cubizolles

removal of org-maybe-keyword-time-regexp

2020-03-11 Thread Julien Cubizolles
I'm using org-caldav (https://github.com/dengste/org-caldav/) to synchronize the calendar on my Android phone and Org. Recently this synchronization stopped working because org-caldav relies on org-maybe-keyword-time-regexp that has been dropped from Org. As a workaround, could this variable be

Re: [O] folding columns/rows in tables

2018-03-27 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> I have some long tables with wide cells that are not easy to scroll >> through. It would be convenient to fold some columns or rows. Has >

[O] folding columns/rows in tables

2018-03-27 Thread Julien Cubizolles
I have some long tables with wide cells that are not easy to scroll through. It would be convenient to fold some columns or rows. Has someone managed it ? Julien.

Re: [O] #+bind options ignored during async export

2018-03-27 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > I don't think it is related. Maybe `org-export-allow-bind-keywords' is > nil in your async configuration. You're right, it was nil. When it is set, #+BIND

[O] #+bind options ignored during async export

2018-03-26 Thread Julien Cubizolles
The options specified by #+ keywords are set during asynchronous export whereas those specified by the #+BIND: method aren't. In the following example, org-latex-image-default-width is set to .25\linewidth only in synchronous export whereas the author is set regardless of the type of export.

Re: [O] org-latex-image-default-width ignored

2018-03-26 Thread Julien Cubizolles
Eric S Fraga <esfli...@gmail.com> writes: > On Sunday, 25 Mar 2018 at 09:52, Julien Cubizolles wrote: >> Found the cause of the problem, my default configuration exports in >> async mode, so this variable should be set in >> org-export-async-init.el. >> >>

Re: [O] org-latex-image-default-width ignored

2018-03-25 Thread Julien Cubizolles
Eric S Fraga <esfli...@gmail.com> writes: > On Saturday, 24 Mar 2018 at 16:20, Julien Cubizolles wrote: >> I'd like all inline images resized during beamer and latex export. I >> tried setting org-latex-image-default-width to ".3\\linewidth" but after >

[O] org-latex-image-default-width ignored

2018-03-24 Thread Julien Cubizolles
hicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \author{Julien Cubizolles} \date{\today} \title{} \hypersetup{ pd

Re: [O] Different kinds of enumerate in the same latex export

2017-09-05 Thread Julien Cubizolles
Eric S Fraga <esfli...@gmail.com> writes: > On Tuesday, 5 Sep 2017 at 11:41, Julien Cubizolles wrote: >> Does orgmode allow to pass some properties to a list that could be used >> to alter its format ? > > Try maybe: > > #+attr_latex: :environment plickers > 1

[O] Different kinds of enumerate in the same latex export

2017-09-05 Thread Julien Cubizolles
I have to use two different enumerate items in the same document, one numbered (the default enumerate) and the other one ordered alphabetically (which I will now call "plickers"). In my LaTeX class, I've defined the "plickers" environment --8<---cut

Re: [O] tags-todo error with #+FILETAGS: inheritance

2017-08-16 Thread Julien Cubizolles
Just correcting an error in the title to something more relevant. > When an entry inherits a tag from a #+FILETAGS: line, all its parents > get matched by a tags-todo agenda, even when they don't have a todo > keyword. > > Consider the following: > > --8<---cut

[O] tags-todo error with #+FILETAGS: enseignement

2017-08-16 Thread Julien Cubizolles
When an entry inherits a tag from a #+FILETAGS: line, all its parents get matched by a tags-todo agenda, even when they don't have a todo keyword. Consider the following: --8<---cut here---start->8--- (setq org-agenda-files

Re: [O] Can't remove deadline or schedule in bulk mode

2017-08-15 Thread Julien Cubizolles
Kyle Meyer <k...@kyleam.com> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Julien Cubizolles <j.cubizol...@free.fr> writes: >> >>> Kyle Meyer <k...@kyleam.com> writes: >>> >>> >>>> Since you have t

Re: [O] Can't remove deadline or schedule in bulk mode

2017-08-14 Thread Julien Cubizolles
Julien Cubizolles <j.cubizol...@free.fr> writes: > Kyle Meyer <k...@kyleam.com> writes: > > >> Since you have the git repo set up and have a good/bad range, you can use >> git bisect to find the offending commit. I finally found t

Re: [O] Can't remove deadline or schedule in bulk mode

2017-08-14 Thread Julien Cubizolles
Kyle Meyer writes: > Since you have the git repo set up and have a good/bad range, you can use > git bisect to find the offending commit. I'm having trouble using setting it up. To go back to a previous state using magit, I'm * choosing a commit in the log view of

Re: [O] remove TODO state in agenda view

2017-08-11 Thread Julien Cubizolles
Adam Porter <a...@alphapapa.net> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Got it: the problem occurs when trying to clear the TODO state of >> several entries through a bulk action: >> >> * mark several entries >> >> *

Re: [O] Can't remove deadline or schedule in bulk mode

2017-08-11 Thread Julien Cubizolles
Adam Porter <a...@alphapapa.net> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> In an agenda buffer, C-u B d should clear the deadline of the entries >> marked the way C-u does on a single entry. I think it's what it used to >> do some time a

Re: [O] remove TODO state in agenda view

2017-08-10 Thread Julien Cubizolles
Julien Cubizolles <j.cubizol...@free.fr> writes: > Adam Porter <a...@alphapapa.net> writes: > >> Julien Cubizolles <j.cubizol...@free.fr> writes: >> >>> Choosing "space" when changing the TODO state of an entry with C-c C-t >>>

[O] Can't remove deadline or schedule in bulk mode

2017-08-10 Thread Julien Cubizolles
In an agenda buffer, C-u B d should clear the deadline of the entries marked the way C-u does on a single entry. I think it's what it used to do some time ago. Instead, I get: --8<---cut here---start->8--- org-agenda-deadline: Invalid function: 4

Re: [O] org-agenda time grid broken ?

2017-08-06 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Did I miss an important change to the way org-agenda-files is to be >> used ? > > It is probably related to the change in `org-agenda-tim

[O] org-agenda time grid broken ?

2017-08-05 Thread Julien Cubizolles
I noticed today (I hadn't used it in a long time) that the today and/or time-grid view in the agenda seems broken. With emacs -Q running Org mode version 9.0.9 (release_9.0.9 @ /usr/share/emacs/26.0.50/lisp/org/) (setq org-agenda-files '("~/tmp/test-org/todo.org")) todo.org

Re: [O] helm-org-agenda-files-headings and bulk actions in agenda mode

2017-08-04 Thread Julien Cubizolles
Adam Porter <a...@alphapapa.net> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> helm-org-agenda-files-headings, used with helm-org-format-outline-path >> is very convenient for choosing entries when refiling one individual >> entry. I couldn'

Re: [O] remove TODO state in agenda view

2017-08-04 Thread Julien Cubizolles
Adam Porter <a...@alphapapa.net> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Choosing "space" when changing the TODO state of an entry with C-c C-t >> in an org buffer clears the TODO state. However it doesn't work in the >&

Re: [O] remove TODO state in agenda view

2017-08-04 Thread Julien Cubizolles
Adam Porter <a...@alphapapa.net> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Choosing "space" when changing the TODO state of an entry with C-c C-t >> in an org buffer clears the TODO state. However it doesn't work in the >&

[O] remove TODO state in agenda view

2017-08-04 Thread Julien Cubizolles
Choosing "space" when changing the TODO state of an entry with C-c C-t in an org buffer clears the TODO state. However it doesn't work in the agenda view. How can I clear the TODO state in agenda view, possibly in bulk-mode ? Julien.

[O] helm-org-agenda-files-headings and bulk actions in agenda mode

2017-08-04 Thread Julien Cubizolles
helm-org-agenda-files-headings, used with helm-org-format-outline-path is very convenient for choosing entries when refiling one individual entry. I couldn't get it to refile *several* entries at once. I tried + marking entries with C-space in helm-org-agenda-files-headings, moving to another

Re: [O] Donating money to mobile org.

2017-08-01 Thread Julien Cubizolles
Rasmus writes: > I am not sure Mobileorg for android is still developed. According to https://github.com/matburt/mobileorg-android/commit/646cec8c82c77b02134b0fc01407859e1d31fa7d, it's not anymore.

Re: [O] org-publish-attachment doesn't follow symbolic links anymore

2017-05-26 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> I'm using symbolic links in a directory managed by >> org-publish-attachment. As of a few weeks ago, org-publish-attachment >> doesn't up

[O] org-publish-attachment doesn't follow symbolic links anymore

2017-05-23 Thread Julien Cubizolles
I'm using symbolic links in a directory managed by org-publish-attachment. As of a few weeks ago, org-publish-attachment doesn't upload the files linked to to the ftp server like it used to. There is no error message, only: --8<---cut here---start->8--- Copying

Re: [O] Is there a *Org PDF LaTeX Output* buffer ?

2016-10-03 Thread Julien Cubizolles
Nick Dokos writes: > No, it should be present: it is created when you export to PDF through > LaTeX (it is created by org-latex-compile which is called by > org-latex-export-to-pdf). I just tried a (successful, but I don't > think it matters) export and was able to visit it

[O] Is there a *Org PDF LaTeX Output* buffer ?

2016-09-30 Thread Julien Cubizolles
When an export from org to pdf fails, the error message refers to a *Org PDF LaTeX Output* buffer that doesn't seem to have been created on my setup. Is it an old message from a previous behaviour long gone ? Julien.

Re: [O] new syntax of completion and preparation functions for publishing

2016-06-24 Thread Julien Cubizolles
Arun Isaac writes: > In general, the preparation function having access to project-plist is a > very useful feature. Many a time, it avoids the need to get the plist > indirectly by accessing org-publish-project-alist or by some other means. I've never played with

[O] new syntax of completion and preparation functions for publishing

2016-06-24 Thread Julien Cubizolles
According to ORG-NEWS: "Preparation and completion functions are now called with an argument, which is the project property list. It used to be dynamically scoped through the ~project-plist~ variable." I'd like to try to improve on my configuration of projects but I'm unsure hot to use this new

Re: [O] New Beamer environment selection problem

2016-05-16 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> I'm still experiencing this problem with the following example >> >> #+BEGIN_SRC elisp >> (add-to-list 'load-path "~/git-repo

Re: [O] New Beamer environment selection problem

2016-05-12 Thread Julien Cubizolles
Nicolas Goaziou writes: > Would the following patch solve the issue? I'm still experiencing this problem with the following example --8<---cut here---start->8--- #+BEGIN_SRC elisp (add-to-list 'load-path

[O] org-ref breaks org-repair-export-blocks

2016-05-11 Thread Julien Cubizolles
Consider the following --8<---cut here---start->8--- #+BEGIN_SRC elisp (require 'package) (setq package-archives '(("ELPA" . "http://tromey.com/elpa/;) ("melpa" . "http://melpa.milkbox.net/packages/;) ("gnu" .

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-05-03 Thread Julien Cubizolles
Julien Cubizolles <j.cubizol...@free.fr> writes: > John Kitchin <jkitc...@andrew.cmu.edu> writes: > >> I found a (save-buffer) in the bibtex entry clean functions and took >> that out. I think it solves this problem. > > It's working fine now, thanks. Actual

Re: [O] org-passwords.el and encryption

2016-04-28 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Wednesday, 27 Apr 2016 at 19:23, Julien Cubizolles wrote: >> also, running: >> >> keychain --eval --agents ssh,gpg id_rsa MYGPGKEY >> >> in a non login shell. > > The only thing I can think of is that ma

Re: [O] org-passwords.el and encryption

2016-04-27 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Wednesday, 27 Apr 2016 at 16:24, Julien Cubizolles wrote: >> there must be something wrong with my setup: keychain complains: >> >> * Adding 1 gpg key(s): 370D5DFF >> * Error: Problem adding (is pinentry installed

Re: [O] org-passwords.el and encryption

2016-04-27 Thread Julien Cubizolles
Eric S Fraga writes: > I have keychain in both my .bash_profile (for when I log in in console > mode or remotely) there must be something wrong with my setup: keychain complains: --8<---cut here---start->8--- * Adding 1 gpg key(s):

Re: [O] org-passwords.el and encryption

2016-04-27 Thread Julien Cubizolles
Eric S Fraga writes: > I use gpg-agent in conjunction with keychain. Generally works very > well. I'm trying to set it up but I'm running into problems. Could you precise a few details: + do you run keychain from your ~/.profile, and so how ? If I follow the instructions

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-04-26 Thread Julien Cubizolles
John Kitchin writes: > I found a (save-buffer) in the bibtex entry clean functions and took > that out. I think it solves this problem. It's working fine now, thanks. Regards, Julien.

Re: [O] fontification lost when using org-goto

2016-04-07 Thread Julien Cubizolles
Adam Porter <a...@alphapapa.net> writes: > Julien Cubizolles free.fr> writes: > >> I've encountered this problem with several themes (dracula, naquadah) >> but not with emacs -Q. Are there some special faces to define ? > > There are quite a few org-mode faces, l

[O] fontification lost when using org-goto

2016-04-07 Thread Julien Cubizolles
I'm using an emacs theme for fontification. The fontification is lost whenever I use org-goto: no more colors, no more hidden stars. When I leave the temporary buffer, the fontification is not restored until I run M-x org-mode or update the #+ lines with C-c C-c. I've encountered this problem

Re: [O] isbn-to-bibtex (from org-ref) fails

2016-04-06 Thread Julien Cubizolles
John Kitchin writes: > thanks for the report. I think I have fixed it in a recent push. It now gets the bibtex entry right however its behaviour is strange: it asks twice for a file name to save. The first query seems ok but if you give again the bib file as argument

[O] isbn-to-bibtex (from org-ref) fails

2016-04-04 Thread Julien Cubizolles
I've just tried isbn-to-bibtex with the isbn entry "0201500647" (Feynman lectures on physics). It fails with: --8<---cut here---start->8--- funcall-interactively: Wrong type argument: stringp, [((url . ["http://www.worldcat.org/oclc/67451431?referer=xid;])

Re: [O] org-ref, abstracts

2016-04-04 Thread Julien Cubizolles
John Kitchin writes: > no problem. I am not sure when that happened though ;) Do you mean you didn't add this functionnality recently and it's been here all along ? Julien.

Re: [O] org-ref, abstracts

2016-04-03 Thread Julien Cubizolles
John Kitchin writes: > If the data exists, then arxiv-add-bibtex-entry could probably add the > abstract if it existed. I am not too familiar with arxiv so I am not > sure. Just noticed that arxiv-get-pdf-add-bibtex-entry now includes the abstract. Thanks a lot for

Re: [O] org-ref, abstracts

2016-03-23 Thread Julien Cubizolles
John Kitchin writes: > I am pretty sure the metadata from dx.doi.org doesn't contain any > abstract information, so there is not a way to put anything useful in > it. The abstract is often covered by copyright. I hadn't thought of that. But for some sources (arXiv

Re: [O] org-ref and link to pdf file ?

2016-03-23 Thread Julien Cubizolles
Julien Cubizolles <j.cubizol...@free.fr> writes: > org-ref makes it very easy to download a pdf paper when creating a new > bibtex entry. However, there is no way that I could find to directly > open the pdf from the bibtex entry. Could org-ref add some custom field > like file=

[O] org-ref and link to pdf file ?

2016-03-23 Thread Julien Cubizolles
org-ref makes it very easy to download a pdf paper when creating a new bibtex entry. However, there is no way that I could find to directly open the pdf from the bibtex entry. Could org-ref add some custom field like file={...} created when the pdf file is downloaded ? Julien.

[O] org-ref, abstracts

2016-03-23 Thread Julien Cubizolles
I'm starting to use org-ref to manage bibtex file, and it's impressively useful ! However I couldn't find a variable to have the *-add-bibtex-entry create an abstract field in the bibtex entry. Is it possible? If not, I think it would be a useful addition. J. Cubizolles

Re: [O] org-passwords.el and encryption

2016-03-13 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Saturday, 12 Mar 2016 at 11:50, Julien Cubizolles wrote: >> I've recently started using org-passwords.el. I'm using symmetric >> encryption for the gpg file where the passwords are stored. I've seen >> mention of s

[O] org-passwords.el and encryption

2016-03-12 Thread Julien Cubizolles
I've recently started using org-passwords.el. I'm using symmetric encryption for the gpg file where the passwords are stored. I've seen mention of several ways to avoid typing the passphrase over and over in one session: using gpg-agent or not... What would you recommend ? Wilk.

[O] resuming an interrupted org-publish to ftp

2016-02-11 Thread Julien Cubizolles
I have a huge number of files to publish to a ftp server (I had to reexport them after an Org upgrade) and org-publish fails because the ftp server closes the connection before the *whole* transfer is done. And it seems that in this case none of the timestamps used to control which file has to be

Re: [O] org-pdfview-open doesn't work anymore

2016-02-10 Thread Julien Cubizolles
Nicolas Goaziou writes: > I think the simplest solution may be to follow the advice in ORG-NEWS > and use > > (lambda (file link) (org-pdfview-open file)) It's working, thanks. Julien.

Re: [O] #+BEGIN_LaTeX deprecated

2016-02-10 Thread Julien Cubizolles
Nicolas Goaziou writes: > Hello, > > Kaushal Modi writes: > >> Check out this announcement email about the syntax change: >> https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00525.html >> >> It has a snippet to convert the old syntax

[O] #+BEGIN_LaTeX deprecated

2016-02-09 Thread Julien Cubizolles
The #+BEGIN_LaTeX... #+END_LaTeX has been deprecated in favor of #+BEGIN_EXPORT latex ... #+END_EXPORT. I have however a lot of older org files that I will need to export again. I can manually change the blocks but I was wondering if some automatic conversion function has been implemented.

Re: [O] Strange problems when exporting asynchronously in beamer mode

2016-02-08 Thread Julien Cubizolles
Nicolas Goaziou writes: > You could try adding (require 'ox-beamer) above. That did it. For some reason, it wasn't needed before. Julien.

[O] Strange problems when exporting asynchronously in beamer mode

2016-02-04 Thread Julien Cubizolles
I recently upgraded to the latest git version and every asynchronous export to pdf in beamer mode fails whereas the asynchronous mode has no problem. I didn't change anything in my setup, and it was working fine before. With the following Org file (the first lines are to ensure that the latest

[O] org-pdfview-open doesn't work anymore

2016-02-04 Thread Julien Cubizolles
I've been using org-pdfview (from https://github.com/markus1189/org-pdfview) to have org-mode open pdf files generated during export. --8<---cut here---start->8--- (pdf-tools-install) (eval-after-load 'org '(progn (require 'org-pdfview)

[O] "Indented"" LaTeX compiler in ox.el should be Intended?

2016-02-04 Thread Julien Cubizolles
I noticed that org-latex-compiler-file-string mentions an "Indented LaTeX compiler". I guess it should be "Intended LaTeX compiler". --8<---cut here---start->8--- (defcustom org-latex-compiler-file-string "%% Indented LaTeX compiler: %s\n" "LaTeX compiler

Re: [O] org-beamer-select-environment fails

2016-02-03 Thread Julien Cubizolles
Nicolas Goaziou writes: >> Calling org-beamer-select-environment triggers the problem. I've tried >> with Org-mode version 8.2.10 (release_8.2.10 @ >> /usr/share/emacs/25.1.50/lisp/org/) (emacs -Q) and with Org-mode version >> 8.3.3 (8.3.3-43-g0b97a5-elpa @

Re: [O] org-beamer-select-environment fails

2016-02-03 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Did you issue a fix for org-mode or for emacs ? I've upgraded to Org-mode >> version 8.3.2 >> (release_8.3.2-356-gb2eb53) and the prob

Re: [O] org-beamer-select-environment fails

2016-02-02 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Monday, 1 Feb 2016 at 14:56, Julien Cubizolles wrote: >> There is something wrong with org-beamer-select-environment. It fails >> with: > > I just tried this and it works fine for me. Maybe tell us a bit more > about yo

[O] org-beamer-select-environment fails

2016-02-01 Thread Julien Cubizolles
There is something wrong with org-beamer-select-environment. It fails with: --8<---cut here---start->8--- Debugger entered--Lisp error: (wrong-type-argument listp t) delete((org-filtered) t) remove((org-filtered) t) org-move-to-column(147 t)

[O] New error when setting the publishing directory

2016-01-31 Thread Julien Cubizolles
I've been using the following for a long time to export to a remote ftp site. --8<---cut here---start->8--- #+begin_src emacs-lisp :exports none (setq org-export-in-background t) (setq org-publish-project-alist '(("orgfiles"

[O] BUG: org-set-property should not accept an empty string as property

2016-01-06 Thread Julien Cubizolles
According to http://orgmode.org/worg/dev/org-syntax.html#Node_Properties, the NAME of a property cannot be an empty string. However, the interactive version of org-set-property accepts such a string, resulting in a malformed drawer. When giving an empty string at the prompt for the property NAME,

Re: [O] Bug: time duration in capture template broken

2016-01-05 Thread Julien Cubizolles
Maybe it's related, but I just noted that the %^G and %^t fields %-escapes don't work anymore: they just insert the "%^G" and "%^t" strings instead of prompting. Julien;

[O] How to call org-set-property from a function

2016-01-05 Thread Julien Cubizolles
I have the following function to automate the creation of a new entry: #+begin_src emacs-lisp (interactive) (save-excursion (org-beamer-select-environment) (org-set-tags-command) ) #+end_src I'd like to add the possibility to set some properties through (org-set-property) but I

Re: [O] How to call org-set-property from a function

2016-01-05 Thread Julien Cubizolles
Marcin Borkowski writes: > What about call-interactively? Thanks, that's the way to do it: #+begin_src emacs-lisp (interactive) (save-excursion (org-beamer-select-environment) (org-set-tags-command) (call-interactively 'org-set-property) ) #+end_src >>

Re: [O] Bug: time duration in capture template broken

2016-01-05 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> --8<---cut here---start->8--- >> ("t" "todo" entry (fileheadline "~/org/orgfiles/refile.org&q

Re: [O] Bug: time duration in capture template broken

2016-01-05 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Maybe it's related, but I just noted that the %^G and %^t fields >> %-escapes don't work anymore: they just insert the "%^G" and "

Re: [O] How to call org-set-property from a function

2016-01-05 Thread Julien Cubizolles
Rasmus writes: > When you enter no value (C-j when ido is enabled) or C-return with helm. > it insert :: VALUE. But then you end up with a malformed drawer, so C-g is better for the moment. > For more fine grained control you probably need to write something akin to >

Re: [O] How to call org-set-property from a function

2016-01-05 Thread Julien Cubizolles
Rasmus writes: > For more fine grained control you probably need to write something akin to > org-set-property and check the actual values (e.g. to signal quit if an > empty quote is returned). Actually, shouldn't org-set-property check for an empty quote for the property name

[O] command to skip the :PROPERTIES: drawer

2016-01-05 Thread Julien Cubizolles
Let's say you have an entry like the followin, with the point in the Entry line. Is there an org command to put the mark on a newline after :END: ? At the moment, I have too many C-n to type for my taste :-) --8<---cut here---start->8--- *** Entry

Re: [O] How to call org-set-property from a function

2016-01-05 Thread Julien Cubizolles
Rasmus writes: > Does this do what you want: > > (call-interactively 'org-set-property) Thanks, indeed it does, Marcin beat you to it though :-) >> Also, I will sometimes need to include several different >> properties. What would be the right way to run a loop where a

Re: [O] command to skip the :PROPERTIES: drawer

2016-01-05 Thread Julien Cubizolles
Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Julien Cubizolles <j.cubizol...@free.fr> writes: > >> Let's say you have an entry like the followin, with the point in the >> Entry line. Is there an org command to put the mark on a newline after

Re: [O] Embedding and extracting license/author information in an image file

2015-12-08 Thread Julien Cubizolles
Rasmus writes: > You could probably use exiftool with org-babel or dynamic blocks to > extract the required data and generated the syntax you want. Thanks for the pointer, I'll give it a try with image-dired-get-exif-data, and image-dired-set-exif-data. There doesn't seem to be

[O] Use synctex for latex export

2015-12-08 Thread Julien Cubizolles
While some are trying to get org<->pdf syncing with synctex, I'm still struggling with getting synctec syncing between the pdf file and the tex file generated from an org file. I thought adding --synctex=1 to org-latex-pdf-process would be enough but it doesn't work. Julien.

Re: [O] Embedding and extracting license/author information in an image file

2015-12-08 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Monday, 7 Dec 2015 at 22:08, Julien Cubizolles wrote: >> I often include images in my org documents and would like to properly >> cite the license, and/or author. I was thinking that this could be >> simplified by: &g

Re: [O] Embedding and extracting license/author information in an image file

2015-12-08 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Monday, 7 Dec 2015 at 22:08, Julien Cubizolles wrote: >> I often include images in my org documents and would like to properly >> cite the license, and/or author. I was thinking that this could be >> simplified by: &g

Re: [O] Embedding and extracting license/author information in an image file

2015-12-08 Thread Julien Cubizolles
John Kitchin writes: > This is usually done manually in a citation in the caption I think. I'm using it for beamer presentations for teaching, I'd rather have them all at the end of the pdf. > This would not work reliably. I could imagine an insert figure link > which

[O] Embedding and extracting license/author information in an image file

2015-12-07 Thread Julien Cubizolles
I often include images in my org documents and would like to properly cite the license, and/or author. I was thinking that this could be simplified by: * embedding the license/author information in some metadata of the jpg or png file (it seems that some standard called xmp can be used to

Re: [O] :completion function isn't run anymore?

2015-11-29 Thread Julien Cubizolles
Nicolas Goaziou writes: > I didn't investigate much the issue yet, but, out of curiosity, would > the following patch solve the issue: Thanks for looking into it. It seems the completion-function is now being accessed but unfortunately something is still wrong. The

Re: [O] :completion function isn't run anymore?

2015-11-29 Thread Julien Cubizolles
Nicolas Goaziou writes: > I forgot that :preparation-function could also be a single function. > Attached is the updated patch to test. It's fixed, thanks. Once again, I'm amazed by the reactivity and efficiency of everyone in the org-mode community. > See

Re: [O] :completion function isn't run anymore?

2015-11-27 Thread Julien Cubizolles
Julien Cubizolles <j.cubizol...@free.fr> writes: > I noticed that the :preparation-function defined in > org-publish-project-alist isn't run anymore when publishing a project. It seems the preparation-function isn't run either. Consider the following more simple examples --8<---

[O] :completion function isn't run anymore?

2015-11-26 Thread Julien Cubizolles
I noticed that the :preparation-function defined in org-publish-project-alist isn't run anymore when publishing a project. Consider the following, it's a stripped-down version of the setup I have been using on many documents for a few years. --8<---cut

Re: [O] anyone syncing orgmode calendar with google cal, and if so how?

2015-10-06 Thread Julien Cubizolles
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > On Tuesday, 6 Oct 2015 at 12:21, Julien Cubizolles wrote: >> I'm using org-caldav, it's working fine for me. > > How do you have this working with Google? It quit working for me due to > authentication changes at the Google

  1   2   3   >