[O] orgmode highlighting with highlight.js
Hello, I’m looking at a tool[fn:1] that uses highlight.js to do syntax highlighting of text files. As it does not support orgmode yet, I’ve started some work on it. It’s very preliminary (I wanted to see how difficult it would be to do anything), but in case there is some interest for it, it’s here: https://github.com/brabalan/highlight.js/tree/orgmode Best, Alan [fn:1] http://workingcopyapp.com/ -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Athmospheric CO₂ (Updated January 11, 2016, Mauna Loa Obs.): 401.96 ppm signature.asc Description: PGP signature
Re: [O] FSF copyright assignment
For me it took 6 weeks, but it was due to tremendous efforts of Russian Post ) Arun Isaac writes: > How long does FSF copyright assignment typically take? I sent a request > around 2 weeks ago (on December 26), but haven't received a reply yet. > > Does it usually take this long? Should I resend my copyright > assignment request?
Re: [O] [Show Org source] button does not work
Nick Dokos writes: > Kynn Jones writes: > >> The [Show Org source] button at the bottom of pages such as >> >> http://orgmode.org/worg/ >> >> does not work. Nothing happens when one clicks on it. It's supposed >> to execute the statement `show_org_source()`, but as far as I can >> tell, the function `show_org_source` is not to be found in the page's >> JS. >> > > I can see the following (lines 63-79 of the page source): > > > function rpl(expr,a,b) { > var i=0 > while (i!=-1) { > i=expr.indexOf(a,i); > if (i>=0) { > expr=expr.substring(0,i)+b+expr.substring(i+a.length); > i+=b.length; > } > } > return expr > } > > function show_org_source(){ >document.location.href = rpl(document.location.href,"html","org.html"); > } > > > > Try clicking the button on the following page: > >http://orgmode.org/worg/org-tutorials/org-outside-org.html > > It changes the location to > >http://orgmode.org/worg/org-tutorials/org-outside-org.org.html > > and loads it. > > http://orgmode.org/worg/ does not have a .html suffix so the rpl() > function leaves it alone. > > This is with FF 43.0.3 on Fedora 22. The desired behaviour of the [Show Org source] button for http://orgmode.org/worg/ can be found at http://orgmode.org/worg/index.html. My 2 ct, -- Marco Wahl GPG: 0x49010A040A3AE6F2
Re: [O] Strange behavior: a comma is inserted before each star
zariskij writes: > Hi, > > I encounter a strange behavior of org-edit-special. > > Whenever I have a line starting with * in org-edit-special buffer, > org-mode automatically inserts a comma before * in the original > org file. > > For instance, if I type into org-edit-special buffer: > /** > * a brief descripion > * end > */ > > After saving it, in the corresponding source block in the org file, > it will appearas > > /** > ,* a brief descripion > ,* end > ,*/ > > This affects all source languages. > See footnote 4 in (info "(org) Literal examples") for an explanation. -- Nick
[O] Bug: org-map-entries seems broken
Hello, I have a function that uses org-map-entries to build a list of entries. It worked until recently. Now, it fails with simple combinations. For instance, 'LEVEL=1' matches what it should, and 'weblog' matches what it should, but 'LEVEL=1+weblog' does not match the intersecting set, or anything at all. Did I miss a change in the syntax, or maybe did a recent refactoring introduce an error? Does anyone else use this kind of matching and have it work? Emacs : GNU Emacs 24.5.1 (i586-pc-linux-gnu, GTK+ Version 3.18.2) of 2015-10-24 on x86-grnet-01, modified by Debian Package: Org-mode version 8.3.3 (release_8.3.3-435-gb78a9b @ /home/tftorrey/T/hacks/org-mode/lisp/) Thanks in advance, Terry -- T.F. Torrey
[O] Bug: C-c ' and multiple table formulas
org now supports multiple TBLFM lines - see the "Using multiple #+TBLFM lines" subsection in (info "(org) Editing and debugging formulas") However, editing the formulas with C-c ' does not work, except for the first one. On subsequent ones, org says user-error: Not at a table Org-mode version 8.3.3 (release_8.3.3-438-g8ddc73) -- Nick
Re: [O] Changing org-block background with org-src-fontify-natively
I guess that gives away I am still using 8.2.10! I have never figured out how to get a higher version of that through elpa/melpa/http://orgmode.org/elpa/. Nick Dokos writes: > John Kitchin writes: > >> That is pretty weird. It should be defined in org-faces.el. What org version >> are you using? >> > > It was deleted in this commit: > > commit f8b42e8ebeeecdef59a8a7cbc4324264a5162197 > Author: Bastien Guerry > Date: Mon Jul 28 18:54:00 2014 +0200 > > Don't use an overlay for src blocks backgrounds > > * org-faces.el (org-block-background): Delete. > > > and afaict, it does not appear in org-faces any longer. > >> On Tue, Jan 12, 2016 at 6:53 AM, Karl Voit wrote: >> >> * John Kitchin wrote: >> > I halso have no org-block-background in my setup: C-h v >> org-block-! >> > >> > Are faces supposed to show as variable? >> > > I don't think so - they are in a different name space - you need e.g. > > M-x describe-face RET org-block RET > > to see a face. -- 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] org-ref-clean-bibtex-entry and UTF-8
Dear list, I am using org-ref-clean-bibtex-entry to clean up my biblatex file. Among other things, this function detects if there are non-ASCII characters in each bibtex/biblatex entry. My file has many non-ASCII characters that are exported via Latex to pdf with no problems because my setup is in UTF-8. Do you know if it is possible to "turn-off" this option in org-ref-clean-bibtex-entry, so I do not get warnings about non-ascii characters? Many thanks, Julian
Re: [O] Seeing Actual Emphasis in Orgmode Buffer
Hi! Kenneth Jacker writes: >> Are you sure you have a font that supports italic or boldface variants? >> > > Hmmm ... not sure I know how to check that ... > > Might you suggest a "variable", "function" or "menu item" that would > > indicate whether the needed "font support" was there/enabled? > > >> It works out of the box on my Emacs, but I didn't mess up with the >> default font. > > > I don't *think* I did anything with the "default font" either ... > > So you actually see the "bold" rendering in the "buffer" corresponding to > the ".org" file ? > > If so, there is "hope" for me ;-) Sure, always! ;) Maybe you get some insight if you do e.g. 'M-x customize-face italic' and play with settings. HTH -- Marco Wahl GPG: 0x49010A040A3AE6F2
[O] Defining content for re-use
Hi! I wonder if it is possible to define parts of content and "bind" it to a reference which can be inserted multiple times. In LaTeX, I am using: ,[ LaTeX example ] | \newcommand{\mycontent}{This is some content containing lists, | headings, and much more which is defined once and pops up in my end | document multiple times.} | | \chapter{First Chapter} | | \mycontent | | [...] | | \chapter{Last Chapter} | | Once again, I would like to state \mycontent ` So can this be done with Org-mode (and TeX export) as well? Very vaguely I'd say this would look like: ,[ Org-mode example guess ] | #+NAME: mycontent | #+BEGIN_QUOTE | This is some content... | #+END | | My content which is #+insert:mycontent can be used multiple times. | Here we go again: #+insert:mycontent ` -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] org-ref-clean-bibtex-entry and UTF-8
If you have a pretty recent org-ref, You can set a list of functions for org-ref-clean-bibtex-entry: https://github.com/jkitchin/org-ref/blob/master/org-ref.el#L302 Use this in an init file, and remove the functions you don't want to run. (setq org-ref-clean-bibtex-entry-hook '(orcb-key-comma orcb-key orcb-& orcb-clean-doi orcb-clean-year orcb-clean-pages org-ref-sort-bibtex-entry org-ref-title-case-article org-ref-replace-nonascii)) Julian Burgos writes: > Dear list, > > I am using org-ref-clean-bibtex-entry to clean up my biblatex file. Among > other things, this function detects if there are non-ASCII characters in > each bibtex/biblatex entry. My file has many non-ASCII characters that > are exported via Latex to pdf with no problems because my setup is in > UTF-8. Do you know if it is possible to "turn-off" this option in > org-ref-clean-bibtex-entry, so I do not get warnings about non-ascii > characters? > > Many thanks, > > Julian -- 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] Defining content for re-use
Karl Voit writes: > Hi! > > I wonder if it is possible to define parts of content and "bind" it > to a reference which can be inserted multiple times. Sounds like macros in Org -- maybe check out that part of the manual?
Re: [O] [Show Org source] button does not work
OK, now it's working. I'm not sure what the problem was before, but it seems resolved now. Sorry for the false alarm. Thanks, G On Wed, Jan 13, 2016 at 3:33 AM, Marco Wahl wrote: > Nick Dokos writes: > >> Kynn Jones writes: >> >>> The [Show Org source] button at the bottom of pages such as >>> >>> http://orgmode.org/worg/ >>> >>> does not work. Nothing happens when one clicks on it. It's supposed >>> to execute the statement `show_org_source()`, but as far as I can >>> tell, the function `show_org_source` is not to be found in the page's >>> JS. >>> >> >> I can see the following (lines 63-79 of the page source): >> >> >> function rpl(expr,a,b) { >> var i=0 >> while (i!=-1) { >> i=expr.indexOf(a,i); >> if (i>=0) { >> expr=expr.substring(0,i)+b+expr.substring(i+a.length); >> i+=b.length; >> } >> } >> return expr >> } >> >> function show_org_source(){ >>document.location.href = >> rpl(document.location.href,"html","org.html"); >> } >> >> >> >> Try clicking the button on the following page: >> >>http://orgmode.org/worg/org-tutorials/org-outside-org.html >> >> It changes the location to >> >>http://orgmode.org/worg/org-tutorials/org-outside-org.org.html >> >> and loads it. >> >> http://orgmode.org/worg/ does not have a .html suffix so the rpl() >> function leaves it alone. >> >> This is with FF 43.0.3 on Fedora 22. > > The desired behaviour of the [Show Org source] button for > http://orgmode.org/worg/ can be found at > http://orgmode.org/worg/index.html. > > > My 2 ct, > -- > Marco Wahl > GPG: 0x49010A040A3AE6F2 > >
Re: [O] Bug: org-map-entries seems broken
Hello, "T.F. Torrey" writes: > Hello, > > I have a function that uses org-map-entries to build a list of entries. > It worked until recently. Now, it fails with simple combinations. For > instance, 'LEVEL=1' matches what it should, and 'weblog' matches what it > should, but 'LEVEL=1+weblog' does not match the intersecting set, or > anything at all. Did I miss a change in the syntax, or maybe did a > recent refactoring introduce an error? Does anyone else use this kind > of matching and have it work? Things seem to be working on my end. Both release_8.3.3 and the current master (23f31a9) are giving me the same results: --8<---cut here---start->8--- #+begin_src elisp (org-map-entries (lambda () (substring-no-properties (org-get-heading t))) "LEVEL=1") #+end_src #+RESULTS: | a | b | #+begin_src elisp (org-map-entries (lambda () (substring-no-properties (org-get-heading t))) "atag") #+end_src #+RESULTS: | aa | b | ba | bb | #+begin_src elisp (org-map-entries (lambda () (substring-no-properties (org-get-heading t))) "LEVEL=1+atag") #+end_src #+RESULTS: | b | * a ** aa :atag: ** ab * b:atag: ** ba ** bb --8<---cut here---end--->8--- -- Kyle
[O] Orgmode publishing resursive
Suppose I have the following configuration ("test" :base-directory "src" :publishing-directory "dest" :publishing-function org-latex-publish-to-pdf :recursive t) Is it possible to publish both org files to destination in the save level E.g., publish from src ├── dir1 │ └── a.org └── dir2 └── b.org to dest ├── a.pdf └── b.pdf I.e., it possible to apply a :flatten flag or somewhat? Thank you!
[O] Collectable results in minutes instead of HH:MM
Hi, I use org mode to clock the time I spend on different tasks. Starting this year my company switched to account working time by the minute instead of using a quarter of an hour. Getting the exact time is no problem but right now I have to translate the HH:MM time into minutes since that is what the accounting software needs. When I use org-time-clocksum-use-fractional I can use a TBLFM and the result is almost right, but has rounding errors. (Increasing the rational part to 3 digits will probably help with the rounding errors.) Without it I get the HH:MM and simply multiplying the result by 60 does not work. I prefer the HH:MM format and am looking for a way to convert that. Can anyone help? Axel
[O] Collectable results in minutes instead of HH:MM
Sorry, I have to apologize for a) Auto correct messing with the subject line, it should have been clocktable. b) Not including the ECM Axel clocktable.org Description: Binary data
[O] Keep buffer visible w/ capture template
I'd like to keep the active buffer visible while capturing. Currently, when I invoke a capture template, the text I was viewing disappears. The frame splits into two parts: The capture template, and a calendar. Is there a way to have it split into three? Or have the capture buffer open in a new frame? This has been solved in the past, in 2013 here: https://stackoverflow.com/questions/15253005/ and in 2014 here: https://stackoverflow.com/questions/21195327/ but those solutions don't work now with Org 8.3. I've tried editing some code in org-capture.el but without success. Thanks, -k.
Re: [O] Keep buffer visible w/ capture template
> I'd like to keep the active buffer visible while capturing. That's how it works for me. I do not see a calendar buffer unless I do something like C-c C-d (org-deadline) or C-c C-s (org-schedule) in an org buffer. If I am in a frame with one buffer ABC, calling org-capture splits the frame into 2 windows: one with ABC and another with Capture. If I am in a frame already with 2 windows and if my point is in buffer ABC, calling org-capture will retain the ABC buffer (where my point was) and open Capture buffer in the other window. I do not have display-buffer-alist customized for Capture buffers. Can you reproduce the problem you see in an emacs -Q session? If so, can you provide a recipe to recreate that over here? Can you also post your emacs and org-mode versions? Here are mine: Emacs version: GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2016-01-12, built using commit 0ed0a9b7f09495394dc9b60a9f7c937679c49afe. ./configure options: --prefix=/home/kmodi/usr_local/apps/6/emacs/emacs-25 ’CPPFLAGS=-fgnu89-inline -I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include’ ’CFLAGS=-ggdb3 -O0’ ’CXXFLAGS=-ggdb3 -O0’ ’LDFLAGS=-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64 -ggdb3’ Features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Org-mode version 8.3.3 (release_8.3.3-430-g9db786 @ /home/kmodi/usr_local/apps/6/emacs/emacs-25/share/emacs/site-lisp/org/)
Re: [O] Keep buffer visible w/ capture template
Hi Kaushal, On 2016-01-13 at 13:08, Kaushal Modi wrote: >> I'd like to keep the active buffer visible while capturing. > > That's how it works for me. I do not see a calendar buffer unless I do > something like C-c C-d (org-deadline) or C-c C-s (org-schedule) in an > org buffer. You're right, and my question was poorly phrased. When I invoke org-capture, the email I'm viewing remains visible while I select the template. I think the issue is that the template requests a timestamp or a SCHEDULED field (or as you describe, you may add those manually). The email usually has the date/time information visible, but the calendar hides it, making it difficult to fill out the template. That is my issue. The current window flow is 1) View email 2) Invoke capture. See email + *Org Select* buffer 3) Select template. See *Capture* buffer and calendar buffer. I'd like to still see the email in step (3). If I select a template which doesn't have calendar actions, I don't have this issue. -k.
Re: [O] individual alerts
Nick Dokos writes: > "cschr" writes: > >> Hello >> >> Im a software developer and new to emacs. I want to maintain my calendar >> appointments in >> orgmode, and define individual alerts for each appointment (which also >> includes to have no >> alert for some appointments). Using the emacs diary is not enough for me – I >> want orgmode! >> >> >> I found out already how to export SCHEDULED and DEADLINE timestamps from >> orgmode to >> iCalendar VEVENTs, but the VALARM TRIGGERs produced always have the same >> value (VALARM >> TRIGGER is always “P0DT0H0M0S”). How can I define an individual alert for >> each appointment >> in ORGMODE, and have the alert values exported as icalendar VALARM TRIGGERs? >> >> >> The :APPT_WARNTIME: property in orgmode seems to do nothing, nor does it >> seem to help if I >> add a “WARNTIME …” text to the orgmode item – this seems to work for emacs >> diary entries >> only. >> > > There are various constraints on the item in order to get a VALARM: it > has to be a TODO item, it has to have a timestamp with both date and > time in it and the timestamp has to *follow* the properties drawer. > > I think this last one is a bug in ox-icalendar.el: when I add a > SCHEDULED timestamp, it gets added right after the headline, pushing > the properties drawer down, and ISTR that that is now the mandated order > of org things, but that seems to break ox-icalendar.el's > ability to find the timestamp. > > This was mostly trial-and-error (with just a look or two into the code), > so it might be wrong. > > However, the following org file: > > * TODO foo > :PROPERTIES: > :APPT_WARNTIME: 10 > :END: > SCHEDULED: <2016-01-13 Wed 12:00> > something to do > > exports to a reasonable-looking ics file: > > ... > > whereas the "normal" position of the timestamp: > > * TODO foo > SCHEDULED: <2016-01-13 Wed 12:00> > :PROPERTIES: > :APPT_WARNTIME: 10 > :END: > something to do > > leads to a rather sorry-looking ics file: > > ... The OP sent me a private reply, saying that he couldn't get it to work, but he is using an old org version (whatever comes with emacs 24.3.1 IIRC, presumably pre-8.0). I should have mentioned that I'm using fairly recent versions: Org-mode version 8.3.3 (release_8.3.3-437-g4de71e) on this machine and an even later one on the machine where I did the above testing. -- Nick
Re: [O] Keep buffer visible w/ capture template
On 2016-01-13 at 13:17, Ken Mankoff wrote: > On 2016-01-13 at 13:08, Kaushal Modi wrote: >>> I'd like to keep the active buffer visible while capturing. > >I think the issue is that the template requests a timestamp or a >SCHEDULED field (or as you describe, you may add those manually). The >email usually has the date/time information visible, but the calendar >hides it, making it difficult to fill out the template. That is my >issue. The current window flow is > > 1) View email 2) Invoke capture. See email + *Org Select* buffer 3) > Select template. See *Capture* buffer and calendar buffer. > > I'd like to still see the email in step (3). I've found two solutions to this. 1) (setq calendar-setup (quote calendar-only)) makes the calendar appear in a new frame. However, their are weird side effects and the mini-buffer used to enter the date/time is in another frame, and not the one where the capture was invoked. OR 2) (defun kdm/position-calendar-buffer (buffer alist) (display-buffer-at-bottom buffer alist)) (add-to-list 'display-buffer-alist (cons "\\*Calendar\\*" (cons #'kdm/position-calendar-buffer nil))) Splits the window in 3, so I have 1) capture template 2) original text and 3) calendar. -k.
Re: [O] Keep buffer visible w/ capture template
I would prefer the second option (modifying the display-buffer-alist). I don't customize this variable for any of the org-mode buffer but I do for other buffers. That too, I do it indirectly using the shackle package. Here's my setup that can give your examples and a brief documentation on how to control the windows/frames using shackle: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-shackle.el
[O] publishing subtrees?
Hi eveyrone, I've recently consolidated all of my course lectures into a single file, which makes it a lot easier for me to organize and re-organize my notes. I used to have an org-publish-project-alist like this: (setq org-publish-project-alist '( ("courses" :components ("dh" "rlg231")) ("rlg231" :components ("rlg231-lecture-slides" "rlg231-lecture-source")) ("dh" :components ("digital-history-lecture-slides" "digital-history-lecture-source")) ("rlg231-lecture-slides" :base-directory "~/RLG231/Lectures/" :base-extension "org" :publishing-directory "/ssh:matt@shimano :/var/www/sandbox/RLG231/Lectures/Slides" :recursive t :publishing-function mwp-org-reveal-publish-to-html :headline-levels 4 ; Just the default for this project. :exclude "LectureOutlines.org" :exclude-tags note noexport :auto-preamble t) ("rlg231-lecture-source" :base-directory "~/RLG231/Lectures/" :base-extension "org" :publishing-directory "/ssh:matt@shimano :/var/www/sandbox/RLG231/Lectures/Source" :recursive t :publishing-function org-org-publish-to-org :preparation-function nil :completion-function nil :headline-levels 4 ; Just the default for this project. :exclude "LecturePlans.org" ;; :exclude "LectureOutlines.org" :exclude-tags note noexport :auto-preamble t) ("digital-history-lecture-source" :base-directory "~/DH/Lectures" :base-extension "org" :publishing-directory "/ssh:matt@shimano :/var/www/sandbox/DigitalHistory/Lectures/Source" :recursive t :publishing-function org-org-publish-to-org :preparation-function :completion-function :headline-levels 4 ; Just the default for this project. ;; :exclude "LecturePlans.org" :exclude "LectureOutlines.org" :exclude-tags note noexport :auto-preamble t) ("digital-history-lecture-slides" :base-directory "~/DH/Lectures" :base-extension "org" :publishing-directory "/ssh:matt@shimano :/var/www/sandbox/DigitalHistory/Lectures/Slides" :recursive t :publishing-function mwp-org-reveal-publish-to-html :preparation-function :completion-function :headline-levels 4 ; Just the default for this project. ;; :exclude "LecturePlans.org" :exclude "LectureOutlines.org" :exclude-tags note noexport :auto-preamble t) )) This worked fine before, but now no longer does what I want it to. Is there some way to publish all the first-level headlnes from a file as separate html and org files? Maybe I need to just generate the org files first and then run the publishing functions? Thanks as always, Matt
Re: [O] Defining content for re-use
Hi Karl, Karl Voit writes: > I wonder if it is possible to define parts of content and "bind" it > to a reference which can be inserted multiple times. Recently, there was a thread on a similar issue. http://permalink.gmane.org/gmane.emacs.orgmode/103942 If you can have external files, you can #+include (e.g. #+include: "file::*heading" ) them multiple times. Since you cannot include from the same document as the include keyword is in you’d need at least two files. Rasmus -- Evidence suggests Snowden used a powerful tool called monospaced fonts
Re: [O] FSF copyright assignment
Arun Isaac writes: > How long does FSF copyright assignment typically take? I sent a request > around 2 weeks ago (on December 26), but haven't received a reply yet. > > Does it usually take this long? Should I resend my copyright > assignment request? Are you talking about a physical letter or an email requesting to get the form? If the latter, I think you can ping them again. Though, it was just holiday, so they might have a backtrack. Rasmus -- Lasciate ogni speranza, voi che leggete questo.
[O] Org Clock Error
Hello In the last few days I started getting an error when moving tasks to the DONE state. I have ~(setq org-clock-out-when-done t)~ in my Emacs configuration. I get the following back trace when I mark a task as done: Debugger entered--Lisp error: (void-variable org-state) (member org-state org-done-keywords) (and (eq t org-clock-out-when-done) (member org-state org-done-keywords)) (or (and (eq t org-clock-out-when-done) (member org-state org-done-keywords)) (and (listp org-clock-out-when-done) (member org-state org-clock-out-when-done))) (and (org-clocking-p) org-clock-out-when-done (marker-buffer org-clock-marker) (or (and (eq t org-clock-out-when-done) (member org-state org-done-keywords)) (and (listp org-clock-out-when-done) (member org-state org-clock-out-when-done))) (equal (or (buffer-base-buffer (org-clocking-buffer)) (org-clocking-buffer)) (or (buffer-base-buffer (current-buffer)) (current-buffer))) (< (point) org-clock-marker) (> (save-excursion (outline-next-heading) (point)) org-clock-marker)) (if (and (org-clocking-p) org-clock-out-when-done (marker-buffer org-clock-marker) (or (and (eq t org-clock-out-when-done) (member org-state org-done-keywords)) (and (listp org-clock-out-when-done) (member org-state org-clock-out-when-done))) (equal (or (buffer-base-buffer (org-clocking-buffer)) (org-clocking-buffer)) (or (buffer-base-buffer (current-buffer)) (current-buffer))) (< (point) org-clock-marker) (> (save-excursion (outline-next-heading) (point)) org-clock-marker)) (progn (let ((org-log-note-clock-out nil) (org-clock-out-switch-to-state nil)) (org-clock-out org-clock-out-if-current() run-hooks(org-after-todo-state-change-hook) (let* ((match-data (match-data)) (startpos (point-at-bol)) (logging (let ((save-match-data-internal (match-data))) (unwind-protect (progn (org-entry-get nil "LOGGING" t t)) (set-match-data save-match-data-internal (quote evaporate) (org-log-done org-log-done) (org-log-repeat org-log-repeat) (org-todo-log-states org-todo-log-states) (org-inhibit-logging (if (equal arg 0) (progn (setq arg nil) (quote note)) org-inhibit-logging)) (this (match-string 1)) (hl-pos (match-beginning 0)) (head (org-get-todo-sequence-head this)) (ass (assoc head org-todo-kwd-alist)) (interpret (nth 1 ass)) (done-word (nth 3 ass)) (final-done-word (nth 4 ass)) (org-last-state (or this "")) (completion-ignore-case t) (member (member this org-todo-keywords-1)) (tail (cdr member)) (org-state (cond ((and org-todo-key-trigger (or (and ... ...) (and ... org-use-fast-todo-selection ...))) (org-fast-todo-selection)) ((and (equal arg (quote ...)) (or (not org-use-fast-todo-selection) (not org-todo-key-trigger))) (completing-read "State: " (mapcar (function list) org-todo-keywords-1) nil t)) ((eq arg (quote right)) (if this (if tail (car tail) nil) (car org-todo-keywords-1))) ((eq arg (quote left)) (if (equal member org-todo-keywords-1) nil (if this (nth ... org-todo-keywords-1) (org-last org-todo-keywords-1 ((and (eq org-use-fast-todo-selection t) (equal arg (quote ...)) (setq arg nil))) (arg (cond ((equal arg "") nil) ((eq arg ...) nil) ((eq arg ...) (or done-word ...)) ((eq arg ...) (or ... ...)) ((eq arg ...) (let ... ...)) ((car ...)) ((stringp arg) (user-error "State `%s' not valid in this file" arg)) ((nth ... org-todo-keywords-1 ((null member) (or head (car org-todo-keywords-1))) ((equal this final-done-word) nil) ((null tail) nil) ((memq interpret (quote (type priority))) (if (eq this-command last-command) (car tail) (if (> ... 0) (or done-word ...) nil))) (t (car tail (org-state (or (run-hook-with-args-until-success (quote org-todo-get-default-hook) org-state org-last-state) org-state)) (next (if org-state (concat " " org-state " ") " ")) (change-plist (list :type (quote todo-state-change) :from this :to org-state :position startpos)) dolog now-done-p) (if org-blocker-hook (progn (setq org-last-todo-state-is-todo (not (member this org-done-keywords))) (if (save-excursion (let ((save-match-data-internal ...)) (unwind-protect (progn ...) (set-match-data save-match-data-internal ... nil (if (with-no-warnings (called-interactively-p (quote interactive))) (user-error "TODO state change from %s to %s blocked (by \"%s\")" this org-state org-block-entry-blocking) (message "TODO state change from %s to %s blocked (by \"%s\")" this org-state org-block-entry-blocking) (throw (quote exit) nil) (store-match-data match-data) (replace-match next t t) (cond ((equal this org-state) (message "TODO state was already %s" (org-trim next))) ((pos-visible-in-window-p hl-pos) (message "TODO state changed to %s" (org-trim next (if head nil (setq head (org-get-todo-sequence-head org-state) ass (assoc head org-todo-kwd-alist) interpret (nth 1 ass) done-word (nth 3 ass) final-done-word (nth 4 ass))) (if (memq arg (quote (nextset previousset))) (progn (message "Keyword-Set %d/%d: %s" (- (length org-todo-sets) -1 (length (memq (assoc org-state org-todo-sets) org-todo-sets))) (l
[O] Footnote attributes
Aloha all, The following ECM yields a blank footnote in LaTeX export. ,-- | * Footnote test | | This is text.[fn:1] | | * Footnotes | #+attr_latex: :offset 0in | [fn:1] A footnote. `-- If I remove the attr_latex line, all is well. I expect the footnote to work, regardless of the attr_latex line. More generally, is there a way to attach attributes to a Footnote Definition in Org mode? All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Org Clock Error
Mike McLean writes: > Hello > > In the last few days I started getting an error when moving tasks to the DONE > state. > > I have ~(setq org-clock-out-when-done t)~ in my Emacs configuration. > > I get the following back trace when I mark a task as done: > > Debugger entered--Lisp error: (void-variable org-state) > (member org-state org-done-keywords) > ... > org-clock-out-if-current() > run-hooks(org-after-todo-state-change-hook) > ... > org-todo(nil) This is probably a lexical binding problem: org-state is supposed to be dynamically bound by org-todo and then used by org-clock-out-if-current, but it seems that the communication is lost. I'm not sure what the solution is (I haven't really followed the upstream discussion), but I wonder if adding (defvar org-state) in org.el, just before the (defun org-todo ... line is enough to resolve the problem (basically letting org-todo know that org-state is dynamically bound). Untested and possibly wrong. -- Nick
[O] Exporting Source Blocks with Symbols
I've become fond of using Greek symbols in my R code (mu, sigma, etc). R handles these just fine, but most of them disappear in the listing when I export to LaTeX (lower-case mu comes through OK). I think the basic problem is the the listings package can't handle the characters. I've come across some ideas for coping with this in LaTeX, but they involve modifying the source (e.g., escaping the symbols to math mode). Of course if I do that, R won't know what to do with the characters. Any suggestions? Does babel provide any hooks for pre-processing source blocks for export? I didn't find any, but I often miss what's right in front of me (just ask my wife!). Kind Regards, Michael Gauland
Re: [O] Strange behavior: a comma is inserted before each star
Nick Dokos gmail.com> writes: > > > See footnote 4 in > > (info "(org) Literal examples") > > for an explanation. > I see. Thanks!