Re: [O] Problem with links whose description looks like a link
Nicolas Goaziou writes: > Daniel Bausch writes: > >> Hmm, ok, I understand the intention regarding the detection and display >> of inline images as part of a link description; however, even for inline >> images following the link jumps to the target of the outer link and not >> the image itself -- as long as inline images are toggled on. Without >> showing inline images following the link opens the image regardless of >> the original link target. > > You're right. The current behaviour doesn't make sense. This is fixed in > master. Thanks for suggesting it. I confirm that my code bookmarks now work as intended. Thank you very much! Regards, Daniel -- MSc. Daniel Bausch Research Assistant (Computer Science) Technische Universität Darmstadt http://www.dvs.tu-darmstadt.de/staff/dbausch
Re: [O] SQL support in Babel
Seb writes: > Hi, > > The last code block in ob-doc-sql¹ suggests I should be able to place a > number of #+HEADER lines above my SQL source code to specify the > connection string. I am trying to connect to a remote PostgreSQL > server, and after lots of experimentation, the only way this works for > me is to have a single #+HEADER line with a :cmdline with the entire > connection string. All the other header arguments (:database, :dbuser, > etc.), whether in separate lines or in a single one, seem to be > completely ignored. Using Org 8.2.10 and Emacs 24.4.1 from Debian Sid > packages. Is this a problem with this version combination, or does the > functionality of the header arguments depend on the engine being used? > Thanks. > > > +--- Footnotes ---+ > ¹ http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sql.html FWIW, the following worked fine for me: #+name: my-query #+header: :engine postgresql #+header: :dbhost #+header: :dbuser #+header: :dbpassword #+header: :database sheetmusic #+begin_src sql SELECT id, creator, title, category, boxnumber FROM music WHERE id > 300; #+end_src #+RESULTS: my-query | # -*- coding: utf-8 -*- | | | | | | id | creator | title | category | boxnumber | |-+-+---+---+---| | 387 | 92 | Lullay my Liking | Christmas | 101 | | 397 | 303 | Te Deum in B minor | General | 314 | | ... GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-08-11 Org-mode version 8.3beta (release_8.3beta-559-g43ca1f @ /home/nick/elisp/org-mode/lisp/) -- Nick
[O] Bernt Hansen's
Nick Dokos gmail.com> writes: > > Gary Oberbrunner oberbrunner.com> writes: > > > Thomas S. Dye tsdye.com> wrote: > > > > > One solution is to use a capture template for TODO items and then > > > refile them. I picked this up from Bernt Hansen and like it a lot: > > > http://doc.norang.ca/org-mode.html#Capture > > > > Wow, that guy is serious! I don't think his setup solves what I'm > > looking for, but there is so much great stuff in there it'll take me > > weeks to check it all out. > > Indeed - Bernt's writeup has been the source of inspiration for lots of > people on this list. I wonder whether Bernt would agree to turn his config file into an actual lisp package that could be available via Elpa? I find his code pretty close to what GTD should look like. There are a few things though that could be twicked a bit in order to comply with David Allen's new book on Getting Things Done. I will try to contact Bernt and ask him to deliver such an org-gtd.el package. That would be great for the orgmode community. --
Re: [O] Support for "parts"
Marcin Borkowski writes: > Hi there, > > just wondering: in LaTeX, there is a concept of a "part", which is above > "chapter" in the hierarchy. Is there any way to do something similar in > Org? To be more precise: I'd want something like this: > > \chapter{Introduction} > > \part{For beginners} > > \chapter{One} > \chapter{Two} > > \part{For advanced users} > > \chapter{Three} > \chapter{Four} > > > I guess it's not possible, but who knows? It's Org, after all;-). > Almost but not quite: as you say, \part is above \chapter in the hierarchy, so you cannot have a separate introduction chapter outside a part. But you can have three parts: > \part{Introduction} > \chapter{Introduction} > > \part{For beginners} > > \chapter{One} > \chapter{Two} > > \part{For advanced users} > > \chapter{Three} > \chapter{Four} Just use the book class: #+LATEX_CLASS: book Then one-star headings become parts, two-star headings become chapters, etc. -- Nick
Re: [O] Problem with links whose description looks like a link
Daniel Bausch writes: > Hmm, ok, I understand the intention regarding the detection and display > of inline images as part of a link description; however, even for inline > images following the link jumps to the target of the outer link and not > the image itself -- as long as inline images are toggled on. Without > showing inline images following the link opens the image regardless of > the original link target. You're right. The current behaviour doesn't make sense. This is fixed in master. Thanks for suggesting it. Regards,
[O] Support for "parts"
Hi there, just wondering: in LaTeX, there is a concept of a "part", which is above "chapter" in the hierarchy. Is there any way to do something similar in Org? To be more precise: I'd want something like this: \chapter{Introduction} \part{For beginners} \chapter{One} \chapter{Two} \part{For advanced users} \chapter{Three} \chapter{Four} I guess it's not possible, but who knows? It's Org, after all;-). TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
Re: [O] clock gone error, fixing it issues, and K does not clock out
On 11/20/14, Eric S Fraga wrote: > How are you installing the maint version of org? Elpa? git maint. i think the clock start time is gone bug is known, but it happens even when i don't make any changes that could change clocking marks. perhaps it gets triggered by magit revert, but even there i think it happens without it. i'm surprised the K keeps clocking but is not reproducible.
[O] Bug: [Capture] wrongly duplicated date tree outlines [8.2.10]
I want to have a `file+datetree` for Org-mode's Capture, so I set like this: (setq org-capture-templates '(("D" "Diary + Timer" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %^{Description: } %^g \n %i %?\n" :clock-in t :clock-keep t) ("d" "Diary" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %? %U") )) And use these captures to add items for `diary.org` several times. I expect the file has: * 2014 ** 2014-11 11 月 *** 2014-11-21 金曜日 test1 [2014-11-21 金 03:08] test2 [2014-11-21 金 03:08] test3 [2014-11-21 金 03:08] But what I get is like this: * 2014 ** 2014-11 11 月 *** 2014-11-21 金曜日 test1 [2014-11-21 金 03:08] ** 2014-11 11 月 *** 2014-11-21 金曜日 test2 [2014-11-21 金 03:09] ** 2014-11 11 月 *** 2014-11-21 金曜日 test3 [2014-11-21 金 03:09] How to solve this problem...? (I've ever used Org's Capture one year ago, and at that time it worked just liked I wish; I have no idea why it becomes this.) I just asked this problem on StackExchange: http://emacs.stackexchange.com/questions/3757/orgs-capture-annoying-duplicated-date-tree-outlines And it seems a bug of Org-mode itself. Emacs : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-10-23 on kuanyui-laptop.site Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/share/emacs/24.4/lisp/org/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(wikipedia-outline-magic-keys) org-latex-classes '(("article" "\n\\documentclass[12pt,a4paper]{article}\n\\usepackage[margin=2cm]{geometry}\n\\usepackage{fontspec}\n\\setromanfont{cwTeXMing}\n\n\\usepackage{etoolbox} % Quote部份的字型設定\n\\newfontfamily\\quotefont{cwTeXFangSong}\n\\AtBeginEnvironment{quote}{\\quotefont\\small}\n\n\\setmonofont[Scale=0.9]{Courier} % 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at 10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p %不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at 10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at 10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at 10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus 1pt\n\\linespread{1.36}\n\n\\usepackage{multicol}\n\n% [FIXME] ox-latex 的設計不良導致hypersetup必須在這裡插入\n\\usepackage{hyperref}\n\\hypersetup{\n colorlinks=true, %把紅框框移掉改用字體顏色不同來顯示連結\n linkcolor=[rgb]{0,0.37,0.53},\n citecolor=[rgb]{0,0.47,0.68},\n filecolor=[rgb]{0,0.37,0.53},\n urlcolor=[rgb]{0,0.37,0.53},\n pagebackref=true,\n linktoc=all,}\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("beamer" "\n\\documentclass[presentation]{beamer}\n\\usepackage{fontspec}\n\\setromanfont{wqyHeiMicro}\n\n\\setmonofont[Scale=0.9]{Courier} % 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at 10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p %不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at 10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at 10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at 10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus 1pt\n\\linespread{1.36}\n\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ) org-latex-default-packages-alist '(("" "hyperref" nil) ("AUTO" "inputenc" t) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" t) ("" "amsmath" t) ("" "textcomp" t) ("" "marvosym" t) ("" "wasysym" t) ("" "amssymb" t) "\\tolerance=1000") org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'ti
[O] Org-Oddmuse?
Hi list, I found this: http://www.emacswiki.org/OrgOddmuse, but it seems not to work with current Org (Org-mode version 8.2.5f (8.2.5f-elpa @ /home/marcin/.emacs.d/elpa/org-20140116/)). My suspicion is that it was not updated to the "new" exporter. Am I right? Are there any options to export from Org to Oddmuse syntax? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
[O] SQL support in Babel
Hi, The last code block in ob-doc-sql¹ suggests I should be able to place a number of #+HEADER lines above my SQL source code to specify the connection string. I am trying to connect to a remote PostgreSQL server, and after lots of experimentation, the only way this works for me is to have a single #+HEADER line with a :cmdline with the entire connection string. All the other header arguments (:database, :dbuser, etc.), whether in separate lines or in a single one, seem to be completely ignored. Using Org 8.2.10 and Emacs 24.4.1 from Debian Sid packages. Is this a problem with this version combination, or does the functionality of the header arguments depend on the engine being used? Thanks. +--- Footnotes ---+ ¹ http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sql.html -- Seb
Re: [O] Orgmode links trouble with Emacs 24.4 on Windows 7: "ShellExecute failed: ..."
As this does not seem to be an orgmode, but an emacs on windows issue, I'll ask on the emacs list, so beware: crossposting. Am Mittwoch, 19. November 2014, 16:25:18 schrieb AW: > Am Dienstag, 18. November 2014, 22:36:46 schrieb Nicolas Goaziou: > > Hello, > > > > AW writes: > > > I installed Emacs 24.4 on Windows 7. > > > > > > Everything works, except some of my links in orgmode. They worked under > > > Emacs 24.3, and they work with Emacs 24.4 under Linux. > > > > > > The non-working links have a certain structure: I'm using shorcuts. I > > > have > > > a file "AW-org-file.el", containing lines like: > > > > > > (setq org-link-abbrev-alist > > > '(name . "//SBS2011/path/to/folder/%s")) > > > > It should be > > > > (setq org-link-abbrev-alist '(("name" . "//SBS2011/path/to/folder/%s"))) > > > > > The links in the org-files look like this: > > > > > > [[name:filename]] > > > > > > or > > > > > > [[name:./path/down/the/folder/filename.pdf]] > > > > Use > > > > M-: (org-element-property :path (org-element-context)) > > > > with point on each of them. Is the path a valid (according to Windows) > > file name? > > > > > > Regards, > > Hello, > > yes, I did that and the path is valid, it becomes, well, say, "expanded". > > Except that it contains slashes ( "/" ) instead of backslashes, it is > exactly what I expected. And to be clear: the same link works with Emacs > 24.3 under Windows 7 as well as under Linux and Emacs 24.4. > > Thank you for your much appreciated help! > > Regards, > > Alexander
Re: [O] Could org-mode implement multiple rows in tables?
Rasmus writes: >> Perhaps, this could be feasible now? > > Of course it would be feasible, but it would probably require *a lot* of > work, and you haven't argued why this is compelling. How would I even specify "a" as a multirow in the following matrix? Maybe some signal could be used like <⋯> in the case of vertical-border groups. | a | b | | | c | —Rasmus -- m-mm-mmm- bacon!
Re: [O] Could org-mode implement multiple rows in tables?
Hi Ma, Ma Jiehong writes: > But what about having some cells spanning through more than 1 row > (that is to say, vertically)? Just to understand, you are asking for something like this: | | b | | a |---| | | c | It's not supported ATM. You could probably make an export filter to get it in the output, if that's what you are looking for. There's table.el-tables which support this kind of thing, but they are not really convenient to work with, and at least in LaTeX they will not easily support booktabs (last I checked). > Was that already been considered in the past, and if so, why was it > rejected? I don't know. > Perhaps, this could be feasible now? Of course it would be feasible, but it would probably require *a lot* of work, and you haven't argued why this is compelling. Personally, I can see the use of multicolumns, |a | || | b | c | but less so of multirows. Hope it helps, Rasmus -- One thing that is clear: it's all down hill from here
Re: [O] How to trigger the clockcheck in an agenda view.
Am 27.09.2013 um 15:00 schrieb Carsten Dominik: > > On 10.9.2013, at 17:07, Nicolas Girard wrote: > >> 2013/8/5 Sebastien Vauban : >>> >>> Except the above, I definitely don't understand why it wouldn't work for >>> you. >>> Can you reproduce the problem with a minimal Emacs config file (adding the >>> require of `org' and `org-agenda' before)? >>> >> >> I think I understand why Rainer has a problem. >> >> According to the docstring from `org-agenda-custom-commands', there >> are two acceptable syntaxes for defining a command: >> - the "simple" one : (key desc type match settings files) >> - and the "complex" or "composite" one : (key desc (cmd1 cmd2 ...) >> general-settings-for-whole-set files). >> >> Now, the following code defines two commands, who are functionally >> identical, but syntactically different. The first one uses the "simple" >> syntax, and the second one, the "complex" syntax. >> >> If you evaluate the code and trigger the agenda, you'll see that the >> first command *doesn't* work as expected, while the second works. >> >> (I just borrowed your scissors to delimit my code, hope you don't mind ;-) ) >> >> --8<---cut here---start->8--- >> (setq org-agenda-custom-commands nil) >> (setq org-agenda-custom-commands >>(append >> org-agenda-custom-commands '( >> ("G" "Good: Clock Review" >> ((agenda "" >> ((org-agenda-show-log 'clockcheck) >>(org-agenda-clockreport-mode t) >> ("B" "Bad: Clock Review" >> agenda "" >> ((org-agenda-show-log 'clockcheck) >> (org-agenda-clockreport-mode t)) >> --8<---cut here---end--->8--- > > There are a couple of subtle issues here. > > First of all, do not bind org-agenda-clockreport-mode or org-agenda-show-log > in this way, these are internal variables and meant for a mode that is > toggled interactively. Use org-agenda-start-with-clockreport-mode and > org-agenda-start-with-log-mode instead. These are the values chosen when a > new agenda buffer is created, and at that time its value is copied into > internal variables. > > Second, because this happens when the agenda buffer is created, these need to > be in the global list of variables, not the local ones for the agenda list, > when you use a list of commands. So the example below will work in both > cases: > > (setq org-agenda-custom-commands >(append > org-agenda-custom-commands '( > ("H" "Good: Clock Review" > ((agenda "")) >((org-agenda-start-with-log-mode 'clockcheck) > (org-agenda-start-with-clockreport-mode t))) > ("C" "Bad: Clock Review" > agenda "" > ((org-agenda-start-with-log-mode 'clockcheck) > (org-agenda-start-with-clockreport-mode t)) > > > > Hope this helps. > > - Carsten > Hello Carsten, thank you for that. clockcheck is working. But as soon as I get the clockcheck view the scheduled items to disappear in my agenda view. I only can get scheduled items or all items in clockchecked view, not both features. Any idea? Thanks! - Rainer
[O] calendar (backwards-)integration
The Org Mode docs [1] say: | In order to include entries from the Emacs diary into Org mode's | agenda, you only need to customize the variable | | (setq org-agenda-include-diary t) Is there any way to include data in the other direction, so that scheduled events are marked in the calendar? It's possible to display scheduled events in Calfw: (add-to-list 'load-path "~/.../emacs-calfw") (require 'calfw) (require 'calfw-org) ;; for convenience: (defalias 'org-calendar 'cfw:open-org-calendar) But I'd prefer to do this with the built-in calendar if possible. Joe [1]: http://orgmode.org/manual/Weekly_002fdaily-agenda.html
Re: [O] clock gone error, fixing it issues, and K does not clock out
On Wednesday, 19 Nov 2014 at 17:42, Samuel Wales wrote: > On 11/19/14, Eric S Fraga wrote: >> Maybe just you? What version of org are you using? How are you >> clocking out? > > maint. c-c c-x c-o. How are you installing the maint version of org? Elpa? Maybe have a look at some of the org-clock- related settings? I have not experienced anything at all like what you describe so cannot help any further really. Sorry. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-578-g4df091
[O] heads up: problems with getting X secondary selection in recent Emacs
Hello, there appear to be some problems with recent development/snapshot versions of emacs with respect to getting the X selections. Org uses these automatically within org-capture and, at best, causes long delays in capturing anything and, at worst, doesn't work at all. I have found that letting org only consider the PRIMARY and CLIPBOARD selections sort of solves the problem for the time being: --8<---cut here---start->8--- diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 65de098..f94becb 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1534,7 +1534,8 @@ The template may still contain \"%?\" for cursor positioning." (v-c (and (> (length kill-ring) 0) (current-kill 0))) (v-x (or (org-get-x-clipboard 'PRIMARY) (org-get-x-clipboard 'CLIPBOARD) - (org-get-x-clipboard 'SECONDARY))) + ;;(org-get-x-clipboard 'SECONDARY) + )) (v-t (format-time-string (car org-time-stamp-formats) ct1)) (v-T (format-time-string (cdr org-time-stamp-formats) ct1)) (v-u (concat "[" (substring v-t 1 -1) "]")) --8<---cut here---end--->8--- I'm not suggesting this as a patch to org but only providing this for anybody that may be having the problems I am having. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-578-g4df091
Re: [O] babel, header arguments.
jenia.ivlev wrote: > So lets say there's this function: > > #+name: my-plus > #+begin_src scheme > (define my-plus > (lambda (x y) (+ x y))) > #+end_src > > And i want to call it from another source block, like so: > > #+tblname: addition > | sum| > || > | #ERROR | > #+TBLFM: @2$1='(org-sbe "my-plus" (33 22)) > > As you can see, I get an error. How do I write these "header-arguments" > (i think they are called) to achieve calling one src-block from another. This should do it (untested): (org-sbe "my-plus" (x 33) (y 22)) > Also, second scenario, can I somehow call my-plus from a source-block as > so: > > #+begin_src scheme > (my-plus 3 4) > #+end_src I think you must also call `org-sbe'. Best regards, Seb -- Sebastien Vauban
Re: [O] How to get "remember" working properly?
Nick Dokos writes: > Sharon Kimble writes: > >> ... >> >> However, org-capture is working well, prefacing my "timelog.org"" >> with CAPTURE- in front, like "CAPTURE-timelog.org". Maybe then it is >> time to retire "remember" as "org-capture" seems to have taken over? >> But that's for another post. >> > > As I said before, org-remember is obsolete. > >http://thread.gmane.org/gmane.emacs.orgmode/92509/focus=92522 I totally agree, and after finding how to convert remember templates to org-capture[fn:1], I've totally moved over to using org-capture, which is working very well. Sharon. Footnotes: [fn:1] http://orgmode.org/manual/Capture.html -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.4.1.0 signature.asc Description: PGP signature