Re: [O] babel-load problem
I solved it... but don't really understand why. I tested changing the name of my org file between .emacs.org and emacs.org and changing the loadpath accordingly : (org-babel-load-file ~/emacs.org) And now suddenly it works but only if the file is named emacs.org if I add an dot in front of the name I get the same issues as before On 2013-08-22 07:08, Fredrik wrote: My emacs.org is empty so far... But yes my $HOME is set to c:/Users/fe/Dropbox/emacs Regards, Fredrik On 2013-08-22 05:13, Noorul Islam K M wrote: In emacs.org, are you trying to load c:/Users/fe/Dropbox/emacs/emacs.el ? or is your $HOME set to c:/Users/fe/Dropbox/emacs ? Thanks and Regards Noorul
[O] babel .el-files?
I have set up my emacsconfig to use org-files. Now it creates .el-files when I start emacs so can I control where it puts these files so it doesn't clutter my filesystem? Regards, Fredrik
[O] Radio targets in comment lines
Org 8 seems to have changed the way radio links in comment lines work. # target No longer creates a link - 'C-c C-c can do nothing useful at this location' #+test target Works within org for some reason, but then the line will be exported... I was curious if this was intentional, because I have many (now broken) links of the first kind in my org files, and because of this line in the org FAQ: The usual way of turning radio links invisible is to comment them, Best wishes, Steen
[O] [PATCH] Center currently clocked headline to top of screen
Hello, When jumping to the currently clocked headline (via `C-c C-x C-j'), it seems (to me) more logical to recenter that headline at the top of the screen (vs at the center of the screen, that is the current behavior). Here the patch to do so. Best regards, Seb From dc2cabbab8ed13b47c310821447ac7c0ed58af55 Mon Sep 17 00:00:00 2001 From: Sebastien Vauban sva-n...@mygooglest.com Date: Thu, 22 Aug 2013 10:31:08 +0200 Subject: [PATCH] Move current headline to top of screen --- lisp/org-clock.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 656fb4c..b7d2add 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1691,7 +1691,7 @@ With prefix arg SELECT, offer recently clocked tasks for selection. (org-show-entry) (org-back-to-heading t) (org-cycle-hide-drawers 'children) -(recenter) +(recenter 0) (org-reveal) (if recent (message No running clock, this is the most recently clocked task)) -- 1.7.9 -- Sebastien Vauban
Re: [O] Editing HTML blocks: no special environment to edit here
* Karl Voit devn...@karl-voit.at wrote: Org-mode version 8.0.2 (release_8.0.2-121-g86fab4 from the git repository a couple of weeks ago) #+BEGIN_SRC html bar #+END_SRC #+BEGIN_HTML foo #+END_HTML I can edit bar in a separate buffer by invoking C-c ' (org-edit-special). However, this does not work for foo (user-error: No special environment to edit here) although I guess that the foo-html-block is the one that should be preferred.[1] It is either rooted in my personal set-up, my (older) org-mode version from git, or a general bug. I did some additional tests and now I am sure that this is not because of my org-mode.el configuration. Can someone please test her/his current setup if BEGIN_HTML-blocks can be edited by C-c ' ? Thanks! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Radio targets in comment lines
Hello, Steen Hoyer j.s.ho...@wustl.edu writes: Org 8 seems to have changed the way radio links in comment lines work. # target No longer creates a link - 'C-c C-c can do nothing useful at this location' #+test target Works within org for some reason, but then the line will be exported... I was curious if this was intentional, This is intentional. No Org syntax is recognized in a comment anymore. On the other hand, all targets (not radio targets) are invisible now. Therefore, you can write: Some textinvsible in a paragraph. And invisible (note the double brackets) will not appear during export. #+test target has wrong syntax since the colons are mandatory: #+test: target. It will not be exported (as a keyword), but it cannot hold radio targets (or targets) either. because I have many (now broken) links of the first kind in my org files, and because of this line in the org FAQ: The usual way of turning radio links invisible is to comment them, FAQ is not up-to-date. Also, note that there is a confusion between targets (double brackets) and radio targets (triple brackets). There is no point in making radio targets invisible. There is also no need for the (INVISIBLE) hack anymore. Patches welcome wrt the FAQ. Regards, -- Nicolas Goaziou
Re: [O] Editing HTML blocks: no special environment to edit here
Hello, Karl Voit devn...@karl-voit.at writes: Can someone please test her/his current setup if BEGIN_HTML-blocks can be edited by C-c ' ? Thanks! I can. Regards, -- Nicolas Goaziou
Re: [O] Editing HTML blocks: no special environment to edit here
* Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Karl Voit devn...@karl-voit.at writes: Can someone please test her/his current setup if BEGIN_HTML-blocks can be edited by C-c ' ? Thanks! I can. Damn. However, I did a fresh git pull (release_8.0.7-384-g6fdc23) and still get this behavior: #+BEGIN_HTML bar #+END_HTML ... cannot be edited via «C-c '». Then I replaced by ~/.emacs with a file containing only the following lines: ;; set paths to manually installed Org-mode (from git) (add-to-list 'load-path ~/.emacs.d/contrib/org-mode/contrib/lisp) (add-to-list 'load-path (expand-file-name ~/.emacs.d/contrib/org-mode/lisp)) ... and started using: «emacs --no-site-file org/test.org». This should eliminate all local settings. With «Org-mode version 8.0.7 (release_8.0.7-384-g6fdc23 @ /home/vk/.emacs.d/contrib/org-mode/lisp/)» I still can not edit HTML blocks :-( I am no Emacs pro. However, I tend to think that this is a bug in Org-mode. Or: what else can I check on my side? -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] [PATCH] Center currently clocked headline to top of screen
Seeing a bit of context is nice; maybe putting it at line 2 or 3 is better than at the top and I think it is better than centered. It could also be configurable. El Thu, 22 Aug 2013 10:36:00 +0200 Sebastien Vauban va escriure: Hello, When jumping to the currently clocked headline (via `C-c C-x C-j'), it seems (to me) more logical to recenter that headline at the top of the screen (vs at the center of the screen, that is the current behavior).
Re: [O] Editing HTML blocks: no special environment to edit here
Karl Voit devn...@karl-voit.at writes: * Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Karl Voit devn...@karl-voit.at writes: Can someone please test her/his current setup if BEGIN_HTML-blocks can be edited by C-c ' ? Thanks! I can. Damn. I can too: Org-mode version 8.0.7 (release_8.0.7-380-g2a28de @ /home/nick/elisp/org-mode/lisp/) However, I did a fresh git pull (release_8.0.7-384-g6fdc23) and still get this behavior: #+BEGIN_HTML bar #+END_HTML ... cannot be edited via «C-c '». Then I replaced by ~/.emacs with a file containing only the following lines: ;; set paths to manually installed Org-mode (from git) (add-to-list 'load-path ~/.emacs.d/contrib/org-mode/contrib/lisp) (add-to-list 'load-path (expand-file-name ~/.emacs.d/contrib/org-mode/lisp)) ... and started using: «emacs --no-site-file org/test.org». This should eliminate all local settings. With «Org-mode version 8.0.7 (release_8.0.7-384-g6fdc23 @ /home/vk/.emacs.d/contrib/org-mode/lisp/)» I still can not edit HTML blocks :-( I am no Emacs pro. However, I tend to think that this is a bug in Org-mode. Or: what else can I check on my side? Maybe you can edebug-defun the function org-edit-special and step through it to see where it goes astray in the html case. -- Nick
Re: [O] Editing HTML blocks: no special environment to edit here
Hello Nick! * Nick Dokos ndo...@gmail.com wrote: Karl Voit devn...@karl-voit.at writes: However, I did a fresh git pull (release_8.0.7-384-g6fdc23) and still get this behavior: #+BEGIN_HTML bar #+END_HTML ... cannot be edited via «C-c '». Or: what else can I check on my side? Maybe you can edebug-defun the function org-edit-special and step through it to see where it goes astray in the html case. First time I used edebug! Great experience :-) OK, so I guess I nailed it down to the line which goes wrong: «org-edit-special» is defined in «org.el»: The line «(case (org-element-type element)» does not result positively. Instead, it results to: Result: (paragraph (:begin 182 :end 188 :contents-begin 182 :contents-end 188 :post-blank 0 :post-affiliated 182 :parent (special-block (:type HTML :begin 169 :end 200 :hiddenp nil :contents-begin 182 :contents-end 188 :post-blank 1 :post-affiliated 169 :parent nil This way, the main routines are not executed. Instead, the line «(if (eq (org-element-type...» gets evaluated next. In short: «#+BEGIN_HTML» is not of element type «element» and thus ignored by «org-edit-special». I hope, I did not misinterpret the debugging result. In case my interpretation is correct, it still seems to be a bug of Org-mode and not my setup. So why does your setup work properly? -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Radio targets in comment lines
Thank you Nicolas! I will think about a patch for the FAQ. I don't quite understand one of your comments: There is no point in making radio targets invisible. I think that invisible radio targets are precisely what I want - that's why I made so many of them in comments under the old system. Am I missing something? I've tried putting the radio targets in a :LOGBOOK:, which works fine in Emacs, but not after export. Perhaps I should use some other type of non-exported drawer? For what it is worth, I am trying to able to paste text from academic papers (with multiple possible citation styles) and have links to notes elsewhere in the file appear automatically. * Author Year Author et al., Year Author et al. (Year) I am not using the radio targets in a sentence and therefore I don't want them to be visible. I could use Author et al., Year to make an invisible target (or use a custom ID), but then to link I would need [[Author et al., Year]], instead of simply Author et al., Year. Does this make sense, is there some workaround I'm missing, or should I give up on this clumsy system? Best, Steen
Re: [O] Editing HTML blocks: no special environment to edit here
* Nicolas Goaziou n.goaz...@gmail.com wrote: Karl Voit devn...@karl-voit.at writes: In short: «#+BEGIN_HTML» is not of element type «element» and thus ignored by «org-edit-special». It only means that you didn't load `html' back-end. So the parser cannot recognize html blocks as export blocks. OK, two lines and even I with my limited ELISP-knowledge start to see that I did blame Org-mode for no profound reason :-) Sorry to be cumbersome but I could not find anything related to «html back-end» in the documentation. Where do I have to look in order to learn how to fix my issue? Thanks! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
[O] Send line to R process from babel block?
If one opens file.R and does =C-RET= on a line, it sends it to the current ESS R process running (or starts a new process and then sends the line). Is this possible from babel blocks? I would find this extremely helpful when troubleshooting in order to run lines of code up to my problem spot vs. my current practice of copying, switching buffers, then yanking into the R session buffer. Is this already possible? I looked around at some of the completions for =M-x org-babel-*=, but didn't see anything promising. Thanks, John
Re: [O] Send line to R process from babel block?
John, Do you know about creating an indirect buffer with the current source block? This indirect buffer will be in ESS mode, and any changes you make will be in the original source block when you exit the indirect buffer. I believe C-c ' in a source block will activate the indirect buffer. There are variables controlling how the resulting window is created. --Erik On Thu, Aug 22, 2013 at 10:00 AM, John Hendy jw.he...@gmail.com wrote: If one opens file.R and does =C-RET= on a line, it sends it to the current ESS R process running (or starts a new process and then sends the line). Is this possible from babel blocks? I would find this extremely helpful when troubleshooting in order to run lines of code up to my problem spot vs. my current practice of copying, switching buffers, then yanking into the R session buffer. Is this already possible? I looked around at some of the completions for =M-x org-babel-*=, but didn't see anything promising. Thanks, John
Re: [O] Send line to R process from babel block?
On Thu, Aug 22, 2013 at 10:34 AM, Erik Iverson erikriver...@gmail.com wrote: John, Do you know about creating an indirect buffer with the current source block? This indirect buffer will be in ESS mode, and any changes you make will be in the original source block when you exit the indirect buffer. I believe C-c ' in a source block will activate the indirect buffer. There are variables controlling how the resulting window is created. Awesome! Yes, that will do. I love that it's just mirroring the babel block as well and I can save my final result back to the block with =C-c '= or abort. For whatever reason I think I've run into this before -- it's like the analog of C-c ` (backtick) for table editing. I just didn't remember. Thanks! John --Erik On Thu, Aug 22, 2013 at 10:00 AM, John Hendy jw.he...@gmail.com wrote: If one opens file.R and does =C-RET= on a line, it sends it to the current ESS R process running (or starts a new process and then sends the line). Is this possible from babel blocks? I would find this extremely helpful when troubleshooting in order to run lines of code up to my problem spot vs. my current practice of copying, switching buffers, then yanking into the R session buffer. Is this already possible? I looked around at some of the completions for =M-x org-babel-*=, but didn't see anything promising. Thanks, John
Re: [O] Emacs Barcamp
August, 20 at 11:22 Bastien wrote: So I suggest we coordinate with each other, set the date/location in Paris, then announce it publicly. OK, when? -- Interference between the keyboard and the chair. -- BOFH excuse #58
Re: [O] Editing HTML blocks: no special environment to edit here
On Thu, Aug 22, 2013 at 04:46:49PM +0200, Karl Voit wrote: * Nicolas Goaziou n.goaz...@gmail.com wrote: Karl Voit devn...@karl-voit.at writes: In short: «#+BEGIN_HTML» is not of element type «element» and thus ignored by «org-edit-special». It only means that you didn't load `html' back-end. So the parser cannot recognize html blocks as export blocks. OK, two lines and even I with my limited ELISP-knowledge start to see that I did blame Org-mode for no profound reason :-) Sorry to be cumbersome but I could not find anything related to «html back-end» in the documentation. Where do I have to look in order to learn how to fix my issue? All supported exporters are known as backends in Org lingo. So I guess you just need a: (require 'ox-html) -- Suvayu Open source is the future. It sets us free.
Re: [O] Viewing notes in agenda log mode
Manish mailtomanish.sha...@gmail.com writes: On 8/7/13, Manish wrote: I like to take notes with z in agenda mode logging progress of tasks as I move through the day. Is it possible today to enable viewing these notes (first line only) when log mode is turned on the agenda mode the way todo state changes or clock lines are shown? On Wed, Aug 7, 2013 at 1:13 PM, Samuel Wales wrote: Hi Manish, Not sure if you mean showing them as if they were the headline? Probably I should I have attempted to make a visual example with the original post. Following agenda has two extra lines (#4 and #14) that kind of shows what I have in mind. This would allw me to take notes as I go in various tasks and when log mode is enabled, I will not see just when the task states changes happened and when the specific tasks were clocked but also when specific notes were taken. In case the note is long, we could display first line or a certain number of characters. I think this adds to the end of day review/recollection/reconstruction after the fact. Does it make sense? Wednesday x December 20xx xxx 0:55.. State: (DONE) TODO GIS sync up meeting with Rob and Jeff :GIS:@office:: xxx 21:34.. State: (WAITING) WAITING Confirm transfers executed - Merlin :aws:@office:WORK::WAITING: xxx 21:34.. State: (TODO) WAITING Confirm transfers executed - Merlin :aws:@office:WORK::WAITING: xxx 21:34.. Note: (NOTE) THIS IS A NOTE THAT WAS NEVER TAKEN :-) :aws:@office:WORK::WAITING: : 21:35.. State: (TODO) TODO :certs:WORK:: : 21:37.. State: (DONE) TODO sale and share :delhi:PERSONAL:: : 21:39.. Closed: CANCELLED Confirm if it actually transferred :delhi:PERSONAL::CANCELLED: : 21:39.. State: (CANCELLED) CANCELLED Confirm if it happened :delhi:PERSONAL::CANCELLED: : 21:40.. State: (TODO) TODO Sale and share :delhi:PERSONAL:: xx: 21:41.. Closed: DONE London, UK :lucknow:PERSONAL:SOMEDAY:: xx: 21:41.. State: (DONE) DONE London, UK :lucknow:PERSONAL:SOMEDAY:: xx: 21:41.. Closed: DONE Day out at Vizag :lucknow:PERSONAL:SOMEDAY:: xx: 21:41.. State: (DONE) DONE Day out at Vizag :lucknow:PERSONAL:SOMEDAY:: : 21:44.. Note: (NOTE) WHY IS IT SO HARD TO FIND GOOD PEOPLE! :DG:@office::WAITING: : 21:44.. State: (WAITING) WAITING New Hires for DG at acceptable cost. :DG:@office::WAITING: xxx: 21:45.. Closed: DONE Make list for DEL and LKO :home: xxx: 21:45.. State: (DONE) DONE Make list for DEL and LKO :home: xxx: 21:46.. Closed: CANCELLED Collect the security amount :home::call:CANCELLED: Hi Manish, Try [ in the agenda. Regards, Bernt
Re: [O] Editing HTML blocks: no special environment to edit here - solved
* Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Thu, Aug 22, 2013 at 04:46:49PM +0200, Karl Voit wrote: Sorry to be cumbersome but I could not find anything related to «html back-end» in the documentation. Where do I have to look in order to learn how to fix my issue? All supported exporters are known as backends in Org lingo. So I guess you just need a: (require 'ox-html) Oh wow, it seems I missed a lot of export backends then (since 8.0). I found [1] and [2] and added quite a number of require-statements to my configuration :-) Thanks for solving my issue - I am now able to edit HTML blocks! 1. http://orgmode.org/worg/exporters/ox-overview.html 2. http://orgmode.org/worg/org-8.0.html -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] Emacs Barcamp
Ivan Kanis i...@kanis.fr writes: August, 20 at 11:22 Bastien wrote: So I suggest we coordinate with each other, set the date/location in Paris, then announce it publicly. OK, when? I replied in private. -- Bastien
[O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
Hi all, One thing I've been missing for long within org-mode is transclusion ; so eventually I came up with some preliminary code which seems promising regarding what I have in mind. Now, I wish I would dedicate a full thread on this subject once my code works in a predictable way ; but for now I'm experiencing something annoying: while evaluating my test document using =(org-babel-execute-buffer)=, or typing =C-c C-c= over the inline Babel non block elements works fine, exporting the same document using =C-c C-e t U= doesn't give the same results. Looking into Babel source, I came up with the following conclusion: - =(org-babel-execute-buffer)= produces the results I expect ; - the exporter calls =org-export-execute-babel-code=, which eventually triggers =(org-babel-exp-non-block-elements (point-min) (point-max))=. And this latter function doesn't lead to the same results as =(org-babel-execute-buffer)= Could anyone give me a hand on this ? Attached is my test document, containing both my preliminary code for transclusion, and some tests at the bottom. Thanks very much in advance, cheers, Nicolas transclusion.org Description: Binary data
[O] [PATCH] org-contacts: Implement a way to ignore certain new addresses
With some bugtrackers (like the one github uses or with roundup for example) or when you use gwene to follow certain site's RSS feeds, you may run into situations, where `org-contacts-check-mail-address' will ask if it should add a non-sensical email-address. With this change, you can fine-tune in which situations org-contacts is going ask you about whether or not you want to add a given new address to an existing contact. Valid values are functions that accept one argument and strings, that will be used at regular expressions via `string-match'. A minimal example is this: (add-to-list 'org-contacts-new-address-ignore notifications@github\\.com) The following is equivalent: (add-to-list 'org-contacts-new-address-ignore #'(lambda (x) (string-match notifications@github\\.com x))) Signed-off-by: Frank Terbeck f...@bewatermyfriend.org --- Please keep me CC:ed, as I am not subscribed. contrib/lisp/org-contacts.el | 45 +++- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index 97171d0..dd90a92 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -155,6 +155,25 @@ The following replacements are available: :type 'string :group 'org-contacts) +(defcustom org-contacts-new-address-ignore + nil + List of checks to run to determine whether or not to add a new +email address to an existing contact. + +If an entry is a string, it is assumed to be a regular expression +to match against the new address. If it is a symbol, it is +assumed to be a function, that takes one argument, which is going +to be set to the new address. + +If the regular expression matches or the function returns a +non-nil value, the new address is not considered to be added to +the existing account. + +Finally, here is an example: + + (add-to-list 'org-contacts-new-address-ignore + \notifications@github.com\)) + (defcustom org-contacts-matcher (mapconcat 'identity (list org-contacts-email-property org-contacts-alias-property @@ -728,13 +747,29 @@ This function should be called from `gnus-article-prepare-hook'. (concat (org-contacts-format-name name) email ) email)) +(defun org-contacts-new-address-ignored (mail) + Check whether a mail address is marked to be ignored via the +`org-contacts-new-address-ignore' list. + (catch 'ignored-mail +(dolist (matcher org-contacts-new-address-ignore) + (cond ((stringp matcher) + (and (string-match matcher mail) + (throw 'ignored-mail t))) +((functionp matcher) + (and (funcall matcher mail) + (throw 'ignored-mail t))) +;; Ignore all other entries. +(t t))) +(throw 'ignored-mail nil))) + (defun org-contacts-check-mail-address (mail) Add MAIL address to contact at point if it does not have it. - (let ((mails (org-entry-get (point) org-contacts-email-property))) -(unless (member mail (split-string mails)) - (when (yes-or-no-p - (format Do you want to add this address to %s? (org-get-heading t))) -(org-set-property org-contacts-email-property (concat mails mail)) + (unless (org-contacts-new-address-ignored mail) +(let ((mails (org-entry-get (point) org-contacts-email-property))) + (unless (member mail (split-string mails)) +(when (yes-or-no-p + (format Do you want to add this address to %s? (org-get-heading t))) + (org-set-property org-contacts-email-property (concat mails mail))) (defun org-contacts-gnus-check-mail-address () Check that contact has the current address recorded. -- 1.8.3
Re: [O] Radio targets in comment lines
Steen Hoyer j.s.ho...@wustl.edu writes: Thank you Nicolas! I will think about a patch for the FAQ. I don't quite understand one of your comments: There is no point in making radio targets invisible. I think that invisible radio targets are precisely what I want - that's why I made so many of them in comments under the old system. Am I missing something? I've tried putting the radio targets in a :LOGBOOK:, which works fine in Emacs, but not after export. Perhaps I should use some other type of non-exported drawer? For what it is worth, I am trying to able to paste text from academic papers (with multiple possible citation styles) and have links to notes elsewhere in the file appear automatically. * Author Year Author et al., Year Author et al. (Year) I am not using the radio targets in a sentence and therefore I don't want them to be visible. I could use Author et al., Year to make an invisible target (or use a custom ID), but then to link I would need [[Author et al., Year]], instead of simply Author et al., Year. Does this make sense, is there some workaround I'm missing, or should I give up on this clumsy system? I'm not sure to understand. With this method, you're just creating broken links since the source (the radio target) will be removed upon exporting. All these links will have no destination. If you just want the links when writing the document and have them turned into plain text when exporting the document, you can simply delete the radio targets using a function within `org-export-before-processing-hook'. Regards, -- Nicolas Goaziou
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
Hello, Nicolas Girard girard.nico...@gmail.com writes: Could anyone give me a hand on this ? Attached is my test document, containing both my preliminary code for transclusion, and some tests at the bottom. I get errors when trying to execute the buffer. Also, could you provide a minimal example? Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org-contacts: Implement a way to ignore certain new addresses
Frank Terbeck f...@bewatermyfriend.org writes: (add-to-list 'org-contacts-new-address-ignore notifications@github\\.com) Amusingly I filed a bug with github, saying that they should not emit mail with a person's name and an email address that does not belong to the person. They acknowleged that it would be better not to do this, but it didn't seem likely to get fixed. Another useful feature would be to add a property to a person's record that other names and email addresses shouldn't get picked up. This would be sort of like ignoring Fred Foonly notificati...@github.com based on that email address being used in a flaky manner, and instead ignore Fred Foonly nore...@massmail.bigcompany.com based on Fred being marked as having odd sending addresses, and Benefits Update foo...@bigcompany.com based on foo...@bigcompany.com being marked as having odd full-name parts. pgpng7GNy3cz2.pgp Description: PGP signature
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
2013/8/22 Nicolas Goaziou n.goaz...@gmail.com: I get errors when trying to execute the buffer. Hi Nicolas, oh yes, my bad, there was a parenthesis missing. Attached is the corrected document. Also, could you provide a minimal example? The attached document is as minimal as you can get IMHO ; but admittedly I've been sparing with instructions ! Once loaded: 1. Evaluate the elisp code contained in the section Code to evaluate, either by executing =(org-babel-load-file buffer-file-name)=, or by evaluating manually each function using =C-x C-e= 2. Run the small tests contained in the section Transclusion tests using =(org-babel-execute-buffer)=. This will behave as expected 3. Restore the buffer to its original contents using =C-_= 4. Now, run =(org-babel-exp-non-block-elements (point-min) (point-max))= and compare with the behaviour in step (2.) transclusion.org Description: Binary data
[O] Bug: heading visibility cycling and org-narrow-to-subtree
After narrowing to a subtree, folding the top level heading hides all text except for the last letter in the last paragraph. An example: - 8 - * one ** two hello world * three -- with cursor on heading one, do M-x org-narrow-to-subtree (C-x n s), then press tab, and you get: - 8 - * one...d -- with the d of hello world being visible. emacs version: 24.3.1 Org-mode version: 8.0.7 (8.0.7-6-g13cb28-elpa) OS: Mac OSX emacs was started with the -Q flag /ali
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
Nicolas Girard girard.nico...@gmail.com writes: Sorry again for the buggy minimal example. Please try again with the attached version. Instructions as before: Still get an error: (void-function ng/org-get-entry-title). Regards, -- Nicolas Goaziou
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
Sorry again for the buggy minimal example. Please try again with the attached version. Instructions as before: 1. Evaluate the elisp code contained in the section Code to evaluate, either by executing =(org-babel-load-file buffer-file-name)=, or by evaluating manually each function using =C-x C-e= 2. Run the small tests contained in the section Transclusion tests using =(org-babel-execute-buffer)=. This will behave as expected 3. Restore the buffer to its original contents using =C-_= 4. Now, run =(org-babel-exp-non-block-elements (point-min) (point-max))= and compare with the behaviour in step (2.) transclusion.org Description: Binary data
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
2013/8/22 Nicolas Goaziou n.goaz...@gmail.com: Nicolas Girard girard.nico...@gmail.com writes: Sorry again for the buggy minimal example. Please try again with the attached version. Instructions as before: Still get an error: (void-function ng/org-get-entry-title). I'm ashamed... but this time I swear I started a minimal emacs session and got it to work. The instructions have slightly changed and are written at the very beginning of the attached minimal document. Thanks ! transclusion.org Description: Binary data
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
Nicolas Girard girard.nico...@gmail.com writes: I'm ashamed... but this time I swear I started a minimal emacs session and got it to work. The instructions have slightly changed and are written at the very beginning of the attached minimal document. I see. There is an important difference between evaluating a buffer and evaluating a buffer during export. In the latter, Babel has to deal with replacement values, i.e., code block is replaced by its results. See the difference between `org-export-execute-babel-code' and `org-babel-execute-buffer' in a buffer containing only src_emacs-lisp[:results raw]{(+ 1 2)} In this case, your code removes the code (and much more) as a side-effect. This confuses `org-babel-exp-non-block-elements', which also tries to remove it. As this fails, it removes a random part of the buffer instead (probably as a mean revenge). `org-babel-exp-non-block-elements' and `org-babel-exp-process-buffer' could probably check if code still exists before trying to remove (and replace) it. Regards, -- Nicolas Goaziou
Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements
2013/8/23 Nicolas Goaziou n.goaz...@gmail.com: Nicolas Girard girard.nico...@gmail.com writes: I see. There is an important difference between evaluating a buffer and evaluating a buffer during export. In the latter, Babel has to deal with replacement values, i.e., code block is replaced by its results. See the difference between `org-export-execute-babel-code' and `org-babel-execute-buffer' in a buffer containing only src_emacs-lisp[:results raw]{(+ 1 2)} In this case, your code removes the code (and much more) as a side-effect. This confuses `org-babel-exp-non-block-elements', which also tries to remove it. As this fails, it removes a random part of the buffer instead (probably as a mean revenge). Thanks very much for your insight ! I came to the same conclusions and found a temporary solution, namely using the value (bufferp org-current-export-file) to check wether the code is called by the exporter or just Babel. Attached is a modified version of my code that behaves differently depending of the value of (bufferp org-current-export-file). Do you think it could be robust enough ? `org-babel-exp-non-block-elements' and `org-babel-exp-process-buffer' could probably check if code still exists before trying to remove (and replace) it. Yeah, I don't know how much work it would represent but it seems much more appropriate that my hack-ish solution. --- Nicolas transclusion.org Description: Binary data
[O] [BUG] org-org-export-as-org is missing a body-only argument
As title says, the function =org-org-export-as-org= from ox-org.el is missing a body-only argument. This absence messes up the call to org-export-to-buffer. Cheers, --- Nicolas