Re: [O] Capturing, refiling, archiving
Hello, Titus von der Malsburg malsb...@posteo.de writes: Capturing, refiling, and archiving all create a new entry at a target location. Yet each of these facilities has it’s own way to specify the target. Capture templates have the most powerful target specification and refiling and archiving are both fairly limited. For users that is confusing and it prevents them from getting the most out of org-mode. Is there a technical reason for why different target specifications are used or is it just historical? Wouldn’t it make sense to use just one target specification “language” and to use that everywhere? Would you mind elaborating? What, exactly, are you suggesting? Regards, -- Nicolas Goaziou
Re: [O] Inaccurate documentation for org-metaleft?
Hello, alain.coch...@unistra.fr writes: If I do 'C-h f org-metaleft', I see org-metaleft is an interactive compiled Lisp function in `org.el'. (org-metaleft optional ARG) Promote heading or move table column to left. Calls `org-do-promote' or `org-table-move-column', depending on cont= ext. With no specific context, calls the Emacs default `backward-word'. See the individual commands for more information. However, if I look at the code, it seems to me that it does other things, at least org-outdent-item. Experimenting a bit with org-metaleft and org-outdent-item seems to confirm this feeling. The doc for org-metaright org-metaright is an interactive compiled Lisp function in `org.el'. (org-metaright optional ARG) Demote a subtree, a list item or move table column to right. In front of a drawer or a block keyword, indent it correctly. With no specific context, calls the Emacs default `forward-word'. See the individual commands for more information. is more accurate with respect to list items, but one would expect it to say Calls `org-do-demote' etc. I improved these docstrings in 0e7062678eb224027e5eca70a205430083a13a64. Thank you. Regards, -- Nicolas Goaziou
Re: [O] New Citation syntax on the master branch?
Vaidheeswaran C vaidheeswaran.chinnar...@gmail.com writes: On Sunday 10 May 2015 12:44 PM, Nicolas Goaziou wrote: It will land in the trunk once a library using it for Org core is implemented. I put it in a separate branch so that such a library can be built, discussed and tested. 1. Do you, as a maintainer, have any specific plans for this library? I'm not a maintainer. Anyway, I have no specific plan besides installing it in core once involved parts (both developers and users in the ML) agree on its quality and usefulness. 2. What conditions should such a library satisfy in order that it is considered a candidate. I don't use a reference manager myself. However, we are lucky enough to count on users of such things on the ML. Their opinion matters. A candidate should be useful enough to make at least a part of them willing to use it instead of their current set-up. 3. Are there any contenders for this library at this moment. There was a discussion about it a couple of months ago. IIRC, there is a library being developed there. For example, is ox-jabref.el a contender for this library. If No, on what counts it fails to get through the gate. There can be more than one library: one for Jabref, one for Zotero, one for BibTex... Different users have different needs. The question is: which one would be included in Org core? Ideally, org-citation (oc.el for short) could implement the UI, and libraries talking to reference managers (e.g oc-jabref, oc-zotero, oc-bibtex...) could be used as back-ends feeding oc.el. In this situation, we could include more than one back-end in core. From an external POV, I think org-ref.el pretty much defines what features could be included in oc.el (though, some of them would be back-end specific). Regards,
[O] org-ref: various directories
Hello, I just cannot get org-ref to accept various directories: I tried (setq org-ref-pdf-directory (quote ( /home/mcg/thesis/library/folder1/ /home/mcg/thesis/library/folder2/ /home/mcg/thesis/library/folder3/ ))) It would also suffice if I could include subdirectories of .../thesis/library/
Re: [O] Reason for org meta line fontification to have the highest priority?
Alright, I see an issue that org style links in code blocks also get fontified as links. But then isn't it a better idea to separate out the fontification of code blocks (in which you don't want to fontify links) and stuff like captions (in which you do want to fontify links)? On Wed, May 13, 2015 at 5:52 PM Kaushal kaushal.m...@gmail.com wrote: Hi, I came across a situation where I had an org link inside a figure caption. But the way the org-set-font-lock-defaults is written, the org-link face gets overridden by org-meta-line face because the meta line fontification is done AFTER link fontification. Is there a specific reason why the meta line fontification has to be done at the very last? I have edited this function (just moved the meta line fontification above link fontification) and now I can see a link fontification within the caption. I would like to understand if there is a reason why one should not move this order. Thanks! (defun org-set-font-lock-defaults () Set font lock defaults for the current buffer. (let* ((em org-fontify-emphasized-text) (lk org-activate-links) (org-font-lock-extra-keywords (list ;; Call the hook '(org-font-lock-hook) ;; Headlines `(,(if org-fontify-whole-heading-line ^\\(\\**\\)\\(\\* \\)\\(.*\n?\\) ^\\(\\**\\)\\(\\* \\)\\(.*\\)) (1 (org-get-level-face 1)) (2 (org-get-level-face 2)) (3 (org-get-level-face 3))) ;; Table lines '(^[ \t]*\\(\\(|\\|\\+-[-+]\\).*\\S-\\) (1 'org-table t)) ;; Table internals '(^[ \t]*|\\(?:.*?|\\)? *\\(:?=[^|\n]*\\) (1 'org-formula t)) '(^[ \t]*| *\\([#*]\\) *| (1 'org-formula t)) '(^[ \t]*|\\( *\\([$!_^/]\\) *|.*\\)| (1 'org-formula t)) '(| *\\([lrc]?[0-9]*\\) (1 'org-formula t)) ;; Drawers (list org-drawer-regexp '(0 'org-special-keyword t)) (list ^[ \t]*:END: '(0 'org-special-keyword t)) ;; Properties (list org-property-re '(1 'org-special-keyword t) '(3 'org-property-value t)) ;; Begin edit by KM ;; Blocks and meta lines ;; Move meta line fontification BEFORE the link fontification so that ;; if meta lines like figure or table captions have links then the ;; link fontification can override the meta line fontification '(org-fontify-meta-lines-and-blocks) ;; End edit by KM ;; Links (if (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend))) (if (memq 'angle lk) '(org-activate-angle-links (0 'org-link t))) (if (memq 'plain lk) '(org-activate-plain-links (0 'org-link t))) (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link t))) (if (memq 'radio lk) '(org-activate-target-links (0 'org-link t))) (if (memq 'date lk) '(org-activate-dates (0 'org-date t))) (if (memq 'footnote lk) '(org-activate-footnote-links)) ;; Targets. (list org-any-target-regexp '(0 'org-target t)) ;; Diary sexps. '(^?%%(.*\\|%%([^\n]*? (0 'org-sexp-date t)) ;; Macro '({{{.+}}} (0 'org-macro t)) '(org-hide-wide-columns (0 nil append)) ;; TODO keyword (list (format org-heading-keyword-regexp-format org-todo-regexp) '(2 (org-get-todo-face 2) t)) ;; DONE (if org-fontify-done-headline (list (format org-heading-keyword-regexp-format (concat \\(?: (mapconcat 'regexp-quote org-done-keywords \\|) \\))) '(2 'org-headline-done t)) nil) ;; Priorities '(org-font-lock-add-priority-faces) ;; Tags '(org-font-lock-add-tag-faces) ;; Tags groups (if (and org-group-tags org-tag-groups-alist) (list (concat org-outline-regexp-bol .+\\(: (regexp-opt (mapcar 'car org-tag-groups-alist)) :\\).*$) '(1 'org-tag-group prepend))) ;; Special keywords (list (concat \\ org-deadline-string) '(0 'org-special-keyword t)) (list (concat \\ org-scheduled-string) '(0 'org-special-keyword t)) (list (concat \\ org-closed-string) '(0 'org-special-keyword t)) (list (concat \\ org-clock-string) '(0 'org-special-keyword t)) ;; Emphasis (if em (if (featurep 'xemacs) '(org-do-emphasis-faces (0 nil append)) '(org-do-emphasis-faces))) ;; Checkboxes '(^[ \t]*\\(?:[-+*]\\|[0-9]+[.)]\\)[ \t]+\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\(\\[[- X]\\]\\) 1 'org-checkbox prepend) (if (cdr (assq 'checkbox org-list-automatic-rules)) '(\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\] (0 (org-get-checkbox-statistics-face) t))) ;; Description list items '(^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\) 1 'org-list-dt prepend) ;; ARCHIVEd headings (list (concat org-outline-regexp-bol
Re: [O] Capturing, refiling, archiving
On 2015-05-13 Wed 03:40, Nicolas Goaziou wrote: Titus von der Malsburg malsb...@posteo.de writes: Capturing, refiling, and archiving all create a new entry at a target location. Yet each of these facilities has it’s own way to specify the target. Capture templates have the most powerful target specification and refiling and archiving are both fairly limited. For users that is confusing and it prevents them from getting the most out of org-mode. Is there a technical reason for why different target specifications are used or is it just historical? Wouldn’t it make sense to use just one target specification “language” and to use that everywhere? Would you mind elaborating? What, exactly, are you suggesting? The specification format used for capture templates seems to be the most expressive. I was wondering if it would make sense to use that also for refiling targets and for archiving targets. Specifically, I’d like to be able to say things like this: (setq org-refile-targets '(((file+olp my-agenda-file Agenda Finished) :prepend t) ((file+olp my-agenda-file Agenda Urgent) :prepend t))) and (setq org-archive-location '((file+olp my-agenda-file Agenda Finished) :prepend t)) The reason why I think this would be useful is that some simple things are currently not possible. Consider the following document structure: * Office ** To do ** Finished * Home ** To do ** Finished If I want to archive things under the “Agenda/Finished,” there is no way to achieve this (correct me if I’m wrong). I could try this (setq org-archive-location ::** Finished) but that is ambiguous. It doesn’t indicate which of the two “Finished” nodes should be the target. Similar problems exist for refile targets: if I want to have the first “Finished” in my targets but not the second, how would I achieve that? None of the available facilities allows me to do this (without changing the document structure). Using the capture template way of specifying targets, both problems would be easy to solve because that mechanism allows me to specify the complete path in the document tree leading to the node of interest (among other things, file+regexp, etc.) Titus signature.asc Description: PGP signature
[O] Reason for org meta line fontification to have the highest priority?
Hi, I came across a situation where I had an org link inside a figure caption. But the way the org-set-font-lock-defaults is written, the org-link face gets overridden by org-meta-line face because the meta line fontification is done AFTER link fontification. Is there a specific reason why the meta line fontification has to be done at the very last? I have edited this function (just moved the meta line fontification above link fontification) and now I can see a link fontification within the caption. I would like to understand if there is a reason why one should not move this order. Thanks! (defun org-set-font-lock-defaults () Set font lock defaults for the current buffer. (let* ((em org-fontify-emphasized-text) (lk org-activate-links) (org-font-lock-extra-keywords (list ;; Call the hook '(org-font-lock-hook) ;; Headlines `(,(if org-fontify-whole-heading-line ^\\(\\**\\)\\(\\* \\)\\(.*\n?\\) ^\\(\\**\\)\\(\\* \\)\\(.*\\)) (1 (org-get-level-face 1)) (2 (org-get-level-face 2)) (3 (org-get-level-face 3))) ;; Table lines '(^[ \t]*\\(\\(|\\|\\+-[-+]\\).*\\S-\\) (1 'org-table t)) ;; Table internals '(^[ \t]*|\\(?:.*?|\\)? *\\(:?=[^|\n]*\\) (1 'org-formula t)) '(^[ \t]*| *\\([#*]\\) *| (1 'org-formula t)) '(^[ \t]*|\\( *\\([$!_^/]\\) *|.*\\)| (1 'org-formula t)) '(| *\\([lrc]?[0-9]*\\) (1 'org-formula t)) ;; Drawers (list org-drawer-regexp '(0 'org-special-keyword t)) (list ^[ \t]*:END: '(0 'org-special-keyword t)) ;; Properties (list org-property-re '(1 'org-special-keyword t) '(3 'org-property-value t)) ;; Begin edit by KM ;; Blocks and meta lines ;; Move meta line fontification BEFORE the link fontification so that ;; if meta lines like figure or table captions have links then the ;; link fontification can override the meta line fontification '(org-fontify-meta-lines-and-blocks) ;; End edit by KM ;; Links (if (memq 'tag lk) '(org-activate-tags (1 'org-tag prepend))) (if (memq 'angle lk) '(org-activate-angle-links (0 'org-link t))) (if (memq 'plain lk) '(org-activate-plain-links (0 'org-link t))) (if (memq 'bracket lk) '(org-activate-bracket-links (0 'org-link t))) (if (memq 'radio lk) '(org-activate-target-links (0 'org-link t))) (if (memq 'date lk) '(org-activate-dates (0 'org-date t))) (if (memq 'footnote lk) '(org-activate-footnote-links)) ;; Targets. (list org-any-target-regexp '(0 'org-target t)) ;; Diary sexps. '(^?%%(.*\\|%%([^\n]*? (0 'org-sexp-date t)) ;; Macro '({{{.+}}} (0 'org-macro t)) '(org-hide-wide-columns (0 nil append)) ;; TODO keyword (list (format org-heading-keyword-regexp-format org-todo-regexp) '(2 (org-get-todo-face 2) t)) ;; DONE (if org-fontify-done-headline (list (format org-heading-keyword-regexp-format (concat \\(?: (mapconcat 'regexp-quote org-done-keywords \\|) \\))) '(2 'org-headline-done t)) nil) ;; Priorities '(org-font-lock-add-priority-faces) ;; Tags '(org-font-lock-add-tag-faces) ;; Tags groups (if (and org-group-tags org-tag-groups-alist) (list (concat org-outline-regexp-bol .+\\(: (regexp-opt (mapcar 'car org-tag-groups-alist)) :\\).*$) '(1 'org-tag-group prepend))) ;; Special keywords (list (concat \\ org-deadline-string) '(0 'org-special-keyword t)) (list (concat \\ org-scheduled-string) '(0 'org-special-keyword t)) (list (concat \\ org-closed-string) '(0 'org-special-keyword t)) (list (concat \\ org-clock-string) '(0 'org-special-keyword t)) ;; Emphasis (if em (if (featurep 'xemacs) '(org-do-emphasis-faces (0 nil append)) '(org-do-emphasis-faces))) ;; Checkboxes '(^[ \t]*\\(?:[-+*]\\|[0-9]+[.)]\\)[ \t]+\\(?:\\[@\\(?:start:\\)?[0-9]+\\][ \t]*\\)?\\(\\[[- X]\\]\\) 1 'org-checkbox prepend) (if (cdr (assq 'checkbox org-list-automatic-rules)) '(\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\] (0 (org-get-checkbox-statistics-face) t))) ;; Description list items '(^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\) 1 'org-list-dt prepend) ;; ARCHIVEd headings (list (concat org-outline-regexp-bol \\(.*: org-archive-tag :.*\\)) '(1 'org-archived prepend)) ;; Specials '(org-do-latex-and-related) '(org-fontify-entities) '(org-raise-scripts) ;; Code '(org-activate-code (1 'org-code t)) ;; COMMENT (list (format org-heading-keyword-regexp-format (concat \\( org-comment-string \\| org-quote-string \\))) '(2 'org-special-keyword t)) ;; '(org-fontify-meta-lines-and-blocks) ; Edited by KM ))) (setq
Re: [O] org-link type
Doyley, Marvin M. mdoy...@ur.rochester.edu writes: I would like to change the face (i.e., color and appearance) of a custom org link type and was wonder if there is a easy way to do this. I guess you could use highlight-regexp. There's no org-specific way to do it. —Rasmus -- Spil noget med Slayer!
[O] Financial help to CBSE RESIDENTIONAL SCHOOL FOR BUILDING AND Equipment
Re: [O] org-link type
There is no built in way I know of. I have done this in org-ref though, and you can see how here: https://github.com/jkitchin/org-ref/blob/master/org-ref.el#L311 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 On Wed, May 13, 2015 at 11:36 AM, Doyley, Marvin M. mdoy...@ur.rochester.edu wrote: Dear all, I would like to change the face (i.e., color and appearance) of a custom org link type and was wonder if there is a easy way to do this. Thanks M
Re: [O] Status of MobileOrg on IOS??
John Hendy jw.he...@gmail.com writes: On Tue, May 12, 2015 at 11:43 AM, David Masterson dsmaster...@gmail.com wrote: I've asked this before and I'll probably continue asking as I move in and out of using it, but... What's the development status of MobileOrg -- particularly on IOS? From what I see, it appears that development is stalled. My attempts at trying to use it show the following: * It seems to work even on my iPhone 6 as far as it goes But will it be going further? For instance, a Siri interface would be really nice (or a general such interface by which a Siri interface could be built). * It only seems to support basic viewing and minimal editting What would you expect/like? I can't (for instance) figure out how to add new items to my outlines (both new items and subitems). * The documentation is minimal with few use-case examples What topics would you like more information about, and can you provide a use-case you need assistance with? A walkthrough on: 1. Why you would want to push. 2. What exactly happens when you push. 3. How MobileOrg sees what has been pushed. 4. Sync issues that might occur in the push. 5. Why you would want to pull. 6. What exactly happens when you pull. 7. Sync issues that might occur in the pull. 8. Safety approaches for #4 and #7. Give a detailed, but high-level, example to ground the above topics. Who is running MobileOrg and what's its status? - Who: http://mobileorg.ncogni.to/support/ - Status: http://mobileorg.ncogni.to/development/ and https://github.com/mobileorg/mobileorg Regarding all of the questions above, I'd contact the app developers, as it seems your inquiries relate to phone usage, not anything on the Org side. From looking at ~/org.git/list/org-mobile.el, Carsten wrote the tool from the Org-mode side. But again, all of your questions about inquiries or wishes about the app, which I don't think we can help with. From skimming the mobileorg github site, it doesn't look like anyone's really running it. Their most recent push appears to have been a year ago. And that makes it hard to contact the app developers. I'm not (yet) doing detailed work on it, so I don't want to push them until I have something strong to say. I post my general questions here on the assumption that this is the most likely central point that one (or more) people using/developing MobileOrg would see and maybe interest would perk up. -- David Masterson Programmer At Large
Re: [O] Status of MobileOrg on IOS??
Guido Van Hoecke gui...@gmail.com writes: Hi, On 12 May 2015 at 18:43, David Masterson dsmaster...@gmail.com wrote: I've asked this before and I'll probably continue asking as I move in and out of using it, but... What's the development status of MobileOrg -- particularly on IOS? From what I see, it appears that development is stalled. My attempts at trying to use it show the following: * It seems to work even on my iPhone 6 as far as it goes * It only seems to support basic viewing and minimal editting * The documentation is minimal with few use-case examples * The newsgroups suggest MobileOrg for IOS and Android have diverged * Not too sure how to use it with DropBox Who is running MobileOrg and what's its status? I am using it on an iPhone 5, but basically as a one-way operation. I use the smartphone for reading only, albeit I do some note taking via the capture feature. I'm still trying to work my head around the capture feature in MobileOrg. Care to explain how you use it (with some detail)? No need to go into Elisp -- just the step-by-step process (to some degree). -- David Masterson Programmer At Large
Re: [O] org-link type
Thanks John, I will try it out. Cheers, M --- On May 13, 2015, at 11:39 AM, John Kitchin jkitc...@andrew.cmu.edumailto:jkitc...@andrew.cmu.edu wrote: There is no built in way I know of. I have done this in org-ref though, and you can see how here: https://github.com/jkitchin/org-ref/blob/master/org-ref.el#L311https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_jkitchin_org-2Dref_blob_master_org-2Dref.el-23L311d=AwMFaQc=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOUr=T41F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMUm=ABInZ3aazeW0zibrWLWQE1DBDpTbd1DkoRqwShNReyos=HZZQj4R15FveFP9wbXx9DQQgJK5ROMW_NFkZ6NcrbRce= 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.eduhttps://urldefense.proofpoint.com/v2/url?u=http-3A__kitchingroup.cheme.cmu.edud=AwMFaQc=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOUr=T41F_5QsIVBGYhPPUkgYHUp9iPHgs2rOCjs7rfKaTMUm=ABInZ3aazeW0zibrWLWQE1DBDpTbd1DkoRqwShNReyos=L1Ygq2EOiXSQ_97_KYgP84pmZZpkCcLOtE6I4Wz81KUe= On Wed, May 13, 2015 at 11:36 AM, Doyley, Marvin M. mdoy...@ur.rochester.edumailto:mdoy...@ur.rochester.edu wrote: Dear all, I would like to change the face (i.e., color and appearance) of a custom org link type and was wonder if there is a easy way to do this. Thanks M
[O] org-link type
Dear all, I would like to change the face (i.e., color and appearance) of a custom org link type and was wonder if there is a easy way to do this. Thanks M
Re: [O] strange behavior with org-babel python
On Tue, May 12, 2015 at 2:40 PM, Doyley, Marvin M. mdoy...@ur.rochester.edu wrote: Doy you know why this is the case? I'm not sure what is going on here, and have not been able to reproduce your problem. What version of Emacs and Org-mode are you using?