[O] Bug: python code block single import line [9.0.9 (release_9.0.9-754-g940c90)]
Hello, When executing the python code block #+begin_src python :session python1 import numpy as np #+end_src I get this error in my python buffer Python 3.5.1 |Anaconda 2.5.0 (64-bit)| (default, Dec 7 2015, 11:16:01) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>> import numpy as np >>> open('/tmp/babel-5320QCO/python-5320y31', 'w').write(str(_)) 'org_babel_python_eoe' >>> >>> Traceback (most recent call last): File "", line 1, in NameError: name '_' is not defined >>> >>> >>> 'org_babel_python_eoe' >>> However, the following code block does not give an error: #+begin_src python :session python2 import numpy as np 1 #+end_src Thanks, Paul Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23) of 2015-08-26 on localhost.localdomain Package: Org mode version 9.0.9 (release_9.0.9-754-g940c90) current state: == (setq org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5 "\n\n(fn)"] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5 "\n\n(fn)"] org-babel-result-hide-spec org-babel-hide-all-hashes) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el") ("elisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("id" :follow org-id-open) ("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) ("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-babel-load-languages '((python . t)) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
Re: [O] Tracking Interruptions -- Work Flow Question
Solutions to the interruption problem are definitely individual. In my case I simply tracked frequency of interruptions. I got from that the bottom line that I should not try to work at home--- a conclusion that I probably needed no software support to justify. When I switched to working at libraries and coffee shops, the issue became one of focus, and the pomodoro method solved that problem for me after a little fine-tuning of work and break intervals. I use one of the non-org pomodoro packages also, but it's all according to how you organize your work. I only think tracking length of interruptions adds value if you bill clients in time increments, and even in that case clocking out of the billable task is arguably more important than clocking in to the interruption task. If you want to know how much time is lost to interruptions, etc., just subtract your logged productive time from the length of your workday, to get the same depressing result as if you had logged all interruptions. -- Bob Newell Honolulu, Hawai`i * Via Gnus/BBDB/Org/Emacs/Linux *
Re: [O] Tracking Interruptions -- Work Flow Question
One of the problems with the many recommendations for productivity techniques is that they can never really take account of the endless number of differences in workflows, working environments and personal preferences. For me, I found the GTD approach was geared more towards the procrastination problem (washing windows rather than doing taxes) and Pomodoro was more about managing interruptions you have been conditioned to respond to (phone, email) or from colleagues/bosses. My own journey has resulted in taking some ideas from both approaches. It is still and work in progress and probably always will be. It sounds like your on the same road I was on. The one warning I would make is that unless you can also do something about managing those interruptions, just tracking them will likely only make matters worse. It is even more depressing being able to measure the amount of lost productivity or interruptions if at the end of the day you cannot do anything about them. This is where I found the Pomodoro approach better than GTD. I found GTD was really about organising your work so that you were more efficient. The pomodoro approach on the other hand has some concept about managing your environment. It recognises there will always be people in your environment that are important enough to be able to interrupt you at any time. However, it also highlights that many of your interruptions are not from this group and provides one technique to help you set expectations and agreements within your work environment which helps everyone. There is a pomodoro mode for org, but I preferred to use an external program with a big clear timer. Initially, I used an old monitor and put the timer on it and set the monitor so that anyone who came to my desk could see it. When people interrupted me, I would say "Sorry, I'm in the middle of something important, can you come back in x minutes (x = coutdown on monitor) or send me an IM/Email and I will look at it in x minutes. While it took some time, people soon understood and would even come to my desk, look at the monitor and then leave without saying anything, coming back x minutes later instead. After me doing this for a while, a number of other staff started to do a similar thing and now there is greater acceptance of the idea that you don't just walk up and interrupt someone. We actually had some cultural change where people now send an IM instead of walking and directly interrupting someone. More importantly, they don't expect an instant response to the IM or email. There is a relatively inexpensive book (paper, ebook and audio) available from Pragmatic Pub which is relatively short and has some good ideas. I would recommend looking at that and try out the org-pomodoro package for a while to get a feel for it. It probably won't be quite right, but may give you some ideas. regards, Tim Raymond Zeitler writes: > Yes, I agree that it's difficult to assess productivity based solely on the > time I'd spend clocked into Taskerruptions. > I came across one other question in this list about interruptions where the > poster was interested in following the pomodoro technique. (There was no > reply.) But that technique seems geared toward addressing "internal" > interruptions, like when I decide that the windows need washing when I need > to do the taxes. (This after about 45 seconds of reading that website.) My > interruptions are almost always what you addressed in your last paragraph; > they're from people more important than me. I almost never can say, "I'll get > back to you." Although I have taken to roping off my cubicle with a stern "Do > Not Disturb" sign on occasion. > Just clocking them would be a great start.Maybe I'll figure out that I can > say, "I'll get back to you" in some cases. > - Ray > > From: Tim Cross> To: Michael Welle > Cc: emacs-orgmode@gnu.org > Sent: Sunday, August 13, 2017 5:45 AM > Subject: Re: [O] Tracking Interruptions -- Work Flow Question > > > I'm not sure there is any *good* way to track interruptions. As > pointed out by others, interruptions are not equal and the actual length > of the interruption is not necessarily a good reflection of the actual > impact to your productivity. > > I've found two things which have helped me. One has helped to reduce the > interruptions and the other has provided some (minimal) help when I've > been questions on why a task has taken longer to complete than > estimated. > > The first has been to use a type of pomodoro technique. Essentially, I > break my work up into blocks of time where I will not answer the phone, > email or anyone coming to my desk. I do run a timer which ticks down and > /allow/ interruptions in breaks between 'pomodoros'. The timer is really > useful as when someone comes to interrupt me, I can say, come back in x > minutes. It takes some training of your work colleagues, but they will > eventually respect your
Re: [O] Tracking Interruptions -- Work Flow Question
Yes, I like your setup with org-capture. I think I can overcome the problem of invoking the capture when someone pops in to complain that email is down, for example. I would use either AutoHotKey (I'm on Windows) or bind a function key in Emacs to a taskerruption function for F2F issues. One or two keypresses (ALT-TAB F12), under those circumstances, would not be considered rude in my environment. I used Planner for several years. It had (has) a time-warp function so that the user could create content retroactively. If all else fails, I could schedule the taskerruption retroactively using a similar function in org. - Ray From: Christophe SchockaertTo: Raymond Zeitler Cc: "emacs-orgmode@gnu.org" Sent: Sunday, August 13, 2017 5:56 AM Subject: Re: [O] Tracking Interruptions -- Work Flow Question Raymond Zeitler writes: > Does anyone schedule and "org-clock" interruptions? I really need to quantify > how much of a drain they are to my productivity. > I thought I'd include a generic "** TODO Interruption" in my todo.org (or an > inter.org file) and schedule it every day. Then I'd press "I" every time I > get interrupted and perhaps tag it with a special term. > Or I suppose I could use a capture template just for interruptions. > What do you suggest? I do. I have set up capture templates for phone calls, mail read/write, and general journal log. The former two, I clock-in automatically, the latter one, manually, in case I just want to log something in the course of my current activity. I use tags to identify phone calls and mails, so I could sum up their time, comparing to the whole. I don't do it though. Maybe that's why I didn't tag my "general log journal". But to achieve what you want, that's what I would do. When I handle a phone call or mail or general interruption, I usually keep the clock running until I managed all actions related to it (e.g. summarize the phone call, and scheduling any actions resulting from it), so rather than the interruption itself, I keep track of the whole time to handle it. It doesn't take into account the context switching however, as pointed out by Eric. As for the time to trig the capture... For mails, there are obviously no problems. I am eager to have my mu4e setup running to link directly to the content at the same time. For phone calls, the bell is ringing up to 3 times, so it's ok. It's when somebody comes in that it's a bit tricky to handle, because people expect your attention. I usually focus on the need to take notes to have the opportunity to start my template, where I just write write down a summary of what is said during the talking. HTH, Regards, Christophe
Re: [O] Org-table alignment in Arabic
>>> "jamdrug" == jamdrugwrites: > Dear Sir/Madam, Hello > I am new to this email list about org-mode, first > of all thanks to all contributors of org-mode. I am here seeking > your help considering org-table and Arabic text, the issue is > described in this post of mine sometime ago: > https://emacs.stackexchange.com/q/30495/2443 I have/had similar problems with hebrew. I attach two screenshots. The fonts which seems to display hebrew correctly in the setting discussed, but is quite ugly is: (defun my-hebrew-emacs-etl-set-240 () (interactive) (set-face-font 'default "-etl-*-*-*-*-*-*-240-*-*-*-*-ISO8859-8")) It seems however that arabic is better displayed with (defun my-hebrew-emacs-dejavu-mono () (interactive) (custom-set-faces '(default ((t (:family "DejaVu Sans Mono" :foundry "unknown" :slant normal :weight normal :height 143 :width normal))
Re: [O] Tracking Interruptions -- Work Flow Question
Yes I see your point. Maybe it's too ambitious to determine productivity. But knowing how much time is spent on the interruption (taskerruption) would be a good start. - Ray From: Eric AbrahamsenTo: emacs-orgmode@gnu.org Sent: Saturday, August 12, 2017 10:48 PM Subject: Re: [O] Tracking Interruptions -- Work Flow Question Raymond Zeitler writes: > Does anyone schedule and "org-clock" interruptions? I really need to > quantify how much of a drain they are to my productivity. > > I thought I'd include a generic "** TODO Interruption" in my todo.org (or an > inter.org file) and schedule it every day. Then I'd press "I" every time I > get interrupted and perhaps tag it with a special term. > > Or I suppose I could use a capture template just for interruptions. > > What do you suggest? Seems to me the danger of interruptions is not how much time they take up, but how much time it takes you to recover from them, and get back to work. Much harder to clock!
[O] Bug: Explicit <6> table column width [9.0.9 (release_9.0.9-754-g940c90)]
Hello, I think there might be a something wrong when explicitly setting a width of a table column. For example, for this table |---+--| | | <6> | | 1 | one | | 2 | This is a long chunk of text | | 3 | three| |---+--| when I press in the table the view changes to |---+--| | | <6> | | 1 | one | | 2 | This i | | 3 | three| |---+--| and when I press C-c the view toggles between |---+| | | <6>| | 1 | one| | 2 | This is a long chunk of text | | 3 | three | |---+| and |---+--| | | <6> | | 1 | one | | 2 | This is a long chunk of text | | 3 | three| |---+--| Based on previous versions of org mode, I expect to see |---+| | | <6>| | 1 | one| | 2 | This=> | | 3 | three | |---+| and |---+--| | | <6> | | 1 | one | | 2 | This is a long chunk of text | | 3 | three| |---+--| Thanks, Paul Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.24.23) of 2015-08-26 on localhost.localdomain Package: Org mode version 9.0.9 (release_9.0.9-754-g940c90) current state: == (setq org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-block-all append local] 5 "\n\n(fn)"] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5 "\n\n(fn)"] org-babel-result-hide-spec org-babel-hide-all-hashes) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("id" :follow org-id-open) ("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) ("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-clock-out-hook '(org-clock-remove-empty-clock-drawer) )
Re: [O] org-publish an org-mode outline
Bob Newellwrites: > #+BEGIN_EXAMPLE > * top > ** level 2 > *** level 3 > #+END_EXAMPLE Question answered in another thread, just to confirm: ",* top" etc. works as advertised. I missed that footnote about using a leading comma but the syntax is consistent with Emacs convention, it seems. -- Bob Newell Honolulu, Hawai`i * Via Gnus/BBDB/Org/Emacs/Linux *
Re: [O] [Feature Request] Provide a way to jump to noweb reference definition under point
Hello, "Berry, Charles"writes: > However, there is a bug in either ~org-next-block~ or > ~org-babel-src-block-names~ that causes failure of > `org-babel-src-block-names' to pick up the first block when it starts > in the first line of a buffer or at ~(point-min)~. Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] source block breaks when code looks like heading
Hello, Uwe Koloskawrites: > Am 08.08.2017 um 09:45 schrieb Nicolas Goaziou: >> You need to prepend a comma before the asterisks. See (info "(org)Literal >> examples"). > > This is not documented directly but only in a footnote describing how > `org-edit-special' handles lines starting with special characters. > > What type of blocks are affected by this? Verbatim blocks. You cannot insert a headline in the others (e.g., center, quote). Regards, -- Nicolas Goaziou
Re: [O] [Feature Request] Provide a way to jump to noweb reference definition under point
You want ,[ C-h k C-c C-v g ] | C-c C-v g runs the command org-babel-goto-named-src-block (found in | org-mode-map), which is an interactive autoloaded compiled Lisp | function in ‘ob-core.el’. | | It is bound to C-c C-v g. | | (org-babel-goto-named-src-block NAME) | | Go to a named source-code block. | | [back] ` However, there is a bug in either ~org-next-block~ or ~org-babel-src-block-names~ that causes failure of `org-babel-src-block-names' to pick up the first block when it starts in the first line of a buffer or at ~(point-min)~. So, for now you need to add a line for C-c C-v g to find that first src block in your example HTH, Chuck
Re: [O] source block breaks when code looks like heading
Am 08.08.2017 um 09:45 schrieb Nicolas Goaziou: > You need to prepend a comma before the asterisks. See (info "(org)Literal > examples"). This is not documented directly but only in a footnote describing how `org-edit-special' handles lines starting with special characters. What type of blocks are affected by this? Regards Uwe
Re: [O] Org-table alignment in Arabic
On Fri, 11 Aug 2017 07:16:26 -0400,wrote: Dear Sir/Madam, I am new to this email list about org-mode, first of all thanks to all contributors of org-mode. I am here seeking your help considering org-table and Arabic text, the issue is described in this post of mine sometime ago: https://emacs.stackexchange.com/q/30495/2443 Look forward to your feedback. Best Regards. I'm afraid that I cannot offer any real help, but since nobody else has answered yet, I'll throw out a few thoughts. Bear in mind that I do not speak or read Arabic, and that my knowledge of the language is restricted to being able to recognize three or four of the letters and to being able to say Salaam aleikum. I'm afraid that the problems are inherent in the usual presentation of Arabic text, in which the form of each letter can vary depending upon context. It seems that some people are working on trying to invent better "monospaced" versions of the alphabet, but those all look clumsy, even to their inventors, and especially so to people who are already conditioned to see the beauty of handwritten Arabic. Your mention, elsewhere, of the related problem of Japanese text seems appropriate. In Japanese, the use of kanji, rather than kana, can be seen as more artistic and proper, and the use of non-standard kanji is regarded by some as "intellectual". (Some would say that the more esoteric Chinese characters you know, the smarter you appear to be.) You thus have in front of you a problem as large as you might wish. Think of it as an opportunity. You can design additional Arabic fonts, and campaign to make them popular. You can develop extensions to emacs to handle whatever versions of Arabic text you wish, including the omnipresent need for dealing with "mixed" text where Arabic and other languages occur together. In particular, you can create your own extensions to org mode. I'm thinking that a better set of rules for positioning the elements of a table need to be defined. We'll help you (a little bit) with the lisp. The difficulties, although huge, are not insurmountable. Slightly more than half a century ago the idea of using computers to handle Arabic text in any way at all was regarded as ridiculously complicated. Now it's merely complicated. You might think, "This answer does not even begin to touch the problem. It omits the distinction between the identity of the character and its presentation. It omits regional substitutions. It omits nearly everything." You're right. I've provided many words, and very little help. Here's a pointer to some truly weird person's attempts to do boustrophodon editing via emacs: https://stackoverflow.com/questions/418365/boustrophedon-text-editing Here is yet another discussion of editing Arabic text: https://news.ycombinator.com/item?id=10395464
Re: [O] babel, matlab export plot to png fails
You need to get the contents of the png to get output. Maybe the type command will do that. E.g. Add as the last line: type testplot.png On Sun, Aug 13, 2017 at 1:34 AM Uwe Brauerwrote: > > Hi > > I would like to execute some matlab code in org file (using GNU emacs 26 > and the git version of org mode) and save the result of the plot command > in a png file, so I tried > > #+begin_src matlab :session :exports both :file testplot.png > t=[0:0.1:1]; > y=sin(t); > plot(t,y) > print -dpng testplot.png > #+end_src > > And also > #+begin_src matlab :results output latex :exports results :file > testplot.png > t=[0:0.1:1]; > y=sin(t); > plot(t,y) > print -dpng testplot.png > #+end_src > > But the resulting png files are corrupt. I presume also the matlab > commands are included in the png file which is not correct. But I don't > know who to achieve that just the last command is saved in a png file. > > I googled without success. Does somebody know the correct syntax? > > Thanks > > Uwe Brauer > > > -- 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
Re: [O] [PATCH] * doc/org.texi: Add org-babel-load-languages to Variable Index
Hello, Chunyang Xuwrites: > TINYCHANGE > --- > doc/org.texi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/doc/org.texi b/doc/org.texi > index 944c9c56e..032087fc2 100644 > --- a/doc/org.texi > +++ b/doc/org.texi > @@ -15541,6 +15541,7 @@ Org supports the following languages for the > @samp{src} code blocks: > Additional documentation for some languages are at > @uref{http://orgmode.org/worg/org-contrib/babel/languages.html}. > > +@vindex org-babel-load-languages Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Bug: Babel result block '#+end_example' not indented [9.0.9 (release_9.0.9-748-g3359e0 @ /Users/xcy/src/org-mode/lisp/)]
Hello, Chunyang Xuwrites: > I find my last patch breaks at least ":result org", please see the newer > patch. Thank you for the report and the patch. I ended up applying a slightly different patch, however. Regards, -- Nicolas Goaziou
Re: [O] EXPORT_HTML_HEAD Issue
On 08/13/2017 09:19 AM, Nicolas Goaziou wrote: > Hello, > > Scott Randbywrites: > >> In the properties of a subtree, I have several :EXPORT_HTML_HEAD: >> lines. When I export to HTML, only the first of the lines exports to >> the header. I can get two lines to export to the header by >> using :EXPORT_HTML_HEAD: followed by a :EXPORT_HTML_HEAD_EXTRA: line, >> but I need more than two such lines. This behavior does not happen >> when I have several #+HTML_HEAD: lines the document. What is going on? > > You cannot have multiple identical properties in the same property > drawer. > > You could try > > :export_html_head: line 1 > :export_html_head+: line 2 > :export_html_head+: line 3 This makes sense and works. Thanks. It would probably have helped if I had read the Property syntax section of the manual more closely. Scott
Re: [O] EXPORT_HTML_HEAD Issue
Hello, Scott Randbywrites: > In the properties of a subtree, I have several :EXPORT_HTML_HEAD: > lines. When I export to HTML, only the first of the lines exports to > the header. I can get two lines to export to the header by > using :EXPORT_HTML_HEAD: followed by a :EXPORT_HTML_HEAD_EXTRA: line, > but I need more than two such lines. This behavior does not happen > when I have several #+HTML_HEAD: lines the document. What is going on? You cannot have multiple identical properties in the same property drawer. You could try :export_html_head: line 1 :export_html_head+: line 2 :export_html_head+: line 3 Regards, -- Nicolas Goaziou
Re: [O] Bug: Latex math mode not set in footnotes [9.0.9 (9.0.9-68-g492420-elpa @ /Home/ps/.emacs.d/elpa/org/)]
Hello, Paul Stansellwrites: > Hello, > > Latex math mode is not set in a footnote when exporting an org file to > tex or pdf. Below and attached is a simple example. > > Thanks > > ---cut here-- > * Example > > When exporting to pdf math $\hat{x}$ is okay in the main text but > not in this footnote.[fn:footnote_1: Math $\hat{x}$.] > ---cut here-- Fixed. Thank you. Regards, -- Nicolas Goaziou
[O] [PATCH] * doc/org.texi: Add org-babel-load-languages to Variable Index
TINYCHANGE --- doc/org.texi | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/org.texi b/doc/org.texi index 944c9c56e..032087fc2 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -15541,6 +15541,7 @@ Org supports the following languages for the @samp{src} code blocks: Additional documentation for some languages are at @uref{http://orgmode.org/worg/org-contrib/babel/languages.html}. +@vindex org-babel-load-languages By default, only @code{emacs-lisp} is enabled for evaluation. To enable or disable other languages, customize the @code{org-babel-load-languages} variable either through the Emacs customization interface, or by adding code -- 2.14.1
Re: [O] Tracking Interruptions -- Work Flow Question
Raymond Zeitler writes: > Does anyone schedule and "org-clock" interruptions? I really need to quantify > how much of a drain they are to my productivity. > I thought I'd include a generic "** TODO Interruption" in my todo.org (or an > inter.org file) and schedule it every day. Then I'd press "I" every time I > get interrupted and perhaps tag it with a special term. > Or I suppose I could use a capture template just for interruptions. > What do you suggest? I do. I have set up capture templates for phone calls, mail read/write, and general journal log. The former two, I clock-in automatically, the latter one, manually, in case I just want to log something in the course of my current activity. I use tags to identify phone calls and mails, so I could sum up their time, comparing to the whole. I don't do it though. Maybe that's why I didn't tag my "general log journal". But to achieve what you want, that's what I would do. When I handle a phone call or mail or general interruption, I usually keep the clock running until I managed all actions related to it (e.g. summarize the phone call, and scheduling any actions resulting from it), so rather than the interruption itself, I keep track of the whole time to handle it. It doesn't take into account the context switching however, as pointed out by Eric. As for the time to trig the capture... For mails, there are obviously no problems. I am eager to have my mu4e setup running to link directly to the content at the same time. For phone calls, the bell is ringing up to 3 times, so it's ok. It's when somebody comes in that it's a bit tricky to handle, because people expect your attention. I usually focus on the need to take notes to have the opportunity to start my template, where I just write write down a summary of what is said during the talking. HTH, Regards, Christophe -- ---> https://www.citadels.earth Once it's perfectly aimed, the flying arrow goes straight to its target. Thus, don't worry when things go right. There will be enough time to worry about if they go wrong. Then, it's time to fire a new arrow towards another direction. Don't sink. Adapt yourself ! The archer has to shoot accurately and quickly. [Words of Erenthar, the bowman ranger] <---
Re: [O] Tracking Interruptions -- Work Flow Question
I'm not sure there is any *good* way to track interruptions. As pointed out by others, interruptions are not equal and the actual length of the interruption is not necessarily a good reflection of the actual impact to your productivity. I've found two things which have helped me. One has helped to reduce the interruptions and the other has provided some (minimal) help when I've been questions on why a task has taken longer to complete than estimated. The first has been to use a type of pomodoro technique. Essentially, I break my work up into blocks of time where I will not answer the phone, email or anyone coming to my desk. I do run a timer which ticks down and /allow/ interruptions in breaks between 'pomodoros'. The timer is really useful as when someone comes to interrupt me, I can say, come back in x minutes. It takes some training of your work colleagues, but they will eventually respect your request (and being able to give them a definite 'come back in x minutes' helps). The second thing I do is if an interruption cannot be avoided, I do check out of my current task and only check back in once the interruption has finished. While this doesn't tell you how much productivity was actually lost by the interruption, you can at least do some analysis of the clock times and show how often and for how long you were interrupted - or at least working on that task was interrupted. Tim Michael Welle writes: > Hello, > > Eric Abrahamsenwrites: > >> Raymond Zeitler writes: >> >>> Does anyone schedule and "org-clock" interruptions? I really need to >>> quantify how much of a drain they are to my productivity. >>> >>> I thought I'd include a generic "** TODO Interruption" in my >>> todo.org (or an inter.org file) and schedule it every day. Then I'd >>> press "I" every time I get interrupted and perhaps tag it with a >>> special term. >>> >>> Or I suppose I could use a capture template just for interruptions. >>> >>> What do you suggest? >> >> Seems to me the danger of interruptions is not how much time they take >> up, but how much time it takes you to recover from them, and get back to >> work. Much harder to clock! > yepp. Maybe add a 'braininess' factor to every task. Tasks, that need a > lot of thinking, let's say hacking, have a higher 'braininess' than, for > instance, sharpening pencils. Depending on the 'braininess' of the > interrupted task add another 15 or 30 minutes to the interruption > account. > > Regards > hmw -- Tim Cross
Re: [O] Tracking Interruptions -- Work Flow Question
Hello, Eric Abrahamsenwrites: > Raymond Zeitler writes: > >> Does anyone schedule and "org-clock" interruptions? I really need to >> quantify how much of a drain they are to my productivity. >> >> I thought I'd include a generic "** TODO Interruption" in my >> todo.org (or an inter.org file) and schedule it every day. Then I'd >> press "I" every time I get interrupted and perhaps tag it with a >> special term. >> >> Or I suppose I could use a capture template just for interruptions. >> >> What do you suggest? > > Seems to me the danger of interruptions is not how much time they take > up, but how much time it takes you to recover from them, and get back to > work. Much harder to clock! yepp. Maybe add a 'braininess' factor to every task. Tasks, that need a lot of thinking, let's say hacking, have a higher 'braininess' than, for instance, sharpening pencils. Depending on the 'braininess' of the interrupted task add another 15 or 30 minutes to the interruption account. Regards hmw
[O] [Feature Request] Provide a way to jump to noweb reference definition under point
For example I have an Org buffer like this: ```org #+NAME: define food-journal #+BEGIN_SRC clojure (def food-journal [{:month 1 :day 1 :human 5.3 :critter 2.3} {:month 1 :day 2 :human 5.1 :critter 2.0} {:month 2 :day 1 :human 4.9 :critter 2.1} {:month 2 :day 2 :human 5.0 :critter 2.5} {:month 3 :day 1 :human 4.2 :critter 3.3} {:month 3 :day 2 :human 4.0 :critter 3.8} {:month 4 :day 1 :human 3.7 :critter 3.9} {:month 4 :day 2 :human 3.7 :critter 3.6}]) #+END_SRC #+BEGIN_SRC clojure <> (take-while #(< (:month %) 3) food-journal) #+END_SRC ``` The point is at `<>`. Hope org-mode can provide and shortcut to jump to noweb reference definition `#+NAME: define food-journal`. [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] babel, matlab export plot to png fails
Hi I would like to execute some matlab code in org file (using GNU emacs 26 and the git version of org mode) and save the result of the plot command in a png file, so I tried #+begin_src matlab :session :exports both :file testplot.png t=[0:0.1:1]; y=sin(t); plot(t,y) print -dpng testplot.png #+end_src And also #+begin_src matlab :results output latex :exports results :file testplot.png t=[0:0.1:1]; y=sin(t); plot(t,y) print -dpng testplot.png #+end_src But the resulting png files are corrupt. I presume also the matlab commands are included in the png file which is not correct. But I don't know who to achieve that just the last command is saved in a png file. I googled without success. Does somebody know the correct syntax? Thanks Uwe Brauer
Re: [O] Bug: Babel result block '#+end_example' not indented [9.0.9 (release_9.0.9-748-g3359e0 @ /Users/xcy/src/org-mode/lisp/)]
I find my last patch breaks at least ":result org", please see the newer patch. >From 4ef5b67af22469bf2591dda0b9b90db1f4df8617 Mon Sep 17 00:00:00 2001 From: Chunyang XuDate: Sun, 13 Aug 2017 15:08:52 +0800 Subject: [PATCH] ob-core: Fix indentation * lisp/ob-core.el (org-babel-insert-result): Track the end position of the result block with the marker 'end'. TINYCHANGE --- lisp/ob-core.el | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index f8a660312..dd1efb710 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2290,6 +2290,7 @@ INFO may provide the values of these header arguments (in the (org-escape-code-in-region (min (point) end) end)) (goto-char end) (unless no-newlines (goto-char (point-at-eol))) + (when (markerp end) (set-marker end nil)) (setq end (point-marker (tabulablep (lambda (r) @@ -2384,8 +2385,8 @@ INFO may provide the values of these header arguments (in the ;; Hard code {{{results(...)}}} on top of customization. (format "{{{results(%s)}}}" org-babel-inline-result-wrap))) - (org-babel-examplify-region beg end results-switches inline) - (setq end (point)) + (set-marker-insertion-type end t) + (org-babel-examplify-region beg end results-switches inline) ;; Possibly indent results in par with #+results line. (when (and (not inline) (numberp indent) (> indent 0) ;; In this case `table-align' does the work @@ -2398,6 +2399,7 @@ INFO may provide the values of these header arguments (in the (message "Code block returned no value.") (message "Code block produced no output.")) (message "Code block evaluation complete."))) + (when (markerp end) (set-marker end nil)) (when outside-scope (narrow-to-region visible-beg visible-end)) (set-marker visible-beg nil) (set-marker visible-end nil))) -- 2.14.1 Chunyang Xu writes: > For example (noticing the last line '#+end_example' is not indented with > two space) > > * test > #+BEGIN_SRC sh :results output > seq 10 > #+END_SRC > > #+RESULTS: > #+begin_example > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > #+end_example > > > By reading the source code, I think 'indent-rigidly' doesn't the correct > end bound so the last line is not indented > > (defun org-babel-insert-result (result result-params info hash lang) > ... > (org-babel-examplify-region beg end results-switches inline) > (setq end (point)) > ... > (indent-rigidly beg end indent) > ... > ) > > 'org-babel-examplify-region' wraps the result within > #+begin_example..#+end_example but doesn't move the point forward by one > line because of using save-excursion. > > I attach a patch which uses the marker 'end' to track where the result > block ends, instead of (point). I have tested it against Emacs > 24.5 and 25.2 slightly. > > From f48e1dfc70e7f91fe39c5545997e84855981db82 Mon Sep 17 00:00:00 2001 > From: Chunyang Xu > Date: Sun, 13 Aug 2017 15:08:52 +0800 > Subject: [PATCH] ob-core: Fix indentation > > * lisp/ob-core.el (org-babel-insert-result): Track the end position of the > result block with the marker 'end'. > > TINYCHANGE > --- > lisp/ob-core.el | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/lisp/ob-core.el b/lisp/ob-core.el > index f8a660312..cb4d463a4 100644 > --- a/lisp/ob-core.el > +++ b/lisp/ob-core.el > @@ -2290,7 +2290,9 @@ INFO may provide the values of these header arguments > (in the > (org-escape-code-in-region (min (point) end) > end)) > (goto-char end) > (unless no-newlines (goto-char (point-at-eol))) > - (setq end (point-marker > + (when (markerp end) (set-marker end nil)) > + (setq end (point-marker)) > + (set-marker-insertion-type end t))) > (tabulablep > (lambda (r) >;; Non-nil when result R can be turned into > @@ -2345,6 +2347,7 @@ INFO may provide the values of these header arguments > (in the >(org-babel-chomp result "\n" > (t (goto-char beg) (insert result))) > (setq end (point-marker)) > + (set-marker-insertion-type end t) > ;; possibly wrap result > (cond > ((assq :wrap (nth 2 info)) > @@ -2384,8 +2387,7 @@ INFO may provide the values of these header arguments > (in the > ;; Hard code {{{results(...)}}} on top of > customization. > (format "{{{results(%s)}}}" > org-babel-inline-result-wrap))) > -
[O] Bug: Babel result block '#+end_example' not indented [9.0.9 (release_9.0.9-748-g3359e0 @ /Users/xcy/src/org-mode/lisp/)]
For example (noticing the last line '#+end_example' is not indented with two space) * test #+BEGIN_SRC sh :results output seq 10 #+END_SRC #+RESULTS: #+begin_example 1 2 3 4 5 6 7 8 9 10 #+end_example By reading the source code, I think 'indent-rigidly' doesn't the correct end bound so the last line is not indented (defun org-babel-insert-result (result result-params info hash lang) ... (org-babel-examplify-region beg end results-switches inline) (setq end (point)) ... (indent-rigidly beg end indent) ... ) 'org-babel-examplify-region' wraps the result within #+begin_example..#+end_example but doesn't move the point forward by one line because of using save-excursion. I attach a patch which uses the marker 'end' to track where the result block ends, instead of (point). I have tested it against Emacs 24.5 and 25.2 slightly. >From f48e1dfc70e7f91fe39c5545997e84855981db82 Mon Sep 17 00:00:00 2001 From: Chunyang XuDate: Sun, 13 Aug 2017 15:08:52 +0800 Subject: [PATCH] ob-core: Fix indentation * lisp/ob-core.el (org-babel-insert-result): Track the end position of the result block with the marker 'end'. TINYCHANGE --- lisp/ob-core.el | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index f8a660312..cb4d463a4 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2290,7 +2290,9 @@ INFO may provide the values of these header arguments (in the (org-escape-code-in-region (min (point) end) end)) (goto-char end) (unless no-newlines (goto-char (point-at-eol))) - (setq end (point-marker + (when (markerp end) (set-marker end nil)) + (setq end (point-marker)) + (set-marker-insertion-type end t))) (tabulablep (lambda (r) ;; Non-nil when result R can be turned into @@ -2345,6 +2347,7 @@ INFO may provide the values of these header arguments (in the (org-babel-chomp result "\n" (t (goto-char beg) (insert result))) (setq end (point-marker)) + (set-marker-insertion-type end t) ;; possibly wrap result (cond ((assq :wrap (nth 2 info)) @@ -2384,8 +2387,7 @@ INFO may provide the values of these header arguments (in the ;; Hard code {{{results(...)}}} on top of customization. (format "{{{results(%s)}}}" org-babel-inline-result-wrap))) - (org-babel-examplify-region beg end results-switches inline) - (setq end (point)) + (org-babel-examplify-region beg end results-switches inline) ;; Possibly indent results in par with #+results line. (when (and (not inline) (numberp indent) (> indent 0) ;; In this case `table-align' does the work @@ -2398,6 +2400,7 @@ INFO may provide the values of these header arguments (in the (message "Code block returned no value.") (message "Code block produced no output.")) (message "Code block evaluation complete."))) + (when (markerp end) (set-marker end nil)) (when outside-scope (narrow-to-region visible-beg visible-end)) (set-marker visible-beg nil) (set-marker visible-end nil))) -- 2.14.1
[O] Org table: reuse formula in non-rectangular range
Greetings. I have a situation where I need to use the same table formula all over the place in a table. The problem is that "all over the place" is not rectangular - if it were, this would be trivial. I can see two possible solutions, but I don't know if either of them is possible in Org. 1. A non-rectangular range on the left hand side of a formula. This would be the best choice if it were available. 2. The possibility to create a shorthand (macro) for the formula so that it would be easier to reuse the formula in a large number of rectangular ranges. Is either of these feasible? Jarmo
Re: [O] Bug: Beamer export error
Rasmuswrites: > It should be fixed by commit 323fc95b4. Thank you very much, seems to be in order again. Jarmo