[O] Some LaTeX Beamer / org-mode questions
Hello, I'm working on my first presentation using org mode together with latex beamer (until now, I produce the slide using beamer only). The top of my org file looks like that: #+startup: beamer #+LATEX_CLASS: beamer #+LATEX_CLASS_OPTIONS: [presentation] #+BEAMER_THEME: Boadilla #+LATEX_HEADER: \author[me]{\underline{me}, co1, co2} #+LATEX_HEADER: \title[short title]{multi line long title} #+LATEX_HEADER: \subtitle{subtitle} #+LATEX_HEADER: \institute[short institute]{multi line long institute} This works so far, except the title. Since I do not set a title using #+TITLE, org-mode sets a default \title{presentation}. How can I omit that? Is there a more elegant way to achieve the settings like above? Especially - The short and version of title, author and institute. - The multi line (\\) formatting - The subtitle Thanks! Florian
Re: [O] Some LaTeX Beamer / org-mode questions
Florian Lindner writes: > Hello, > > I'm working on my first presentation using org mode together with latex > beamer (until now, I produce the slide using beamer only). Same as me - beamer in org is really niche when you get the hang of it (still not completely there). > > The top of my org file looks like that: > > #+startup: beamer > #+LATEX_CLASS: beamer > > #+LATEX_CLASS_OPTIONS: [presentation] > #+BEAMER_THEME: Boadilla > #+LATEX_HEADER: \author[me]{\underline{me}, co1, co2} > #+LATEX_HEADER: \title[short title]{multi line long title} > #+LATEX_HEADER: \subtitle{subtitle} > #+LATEX_HEADER: \institute[short institute]{multi line long institute} You could use #+BEAMER_HEADER: instead of #+LATEX_HEADER: - makes it clearer and is only inserted when exporting to beamer. > > This works so far, except the title. Since I do not set a title using > #+TITLE, org-mode sets a default \title{presentation}. How can I omit that? > > Is there a more elegant way to achieve the settings like above? Especially > > - The short and version of title, author and institute. > - The multi line (\\) formatting > - The subtitle Don't know - but wopuld really like to know as well. Rainer > > Thanks! > > Florian > > -- Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 signature.asc Description: PGP signature
Re: [O] Some LaTeX Beamer / org-mode questions
Hi, Florian Lindner writes: > I'm working on my first presentation using org mode together with latex > beamer (until now, I produce the slide using beamer only). > > The top of my org file looks like that: > > #+startup: beamer > #+LATEX_CLASS: beamer > > #+LATEX_CLASS_OPTIONS: [presentation] > #+BEAMER_THEME: Boadilla > #+LATEX_HEADER: \author[me]{\underline{me}, co1, co2} > #+LATEX_HEADER: \title[short title]{multi line long title} > #+LATEX_HEADER: \subtitle{subtitle} > #+LATEX_HEADER: \institute[short institute]{multi line long institute} > > This works so far, except the title. Since I do not set a title using > #+TITLE, org-mode sets a default \title{presentation}. How can I omit > that? #+options: title:nil > Is there a more elegant way to achieve the settings like above? Especially > > - The short and version of title, author and institute. Don't know. > - The multi line (\\) formatting \\ at eol is org syntax for forced line break. > - The subtitle #+subtitle: Hope that helps, Rasmus -- One thing that is clear: it's all down hill from here
Re: [O] Trouble evaluating R source code blocks with C-c C-c
Thanks. The code still seems to freeze. The backtrace now is. Debugger entered--Lisp error: (quit) process-send-string(# ".ess.eval(\"lm(log_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg\nlm(adj_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg.1\nlibrary(car)\nlibrary(lmtest)\nlibrary(sandwich)\ncov1 <- vcovHC(reg, type = \\\"HC1\\\")\nrobust_se<- sqrt(diag(cov1))\n\ncov2 <- vcovHC(reg.1, type = \\\"HC1\\\")\nrobust_se2<- sqrt(diag(cov2))\n # Adjust F statistic\nwald_results <- waldtest(reg, vcov = cov1)\nwald_results2 <- waldtest(reg.1, vcov = cov2)\n\n #coeftest(reg, vcov = hccm)->reg2\noptions(scipen = 999)\nlibrary(stargazer)\nstargazer(reg.1,reg,\n align=TRUE,\n title=\\\"Regression of per capita calorie intake with monthly per capita consumer expenditure, and demographic and other socio-economic variables\\\",\n dep.var.labels = c(\\\"Per capita calorie intake\\\",\\\"Log of per capita calorie intake\\\"),\n se=list(NULL,robust_se,robust_se2),\n omit=\\\"state\\\",\n model.numbers=FALSE,\n report = \\\"vct*\\\",\n single.row=TRUE,\n omit.labels = \\\"State and region dummies\\\")\", visibly = FALSE, output = TRUE, file = '/var/folders/hj/hqfjch716qg5php160jbtfghgn/T/unknown!53134yFm')\n") ess-send-string--fallback(# ".ess.eval(\"lm(log_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg\nlm(adj_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg.1\nlibrary(car)\nlibrary(lmtest)\nlibrary(sandwich)\ncov1 <- vcovHC(reg, type = \\\"HC1\\\")\nrobust_se<- sqrt(diag(cov1))\n\ncov2 <- vcovHC(reg.1, type = \\\"HC1\\\")\nrobust_se2<- sqrt(diag(cov2))\n # Adjust F statistic\nwald_results <- waldtest(reg, vcov = cov1)\nwald_results2 <- waldtest(reg.1, vcov = cov2)\n\n #coeftest(reg, vcov = hccm)->reg2\noptions(scipen = 999)\nlibrary(stargazer)\nstargazer(reg.1,reg,\n align=TRUE,\n title=\\\"Regression of per capita calorie intake with monthly per capita consumer expenditure, and demographic and other socio-economic variables\\\",\n dep.var.labels = c(\\\"Per capita calorie intake\\\",\\\"Log of per capita calorie intake\\\"),\n se=list(NULL,robust_se,robust_se2),\n omit=\\\"state\\\",\n model.numbers=FALSE,\n report = \\\"vct*\\\",\n single.row=TRUE,\n omit.labels = \\\"State and region dummies\\\")\", visibly = FALSE, output = TRUE, file = '/var/folders/hj/hqfjch716qg5php160jbtfghgn/T/unknown!53134yFm')\n" nil "Eval buffer") ess-send-string(# ".ess.eval(\"lm(log_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg\nlm(adj_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg.1\nlibrary(car)\nlibrary(lmtest)\nlibrary(sandwich)\ncov1 <- vcovHC(reg, type = \\\"HC1\\\")\nrobust_se<- sqrt(diag(cov1))\n\ncov2 <- vcovHC(reg.1, type = \\\"HC1\\\")\nrobust_se2<- sqrt(diag(cov2))\n # Adjust F statistic\nwald_results <- waldtest(reg, vcov = cov1)\nwald_results2 <- waldtest(reg.1, vcov = cov2)\n\n #coeftest(reg, vcov = hccm)->reg2\noptions(scipen = 999)\nlibrary(stargazer)\nstargazer(reg.1,reg,\n align=TRUE,\n title=\\\"Regression of per capita calorie intake with monthly per capita consumer expenditure, and demographic and other socio-economic variables\\\",\n dep.var.labels = c(\\\"Per capita calorie intake\\\",\\\"Log of per capita calorie intake\\\"),\n se=list(NULL,robust_se,robust_se2),\n omit=\\\"state\\\",\n model.numbers=FALSE,\n report = \\\"vct*\\\",\n single.row=TRUE,\n omit.labels = \\\"State and region dummies\\\")\", visibly = FALSE, output = TRUE, file = '/var/folders/hj/hqfjch716qg5php160jbtfghgn/T/unknown!53134yFm')\n" nil "Eval buffer") ess-tracebug-send-region(# 1 1183 nil "Eval buffer" buffer) ess-send-region(# 1 1183 nil "Eval buffer" buffer) ess-eval-region(1 1183 nil "Eval buffer" buffer) ess-eval-buffer(nil) org-babel-R-evaluate-session("type2" "lm(log_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg\nlm(adj_cal~sector+sex+AgeChild+AgeAdult+foodprice+log(MPCE)+state_region,data=regdata,weights=weight)->reg.1\nlibrary(car)\nlibrary(lmtest)\nlibrary(sandwich)\ncov1 <- vcovHC(reg, type = \"HC1\")\nrobust_se<- sqrt(diag(cov1))\n\nc
Re: [O] Some LaTeX Beamer / org-mode questions
On Mon, 30 May 2016 11:19:52 +0200 Rasmus wrote: > Hi, > > Florian Lindner writes: > > > I'm working on my first presentation using org mode together with > > latex beamer (until now, I produce the slide using beamer only). > > > > The top of my org file looks like that: > > > > #+startup: beamer > > #+LATEX_CLASS: beamer > > > > #+LATEX_CLASS_OPTIONS: [presentation] > > #+BEAMER_THEME: Boadilla > > #+LATEX_HEADER: \author[me]{\underline{me}, co1, co2} > > #+LATEX_HEADER: \title[short title]{multi line long title} > > #+LATEX_HEADER: \subtitle{subtitle} > > #+LATEX_HEADER: \institute[short institute]{multi line long > > institute} > > > > This works so far, except the title. Since I do not set a title > > using #+TITLE, org-mode sets a default \title{presentation}. How > > can I omit that? > > #+options: title:nil Sorry, can't make it work. > > > Is there a more elegant way to achieve the settings like above? > > Especially > > > > - The short and version of title, author and institute. > > Don't know. > > > - The multi line (\\) formatting > > \\ at eol is org syntax for forced line break. > > > - The subtitle > > #+subtitle: Neither that works for me #+startup: beamer #+LATEX_CLASS: beamer #+LATEX_CLASS_OPTIONS: [presentation] #+BEAMER_THEME: Boadilla #+LATEX_HEADER: \author[me]{me and the coauthors} #+LATEX_HEADER: \title[short title]{long title \\ next line} #+LATEX_HEADER: \institute[short institute]{long institute} #+subtitle: subtitle #+OPTIONS: H:2 toc:t num:t title:nil The subtitle is ignored and the resulting tex file still contains \title{presentation} Thanks, Florian
Re: [O] Some LaTeX Beamer / org-mode questions
Hi, Florian Lindner writes: >> #+options: title:nil > > Sorry, can't make it work. >> #+subtitle: > > Neither that works for me Are you sure you are using an up-to-date version of Org? M-x org-version should return 8.3.something. Rasmus -- Governments should be afraid of their people
[O] How to change agenda sorting order temporarily?
I'm working with a lot of pre-defined agendas, but I sometimes would like to change the sorting order of one of those to different criteria (by time, alphanumerically, etc.). I did not find a way to do that in org-mode directly - did I overlook something, or do I really have to change the configuration of the whole agenda and rebuild it? Related problem: If I change the configuration of the agenda by changing the customizing options, those changes do only have an effect, if I kill the agenda buffer and launch the agenda again. It would be nice, if I just could rebuild the existing agenda with "r" or "g", but that does not seem to be sufficient? Kind regards Martin
[O] Org-agenda-sorting: can I sort by inactive timestamps?
I'm using inactive timestamps to show the creation date of a new heading and also to show the modification dates with some short text notes about the progress in there: Example: * Headings Test <2016-05-30 Mo 13:18> * Heading 1 [2016-05-30 Mo 13:21] * Heading 2 [2016-05-30 Mo 13:16] * Heading 3 [2016-05-30 Mo 13:16] * TODO Find out about sorting by timestamp [2016-05-30 Mo 13:12] [2016-05-30 Mo 14:22] posted question to org-mode users group I tried the timestamp-up/timestamp-down sorting criteria in my agenda, but they seem to ignore the inactive timestamps: ("r" "Refile" tags "+refile+LEVEL=1" ((org-agenda-overriding-header "Refile") (org-agenda-sorting-strategy (quote (timestamp-up) I also tried to use the table-view of the agenda, but in the column "timestamp" it only shows the active timestamp of the first heading. Questions: - is it possible to use inactive timestamps for sorting the agenda? - what happens if I have several timestamps (active or inactive) in one heading? Will org-mode take the first/last one in the plain text "code" or the newest or oldest one by date? Both could make sense to me, so it would be interesting to have both possibilities.. Kind regards Martin
[O] org-mode 8.3.x directly opens URL/ follows Timestamp, if Return is clicked
I recently upgraded from org-mode 8.2.x to org-mode 8.3.4 and all-in-all, it worked really great without too many side effects. Thanks to all of you who contributed and made it such a robust upgrade. :-) However, there is one change that is annoying for me every time I want to enter a linebreak after a Link, URL or timestamp: When I move the cursor after a Link, URL or timestamp and hit return, it follows the link and opens the URL or jumps to the date of the timestamp in an agenda view. I can change that by first entering a space after the link, but I often forget that and it's not a really robust workaround for me. So I wonder how/when this change happened and if I maybe can get the old behavior back? I would prefer to only open a link or follow a timestamp with RETURN, if the cursor is IN the link, not directly after it. Is that possible? Kind regards Martin
[O] lost 'open-square-bracket' since upgrade this morning
Since upgrading to 'org-plus-contrib-20160530' this morning I am totally unable to have an 'open-square-bracket', which negates the ability to write/compose org-links! It shows the 'open-square-bracket' in the mini-buffer but never in the required place in the text. How can I get them back please as its completely stopped me writing my current project? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.94 signature.asc Description: PGP signature
Re: [O] lost 'open-square-bracket' since upgrade this morning
Sharon Kimble writes: > Since upgrading to 'org-plus-contrib-20160530' this morning I am totally > unable to have an 'open-square-bracket', which negates the ability to > write/compose org-links! It shows the 'open-square-bracket' in the > mini-buffer but never in the required place in the text. > > How can I get them back please as its completely stopped me writing my > current project? Could you please explain what you mean by "open-square-bracket" here? A character? A function? A precise description of the problem and the steps to replicated would help in debugging. Best, Matt
Re: [O] Org-agenda-sorting: can I sort by inactive timestamps?
"Martin Beck" writes: > I'm using inactive timestamps to show the creation date of a new > heading and also to show the modification dates with some short text > notes about the progress in there: > > Example: > > * Headings Test > <2016-05-30 Mo 13:18> > * Heading 1 > [2016-05-30 Mo 13:21] > * Heading 2 > [2016-05-30 Mo 13:16] > * Heading 3 > [2016-05-30 Mo 13:16] > * TODO Find out about sorting by timestamp > [2016-05-30 Mo 13:12] > [2016-05-30 Mo 14:22] > posted question to org-mode users group > > > I tried the timestamp-up/timestamp-down sorting criteria in my agenda, > but they seem to ignore the inactive timestamps: > ("r" "Refile" tags "+refile+LEVEL=1" > ((org-agenda-overriding-header "Refile") >(org-agenda-sorting-strategy > (quote > (timestamp-up) > I also tried to use the table-view of the agenda, but in the column > "timestamp" it only shows the active timestamp of the first heading. > Questions: > - is it possible to use inactive timestamps for sorting the agenda? The timestamp-up here retrieves active timestamps. For inactive timestamps, you can use tsia-up. See the docstring (C-h v) for org-agenda-sorting-strategy: tsia-upSort by inactive timestamp, early first tsia-down Sort by inactive timestamp, late first > - what happens if I have several timestamps (active or inactive) in > one heading? Will org-mode take the first/last one in the plain text > "code" or the newest or oldest one by date? With tsia-up or tsia-down, org will use the first inactive timestamp in the heading. For more details, see... http://orgmode.org/manual/Special-properties.html Matt
Re: [O] [BUG] org-mode 8.3.x directly opens URL/ follows Timestamp, if Return is clicked
"Martin Beck" writes: > I recently upgraded from org-mode 8.2.x to org-mode 8.3.4 and > all-in-all, it worked really great without too many side effects. > Thanks to all of you who contributed and made it such a robust > upgrade. :-) > > However, there is one change that is annoying for me every time I > want to enter a linebreak after a Link, URL or timestamp: > > When I move the cursor after a Link, URL or timestamp and hit return, > it follows the link and opens the URL or jumps to the date of the > timestamp in an agenda view. > I can change that by first entering a space after the link, but I > often forget that and it's not a really robust workaround for me. > > So I wonder how/when this change happened and if I maybe can get the > old behavior back? > This bug was fixed on October 31, 2015 with the following commit: a87c34cb8d58e7019c8d081c02bbac9e93cef8ab Unfortunately, that commit must have been applied only to the master branch, as it is not present in the maint branch and thus was not released as part of org-mode 8.3.4. I'm not sure why that commit was never merged into maint. I'm flagging this as a bug to ensure that it is merged. I think the only solution at the moment would be to upgrade to a more recent development version either by checkout org out through git or using elpa: http://orgmode.org/elpa.html Matt
Re: [O] How to change agenda sorting order temporarily?
Hi Martin, Martin Beck writes: > I'm working with a lot of pre-defined agendas, but I sometimes would > like to change the sorting order of one of those to different criteria > (by time, alphanumerically, etc.). > I did not find a way to do that in org-mode directly - did I overlook > something, or do I really have to change the configuration of the > whole agenda and rebuild it? Did you find the variable `org-agenda-sorting-strategy'? That offers a lot of possibilities. > Related problem: > If I change the configuration of the agenda by changing the > customizing options, those changes do only have an effect, if I kill > the agenda buffer and launch the agenda again. > It would be nice, if I just could rebuild the existing agenda with "r" > or "g", but that does not seem to be sufficient? I'm afraid I don't know the answer to this, but would also be interested to hear what it is. Best, Richard
Re: [O] lost 'open-square-bracket' since upgrade this morning
Sharon Kimble writes: > Since upgrading to 'org-plus-contrib-20160530' this morning I am totally > unable to have an 'open-square-bracket', which negates the ability to > write/compose org-links! It shows the 'open-square-bracket' in the > mini-buffer but never in the required place in the text. > > How can I get them back please as its completely stopped me writing my > current project? > Since sending this email I've reverted my init file with last nights backup, and my square brackets have returned so its obviously something changed in today's upgrades of it. Sorry for the noise. Sharon -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.94 signature.asc Description: PGP signature
Re: [O] lost 'open-square-bracket' since upgrade this morning
Matt Lundin writes: > Sharon Kimble writes: > >> Since upgrading to 'org-plus-contrib-20160530' this morning I am totally >> unable to have an 'open-square-bracket', which negates the ability to >> write/compose org-links! It shows the 'open-square-bracket' in the >> mini-buffer but never in the required place in the text. >> >> How can I get them back please as its completely stopped me writing my >> current project? > > Could you please explain what you mean by "open-square-bracket" here? A > character? A function? A precise description of the problem and the > steps to replicated would help in debugging. > I was unable to use this character '[', hence calling it 'open-square-bracket'. But I've got them back again, so no probs. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.94 signature.asc Description: PGP signature
Re: [O] How to change agenda sorting order temporarily?
"Martin Beck" writes: > I'm working with a lot of pre-defined agendas, but I sometimes would > like to change the sorting order of one of those to different criteria > (by time, alphanumerically, etc.). > > I did not find a way to do that in org-mode directly - did I overlook > something, or do I really have to change the configuration of the > whole agenda and rebuild it? > > Related problem: > If I change the configuration of the agenda by changing the > customizing options, those changes do only have an effect, if I kill > the agenda buffer and launch the agenda again. > It would be nice, if I just could rebuild the existing agenda with "r" > or "g", but that does not seem to be sufficient? > Here's a quick function that works for me: --8<---cut here---start->8--- (defun my-org-agenda-change-sorting-strategy (strategy) "Change the sorting strategy." (interactive (list (completing-read "Choose a strategy: " (mapcar 'cdr (cdr org-sorting-choice)) nil t))) ;; adjust the following types as needed - e.g., add 'agenda, etc. (org-agenda-check-type t 'todo 'tags 'search) (let ((org-agenda-sorting-strategy (list (intern strategy (org-agenda-redo))) --8<---cut here---end--->8--- Matt
Re: [O] How to change agenda sorting order temporarily?
Matt Lundin writes: > "Martin Beck" writes: > >> I'm working with a lot of pre-defined agendas, but I sometimes would >> like to change the sorting order of one of those to different criteria >> (by time, alphanumerically, etc.). >> >> I did not find a way to do that in org-mode directly - did I overlook >> something, or do I really have to change the configuration of the >> whole agenda and rebuild it? >> >> Related problem: >> If I change the configuration of the agenda by changing the >> customizing options, those changes do only have an effect, if I kill >> the agenda buffer and launch the agenda again. >> It would be nice, if I just could rebuild the existing agenda with "r" >> or "g", but that does not seem to be sufficient? >> > > Here's a quick function that works for me: > > (defun my-org-agenda-change-sorting-strategy (strategy) > "Change the sorting strategy." > (interactive (list > (completing-read "Choose a strategy: " > (mapcar 'cdr (cdr org-sorting-choice)) > nil t))) > ;; adjust the following types as needed - e.g., add 'agenda, etc. > (org-agenda-check-type t 'todo 'tags 'search) > (let ((org-agenda-sorting-strategy (list (intern strategy > (org-agenda-redo))) I should add that with this function the new sort order is temporary. Pressing "r" for refresh will restore the default sort order for the buffer. Matt
Re: [O] Trouble evaluating R source code blocks with C-c C-c
On Mon, 30 May 2016, Vikas Rawal wrote: Thanks. The code still seems to freeze. The backtrace now is. OK, let me abbreviate this by cutting off the ends of long lines: Debugger entered--Lisp error: (quit) process-send-string(# ".ess.eval(\"lm(log_cal~sector+ [...] ess-send-string--fallback(# ".ess.eval(\"lm(log_cal~ [...] ess-send-string(# ".ess.eval(\"lm(log_cal~sector+sex+ [...] ess-tracebug-send-region(# 1 1183 nil "Eval buffer" buffer) ess-send-region(# 1 1183 nil "Eval buffer" buffer) ess-eval-region(1 1183 nil "Eval buffer" buffer) ess-eval-buffer(nil) org-babel-R-evaluate-session("type2" "lm(log_cal~sector+sex+AgeChild+ [...] org-babel-R-evaluate("type2" "lm(log_cal~sector+sex+AgeChild+AgeAdult+ [...] org-babel-execute:R("lm(log_cal~sector+sex+AgeChild+AgeAdult+foodprice+ [...] org-babel-execute-src-block(nil) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) command-execute(org-ctrl-c-ctrl-c) And what you had previously was [using some abbreviations]: sit-for(0.25) org-babel-comint-eval-invisibly-and-wait-for-file("type2" [filename] [R command string] [...] org-babel-R-evaluate-session("type2" [R command string] ... org-babel-R-evaluate("type2" [R command string] ... org-babel-execute:R( [R command string] ... org-babel-execute-src-block(nil) org-babel-execute-src-block-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) command-execute(org-ctrl-c-ctrl-c) What you can see is that everything is the same right up to this line `org-babel-R-evaluate-session(...' but in the top (most recent) version ess-* functions are shown right up to process-send-string, which means that ess is still trying to complete its work. In the older (bottom) version ess is done and babel is waiting for the resulting file. This makes me wonder what R is doing. Can you check the activity monitor (you are on OS X, right?) and see what is happening? If the R code takes a long time to run and the R process is chewing up CPU or reading from/writing to disk this would explain it. If that isn't it, you might try to put in some checkpoints to see how far the R code got. I'd put something like cat("Starting",file="progress.txt") at the top of your src code and cat(".",file="progress.txt",append=TRUE) after every line and cat("Done\n",file="progress.txt",append=TRUE) after the last command at the very bottom. Then if the R code hangs somewhere you can open `progress.txt', count up the dots, and see where it got to. If that does not appeal to you, then profiling the R code might do. see ?Rprof. Finally, you aren't doing something exotic - like trying to run src blocks from a local buffer in a remote session - are you? If so, that adds a layer of complexity that needs discussion. HTH, Chuck
Re: [O] org-mode 8.3.x directly opens URL/ follows Timestamp, if Return is clicked
On 30 May 2016 at 13:42, Martin Beck wrote: > I can change that by first entering a space after the link, but I often > forget that and it's not a really robust workaround for me. My workaround is C-o C-f (open-line, forward-char). -- Phil Hudson http://hudson-it.ddns.net @UWascalWabbit PGP/GnuPG ID: 0x887DCA63
Re: [O] How to change agenda sorting order temporarily?
we have more or less instant tag filtering. i wonder if we could also have instant sort order changing?
Re: [O] Inquiry about ical2org
On Friday, 27 May 2016 at 16:06, John Hendy wrote: > Is your original version anywhere handy? I tried searching but don't > seem to find it. I have not made it available since the one on Worg diverged but only because I didn't get around to doing anything about it. Attached is my latest version which I use daily. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-164-g50a182 ical2org.awk Description: Binary data
[O] [BUG] error with org-refile and ido-completion-help
When calling org-refile with org-completion-use-ido set to t, pressing TAB in ido-mode results in an error. This is because ido-completion-help expects a list of strings. However, org-refile sends ido-completing-read a list of lists. To replicate: 1. /usr/bin/emacs -Q -l ~/.minimal.el --8<---cut here---start->8--- (add-to-list 'load-path "~/org-mode/lisp") (add-to-list 'load-path "~/org-mode/contrib/lisp") (ido-mode) (setq org-completion-use-ido 1) --8<---cut here---end--->8--- Go to an org file with headlines: --8<---cut here---start->8--- * One * Two * Three --8<---cut here---end--->8--- 2. Call org-refile on the first headline. 3. Press TAB within the ido minibuffer. (See the backtrace at the bottom of this post). A git bisect revealed that the change was introduced in 2015 with the following commit: , | commit 50ba0a5ed609f3600f2590f3ba22b8ab3ff3331c | Author: Nicolas Goaziou | Date: Sun Jun 7 00:38:58 2015 +0200 | | Fix 1a7364177046b8a57ade0aeb9f52bacfc0b8b088 | | * lisp/org.el (org-icompleting-read): Let `completing-read' or | equivalent sort out type of completion. | (org-olpath-completing-read): Revert partially | 1a7364177046b8a57ade0aeb9f52bacfc0b8b088. ` It looks like this commit removed some functionality from the now obsolete org-icompleting-read that made sure that the items in the completion list passed to the completing read function were strings. Matt --8<---cut here---start->8--- Debugger entered--Lisp error: (wrong-type-argument arrayp (#("Three" 0 5 (face org-level-1 fontified t)) "/home/matt/test.org" "^\\(\\*+\\)\\(?: +\\(DONE\\|TODO\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%/]+\\] *\\)*\\(Three\\)\\(?: *\\[[0-9%/]+\\]\\)*\\)\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[]*$" 14)) ido-no-final-slash((#("Three" 0 5 (face org-level-1 fontified t)) "/home/matt/test.org" "^\\(\\*+\\)\\(?: +\\(DONE\\|TODO\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%/]+\\] *\\)*\\(Three\\)\\(?: *\\[[0-9%/]+\\]\\)*\\)\\(?:[]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$" 14)) ido-file-lessp((#("Three" 0 5 (face org-level-1 fontified t)) "/home/matt/test.org" "^\\(\\*+\\)\\(?: +\\(DONE\\|TODO\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%/]+\\] *\\)*\\(Three\\)\\(?: *\\[[0-9%/]+\\]\\)*\\)\\(?:[]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[]*$" 14) (#("Two" 0 3 (face org-level-1 fontified t)) "/home/matt/test.org" "^\\(\\*+\\)\\(?: +\\(DONE\\|TODO\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%/]+\\] *\\)*\\(Two\\)\\(?: *\\[[0-9%/]+\\]\\)*\\)\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[]*$" 8)) sort(((#("Two" 0 3 (face org-level-1 fontified t)) "/home/matt/test.org" "^\\(\\*+\\)\\(?: +\\(DONE\\|TODO\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%/]+\\] *\\)*\\(Two\\)\\(?: *\\[[0-9%/]+\\]\\)*\\)\\(?:[ ]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[]*$" 8)) ido-file-lessp) ido-completion-help() funcall-interactively(ido-completion-help) call-interactively(ido-completion-help) ido-complete() funcall-interactively(ido-complete) call-interactively(ido-complete nil nil) command-execute(ido-complete) read-from-minibuffer("Refile subtree \"One\" to: " nil (keymap keymap (4 . ido-magic-delete-char) (6 . ido-magic-forward-char) (2 . ido-magic-backward-char) (63 . ido-completion-help) (left . ido-prev-match) (right . ido-next-match) (0 . ido-restrict-to-matches) (27 keymap (32 . ido-take-first-match)) (67108896 . ido-restrict-to-matches) (26 . ido-undo-merge-work-directory) (20 . ido-toggle-regexp) (67108908 . ido-prev-match) (67108910 . ido-next-match) (19 . ido-next-match) (18 . ido-prev-match) (16 . ido-toggle-prefix) (13 . ido-exit-minibuffer) (10 . ido-select-text) (32 . ido-complete-space) (9 . ido-complete) (5 . ido-edit-input) (3 . ido-toggle-case) (1 . ido-toggle-ignore) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the minibuffer") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuffer") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . abort-recursive-edit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-hist
Re: [O] assign tags via helm/avy?
Here is a helm approach that seems like what you want. #+BEGIN_SRC emacs-lisp (defun tag-lister () "Function that gets and returns possible tags." (list "tag1" "tag2" "tag3")) (defun helm-tagger () (interactive) (helm :sources `((name . "HELM tag setter") (candidates . ,(tag-lister)) (action . (lambda (candidate) (org-set-tags-to (helm-marked-candidates))) #+END_SRC Xebar Saram writes: > Hi guys > > i have a bunch of tags i define via > > (:startgroup) > ("Where?") > (:grouptags) > ("@home" . ?h) > ("@work" . ?w) > ("@pc" . ?p) > ("@family" . ?f) > ("@shop" . ?s) > (:endgroup) > > (:startgrouptag) > ("people") > (:grouptags) > ("allan" . ?a) > ("bob" . ?o) > ("joel" . ?j) > ("david" . ?d) > ("boris" . ?b) > ("massimo" . ?s) > (:endgrouptag) > > anyone know of a way to quick add tags via a helm/avy interface? > > right now its quite cumbersome to press C-c then C-c to see a list of all > tags. also some tags have the same key (?a) and then its impossible to > select the 2nd one > > thx alot in advance > > Z -- 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] [BUG] org-mode 8.3.x directly opens URL/ follows Timestamp, if Return is clicked
Matt Lundin writes: > "Martin Beck" writes: > >> I recently upgraded from org-mode 8.2.x to org-mode 8.3.4 and >> all-in-all, it worked really great without too many side effects. >> Thanks to all of you who contributed and made it such a robust >> upgrade. :-) >> >> However, there is one change that is annoying for me every time I >> want to enter a linebreak after a Link, URL or timestamp: >> >> When I move the cursor after a Link, URL or timestamp and hit return, >> it follows the link and opens the URL or jumps to the date of the >> timestamp in an agenda view. >> I can change that by first entering a space after the link, but I >> often forget that and it's not a really robust workaround for me. >> >> So I wonder how/when this change happened and if I maybe can get the >> old behavior back? >> > > This bug was fixed on October 31, 2015 with the following commit: > > a87c34cb8d58e7019c8d081c02bbac9e93cef8ab > > Unfortunately, that commit must have been applied only to the master > branch, as it is not present in the maint branch and thus was not > released as part of org-mode 8.3.4. I'm not sure why that commit was > never merged into maint. I'm flagging this as a bug to ensure that it is > merged. > > I think the only solution at the moment would be to upgrade to a more > recent development version either by checkout org out through git or > using elpa: > > http://orgmode.org/elpa.html I'm using org-plus-contrib from elpa, and still see this bug...
Re: [O] [BUG] org-mode 8.3.x directly opens URL/ follows Timestamp, if Return is clicked
Eric Abrahamsen writes: >> This bug was fixed on October 31, 2015 with the following commit: >> >> a87c34cb8d58e7019c8d081c02bbac9e93cef8ab >> >> Unfortunately, that commit must have been applied only to the master >> branch, as it is not present in the maint branch and thus was not >> released as part of org-mode 8.3.4. I'm not sure why that commit was >> never merged into maint. I'm flagging this as a bug to ensure that it is >> merged. >> >> I think the only solution at the moment would be to upgrade to a more >> recent development version either by checkout org out through git or >> using elpa: >> >> http://orgmode.org/elpa.html > > I'm using org-plus-contrib from elpa, and still see this bug... You are right; I spoke too soon. ELPA packages are based on the maint branch, so installing from ELPA won't help. Until this bug fix makes its way to maint, the only solution is to use the org repo or to patch the ELPA download manually. Matt
Re: [O] assign tags via helm/avy?
thx so much john! is there a way where the function can auto read all the tags from "org-tag-persistent-alist " instead of manfully adding to the function each time a new tag is added? best Z On Tue, May 31, 2016 at 3:42 AM, John Kitchin wrote: > Here is a helm approach that seems like what you want. > > #+BEGIN_SRC emacs-lisp > (defun tag-lister () > "Function that gets and returns possible tags." > (list "tag1" "tag2" "tag3")) > > (defun helm-tagger () > (interactive) > (helm >:sources >`((name . "HELM tag setter") > (candidates . ,(tag-lister)) > (action . (lambda (candidate) > (org-set-tags-to (helm-marked-candidates))) > > > #+END_SRC > Xebar Saram writes: > > > Hi guys > > > > i have a bunch of tags i define via > > > > (:startgroup) > > ("Where?") > > (:grouptags) > > ("@home" . ?h) > > ("@work" . ?w) > > ("@pc" . ?p) > > ("@family" . ?f) > > ("@shop" . ?s) > > (:endgroup) > > > > (:startgrouptag) > > ("people") > > (:grouptags) > > ("allan" . ?a) > > ("bob" . ?o) > > ("joel" . ?j) > > ("david" . ?d) > > ("boris" . ?b) > > ("massimo" . ?s) > > (:endgrouptag) > > > > anyone know of a way to quick add tags via a helm/avy interface? > > > > right now its quite cumbersome to press C-c then C-c to see a list of all > > tags. also some tags have the same key (?a) and then its impossible to > > select the 2nd one > > > > thx alot in advance > > > > Z > > > -- > 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] assign tags via helm/avy?
On Mon, May 30, 2016, 11:18 PM Xebar Saram wrote: > thx so much john! > > is there a way where the function can auto read all the tags from > "org-tag-persistent-alist " instead of manfully adding to the function each > time a new tag is added? > > best > > Z > If you use the ivy-family of list completion, check out the counsel package, and the cousel-org-tag function in there. > -- -- Kaushal Modi
Re: [O] [BUG] org-mode 8.3.x directly opens URL/ follows Timestamp, if Return is clicked
Matt Lundin writes: > Eric Abrahamsen writes: > >>> This bug was fixed on October 31, 2015 with the following commit: >>> >>> a87c34cb8d58e7019c8d081c02bbac9e93cef8ab >>> >>> Unfortunately, that commit must have been applied only to the master >>> branch, as it is not present in the maint branch and thus was not >>> released as part of org-mode 8.3.4. I'm not sure why that commit was >>> never merged into maint. I'm flagging this as a bug to ensure that it is >>> merged. >>> >>> I think the only solution at the moment would be to upgrade to a more >>> recent development version either by checkout org out through git or >>> using elpa: >>> >>> http://orgmode.org/elpa.html >> >> I'm using org-plus-contrib from elpa, and still see this bug... > > You are right; I spoke too soon. ELPA packages are based on the maint > branch, so installing from ELPA won't help. Until this bug fix makes its > way to maint, the only solution is to use the org repo or to patch the > ELPA download manually. No big deal! It's mildly annoying, but knowing the fix is on the way is enough. Thanks, Eric