[O] org-version N/A when using git subtree
This is off topic, or at least the first paragraph is, but I don't know where else to ask ... I maintain a private git repo where the org-mode git repo is included. I use it on several machines, both windows and linux, and also on a stick which I can use on the terribly restricted and firewalled computers at work (which curiously allow me to run emacs from the stick!). I used to include org-mode as a fake submodule (http://debuggable.com/posts/git-fake-submodules:4b563ee4-f3cc-4061-967e-0e48cbdd56cb) but wanted to learn more about git so I changed to a real submodule. This was annoying because then I could no longer just pull from the repo to the stick and have my new org-mode with me, I needed to update the submodule on the stick as well, which was more work than before. I then changed to using a git subtree for org-mode and lots of other bits and pieces that I wanted handy, even behind the firewall at work. This works great except for one thing: org-version is set to N/A (on topic again I hope). As far as I have been able to gather with my non-existent developer skills the org-version stems from mk/default.mk and so could be adjusted in local.mk, but I am unable to figure out where I should get it from, and how to adjust it. Can you enlighten me? Johan -- Johan Sandblom, MD PhD m +46735521477 What is wanted is not the will to believe, but the will to find out, which is the exact opposite --Bertrand Russell
Re: [O] Tangling #+Results block?
I found the following thread, and tried to follow it, but it did not work: https://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00390.html From: joon...@outlook.com To: emacs-orgmode@gnu.org Date: Sun, 21 Jun 2015 21:40:17 -0700 Subject: [O] Tangling #+Results block? Is it possible to tangle #+RESULTS: block? For example, #+BEGIN_SRC rst :tangle ./test.txt :noweb yesTangle_Test#+END_SRC #+BEGIN_SRC python :exports results :results output rawprint(Printed Results)#+END_SRC #+RESULTS: Printed Results And I want to tangle #+RESULTS: part, not the actual Python source code, so the tangled test.txt file has the following: Printed Results Best,Joon
Re: [O] [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones
Nicolas Goaziou m...@nicolasgoaziou.fr wrote: -(if (not (and (integerp n) ( n 0))) +(if (not (and (integerp n) (= n 0))) (user-error Invalid number of replications %s n)) Nitpick: (unless (wholenump n) (user-error ...)) Thanks. Updated. From fe596d7d9a2687f8f553997e2a75fe40f1424ef3 Mon Sep 17 00:00:00 2001 From: Kyle Meyer k...@kyleam.com Date: Sun, 21 Jun 2015 21:46:54 -0400 Subject: [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones * lisp/org.el (org-clone-subtree-with-time-shift): Allow argument specifying number of clones to be 0. * testing/lisp/test-org.el (test-org/clone-with-time-shift): Add tests. This makes it possible to clone a subtree with a repeating timestamp so that the repeater is removed from the original subtree and a single shifted, repeating clone is created. If the original subtree does not have a repeating timestamp, no clones will be made. --- etc/ORG-NEWS | 4 lisp/org.el | 11 --- testing/lisp/test-org.el | 38 ++ 3 files changed, 50 insertions(+), 3 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 92be86b..bcbd068 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -392,6 +392,10 @@ of tables and lists of listings can be inserted in the document with *** Countdown timer support hh:mm:ss format In addition to setting countdown timers in minutes, they can also be set using the hh:mm:ss format. +*** Extend ~org-clone-subtree-with-time-shift~ +~org-clone-subtree-with-time-shift~ now accepts 0 as an argument for +the number of clones, which removes the repeater from the original +subtree and creates one shifted, repeating clone. ** Miscellaneous *** Strip all meta data from ITEM special property ITEM special property does not contain TODO, priority or tags anymore. diff --git a/lisp/org.el b/lisp/org.el index 8eaaa3e..02f5c22 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -8739,7 +8739,12 @@ (defun org-clone-subtree-with-time-shift (n optional shift) - the start days in the repeater in the original entry will be shifted to past the last clone. In this way you can spell out a number of instances of a repeating task, -and still retain the repeater to cover future instances of the task. +and still retain the repeater to cover future instances of the task. + +As described above, N+1 clones are produced when the original +subtree has a repeater. Setting N to 0, then, can be used to +remove the repeater from a subtree and create a shifted clone +with the original repeater. (interactive nNumber of clones to produce: ) (let ((shift (or shift @@ -8757,8 +8762,8 @@ (defun org-clone-subtree-with-time-shift (n optional shift) (org-clock-re (format ^[ \t]*%s.*$ org-clock-string)) beg end template task idprop shift-n shift-what doshift nmin nmax) -(if (not (and (integerp n) ( n 0))) - (user-error Invalid number of replications %s n)) +(unless (wholenump n) + (user-error Invalid number of replications %s n)) (if (and (setq doshift (and (stringp shift) (string-match \\S- shift))) (not (string-match \\`[ \t]*\\+?\\([0-9]+\\)\\([hdwmy]\\)[ \t]*\\' shift))) diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el index 11004f0..55dbd49 100644 --- a/testing/lisp/test-org.el +++ b/testing/lisp/test-org.el @@ -1067,6 +1067,44 @@ (ert-deftest test-org/insert-todo-heading-respect-content () (org-insert-todo-heading-respect-content) (and (eobp) (org-at-heading-p) +(ert-deftest test-org/clone-with-time-shift () + Test `org-clone-subtree-with-time-shift'. + ;; Clone non-repeating once. + (should + (equal \ +* H1\n2015-06-21 Sun +* H1\n2015-06-23 Tue + + (org-test-with-temp-text * H1\n2015-06-21 Sun + (org-clone-subtree-with-time-shift 1 +2d) + (buffer-string + ;; Clone repeating once. + (should + (equal \ +* H1\n2015-06-21 Sun +* H1\n2015-06-23 Tue +* H1\n2015-06-25 Thu +1w + + (org-test-with-temp-text * H1\n2015-06-21 Sun +1w + (org-clone-subtree-with-time-shift 1 +2d) + (buffer-string + ;; Clone non-repeating zero times. + (should + (equal \ +* H1\n2015-06-21 Sun + + (org-test-with-temp-text * H1\n2015-06-21 Sun + (org-clone-subtree-with-time-shift 0 +2d) + (buffer-string + ;; Clone repeating zero times. + (should + (equal \ +* H1\n2015-06-21 Sun +* H1\n2015-06-23 Tue +1w + + (org-test-with-temp-text * H1\n2015-06-21 Sun +1w + (org-clone-subtree-with-time-shift 0 +2d) + (buffer-string) ;;; Fixed-Width Areas -- 2.4.4 -- Kyle
Re: [O] sip: links
On 2015-06-22 11:27, Michael Strey wrote: On So, 2015-06-21, Christian Thaeter wrote: [...] looks good, I'll use that instead of my hack. Look out for bugs. It's one of my very first emacs-lisp hacks. I've a minor ideas to add: Instead just append the telephone number to the end of the dial command one could use (org-replace-escapes STRING TABLE), that allows little more flexible commandline generation. Thanks for the hint. Could you please give me an example where this increased flexibility would be required? I am using linphone too, where that just works to append the sanitized telephone number at the end. But I can imagine that other dial programs may have different calling conventions. Also I may feel a bit safer by quoting the telephone number, For example: linephone -c 'sip:%n' Maybe in the long run (I have no urge here, works for me now). You/we/someone could make this whole thing more generic, handling different kinds of communication protocols (I made another one for xmpp: meanwhile). tel: urls are somewhat simple https://www.ietf.org/rfc/rfc3966.txt (still surprisingly more syntax than just a number) but when you look at sip: http://tools.ietf.org/html/rfc3261#section-19.1 things get way more complicated. Christian Best regards -- Michael Strey http://www.strey.biz * https://twitter.com/michaelstrey
Re: [O] tentative patch Re: commit found, was: Re: ECM for: issues with publishing to LaTeX using #INCLUDE
Hello, On Mon, 22 Jun 2015 10:37:26 +0200 Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Robert Klein rokl...@roklein.de writes: I now used git bisect for both my current minimal setup (.emacs attached as .femacs and the files ~/ot/1.org, ~/ot/2.org, and ~/ot/3.org all three having the contents of the attached file 1.org) and the setup and project I first encountered the issue. I still cannot reproduce the problem, i.e., 1.tex, 2.tex and 3.tex are identical. Could you try with emacs -Q instead of -q? Same issue with -Q. I tested now on several platforms: | OS | Emacs version | |--+---+ | openSUSE 13.1 x86_64 | Emacs 24.5.1 | | openSUSE 13.1 x86_64 | Emacs 23.4.1 | | FreeBSD 10.0 amd64 | Emacs 24.5.1 | | FreeBSD 10.1 arm | Emacs 23.4.1 | The first and both FreeBSD platforms i tested also using -Q instead of -q. Both FreeBSD's had no org-mode installed previously, and no .emacs of my own (basically empty accounts only used to su to root). On all I had the first published tex file (i.e. 3.tex) bigger than the others. I'm not sure how to proceed at the moment, are there other set-ups I could test? Thanks a lot. Best regards Robert
Re: [O] Filters lost after reviving buried, sticky agenda
-Original Message- From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On Behalf Of Daimrod Sent: Sunday, June 21, 2015 9:11 PM To: Daniel Borchmann Cc: emacs-orgmode@gnu.org Subject: Re: [O] Filters lost after reviving buried, sticky agenda Daniel Borchmann daniel.borchm...@tu-dresden.de writes: ghItlhpu' Daimrod daim...@gmail.com: My question is now: is this correct, or did I understand something wrong? If my understanding is correct, how this bug be fixed more elegantly? It doesn't work at startup when agenda hasn't been built yet. The following patch does seem to fix that. If it's ok, I can push it. It works for me. Great! If nobody complains in the next days, I'll push it. Best, -- Daimrod/Greg Please do! I use sticky agendas extensively and have been looking in to this problem. But if you beat me to a working solution, I'll be happy. I'll install the patch and give it a whirl, if you don't hear from me figure that I didn't find anything This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you.
Re: [O] helm-bibtex questions
Here is my CV in org-mode: https://gist.github.com/tmalsburg/96084ba82281937c26b7 It’s a pretty straightforward org document except for one thing: the key to making this work was biblatex which can be used to create several lists of references filtered according to keywords, author, etc. This allowed me to have separate sections for journal articles, conference presentations, etc. I store the relevant keywords in the tags field of the BibTeX entries and since biblatex doesn’t know this field, I copy the tags on-the-fly to the keywords field (see DeclareSourcemap in the LaTeX headers). Titus On 2015-06-22 Mon 07:28, Xebar Saram wrote: Hi John a bit off topic, but do you also write your academic CV in orgmode or lateX? in anycase would you mind sharing your org/latex CV template? it would be helpful as a starting point for me if thats possible. kind regards and thanks so much in advance Z On Sun, Jun 21, 2015 at 9:40 PM, John Kitchin jkitc...@andrew.cmu.edu wrote: sweet! I did not know you could do that! I will be refactoring org-ref soon to do that instead of redefining the commands! 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 Sun, Jun 21, 2015 at 2:29 PM, Titus von der Malsburg malsb...@posteo.de wrote: On 2015-06-19 Fri 03:56, Xebar Saram wrote: Hi again Titus 2 quick questions that arose from using helm-bitex today extensively: how does one exclude in the search items? for example i want to search for xebar without keyword progress (I want to exclude in progress articles not published yet) is it possible to define default enter command in helm-bibtex ? Yes. Helm uses the first action as the default action. To move an action to the top of the list you can use the following code: (helm-delete-action-from-source Insert BibTeX key helm-source-bibtex) (helm-add-action-to-source Insert BibTeX key 'helm-bibtex-insert-key helm-source-bibtex 0) The second argument in the second line is the function that executes the action. Here is a list of all actions and their functions: Open PDF file (if present): helm-bibtex-open-pdf Open URL or DOI in browser: helm-bibtex-open-url-or-doi Insert citation: helm-bibtex-insert-citation Insert reference: helm-bibtex-insert-reference Insert BibTeX key: helm-bibtex-insert-key Insert BibTeX entry: helm-bibtex-insert-bibtex Attach PDF to email: helm-bibtex-add-PDF-attachment Edit notes: helm-bibtex-edit-notes Show entry: helm-bibtex-show-entry Best, Titus best Z On Thu, Jun 18, 2015 at 9:38 PM, Titus von der Malsburg malsb...@posteo.de wrote: On 2015-06-18 Thu 04:32, Xebar Saram wrote: Hi Titus and thx so much for the answers! i will in the future use the github page to make requests. The number of matches will be displayed in the mode line. i see that now thx! :) the problem was(is) that its colored black on my black modline BG which makes it invisible ;-) i assume thats an helm config i need to change If you don’t want to type these search expressions, you could create a command that invokes helm-bibtex with a default search expression and that command could be bound to a keyboard shortcut. that would be prefect for me and a solution to my issue. would you mind giving an example of such a code chunk. unfortunately i dont know elisp though as john recommended i will do my best this summer when the semester ends to try and pick it up :) Sure, here you go: #+BEGIN_SRC elisp ;; Define helm-search with predefined search expression: (defun helm-bibtex-my-publications () Search BibTeX entries authored by Xebar Saram. (interactive) (helm :sources '(helm-source-bibtex) :full-frame t :input xebar saram :candidate-number-limit 500)) ;; Bind this search function to Ctrl-x p: (global-set-key (kbd C-x p) 'helm-bibtex-my-publications) #+END_SRC i will definitely use your tag system as you recommended, sounds perfect for me The tag system also comes in handy when generating publication lists for CVs and web pages because BibTeX does not distinguish between conference papers, posters, and talks. If you have tags for that, it’s relatively easy to create separate sections for these types of publications using biblatex or bib2bib and bibtex2html in the case of web pages. thanks again for your kind help and the amazing app ;-) You are welcome. Titus best Z On Wed, Jun 17, 2015 at 11:02 PM, Titus von der Malsburg malsb...@posteo.de wrote: On 2015-06-17 Wed 11:08, Xebar Saram wrote: Hi Titus I have been exploring helm-bibtex a bit today and have some questions.
[O] ox-koma-letter.el: subtree vs buffer, precedence of properties, superscript transcoding
Hello, I have noticed some strange things about koma letter exports (current git master 329683). 1) subtree scope export results differently than buffer scope export 2) a signature specified in the subtree property does not take precedence in subtree export 3) superscripts on the dates behave differently in the subject and date properties, i.e. 20\textsuperscript{th} 20^{th} The files included below constitute a Fairly Small Working Example (a FSWE) that illustrate those things. Using those files, I start emacs like this: emacs -Q -l config.el a.org # or b.org Thanks, Myles The Files - 1) a.org Export like this: C-c C-e C-s k o * Letter :PROPERTIES: :EXPORT_LaTeX_CLASS: my-min-letter :EXPORT_LCO: mylco :EXPORT_TITLE: :EXPORT_PLACE: Here :EXPORT_SUBJECT: The thing that happened on 20\textsuperscript{th} June 2015 :EXPORT_DATE: June 20^{th} 2015 :EXPORT_TO_ADDRESS: Orgsters\\Internet :EXPORT_OPENING: Dear Mr X, :EXPORT_AUTHOR: Ronald Reagan :EXPORT_CLOSING: Yours sincerely, :EXPORT_SIGNATURE: This is the sig I want :END: The thing that happened was completely unacceptable. SUBTREE EXPORT 2) b.org Export like this: C-c C-e k o #+LaTeX_CLASS: my-min-letter #+LCO: mylco #+TITLE: #+PLACE: Here #+SUBJECT: The thing that happened on 20\textsuperscript{th} June 2015 #+DATE: June 20^{th} 2015 #+TO_ADDRESS: Orgsters\\Internet #+OPENING: Dear Mr X, #+AUTHOR: Ronald Reagan #+CLOSING: Yours sincerely, #+SIGNATURE: This is the sig I want * Letter The thing that happened was completely unacceptable. WHOLE BUFFER EXPORT 3) config.el (add-to-list 'load-path ~/.emacs.d/plugins/org-mode/lisp) (add-to-list 'load-path ~/.emacs.d/plugins/org-mode/contrib/lisp t) (require 'ox-latex) (global-set-key (kbd C-c C-e) 'org-export-dispatch) (eval-after-load 'ox '(require 'ox-koma-letter)) (eval-after-load 'ox-koma-letter '(progn (add-to-list 'org-latex-classes '(my-min-letter \\documentclass[foldmarks=false]\{scrlttr2\} \\usepackage[UKenglish]{babel} \[DEFAULT-PACKAGES] \[PACKAGES] \[EXTRA])) (setq org-koma-letter-default-class my-min-letter) )) 4) mylco.lco \setkomavar{fromname}{Name in LCO file} \setkomavar{fromaddress}{My house\\My street} \setkomavar{signature}{\usekomavar{fromname}}
Re: [O] another example of org being slow, with some analysis
Eric S Fraga e.fr...@ucl.ac.uk writes: On Friday, 19 Jun 2015 at 10:28, Daniel Bausch wrote: [...] If anyone could give me a hint how to reliably set the preferred (or internal) encoding I could check wether it might have something to do with the system locale. I have (only) the following encoding related settings in my initialisation, some of which are very historical and may or may not be needed... #+begin_src emacs-lisp (prefer-coding-system 'utf-8) (set-charset-priority 'unicode) (setq default-process-coding-system '(utf-8-unix . utf-8-unix)) #+end_src I think the first one is the most important. Thank you for the code, but unfortunately it does not help. The first line I already had and adding the other two did not help either. Executing M-x prefer-coding-system interactively works and that is what I am doing each day. Maybe I will look again how to set the expected LC_... environment variables for emacs daemon. Regards, Daniel -- MSc. Daniel Bausch Research Assistant (Computer Science) Technische Universität Darmstadt http://www.dvs.tu-darmstadt.de/staff/dbausch
Re: [O] another example of org being slow, with some analysis
Nick Dokos ndo...@gmail.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: On Friday, 19 Jun 2015 at 08:19, Daniel Bausch wrote: [...] Line 6000 is indeed quite lame. I have similar problems like Eric. A table recalculation at line 43868 takes about a minute at my quite fast machine. I also tracked that down to org-current-line. One interesting detail is that this depends on the buffer encoding. With ASCII the recalculation takes less than a second, with utf-8 about a minute. Adding some data: my table is at line 8438 in the buffer but character position 398345 (I have very long lines as I use visual-line-mode in org exclusively with org-indent). I do use utf-8 encoding. I have just tried updating the table on a different laptop (i7-2760, 8 cores, 8 GB RAM, Ubuntu) and it was very fast. The two laptops are running different versions of emacs (tracking latest emacs developments on Ubuntu and Debian testing lead to different versions unfortunately) so my gut feeling is that there is an emacs issue here and possibly one related to utf-8 as Daniel suggests. I'll try to do more instrumenting on my other laptop when I get a chance. What is the setting of cache-long-scans you are using? Does it differ on the two laptops? Ivan Andrus suggested setting it to nil, but it seems that for this case, leaving it at t (the default) should be much faster. But there may be a bug in the cache code. It *should* be faster but it isn't :-( At least not when using org mode. I've had this in my org file where I recalculate tables regularly. # -*- cache-long-scans: nil; -*- # This makes forward-line much faster and thus org-goto-line and thus org-table-sum (C-c +) Before it took forever to recalculate tables; now it's fast :-) Org mode file with 10500 lines. The tables I recalculate are at the bottom. Current org mode version is 8.2.10 (org-plus-contrib 20150601) Best regards, Jacob
Re: [O] [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones
Hello, Kyle Meyer k...@kyleam.com writes: From 37a917e4f7e4d2c05355735ab08f1f555b9dc942 Mon Sep 17 00:00:00 2001 From: Kyle Meyer k...@kyleam.com Date: Sun, 21 Jun 2015 21:46:54 -0400 Subject: [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones Thank you for the patch. -(if (not (and (integerp n) ( n 0))) +(if (not (and (integerp n) (= n 0))) (user-error Invalid number of replications %s n)) Nitpick: (unless (wholenump n) (user-error ...)) Otherwise, looks good. Regards, -- Nicolas Goaziou
Re: [O] Why navigating in Org mode is so slow in overview mode?
Gregor Zattler telegr...@gmx.net writes: * Nicolas Goaziou m...@nicolasgoaziou.fr [17. Jun. 2015]: Gregor Zattler telegr...@gmx.net writes: I would like to help but need help myself on how to produce profiler reports. M-x profiler-start Do something slow M-x profiler-report Thanks, this seemed rather easy and I open the org file in question in overview now: - most of the time it’s not slow! That’s great and a big difference to months ago, when it was slow very often. - but there some hangs now and then. At that moment I cannot start the profiler. If I start the profiler at the beginning of using this org file and stop it maybe hours later after something was slow: Would such report be helpful? FWIW, I've always used: --8---cut here---start-8--- ;; Do not switch to OVERVIEW at startup. (setq org-startup-folded nil) --8---cut here---end---8--- and I don't see any particular slowdown for my Org files: --8---cut here---start-8--- (Info) Found file ~/Public/Repositories/org-mode/lisp/../doc/library-of-babel.org in 1.28 s (Info) Found file ~/org/personal/travaux-listing.org in 2.32 s (Info) Found file ~/org/personal/travaux.org in 0.28 s (Info) Found file ~/org/personal/conso.txt in 1.71 s (Info) Found file ~/org/notes/Notes-on-Lisp.txt in 0.61 s (Info) Found file ~/org/personal/Personal.org in 0.97 s --8---cut here---end---8--- PS- Code to get the above timings: --8---cut here---start-8--- (defadvice find-file (around my/find-file activate) Open the file named FILENAME and report time spent. (let ((filename (ad-get-arg 0)) (find-file-time-start (float-time))) (message (Info) Finding file %s... filename) ad-do-it (message (Info) Found file %s in %.2f s filename (- (float-time) find-file-time-start --8---cut here---end---8--- Best regards, Seb -- Sebastien Vauban
Re: [O] sip: links
On So, 2015-06-21, Christian Thaeter wrote: [...] looks good, I'll use that instead of my hack. Look out for bugs. It's one of my very first emacs-lisp hacks. I've a minor ideas to add: Instead just append the telephone number to the end of the dial command one could use (org-replace-escapes STRING TABLE), that allows little more flexible commandline generation. Thanks for the hint. Could you please give me an example where this increased flexibility would be required? Best regards -- Michael Strey http://www.strey.biz * https://twitter.com/michaelstrey
Re: [O] tentative patch Re: commit found, was: Re: ECM for: issues with publishing to LaTeX using #INCLUDE
Robert Klein rokl...@roklein.de writes: I now used git bisect for both my current minimal setup (.emacs attached as .femacs and the files ~/ot/1.org, ~/ot/2.org, and ~/ot/3.org all three having the contents of the attached file 1.org) and the setup and project I first encountered the issue. I still cannot reproduce the problem, i.e., 1.tex, 2.tex and 3.tex are identical. Could you try with emacs -Q instead of -q? Regards,
Re: [O] Is it possible to embed tag search as a link?
Piotr Isajew pisajew at yahoo.com writes: Hi, what I'm looking for is a link format that, when C-c C-o'ed, opens agenda match query view for custom query which arguments are specified in the link. I.e.: org-search://+work-boss-TODO=DONE I am aware of org-protocol which can be used to develop a custom handler for something like this. I would just like to check if there exists any working solution before I start working on my own. Bests, Piotr You could always do it with elisp, perhaps: [[elisp:(org-tags-view nil +work-boss-TODO=\DONE\)]] which would be like C-c a m Or: [[elisp:(org-match-sparse-tree nil +work-boss-TODO=\DONE\)]] which would be like C-c \. Change nil to t for TODO only.
[O] how to make org-blank-before-new-entry distinguish between a TODO list and a text outline?
http://emacs.stackexchange.com/questions/13311/make-org-blank-before-new-entry-distinguish-between-a-todo-list-and-a-text-outli I posted this question on stackexchange, but no response yet. Does anyone here have any ideas? Like many of us, I use org-mode for two different things: 1. As a TODO list manager 2. As a text outliner I'd like org-blank-before-new-entry to work differently based on context. 1. TODO list: no blank lines 2. text outline: automatically insert 1 blank line when non-heading text precedes a heading In other words, when I'm doing a TODO list when I have many headings in a row, I don't want stray line breaks between them. For TODO list mode, no blank lines: #+BEGIN_EXAMPLE ** Organize Party ** TODO Call people *** TODO Peter *** DONE Sarah ** TODO Buy food ** DONE Talk to neighbor #+END_EXAMPLE However, when I'm writing text, I want line breaks for the sake of visual whitespace / ease of reading. For outline mode, blank line before heading: #+BEGIN_EXAMPLE * Heading This is a document that has a heading, and a body. The body will consist of two paragraphs with sub-headings. * Body This is an introduction to the body. The body has two sub-headings, each of which have their own paragraph. ** The First Paragraph This is the first of two paragraphs. ** The Second Paragraph This is the second of two paragraphs. #+END_EXAMPLE I've already set org-blank-before-new-entry to auto: ((heading . auto) (plain-list-item . auto)) But I think org-blank-before-new-entry works by detecting other blank lines in the area. I want it to detect whether the preceding line of text is a heading or a non-heading. How can I modify org-blank-before-new-entry so that when I'm in a TODO list consisting only of headings, org-meta-return doesn't add a line break? but after a block of text, it does? Any thoughts? Thanks! --- Jay Dixit jaydixit.com (646) 355-8001 Jay Dixit
Re: [O] Spurious interpretation
Hello, Fabrice Popineau fabrice.popin...@gmail.com writes: This will be specific to the French language. I was a bit amused by the following. Assume I start a paragraph with: M. Pierre Dupont blah blah blah... Exporting this paragraph to LaTeX results in \begin{enumerate} \item Pierre Dupont blah blah blah... \end{enumerate} Is there a way to prevent that? Set `org-list-allow-alphabetical' to nil, which is the default, or use a non-breaking space, e.g., M.\nbsp{}Pierre Dupont blah blah... Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org-clone-subtree-with-time-shift: Accept 0 clones
Kyle Meyer k...@kyleam.com writes: Thanks. Updated. Applied, with a minor tweak on tests so they don't fail on non-English systems. Thank you. Regards,
Re: [O] Is it possible to embed tag search as a link?
Piotr Isajew pisajew at yahoo.com writes: Hi, what I'm looking for is a link format that, when C-c C-o'ed, opens agenda match query view for custom query which arguments are specified in the link. I.e.: org-search://+work-boss-TODO=DONE I am aware of org-protocol which can be used to develop a custom handler for something like this. I would just like to check if there exists any working solution before I start working on my own. Bests, Piotr Jay Dresser org-mode at jaydresser.us writes: I just happened to run across this which seems to better match your original question, to do it as a new link type: http://endlessparentheses.com/use-org-mode-links-for-absolutely-anything.html so you could have [[org-search:+work-boss-TODO=DONE]]
Re: [O] sip: links
Cool, what do you do with xmpp:? On Mon, Jun 22, 2015 at 11:02 AM, Christian Thaeter ct.orgm...@pipapo.org wrote: On 2015-06-22 11:27, Michael Strey wrote: On So, 2015-06-21, Christian Thaeter wrote: [...] looks good, I'll use that instead of my hack. Look out for bugs. It's one of my very first emacs-lisp hacks. I've a minor ideas to add: Instead just append the telephone number to the end of the dial command one could use (org-replace-escapes STRING TABLE), that allows little more flexible commandline generation. Thanks for the hint. Could you please give me an example where this increased flexibility would be required? I am using linphone too, where that just works to append the sanitized telephone number at the end. But I can imagine that other dial programs may have different calling conventions. Also I may feel a bit safer by quoting the telephone number, For example: linephone -c 'sip:%n' Maybe in the long run (I have no urge here, works for me now). You/we/someone could make this whole thing more generic, handling different kinds of communication protocols (I made another one for xmpp: meanwhile). tel: urls are somewhat simple https://www.ietf.org/rfc/rfc3966.txt (still surprisingly more syntax than just a number) but when you look at sip: http://tools.ietf.org/html/rfc3261#section-19.1 things get way more complicated. Christian Best regards -- Michael Strey http://www.strey.biz * https://twitter.com/michaelstrey
Re: [O] Tangling #+Results block?
On Mon, 22 Jun 2015, Joon Ro wrote: I found the following thread, and tried to follow it, but it did not work: https://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00390.html See: http://orgmode.org/manual/Noweb-reference-syntax.html#Noweb-reference-syntax From: joon...@outlook.com To: emacs-orgmode@gnu.org Date: Sun, 21 Jun 2015 21:40:17 -0700 Subject: [O] Tangling #+Results block? Is it possible to tangle #+RESULTS: block? For example, #+BEGIN_SRC rst :tangle ./test.txt :noweb yes Tangle_Test #+END_SRC Make that : Tangle_Test() And use : #+NAME: Tangle_Test to name this block: #+BEGIN_SRC python :exports results :results output raw print(Printed Results) #+END_SRC #+RESULTS: Printed Results And I want to tangle #+RESULTS: part, not the actual Python source code, so the tangled test.txt file has the following: Printed Results HTH, Chuck
Re: [O] ox-koma-letter.el: subtree vs buffer, precedence of properties, superscript transcoding
Hi Myles, Thanks for your report. Myles English mylesengl...@gmail.com writes: 1) subtree scope export results differently than buffer scope export It seems changes set in properties are not registered as changes in the file cf. 2. Thus, some fields you'd like to get after the LCO file aren't detected as changed. 2) a signature specified in the subtree property does not take precedence in subtree export Somehow, when you specify it as a property it's not detected as :inbuffer-signature. 3) superscripts on the dates behave differently in the subject and date properties, i.e. 20\textsuperscript{th} 20^{th} It depends on whether the keyword is interpreted. SUBJECT should be interpreted. I think it was added in the patch in Eric's thread last week. I will push it when I get back to that computer. Hope this helps, Rasmus PS: You can use special headings for specifying stuff like addresses, and maybe even subjects (I don't remember). -- Sådan en god dansk lagereddike kan man slet ikke bruge mere
Re: [O] Tangling #+Results block?
See: http://orgmode.org/manual/Noweb-reference-syntax.html#Noweb-reference-syntax I have read that documentation several times - I cannot believe I missed that. Thank you very much.
[O] Spurious interpretation
This will be specific to the French language. I was a bit amused by the following. Assume I start a paragraph with: M. Pierre Dupont blah blah blah... Exporting this paragraph to LaTeX results in \begin{enumerate} \item Pierre Dupont blah blah blah... \end{enumerate} Is there a way to prevent that? Fabrice
Re: [O] Filters lost after reviving buried, sticky agenda
Daimrod daim...@gmail.com writes: It doesn't work at startup when agenda hasn't been built yet. The following patch does seem to fix that. If it's ok, I can push it. From d2e8fef81585c249f33fa37260f6228709a67017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= gregoire.j...@univ-nantes.fr Date: Fri, 12 Jun 2015 17:35:30 +0200 Subject: [PATCH] lisp/org-agenda.el : Fix non-persistent filters when refreshing sticky agenda * lisp/org-agenda.el (org-agenda-prepare): Fix non-persistent filters when refreshing sticky agenda When a sticky agenda is buried, then reviving and refreshing, existing filters are ignored even when org-agenda-persistent-filter is `t'. Reported and fixed by Daniel Borchmann --- lisp/org-agenda.el | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index f5d1022..3a1f5bc 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3642,10 +3642,11 @@ FILTER-ALIST is an alist of filters we need to apply when (defun org-agenda-prepare (optional name) (let ((filter-alist (if org-agenda-persistent-filter - (list `(tag . ,org-agenda-tag-filter) - `(re . ,org-agenda-regexp-filter) - `(effort . ,org-agenda-effort-filter) - `(car . ,org-agenda-category-filter) + (with-current-buffer + (get-buffer-create org-agenda-buffer-name) + (list `(tag . ,org-agenda-tag-filter) + `(re . ,org-agenda-regexp-filter) + `(car . ,org-agenda-category-filter)) (if (org-agenda-use-sticky-p) (progn (put 'org-agenda-tag-filter :preset-filter nil) What happened to the effort filter? -- Nick
Re: [O] helm-bibtex questions
Hi John a bit off topic, but do you also write your academic CV in orgmode or lateX? in anycase would you mind sharing your org/latex CV template? it would be helpful as a starting point for me if thats possible. kind regards and thanks so much in advance Z On Sun, Jun 21, 2015 at 9:40 PM, John Kitchin jkitc...@andrew.cmu.edu wrote: sweet! I did not know you could do that! I will be refactoring org-ref soon to do that instead of redefining the commands! 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 Sun, Jun 21, 2015 at 2:29 PM, Titus von der Malsburg malsb...@posteo.de wrote: On 2015-06-19 Fri 03:56, Xebar Saram wrote: Hi again Titus 2 quick questions that arose from using helm-bitex today extensively: how does one exclude in the search items? for example i want to search for xebar without keyword progress (I want to exclude in progress articles not published yet) is it possible to define default enter command in helm-bibtex ? Yes. Helm uses the first action as the default action. To move an action to the top of the list you can use the following code: (helm-delete-action-from-source Insert BibTeX key helm-source-bibtex) (helm-add-action-to-source Insert BibTeX key 'helm-bibtex-insert-key helm-source-bibtex 0) The second argument in the second line is the function that executes the action. Here is a list of all actions and their functions: Open PDF file (if present): helm-bibtex-open-pdf Open URL or DOI in browser: helm-bibtex-open-url-or-doi Insert citation: helm-bibtex-insert-citation Insert reference: helm-bibtex-insert-reference Insert BibTeX key: helm-bibtex-insert-key Insert BibTeX entry: helm-bibtex-insert-bibtex Attach PDF to email: helm-bibtex-add-PDF-attachment Edit notes: helm-bibtex-edit-notes Show entry: helm-bibtex-show-entry Best, Titus best Z On Thu, Jun 18, 2015 at 9:38 PM, Titus von der Malsburg malsb...@posteo.de wrote: On 2015-06-18 Thu 04:32, Xebar Saram wrote: Hi Titus and thx so much for the answers! i will in the future use the github page to make requests. The number of matches will be displayed in the mode line. i see that now thx! :) the problem was(is) that its colored black on my black modline BG which makes it invisible ;-) i assume thats an helm config i need to change If you don’t want to type these search expressions, you could create a command that invokes helm-bibtex with a default search expression and that command could be bound to a keyboard shortcut. that would be prefect for me and a solution to my issue. would you mind giving an example of such a code chunk. unfortunately i dont know elisp though as john recommended i will do my best this summer when the semester ends to try and pick it up :) Sure, here you go: #+BEGIN_SRC elisp ;; Define helm-search with predefined search expression: (defun helm-bibtex-my-publications () Search BibTeX entries authored by Xebar Saram. (interactive) (helm :sources '(helm-source-bibtex) :full-frame t :input xebar saram :candidate-number-limit 500)) ;; Bind this search function to Ctrl-x p: (global-set-key (kbd C-x p) 'helm-bibtex-my-publications) #+END_SRC i will definitely use your tag system as you recommended, sounds perfect for me The tag system also comes in handy when generating publication lists for CVs and web pages because BibTeX does not distinguish between conference papers, posters, and talks. If you have tags for that, it’s relatively easy to create separate sections for these types of publications using biblatex or bib2bib and bibtex2html in the case of web pages. thanks again for your kind help and the amazing app ;-) You are welcome. Titus best Z On Wed, Jun 17, 2015 at 11:02 PM, Titus von der Malsburg malsb...@posteo.de wrote: On 2015-06-17 Wed 11:08, Xebar Saram wrote: Hi Titus I have been exploring helm-bibtex a bit today and have some questions. btw is this the preferred way to make requests/ask questions or is github preferred? Helm-bibtex is not part of org (although it tries to work well with org). So I’m not sure whether this list is the best place for discussing it. For now the issue tracker on Github might be a better option: https://github.com/tmalsburg/helm-bibtex/issues in any case i was wondering a few things: 1. is it possible to have custom sorting? i want all views to sort by Author, year, month I prefer to see the entries in the (inverse) order in which they appear in the BibTeX file. This way, recent additions