Re: [Orgmode] cannot edit two source code examples simultaneously
Excerpts from Dan Davison's message of Mon May 18 09:07:11 +0300 2009: > I think it's more complicated than that: source code loss is also the > motivation for doing something like this. If you are editing the code in > the *Org Edit Src* buffer, and get distracted, you may return to the org > buffer and mistakenly decide that it contains the latest content. I've > done that two or three times in the last couple of days, resulting in > lost work. That mistake cannot be made so easily when there is only ever > one current copy of the code. If you close emacs without C-c ', or your > laptop power runs out, then I agree that is bad, but I thought perhaps > there might be a good solution along these lines. Maybe an alternative > would be to maintain a work-in-progress message along with the > out-of-date code? How about this - set the source code with a special overlay/property when editing it. The property could turn the code into a link to the buffer and set it read-only. - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] cannot edit two source code examples simultaneously
Taru Karttunen writes: > Excerpts from Dan Davison's message of Sun May 17 20:28:01 +0300 2009: >> Following on from this, I'd like to suggest that, while it is being >> edited, the source code is removed from the org buffer, to avoid >> concurrency problems. I just had a go at that -- the patch below >> replaces the source code with a work-in-progress message that contains >> a link to the edit buffer. > > Please don't do this. It sounds like a recipe for accidentally losing > the source code when careless. I think it's more complicated than that: source code loss is also the motivation for doing something like this. If you are editing the code in the *Org Edit Src* buffer, and get distracted, you may return to the org buffer and mistakenly decide that it contains the latest content. I've done that two or three times in the last couple of days, resulting in lost work. That mistake cannot be made so easily when there is only ever one current copy of the code. If you close emacs without C-c ', or your laptop power runs out, then I agree that is bad, but I thought perhaps there might be a good solution along these lines. Maybe an alternative would be to maintain a work-in-progress message along with the out-of-date code? Dan > > - Taru Karttunen > > > ___ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Organize Your Life In Plain Text!
Hi Eric, Thanks for the help. It was in the rake themes:default step. I got an error message about a missing command, which I think was "sass". I'll uninstall surfar and try to get an accurate error message later today. Hi Ian, The issue here is that ruby couldn't find the sass executable on your machine. I just changed the theme deployment code so that it no longer relies on an external sass executable. Please pull the latest code from github, run 'git submodules update' to update the blorgit themes code and give 'rake themes:default' another try. The latest update has fixed this problem. Meanwhile have another problem:) When I try to view a page I can see the basic navigation structure, but no style info or content. I notice that there is no stylesheet.css in ~/blogs and I tried copying one from the blorgit directory there. I do have an index.org, but it isn't being processed and included in the web page index. I am guessing that there is some problem with my Ruby installation. I have checked and I am definitely using V1.8. This problem is more complicated. Blorgit relies on Emacs to actually export org-mode files to html. To do this it passes the org-mode files to an Emacs server using the 'emacsclient' command. To allow your Emacs instance to act as a server for blorgit you need to load the org-interaction.el file located in the backend/acts_as_org/elisp/ directory. I have added the following to my .emacs so that this happens automatically. ;; serve up web pages for blorgit (load "~/src/blorgit/backend/acts_as_org/elisp/org-interaction.el") I still have the same problem. I think the following log gives a clue: i...@scamper:~/devel/blorgit$ ruby blorgit.rb == Sinatra/0.9.1.1 has taken the stage on 4567 for development with backup from WEBrick [2009-05-18 07:02:36] INFO WEBrick 1.3.1 [2009-05-18 07:02:36] INFO ruby 1.8.7 (2008-08-11) [i486-linux] [2009-05-18 07:02:36] INFO WEBrick::HTTPServer#start: pid=14054 port=4567 emacsclient: invalid option -- 'v' Try `emacsclient --help' for more information 127.0.0.1 - - [18/May/2009 07:02:47] "GET /index HTTP/1.1" 200 3504 0.0816 localhost - - [18/May/2009:07:02:47 BST] "GET /index HTTP/1.1" 200 3504 http://localhost:4567/index -> /index 127.0.0.1 - - [18/May/2009 07:02:47] "GET /stylesheet.css HTTP/1.1" 200 530 0.0009 localhost - - [18/May/2009:07:02:47 BST] "GET /stylesheet.css HTTP/1.1" 200 530 http://localhost:4567/index -> /stylesheet.css Seems my emacsclient doesn't like one of the options. I am using: GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.14.1) of 2008-09-05 on vernadsky, modified by Ubuntu Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] cannot edit two source code examples simultaneously
Excerpts from Dan Davison's message of Sun May 17 20:28:01 +0300 2009: > Following on from this, I'd like to suggest that, while it is being > edited, the source code is removed from the org buffer, to avoid > concurrency problems. I just had a go at that -- the patch below > replaces the source code with a work-in-progress message that contains > a link to the edit buffer. Please don't do this. It sounds like a recipe for accidentally losing the source code when careless. - Taru Karttunen ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Show parent PROJECTS for an item
Eraldo Helal writes: > On Sun, May 17, 2009 at 23:25, Matthew Lundin wrote: > > Why not use categories for this? You could define a category for > each > project: > > --8<---cut here---start->8--- > ** Some Project > :PROPERTIES: > :CATEGORY: special project > :END: > *** TODO Testing > --8<---cut here---end--->8--- > > Would show up in the agenda as: > > --8<---cut here---start->8--- > special project:TODO Testing > --8<---cut here---end--->8--- > > Sounds line a good idea, but:... > Doubts: > 1. I would have to set that prop for each project headline. // a lot of > work More work than adding the project name to each todo by hand, as your original post proposed? > 2. It is prone to "errors" > renaming the project does not rename the > context, etc. In my opinion, the easiest way to figure out which project a TODO belongs to is to use follow mode in the agenda. That way you can see the original context (i.e., project) to which a todo belongs. - Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] The patch (org-exp-blocks), the question and the bug
Hi, I've added an asymptote section to the org-exp-blocks page [1] which should be published to worg within the next hour or so. This section would benefit from an example asymptote block, which I am unable to provide. Thanks -- Eric [1] http://orgmode.org/worg/org-contrib/org-exp-blocks.php "Eric Schulte" writes: > emacs-orgmode@gnu.org writes: > >> Hello, >> >> I have created (in fact, I have copied and pasted with slights >> modifications) a function to use asymptote's code >> (http://asymptote.sourceforge.net) with the help of org-exp-blocks. >> Unfortunately, I am clueless about how to make a patch with git. So, >> with all my apologies, I will put it here as it might be useful to >> someone. >> > > Thanks, asymptote looks like an interesting tool. > > Rather than continually adding new block definitions directly to > org-exp-blocks.el I think we should add a section to the org-exp-blocks > page on worg where code implementing new blocks can be shared. I'll try > to do this in the next couple of days with your asymptote code as the > first new block type. > >> But that leads me to a question. I use (setq >> org-export-latex-image-default-option "") in my .emacs. But, as it might >> not be convenient for everyone, I would like to disable locally that >> option in the asymptote's block. In fact, the code should take >> precedence above export options : if I put 'size(5cm,0);' in my block, I >> don't want no variable messing with that. Is there a way to do that ? >> > > I'm sorry, I have no experience with this variable. However any number > of options could be specified in the headers line of the asymptote > block. These will then be available inside the asymptote function (in > the `headers' list) where they could be used to change the values of > elisp variables. > >> >> Last, but not least, I have something looking like a bug to report. >> Sometimes, when I hit C-k in agenda view, it kills me 2 lines instead of >> the one I am currently on. I can tell that kill-whole-line has nothing >> to do with that. It scares me so much that I have to TAB first while in >> agenda view in order to kill the item I want to make disappear. I use >> 6.26d but I could swear this bug has been on for ages (maybe 4.xx, >> certainly 5.xx). >> > > Sorry, I can't help on this front. > >> >> Thanks. > > Thanks for sharing! -- Eric ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] The patch (org-exp-blocks), the question and the bug
emacs-orgmode@gnu.org writes: > Hello, > > I have created (in fact, I have copied and pasted with slights > modifications) a function to use asymptote's code > (http://asymptote.sourceforge.net) with the help of org-exp-blocks. > Unfortunately, I am clueless about how to make a patch with git. So, > with all my apologies, I will put it here as it might be useful to > someone. > Thanks, asymptote looks like an interesting tool. Rather than continually adding new block definitions directly to org-exp-blocks.el I think we should add a section to the org-exp-blocks page on worg where code implementing new blocks can be shared. I'll try to do this in the next couple of days with your asymptote code as the first new block type. > But that leads me to a question. I use (setq > org-export-latex-image-default-option "") in my .emacs. But, as it might > not be convenient for everyone, I would like to disable locally that > option in the asymptote's block. In fact, the code should take > precedence above export options : if I put 'size(5cm,0);' in my block, I > don't want no variable messing with that. Is there a way to do that ? > I'm sorry, I have no experience with this variable. However any number of options could be specified in the headers line of the asymptote block. These will then be available inside the asymptote function (in the `headers' list) where they could be used to change the values of elisp variables. > > Last, but not least, I have something looking like a bug to report. > Sometimes, when I hit C-k in agenda view, it kills me 2 lines instead of > the one I am currently on. I can tell that kill-whole-line has nothing > to do with that. It scares me so much that I have to TAB first while in > agenda view in order to kill the item I want to make disappear. I use > 6.26d but I could swear this bug has been on for ages (maybe 4.xx, > certainly 5.xx). > Sorry, I can't help on this front. > > Thanks. Thanks for sharing! -- Eric ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] exporting splits window
c-c c-e A with pop-up-windows set to nil splits the window and puts the export buffer in both windows. For people who set the variable to nil, the expected behavior would be to not split the window at all. Any way to fix? Thanks. -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ascii export of links to notes broken?
The bug occurs when the region is active. It does not occur when I have a file dedicated to the subtree, mark a region, but don't have an active region (transient-mark-mode is off). When I do the latter but it is part of a larger file there is a wrong type argument error. *** [[http://google.com][hi]] text Here is a minimal .emacs. (require 'cl) (defun alpha-add-path (p) (setq load-path (cons p load-path))) (alpha-add-path (concat (getenv "delorgsrc") "/lisp")) (alpha-add-path (concat (getenv "delpkgbef") "/remember")) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (defvar alpha-mac-font "-apple-courier-medium-r-normal--24-240-72-72-m-240-iso10646-1") '(progn (progn (defconst alpha-mac-font-2 "-apple-courier-medium-r-normal--*-*-*-*-*-240-*") (set-frame-font alpha-mac-font-2)) ) (set-frame-font alpha-mac-font) ;;it seems to me that i never want blank lines ending a body ;;;(setf org-cycle-separator-lines 0) (setf org-cycle-separator-lines 1) ;;;(setf org-cycle-separator-lines 2) ;;keep body indentation intact when promoting and demoting (setf org-adapt-indentation nil) ;;;(setf org-adapt-indentation t) ;;very strange. this gets overridden with time? ;;;(setq org-log-done t) (setq org-log-done 'time) (require 'org-install) (defvar alpha-org-map (make-sparse-keymap "alpha org map")) (define-key global-map [f8] alpha-org-map) (define-key alpha-org-map [f8] 'org-remember) ;c-c r (define-key alpha-org-map "o" 'org-open-at-point-global) ;c-c o (require 'remember-autoloads) (org-remember-insinuate) ;;http://mail.google.com/mail/x (setf org-file-apps '( ;;(auto-mode . emacs) ;;("\\.x?html?\\'" . default) ;;("\\.pdf\\'" . default) (t . emacs))) (define-key org-mode-map "\C-cc" (lambda () (interactive) (org-todo "WAIT"))) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Show parent PROJECTS for an item
On Sun, May 17, 2009 at 23:25, Matthew Lundin wrote: > Why not use categories for this? You could define a category for each > project: > > --8<---cut here---start->8--- > ** Some Project > :PROPERTIES: > :CATEGORY: special project > :END: > *** TODO Testing > --8<---cut here---end--->8--- > > Would show up in the agenda as: > > --8<---cut here---start->8--- > special project:TODO Testing > --8<---cut here---end--->8--- > Sounds line a good idea, but:... Doubts: 1. I would have to set that prop for each project headline. // a lot of work 2. It is prone to "errors" > renaming the project does not rename the context, etc. Thank's for the feedback, Eraldo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ascii export of links to notes broken?
Please make an example file - Carsten On May 17, 2009, at 11:43 PM, Samuel Wales wrote: Hi Carsten, On Sun, May 17, 2009 at 14:24, Carsten Dominik wrote: What is the value of `org-export-ascii-links-to-notes' ? t Also, please pull again, there was a minor bug. Didn't fix it. Thanks. -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. / You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Organize Your Life In Plain Text!
Ian Barton writes: > Hi Eric, > > It was in the rake themes:default step. I got an error message about a > missing command, which I think was "sass". I'll uninstall surfar and > try to get an accurate error message later today. > Hi Ian, The issue here is that ruby couldn't find the sass executable on your machine. I just changed the theme deployment code so that it no longer relies on an external sass executable. Please pull the latest code from github, run 'git submodules update' to update the blorgit themes code and give 'rake themes:default' another try. > > Meanwhile have another problem:) When I try to view a page I can see > the basic navigation structure, but no style info or content. I notice > that there is no stylesheet.css in ~/blogs and I tried copying one > from the blorgit directory there. I do have an index.org, but it isn't > being processed and included in the web page index. I am guessing that > there is some problem with my Ruby installation. I have checked and I > am definitely using V1.8. > This problem is more complicated. Blorgit relies on Emacs to actually export org-mode files to html. To do this it passes the org-mode files to an Emacs server using the 'emacsclient' command. To allow your Emacs instance to act as a server for blorgit you need to load the org-interaction.el file located in the backend/acts_as_org/elisp/ directory. I have added the following to my .emacs so that this happens automatically. ;; serve up web pages for blorgit (load "~/src/blorgit/backend/acts_as_org/elisp/org-interaction.el") For running on a remote server see the "Deploying to a Remote Server" section of the blorgit page on worg. http://orgmode.org/worg/blorgit.php#sec-3.5 This is certainly the most complicated part of running blorgit, and if you have any suggestions for how to improve the page on worg please let me know (of feel free to edit the page yourself, as that's what worg is for). I hope this helps, and please let me know if there are any more issues. Hopefully your work getting this running will clear the way for future blorgit users. :) Thanks -- Eric > > Ian. > >> >> Thanks for the feedback. >> >> Do you happen to know which functionality depends on sufary, or where in >> the install process it was required? I am currently running a blorgit >> instance on two debian machines (one of which is ubuntu) and I don't >> have the sufary package installed on either. >> >> Thanks -- Eric >> >> Ian Barton writes: >> >>> Hi Eric, >>> >>> There is one small omission from the installation instuctions. On >>> Debian/Ubuntu you need to: >>> >>> apt-get install sufary >>> >>> Ian. >>> I hope blorgit works out for you. I've been using it for a couple of months both at work and at home, and it's starting to get fairly stable/reliable. Please don't hesitate to let me know if you run into any issues. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ascii export of links to notes broken?
Hi Carsten, On Sun, May 17, 2009 at 14:24, Carsten Dominik wrote: > What is the value of `org-export-ascii-links-to-notes' ? t > > Also, please pull again, there was a minor bug. Didn't fix it. Thanks. -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Show parent PROJECTS for an item
Eraldo Helal writes: > I am having a similar problem as Marcelo... > However, in order to keep the agenda flat I only want the parent > PROJECT headline (the inner most) to be the prefix. > In his example this would be the following: > > My-sub-sub-project NEXT Call Liz RE: account creation > :@call:@work: > > The problem is that I did not yet find out how I can get the project headline> (in this case: my-sub-sub-project) as agenda prefix. Why not use categories for this? You could define a category for each project: --8<---cut here---start->8--- ** Some Project :PROPERTIES: :CATEGORY: special project :END: *** TODO Testing --8<---cut here---end--->8--- Would show up in the agenda as: --8<---cut here---start->8--- special project:TODO Testing --8<---cut here---end--->8--- - Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ascii export of links to notes broken?
On May 17, 2009, at 7:56 AM, Samuel Wales wrote: I just tried exporting to ascii using latest git. Links showed as just the labels. What is the value of `org-export-ascii-links-to-notes' ? Also, please pull again, there was a minor bug. - Carsten Thanks. -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. / You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Show parent PROJECTS for an item
I am having a similar problem as Marcelo... However, in order to keep the agenda flat I only want the parent PROJECT headline (the inner most) to be the prefix. In his example this would be the following: My-sub-sub-project *NEXT Call Liz RE: account creation * :@call:@work: The problem is that I did not yet find out how I can get the <*parent project headline*> (in this case: *my-sub-sub-project*) as *agenda prefix*. Until this is solved I rewrite the project name for all todo-headlines in the project. Greetings, Eraldo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Possible?
Hi, I'm a newbie user of org-mode, and it looks very promising. However, there are several key combinations that I have to change if I'm going to use it. I use the combinations C-tab for iswitchb, and I use C-c for CUA "copy". Org-mode re-maps these key combos, and I've been unable to stop that even with "global-unset-key" function. So, what is the recommended way to remap keys when working with org-mode and get around problems like this? Tks, -T ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] cannot edit two source code examples simultaneously
Following on from this, I'd like to suggest that, while it is being edited, the source code is removed from the org buffer, to avoid concurrency problems. I just had a go at that -- the patch below replaces the source code with a work-in-progress message that contains a link to the edit buffer. That brought up a couple of related questions: 1. Is there a dedicated format for an org-link to an emacs buffer? (I used an elisp: link) 2. Now I'm going to be confusing. Despite me using a link inside a code block in that, I had previously wondered about how appropriate it is that org conducts its special formatting operations inside source code blocks. E.g. in R code, x[[3]] means the 3rd element of list x. But that gets magically formatted by org as a link, which looks weird. Do we think that the current behaviour is desirable? If not, should org be prevented from formatting stuff in literal blocks, or is it too inefficient or messy to implement that? (If it were changed, the work-in-progress message could go outside the block.) Dan diff --git a/lisp/org.el b/lisp/org.el index b9df6ec..25973be 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6394,6 +6394,7 @@ the edited version." nil (setq beg (move-marker beg (nth 0 info)) end (move-marker end (nth 1 info)) + org-buffer (buffer-name) code (buffer-substring-no-properties beg end) lang (nth 2 info) single (nth 3 info) @@ -6409,6 +6410,14 @@ the edited version." (and buffer (kill-buffer buffer)) (switch-to-buffer (generate-new-buffer "*Org Edit Src Example*")) (insert code) + (save-excursion + (let ((src-buffer (buffer-name))) + (set-buffer org-buffer) + (goto-char beg) + (delete-region beg end) + (insert (format "<<%s [[elisp:(switch-to-buffer \"%s\")][%s]]>>" + "Contents are currently being edited" src-buffer "here")) + (setq end (move-marker end (point) (remove-text-properties (point-min) (point-max) '(display nil invisible nil intangible nil)) (let ((org-inhibit-startup t)) Carsten Dominik writes: > Hi Hsiu-Khuern, > > On May 15, 2009, at 7:38 AM, Hsiu-Khuern Tang wrote: > > Hi Carsten, > > You recently changed org-edit-src-code to use a separate buffer instead > of an > indirect buffer. One side effect of this is that I can no longer edit > several > code examples at the same time: opening the second buffer will silently > discard > any changes made in the first. I would prefer this behavior: when > opening the > second edit source buffer, write any changes in the first buffer to the > originating Org buffer (but don't save it, of course). > > Another approach is to use different buffer names. > > I think the second idea is better, provided that a mechanism > ensures that not two editing instances of the same region > are created. This is what I have implemented now. Thank > you for your report. > > - Carsten > > ___ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] The patch (org-exp-blocks), the question and the bug
Hello, I have created (in fact, I have copied and pasted with slights modifications) a function to use asymptote's code (http://asymptote.sourceforge.net) with the help of org-exp-blocks. Unfortunately, I am clueless about how to make a patch with git. So, with all my apologies, I will put it here as it might be useful to someone. (defun org-export-blocks-format-asy (body &rest headers) "Pass block BODY to the asy utility creating an image. Specify the path at which the image should be saved as the first element of headers, any additional elements of headers will be passed to the asy utility as command line arguments. The default output format is pdf, but you can specify any format supported by Imagemagick convert program with '-f outformat'." (message "asy-formatting...") (let ((out-file (if headers (car headers))) (args (if (cdr headers) (mapconcat 'identity (cdr headers) " "))) (data-file (make-temp-file "org-asy"))) (setq body (if (string-match "^\\([^:\\|:[^ ]\\)" body) body (mapconcat (lambda (x) (substring x (if (> (length x) 1) 2 1))) (org-split-string body "\n") "\n"))) (cond ((or htmlp latexp) (with-temp-file data-file (insert body)) (message (concat "asy -globalwrite -f pdf -o " out-file " " args " " data-file)) (shell-command (concat "asy -globalwrite -f pdf -o " out-file " " args " " data-file)) (format "\n[[file:%s]]\n" out-file)) (t (concat "\n#+BEGIN_EXAMPLE\n" body (if (string-match "\n$" body) "" "\n") "#+END_EXAMPLE\n") Don't forget to change accordingly org-export-blocks. But that leads me to a question. I use (setq org-export-latex-image-default-option "") in my .emacs. But, as it might not be convenient for everyone, I would like to disable locally that option in the asymptote's block. In fact, the code should take precedence above export options : if I put 'size(5cm,0);' in my block, I don't want no variable messing with that. Is there a way to do that ? Last, but not least, I have something looking like a bug to report. Sometimes, when I hit C-k in agenda view, it kills me 2 lines instead of the one I am currently on. I can tell that kill-whole-line has nothing to do with that. It scares me so much that I have to TAB first while in agenda view in order to kill the item I want to make disappear. I use 6.26d but I could swear this bug has been on for ages (maybe 4.xx, certainly 5.xx). Thanks. -- Nicolas Goaziou ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: iCal export - possible timezone bug
Richard Riley writes: > Richard Riley writes: > >> Greg Newman writes: >> >>> There is also an uploader in the Google Calendar settings. >> >> I believe the url is the best route though since it will (actually, must >> check that) re-read it. >> > > Well, surprisingly, it does NOT automatically update from the URL currently. > From the > noise here > > http://www.google.com/support/forum/p/Calendar/thread?tid=3fad85f47a70864b&hl=en > > I suspect it will soon though or its a fairly useless feature. > > regards > > r. > Bingo - it's now updating. So now I have a regular publish of my org agenda to an ics file which is then routinely scp'd over to my web server via cron and is now automatically picked up by the automatic run of googlesync on my Blackberry. Org reminders etc now on the home screen of my phone :-) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode