Re: [Orgmode] Re: Using yasnippet with org Mode
A solution for using yasnippets in org-mode (from the yasnippets mailing list) Make sure you have snippets defined for org-mode. If you want to use the snippets from text-mode in org-mode, you can make an empty directory named org-mode in the text-mode directory where you put your text mode snippets. ___ 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] Using yasnippet with org Mode
Oliver Charles [EMAIL PROTECTED] writes: Hi, sorry to be a little off topic but... I'm curious to hear what snippets people are using with org-mode. Anyone fancing sharing? The only org-mode specific snippet I use often is the following (for creating blocks in org files) ,[block] | #name : #+begin_...#+end_ | # -- | #+begin_$1 $2 | $0 | #+end_$1 ` I'd be interested to hear others -- 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] Auto schedule
On Nov 24, 2008, at 4:12 AM, Richard Riley wrote: One of the things I use org-mode for is storing German language lessons I get from a flashcard site. What would be the best way to automatically schedule a reminder (org-mode to-do item) for X days from now from a remember template? I am not sure what you mean by automatically. You can of course use C-c C-s + X RET - 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
Re: [Orgmode] getting org-goto to work with ido
Hi Samuel, On Nov 23, 2008, at 10:13 PM, Samuel Wales wrote: Hi Carsten, Thanks for the release. ido.el works very well for org-refile. (setf org-refile-use-outline-path nil) (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5 org-goto does not work, but can be made to work. (setf org-goto-auto-isearch nil) (setf org-goto-interface 'outline-path-completion) To get it to work, I changed org.el's org-goto to remove the line that contains (org-refile-use-outline-path t). What I don't like about this setup is that you may have similar headlines in different places, and no way to see which is which. If you pull the newest version, you have now an interesting alternative: Restore the line in org-goto that you removed, and then do (setq org-outline-path-complete-in-steps nil) Then targets for org-goto will still be identified by their entire path, in this way removing disambiguates, but you can then use single-step completion to match the entire path, using ido if you wish. By setting the variable, you will get the same interface in org-refile, if you set org-refile-use-outline-path back to t. Wow, this is *really* fast. Maybe we should phase out the old org-goto interface that uses outline drilling. Maybe I should start by setting the default for org-goto-interface to outline-path-completion. Any thoughts about such a change? - 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
[Orgmode] Re: exporting unnumbered section headings?
On Sun Nov 23 2008 at 20:41, Bill White [EMAIL PROTECTED] wrote: Hi all - Inspired by other posts on the list recently, I'm setting up an org-based website. Here's what I have so far: http://members.wolfram.com/billw (currently using the worg css definitions). I'm looking for one of those css-switcher thingies to switch the page's css file on the fly and redisplay with the new styles. Does anyone have such a thing? Cheers - bw -- Bill White . [EMAIL PROTECTED] . http://members.wolfram.com/billw No ma'am, we're musicians. ___ 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] RFC: Improvements to org-remember
Hi James, I do like all this. A few comments: On Nov 24, 2008, at 12:25 AM, James TD Smith wrote: I have a number of improvements to org-remember I am planning to implement. I have briefly discussed some of them with Carsten, and I thought I should post a detailed description here for discussion as I'm sure you will have ideas, suggestions and criticisms of the proposed changes. * Preliminary work ** Refactoring Carsten suggested that the remember handler could do with some refactoring before adding any new features, as it has gotten quite complicated in places. The longest functions are `org-remember-apply-template' and `org-remember-handler', so these are probably the best place to start. I think it would make sense to move the code to get values for remember expansions out of `org-remember-apply-template' into separate functions. These could be added to an association list indexed by the expansion character. This would also make it easier to add new expansions. Yes. However, it is necessary o keep the sequence of handling the escapes, in particular first filling in all non-interactive ones, and only then doing the interactive ones. ** Unit tests If we can decide on a unit testing framework, this would be an ideal opportunity to add some test coverage, as I'll need to do extensive testing to ensure I don't break anything with the refactoring or the new features. I have some experience with unit testing using JUnit. ** Plists for remember templates Ah, this will be a big relieve when it is implemented, should have been like this from the start. I want to change the format of remember templates to use plists. This is to allow introducing a number of optional parameters to control the new features I want to add. Org uses plists elsewhere, for example in the # +OPTIONS: configuration header, and #+PLOT: lines, so the syntax should already be familiar to org users. I also think it would make sense to to move some options which are currently set using escapes outside of the template, specifically %! (store template immediately) and % (jump to entry after storing). Yes, this wil be much better. For backwards compatibility, the current template format would still be supported, but the additional options would not be available. Defaults for the extra parameters would be set so if they are not present the templates would work as they do currently. The current options would be represented as below: - :template :: the template itself - :name :: the name of the template - :target :: The :target parameter takes the place of the current file and headline target specification. The parameter specifies only the default target; all the other options will remain available via numeric prefixes to C-c C-c. The available options are: - filename:heading :: a file target. If the heading is omitted, a top-level heading will be created. That should be a double colon, for symmetry with org-archive-location, and to avoid problems with Windows paths. - clock :: currently clocked task - current :: add under the the org headline where the point is. - interactive :: select a location interactively using the appropriate interface - function :: call function to get the target. The function can return either a marker, or a file/headline string. - :test :: a function, or list of major modes. The template is only available if the function returns true, or the current buffer is in one of the appropriate modes - :immediate :: replaces the %! escape; if t, the template is stored as soon as all escapes are replaced. - :jumpto :: replaces the % escape; if t, org jumps to the target location when the note is stored. * New features ** Adding non-headline items For some time I have wanted to be able to use remember to add checklist entries and table rows as well as org headlines. To configure this, a :type parameter will be added to the template, which can be either headline (the default), list, checklist or table. - Table rows. This is an awesome idea, as are plain list items and checkboxes. For plain list items, I guess the right thing would be to select the first plain list under the headline, there might be several. Also, the first table under a headline, in case there are more. While one could have a property for explicitly selecting a type like table row or plain-list item or checkbox, it would also be possible to derive this from the Remember buffer content automatically. Which method is better? Currently if you want to use org to record periodic measurements (for example see the thread about using org to manage fitness training), you have to use properties and column view, which has a
Re: [Orgmode] using variables in org-publish-project-alist
Thanks - wow, I would never have found that! Just testing it I noticed a small feature (possibly bug). We talked about buffers being opened in the past when publishing. Now the project publish is nice and quiet except for one case: I break my site down to many subdirs each with an index.org/html. If I open my homepage e.g ~/myweb/index.org, and then publish the entire project while in that buffer then any other index replaces it during the publish process - it is was replaced by ~/myweb/projects/index.org2 in the focused window. Not a day breaker I admit, but still a slight blip in the otherwise super quiet publish process. And the quoting works fine, thanks for the explanation. Carsten Dominik [EMAIL PROTECTED] writes: Hi Richard, no, variables are not interpolated into quoted lists, any list preceded by ' is quoted. If you can guarantee that the value of the variables is define at the time the (setq org-publish-projects-alist ... is executed, then you can use backquote syntax: Quote the main list with the backquote, and then preceed any variable inside you would like to have evaluated with a comma so (setq org-publish-projects-alist `( . ,rgr-souerce )) Note that this works only once, so if you later change the value, this list will not be changed. If you wanted dynamic behavior, then we would have to patch org- publish.el. HTH - Carsten On Nov 24, 2008, at 2:45 AM, Richard Riley wrote: I removed directory names from my projects list thus , | (setq org-publish-project-alist | '( |(web-extra | :base-directory rgr-source ;; ** | :publishing-directory rgr-publish | :base-extension gif\\|jpg\\|jpeg\\|png\\|css | :publishing-function org-publish-attachment | :recursive t | ) |(web-org | :base-directory rgr-source | :publishing-directory rgr-publish | :base-extension org | :publishing-function org-publish-org-to-html | :recursive t | :section-numbers nil | :style link rel=stylesheet | href=\./style.css\ | type=\text/css\ | :auto-preamble t | :auto-postamble t | :preamble (format div id='Content'a href='../'Back/a - a href='%s'Home/a rgr-home) | :postamble /div | :author nil | ) |(web | :components(web-org web-extra) | ) |) | ) ` I included an external file: , | (load-file ~/.emacs.d/.webvars) ` where I declares the variables: , | (setq rgr-source /home/sh/webs/rgr/) | (setq rgr-publish /ssh:rgr.net:/home/sh/webs/rgr/) | (setq rgr-home http://rgr.net/default/;) ` C-h v on rgr-source gives , | rgr-source's value is | /home/sh/webs/rgr/ | | Documentation: | Not documented as a variable. ` but when I publish the project or a project file I get this: , | org-publish-get-base-files: Wrong type argument: stringp, rgr-source ` I have a niggly feeling its going to be something obvious but what? thanks for any info, r. ___ 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 -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970 ___ 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: Using yasnippet with org Mode
As for using yasnippets with tab, the following successfully binds tab to yas/expand when I start emacs with emacs -Q (skips loading customization) and then evaluate the following elisp to load yasnippets and org-mode (load ~/emacs/elisp/util/yasnippet.el) (yas/initialize) (yas/load-directory ~/emacs/snippets) (add-to-list 'load-path ~/emacs/org) (require 'org) (add-hook 'org-mode-hook (lambda () ;; yasnippet (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field-group))) This works for me using a fairly recent Emacs 23 from cvs. Thanks, I have tried that, but it didn't work for me:) I am using Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-05 on vernadsky, modified by Ubuntu. I have also tried binding Yasnippet to the F1 key, which isn't used by anything else. Whilst this works in text mode, it doesn't in org mode. I'll ask in the Yasnippet list and see if they can suggest anything. 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] using variables in org-publish-project-alist
Hi Richard, no, variables are not interpolated into quoted lists, any list preceded by ' is quoted. If you can guarantee that the value of the variables is define at the time the (setq org-publish-projects-alist ... is executed, then you can use backquote syntax: Quote the main list with the backquote, and then preceed any variable inside you would like to have evaluated with a comma so (setq org-publish-projects-alist `( . ,rgr-souerce )) Note that this works only once, so if you later change the value, this list will not be changed. If you wanted dynamic behavior, then we would have to patch org- publish.el. HTH - Carsten On Nov 24, 2008, at 2:45 AM, Richard Riley wrote: I removed directory names from my projects list thus , | (setq org-publish-project-alist | '( | (web-extra |:base-directory rgr-source ;; ** |:publishing-directory rgr-publish |:base-extension gif\\|jpg\\|jpeg\\|png\\|css |:publishing-function org-publish-attachment | :recursive t |) | (web-org |:base-directory rgr-source |:publishing-directory rgr-publish |:base-extension org |:publishing-function org-publish-org-to-html | :recursive t |:section-numbers nil |:style link rel=stylesheet | href=\./style.css\ | type=\text/css\ |:auto-preamble t |:auto-postamble t | :preamble (format div id='Content'a href='../'Back/a - a href='%s'Home/a rgr-home) |:postamble /div |:author nil |) | (web |:components(web-org web-extra) |) | ) | ) ` I included an external file: , | (load-file ~/.emacs.d/.webvars) ` where I declares the variables: , | (setq rgr-source /home/sh/webs/rgr/) | (setq rgr-publish /ssh:rgr.net:/home/sh/webs/rgr/) | (setq rgr-home http://rgr.net/default/;) ` C-h v on rgr-source gives , | rgr-source's value is | /home/sh/webs/rgr/ | | Documentation: | Not documented as a variable. ` but when I publish the project or a project file I get this: , | org-publish-get-base-files: Wrong type argument: stringp, rgr-source ` I have a niggly feeling its going to be something obvious but what? thanks for any info, r. ___ 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] exporting unnumbered section headings?
On Sun Nov 23 2008 at 22:02, Sebastian Rose [EMAIL PROTECTED] wrote: :section-numbers nil On Sun Nov 23 2008 at 23:29, Matthew Lundin [EMAIL PROTECTED] wrote: :section-numbers nil Thanks guys! Cheers - bw -- Bill White . [EMAIL PROTECTED] . http://members.wolfram.com/billw No ma'am, we're musicians. ___ 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: Relative clocking [Further discussion and ideas by OP]
On Nov 24, 2008, at 8:47 AM, Alan E. Davis wrote: I have looked at the list archives, and discovered some previous postings on a similar topic, about elapsed time. Perhaps I can be more specific. On Mon, Nov 24, 2008 at 12:01 PM, Alan E. Davis [EMAIL PROTECTED] wrote: I have been taking notes on videos, and need a relative clock function, starting when I start the film. A post by Adam Speirs made a useful suggestion in response to a question by Alan Dove: http://lists.gnu.org/archive/html/emacs-orgmode/2007-07/msg00338.html In particular, he posted three functions. I have gotten them to work, they are simple. I am uncertain how they interact with Org Mode, whether they work in a harmonious fashion with the clocking code in org mode. Times inserted like this will not interact with the clocking feature - probably just what you want in this case. I didn't figure out how to turn off the clock! So I rebooted when I needed to restart. I could edit his functions and insert exactly what I need. Why would you want to turn off the clock? It is actually not running, only a starting time is recorded. Just start it again when you need a new clock. I liked them because they don't require me to diddle around with properties and drawers, with which I am yet somewhat uncomfortable. I agree, for this application you don't want this. Just a hot key to insert the time, or even a full headline or plain list item with the time included. A further suggestion is born or my initial experiment with his function: I started the clock a bit too late, so all the timestamps are off by about 30-40 seconds. Is it (at least in theory) possible to adjust all time stamps in a subtree by the same amount? That would enable me to correct all of my notes in one fell stroke. Of course this is possible, but code for that would need to be written. - 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
Re: [Orgmode] RFC: Improvements to org-remember
Hi Samuel, On 2008-11-23 17:23:15(-0700), Samuel Wales wrote: All of this looks great. I especially like code integrity, plist syntax, and :prefix. Do you want more ideas for remember? Yes. Any suggestions for new features or ways the behaviour of the remember handler could be improved are most welcome. James -- |-James TD Smith-email/[EMAIL PROTECTED]-| ___ 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] RFC: Improvements to org-remember
On Mon, Nov 24, 2008 at 09:58:49AM +0100, Carsten Dominik wrote: Hi James, I do like all this. A few comments: On Nov 24, 2008, at 12:25 AM, James TD Smith wrote: ... ** Adding non-headline items For some time I have wanted to be able to use remember to add checklist entries and table rows as well as org headlines. To configure this, a :type parameter will be added to the template, which can be either headline (the default), list, checklist or table. - Table rows. This is an awesome idea, as are plain list items and checkboxes. For plain list items, I guess the right thing would be to select the first plain list under the headline, there might be several. Also, the first table under a headline, in case there are more. Table rows would rock! I would like to add here - Non-org items, to simply be appended to a file. I believe Russel Adams had a request about this, on how to use remember to add entries to a ledger file, for which using a template would be nice. The problem is that Org currently requires the target file to be in Org-mode - for good reasons, because all kinds of Org stuff will be executed when the new entry is added. We should allow for the results of a remember template to be added to a non-Org file. This style of adding to non-org files essentially makes remember a template generated data entry front end for arbitrary text. This would make the ledger file easy. My idea was to use remember to quickly enter time/expenses/mileage into my ledger. Thanks for your efforts! -- Russell Adams[EMAIL PROTECTED] PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ 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] RFC: Improvements to org-remember
On Mon, Nov 24, 2008 at 03:02, James TD Smith [EMAIL PROTECTED] wrote: Yes. Any suggestions for new features or ways the behaviour of the remember handler could be improved are most welcome. In addition to the stuff already mentioned: * TODO remember ideas *** respect pop-up-windows *** if the target file for org-remember is already known use the control variables from that file that way you can have your todo sequence available *** if org-remember does not recognize the type, abort completely *** org-remember should be reentrant able to call itself from inside itself if you have a note you want to add that is not related to the one you are adding. *** org-remember-templates takes a character can it take a function key? *** emacs-w3m tight integration with org-mode - might be interesting to use an org-mode file to store bookmarks. this would require changing the way bookmarks are added, to store them in a way similar to org-remember. - perhaps antenna can also be integrated with org-mode. [2008-09-20 Sat 18:26] *** org merge org-annotate-file with remember code to allow annotating anything also have a hook for opening files and w3m pages etc. that will print in the minibuffer this file/page/directory is annotated. press ... to see the annotation. [2008-10-27 Mon 22:02] [[http://orgmode.org/manual/Extensions-in-the-contrib-directory.html][Extensions in the contrib directory - The Org Manual]] *** brainstorm: support asking for the template after the note was entered. this might complicate things too much. this is a tricky one to design, but the philosophy is that the time between having an idea and entering it should be minimal. choosing the template type is a cognitive burden before you enter the idea. so dedicate a remember shortcut to the concept of let me enter this now. c-c c-c, it asks you details like is this a todo item? and which file does it go to? you would have a remember template that allows for other remember templates to be chosen after you enter the note. ideally, it works like this: 1. call org-remember like that 2. enter note 3. c-c c-c 4. choose whether it's a note, journal, or shopping item 5. if it's note or journal, choose whether it's todo 6. if it's note or journal, choose tags (RET for none) 7. show completed buffer 8. y to accept; n to edit nested plists? P.S. :prepend -- org-refile also needs this, separately from adding notes in reverse order. ___ 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] Volunteer wanted for administration of emacs-orgmode
Hi, I am looking for a volunteer doing the administration of the mailing list. This is little work, mainly looking about once every day (in reaction to an email from the robot) at the occasional mail from non-members that have been blocked, and deciding if they should go through to the list. Easy work, but still one I'd like to pass on. Let me know if you are interested. - 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
[Orgmode] undo and folding
Very often, I will hit undo, only to find that all of the changes it makes are hidden in a folded subtree. Combined with the lack of a non-buggy true redo, this makes things very confusing. Is there a way to fix this? -- Myalgic encephalomyelitis denialists are knowingly causing further suffering and death by opposing biomedical research on this fast-spreading serious disease. Do you care about the world? 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
[Orgmode] Re: Git recommendations
Richard Riley rileyrgdev at googlemail.com writes: I've just spent a short time giving the crash test dummy procedure to a few git interfaces for emacs. All have their benefits. A lot have their negatives, But my immediate favourite for anyone thinking of using emacs interface to git for org is the following: http://tsgates.cafe24.com/git/git-emacs.html#sec1 It doesn't come with a lot of default key bindings but the two most important for those familiar with vc-backend are there: C-x v v and C-x v = egg's file-oriented minor-mode also has those 2 mappings (as well as other vc main keys such as C-x v u, C-x vl, etc.) git-diff interfaces nicely to ediff. if the egg's status buffer, if you type [RET] at a conflicting delta (after a merge/rebase), egg will launch ediff3 to let you resolve the conflict. magit and egg tend to git-status centric as opposed to file centric. egg is has minor-mode which is fairly file-oriented. egg's C-x v v sequence is customizable to match your personal workflow emacs-git is a nice mixture. It palms off the log/history interface to gitk - no need to reinvent the wheel. egg uses the log buffer to do branch/tag creation/deletion as well as pull/push/fetch etc. http://github.com/bogolisk/egg/wikis Simple, powerful, extensible. Recommended. Oh, but missing staging which magit and egg support but vc-git, git.el and emacs-git do not. I think ... magit and egg main raison-d'etre was exactly that: hunk-by-hunk staging/unstaging. I haven't touch egg for a while and of course I'm biased. ___ 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: Relative clocking [Further discussion and ideas by OP]
Thank you for the reply. On Mon, Nov 24, 2008 at 8:30 PM, Carsten Dominik [EMAIL PROTECTED]wrote: Why would you want to turn off the clock? It is actually not running, only a starting time is recorded. Just start it again when you need a new clock. Perfect! Thank you. A further suggestion is born or my initial experiment with his function: I started the clock a bit too late, so all the timestamps are off by about 30-40 seconds. Is it (at least in theory) possible to adjust all time stamps in a subtree by the same amount? That would enable me to correct all of my notes in one fell stroke. Of course this is possible, but code for that would need to be written. I have written some elisp, not alot. May I request a clue where to start? Alan -- Alan Davis It's never a matter of liking or disliking ... ---Santa Ynez Chumash Medicine Man ___ 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] Re: undo and folding
Samuel Wales [EMAIL PROTECTED] writes: Hi Samuel, Very often, I will hit undo, only to find that all of the changes it makes are hidden in a folded subtree. That happens to me quite often, too. Combined with the lack of a non-buggy true redo, this makes things very confusing. Where is emacs' redo buggy? Any non-undo command after undo followed by undo will undo your latest undo. Isn't that easy? Is there a way to fix this? I guess you could add a before advice to `undo', that calls `show-all'. Bye, Tassilo ___ 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] undo and folding
Not that I know. Maybe some advice around the undo function, to make at least point visible after an undo command? This is untested, and may be incomplete since it does not take into account the range in the buffer that was really affected by the undo. But it may already help: (defadvice undo (after org-undo-reveal activate) Make point and context visible after an undo command in Org-mode. (and (org-mode-p) (org-reveal))) HTH - Carsten On Nov 24, 2008, at 8:44 PM, Samuel Wales wrote: Very often, I will hit undo, only to find that all of the changes it makes are hidden in a folded subtree. Combined with the lack of a non-buggy true redo, this makes things very confusing. Is there a way to fix this? -- Myalgic encephalomyelitis denialists are knowingly causing further suffering and death by opposing biomedical research on this fast-spreading serious disease. Do you care about the world? 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] Re: Git recommendations
Linh Dang [EMAIL PROTECTED] writes: Richard Riley rileyrgdev at googlemail.com writes: I've just spent a short time giving the crash test dummy procedure to a few git interfaces for emacs. All have their benefits. A lot have their negatives, But my immediate favourite for anyone thinking of using emacs interface to git for org is the following: http://tsgates.cafe24.com/git/git-emacs.html#sec1 It doesn't come with a lot of default key bindings but the two most important for those familiar with vc-backend are there: C-x v v and C-x v = egg's file-oriented minor-mode also has those 2 mappings (as well as other vc main keys such as C-x v u, C-x vl, etc.) git-diff interfaces nicely to ediff. if the egg's status buffer, if you type [RET] at a conflicting delta (after a merge/rebase), egg will launch ediff3 to let you resolve the conflict. magit and egg tend to git-status centric as opposed to file centric. egg is has minor-mode which is fairly file-oriented. egg's C-x v v sequence is customizable to match your personal workflow emacs-git is a nice mixture. It palms off the log/history interface to gitk - no need to reinvent the wheel. egg uses the log buffer to do branch/tag creation/deletion as well as pull/push/fetch etc. http://github.com/bogolisk/egg/wikis Simple, powerful, extensible. Recommended. Oh, but missing staging which magit and egg support but vc-git, git.el and emacs-git do not. I think ... magit and egg main raison-d'etre was exactly that: hunk-by-hunk staging/unstaging. I haven't touch egg for a while and of course I'm biased. Since then I discovered DVC. http://richardriley.net/default/projects/emacs/dvc/tutorial/index It's a shame so much effort is going into so many disjoint projects in my view. They all cover different subsets and none appear to have a large enough following to ensure interest and hence maintenance. Time will tell. ___ 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] RFC: Improvements to org-remember
Hi Samuel, this is hard to read. Try, with the cursor on the first line: C-c @to select the subtree C-c C-e ato export to ASCII The result is more readable as an Email text. HTH - Carsten On Nov 24, 2008, at 8:29 PM, Samuel Wales wrote: On Mon, Nov 24, 2008 at 03:02, James TD Smith [EMAIL PROTECTED] wrote: Yes. Any suggestions for new features or ways the behaviour of the remember handler could be improved are most welcome. In addition to the stuff already mentioned: * TODO remember ideas *** respect pop-up-windows *** if the target file for org-remember is already known use the control variables from that file that way you can have your todo sequence available *** if org-remember does not recognize the type, abort completely *** org-remember should be reentrant able to call itself from inside itself if you have a note you want to add that is not related to the one you are adding. *** org-remember-templates takes a character can it take a function key? *** emacs-w3m tight integration with org-mode - might be interesting to use an org-mode file to store bookmarks. this would require changing the way bookmarks are added, to store them in a way similar to org-remember. - perhaps antenna can also be integrated with org-mode. [2008-09-20 Sat 18:26] *** org merge org-annotate-file with remember code to allow annotating anything also have a hook for opening files and w3m pages etc. that will print in the minibuffer this file/page/directory is annotated. press ... to see the annotation. [2008-10-27 Mon 22:02] [[http://orgmode.org/manual/Extensions-in-the-contrib-directory.html] [Extensions in the contrib directory - The Org Manual]] *** brainstorm: support asking for the template after the note was entered. this might complicate things too much. this is a tricky one to design, but the philosophy is that the time between having an idea and entering it should be minimal. choosing the template type is a cognitive burden before you enter the idea. so dedicate a remember shortcut to the concept of let me enter this now. c-c c-c, it asks you details like is this a todo item? and which file does it go to? you would have a remember template that allows for other remember templates to be chosen after you enter the note. ideally, it works like this: 1. call org-remember like that 2. enter note 3. c-c c-c 4. choose whether it's a note, journal, or shopping item 5. if it's note or journal, choose whether it's todo 6. if it's note or journal, choose tags (RET for none) 7. show completed buffer 8. y to accept; n to edit nested plists? P.S. :prepend -- org-refile also needs this, separately from adding notes in reverse order. ___ 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] Re: bug? no newline at beginning of file
Hi Mikael Fornius [EMAIL PROTECTED] writes: ... this was just some thoughts. Replying my own post now. My thought was not of any great value because I now fully understand your problem: In org-mode it works as one expect but not in orgtbl-mode and when pointis at beginning of line in the table and you hit RET the table splits up but not at first line in orgtbl. exactly... not a big thing either... plenty of work arounds (e.g. go to text-mode, add newline, go to org-mode)., but I thought I report it, since it looked like a bug to me ;) cheers ARUN ___ 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] Re: Release 6.13
Sebastian Rose [EMAIL PROTECTED] writes: This way first the *.org files are published (and thus ditaa images are created in :base-directory) and then the new generated images. Thanks for the response Sebastian. I already have my projects set up like this - it's just that I need to break my (bad) habit of using org-publish-current-project when editing a *.org file which has ditaa images since this does not publish the images too. I'll just fix my work flow so that I use the org-publish function instead of org-publish-current-project. -Bernt ___ 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] RFC: Improvements to org-remember
I was trying to contribute while reducing typing to a minimum to reduce pain, and ended up making it hard for you to read. Apologies. == remember ideas i've gathered over the past few months = Author: tom [EMAIL PROTECTED] Date: 2008-11-24 14:38:05 MST Table of Contents = + respect pop-up-windows + if the target file for org-remember is already known use the control variables from that file that way you can have your todo sequence available + if org-remember does not recognize the type, abort completely + org-remember should be reentrant able to call itself from inside itself if you have a note you want to add that is not related to the one you are adding. + org-remember-templates takes a character can it take a function key? + emacs-w3m tight integration with org-mode - might be interesting to use an org-mode file to store bookmarks. this would require changing the way bookmarks are added, to store them in a way similar to org-remember. - perhaps antenna can also be integrated with org-mode. [2008-09-20 Sat 18:26] + org merge org-annotate-file with remember code to allow annotating anything also have a hook for opening files and w3m pages etc. that will print in the minibuffer this file/page/directory is annotated. press ... to see the annotation. [2008-10-27 Mon 22:02] [Extensions in the contrib directory - The Org Manual] + brainstorm: support asking for the template after the note was entered. this might complicate things too much. this is a tricky one to design, but the philosophy is that the time between having an idea and entering it should be minimal. choosing the template type is a cognitive burden before you enter the idea. so dedicate a remember shortcut to the concept of let me enter this now. c-c c-c, it asks you details like is this a todo item? and which file does it go to? you would have a remember template that allows for other remember templates to be chosen after you enter the note. ideally, it works like this: 1. call org-remember like that 2. enter note 3. c-c c-c 4. choose whether it's a note, journal, or shopping item 5. if it's note or journal, choose whether it's todo 6. if it's note or journal, choose tags (RET for none) 7. show completed buffer 8. y to accept; n to edit nested plists? -- Myalgic encephalomyelitis denialists are knowingly causing further suffering and death by opposing biomedical research on this fast-spreading serious disease. Do you care about the world? 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: bug? no newline at beginning of file
Fixed, thanks. - Carsten On Nov 24, 2008, at 10:19 PM, Arun Persaud wrote: Hi Mikael Fornius [EMAIL PROTECTED] writes: ... this was just some thoughts. Replying my own post now. My thought was not of any great value because I now fully understand your problem: In org-mode it works as one expect but not in orgtbl-mode and when pointis at beginning of line in the table and you hit RET the table splits up but not at first line in orgtbl. exactly... not a big thing either... plenty of work arounds (e.g. go to text-mode, add newline, go to org-mode)., but I thought I report it, since it looked like a bug to me ;) cheers ARUN ___ 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] Re: Volunteer wanted for administration of emacs-orgmode
Carsten Let me know if you are interested. I'm ok to so it. I'm in France, so it would be good if someone from the other side of the earth could volunteer along with me so that we balance the load of manual filtering and mail don't stay blocked for too long. I think I would do the filtering at about 18:00 UTC+1 -- Paul ___ 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: exporting unnumbered section headings?
Hi Bill, choosing a stylesheet `on the fly' would only work using JavaScript. It's quite simple: http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm Bill White [EMAIL PROTECTED] writes: On Sun Nov 23 2008 at 20:41, Bill White [EMAIL PROTECTED] wrote: Hi all - Inspired by other posts on the list recently, I'm setting up an org-based website. Here's what I have so far: http://members.wolfram.com/billw (currently using the worg css definitions). I'm looking for one of those css-switcher thingies to switch the page's css file on the fly and redisplay with the new styles. Does anyone have such a thing? Cheers - bw -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de ___ 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: Using yasnippet with org Mode
Ian, this is my yasnippets setup: .emacs = ---8-8-8--- (require 'yasnippet) ;; not yasnippet-bundle (yas/initialize) (yas/load-directory /home/sebastian/emacs/snippets/) ;; I use the WIN key for my own bindings, since I didn't use Windows for ;; ages, and I don't plan to :-) ;; H-y is convenient on german keyboard (like M-z on english/US ;; keyboard): (defun sr-yas-in-org () Define H-y as yas/expand in org (define-key org-mode-map [(hyper ?y)] 'yas/expand)) (add-hook 'org-mode-hook 'sr-yas-in-org) = ---8-8-8--- Setup of the snippets tree beneath /home/sebastian/emacs/snippets/: . `-- fundamental-mode |-- cc-mode | |-- c++-mode | `-- c-mode |-- css-mode |-- html-mode |-- java-mode |-- message-mode |-- org-mode |-- perl-mode | `-- cperl-mode |-- php-mode `-- picture-mode As you can see, all modes inherit the snippets from fundamental mode. Example: There's a `box' snippet in fundamental-mode which I may use in all modes. It lives in a file named `box' in fundamental-mode and produces an output like this: ,---. ! this is a box | `---´ Since I have _no_ file named `box' in `org-mode', expanding box in an Org-file looks just the same: ,--. ! This is a box in org | `--´ For some modes, I overwrite it, simply by adding a file name `box' in the appropriate subdirectory. This is the result of expanding `php-mode/box' in a Php-file: // - // // This is a box // // - // ... and in `picture-mode/box': : +---+ : | A box in picture-mode | : +---+ The former is what used, if I expand the `org-mode/ditaa' snippet in an org-file, and press C-c ' #+begin_ditaa asdf.png -o : +---+ : | A box in picture-mode | : +---+ #+end_ditaa In picture-mode, I have several boxes. I may choose one using the arrow keys, if all their filenames start with 'box': picture-mode/box: ++ | A box in pictqure-mode | ++ picture-mode/box.stippled-rounded: /-\ | Rounded | \-/ picture-mode/box.stippled: +=-+ | Stippled | +--+ picture-mode/box.stippled-rounded: /=-\ | Rounded and stippled | \--/ box: = ---8-8-8--- #name : ! box | # -- ,${1:$(make-string (string-width text) ?\-)}--. ! ${1:SubTitle} | \`${1:$(make-string (string-width text) ?\-)}--´ $0 = ---8-8-8--- picture-mode/box (you have to draw the closing `|' yourself): = ---8-8-8--- #name : | straight | # -- +${1:$(make-string (string-width text) ?\-)}--+ | ${1:Entity} |$0 +${1:$(make-string (string-width text) ?\-)}--+ = ---8-8-8--- picture-mode/box.rounded: = ---8-8-8--- #name : | rounded | # -- /${1:$(make-string (string-width text) ?\-)}--\\ | ${1:Entity} |$0 \\${1:$(make-string (string-width text) ?\-)}--/ = ---8-8-8--- One of my most used ones is this here in `php-mode/debug': = ---8-8-8--- #contributor : Sebastian Rose [EMAIL PROTECTED] #name : echo pre; print_r( ... # -- echo preb\\\$$1:/bbr /; print_r(\$$1); echo br /.__FILE__., line .__LINE__./pre;$0 exit; = ---8-8-8--- You get the idea... Regards, Sebastian Ian Barton [EMAIL PROTECTED] writes: As for using yasnippets with tab, the following successfully binds tab to yas/expand when I start emacs with emacs -Q (skips loading customization) and then evaluate the following elisp to load yasnippets and org-mode (load ~/emacs/elisp/util/yasnippet.el) (yas/initialize) (yas/load-directory ~/emacs/snippets) (add-to-list 'load-path ~/emacs/org) (require 'org) (add-hook 'org-mode-hook (lambda () ;; yasnippet (make-variable-buffer-local 'yas/trigger-key) (setq yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field-group))) This works for me using a fairly recent Emacs 23 from cvs. Thanks, I have tried that, but it didn't work for me:) I am using Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-09-05 on vernadsky, modified by Ubuntu. I have also tried binding Yasnippet to the F1 key, which isn't used by anything else. Whilst this works in text mode, it doesn't in org mode. I'll ask in the Yasnippet list and see
Re: [Orgmode] using variables in org-publish-project-alist
Hi Richard, Richard Riley [EMAIL PROTECTED] writes: If I open my homepage e.g ~/myweb/index.org, and then publish the entire project while in that buffer then any other index replaces it during the publish process - it is was replaced by ~/myweb/projects/index.org2 in the focused window. Not a day breaker I admit, but still a slight blip in the otherwise super quiet publish process. Does setting the `:index-filename' help? (setq org-publish-project-alist '((org-notes ;; ... :auto-index t ; generate index.org automagically :index-filename sitemap.org :index-title Sitemap :recursive t ;; ... ) Regards, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Http: www.emma-stil.de ___ 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] using variables in org-publish-project-alist
Sebastian Rose [EMAIL PROTECTED] writes: Hi Richard, Richard Riley [EMAIL PROTECTED] writes: If I open my homepage e.g ~/myweb/index.org, and then publish the entire project while in that buffer then any other index replaces it during the publish process - it is was replaced by ~/myweb/projects/index.org2 in the focused window. Not a day breaker I admit, but still a slight blip in the otherwise super quiet publish process. Does setting the `:index-filename' help? I do not use auto-index but have my own index.org files. I believe Carsten has addressed this issue. (setq org-publish-project-alist '((org-notes ;; ... :auto-index t ; generate index.org automagically :index-filename sitemap.org :index-title Sitemap :recursive t ;; ... ) Regards, -- important and urgent problems of the technology of today are no longer the satisfactions of the primary needs or of archetypal wishes, but the reparation of the evils and damages by the technology of yesterday. ~Dennis Gabor, Innovations: Scientific, Technological and Social, 1970 ___ 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] using variables in org-publish-project-alist
Richard Riley [EMAIL PROTECTED] writes: Sebastian Rose [EMAIL PROTECTED] writes: Hi Richard, Richard Riley [EMAIL PROTECTED] writes: If I open my homepage e.g ~/myweb/index.org, and then publish the entire project while in that buffer then any other index replaces it during the publish process - it is was replaced by ~/myweb/projects/index.org2 in the focused window. Not a day breaker I admit, but still a slight blip in the otherwise super quiet publish process. Does setting the `:index-filename' help? I do not use auto-index but have my own index.org files. I believe Carsten has addressed this issue. Not shure, how this is implemented at the moment. index.org is the default for `:index-filename'. Best, -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de ___ 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: Release 6.13
OK, here is the patch. This ensures, that the whole project is published for C-c C-e P Hence ditaa blocks can be exported together with a changed Org-file again. diff --git a/lisp/org-publish.el b/lisp/org-publish.el index eafa8fa..3ec48c4 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -470,7 +470,11 @@ matching filenames. (defun org-publish-get-project-from-filename (filename) Return the project FILENAME belongs. (let* ((project-name (cdr (assoc (expand-file-name filename) - org-publish-files-alist + org-publish-files-alist))) +(parent-project nil)) +(dolist (prj org-publish-project-alist) + (if (member project-name (plist-get (cdr prj) :components)) + (setq project-name (car prj (assoc project-name org-publish-project-alist))) Regards, Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Carsten Dominik [EMAIL PROTECTED] writes: New contributed file /org-exp-blocks.el/ This new file implements special export behavior of user-defined blocks. The currently supported blocks are - comment :: Comment blocks with author-specific markup - ditaa :: conversion of ASCII art into pretty png files using Stathis Sideris' /ditaa.jar/ program - dot :: creation of graphs in the /dot/ language - R :: Sweave type exporting using the R program For more details and examples, see the file commentary in /org-exp-blocks.el/. Kudos to Eric Schulte for this new functionality, after /org-plot.el/ already his second major contribution. Thanks to Stathis for this excellent program, and for allowing us to bundle it with Org-mode. Thanks for this! I really like that C-c ' now makes editing the ditaa images easy. Now for my questions related to improving my work-flow for generating documents with ditaa images. Q1: Can org-publish-current-project somehow automatically pick up ditaa generated images? I have a play org file http://doc.norang.ca/org-mode.org which generates the page at http://doc.norang.ca/org-mode.html. I usually edit the source file and then M-x org-publish-current-project to publish my changes. This was working great... until ditaa came along :). Now exporting my .org files creates new ditaa generated images (.png files) which don't get exported with the document because they are part of a different project. After org-publish-current-project I have to remember to also org-publish doc-png to get the ditaa generated images published. Publishing the parent project 'doc' instead doc doc-org (org - HTML export - publishing target) doc-png (copy .png - publishing target) works fine so maybe I just need fix my workflow so my publish code is smart enough to find the appropriate parent project and publish that instead. Q2: Can org-publish handle a source file in more than one project? Sometimes I would like to publish the generated page (org-mode.html) as well as the source file that creates it (org-mode.org) as in Q1 above. I don't think I can have a doc-org project that generates HTML and a doc-src project that just copies the .org files verbatim to the target directory since after publishing one of the two projects the file is 'unchanged' and skipped for publishing the second one. Is there a way to accomplish this? For now I'm manually touching the org file and manually publishing the doc-src project to make it work. ditaa images look great on HTML exports. I'm having some difficulty including them in other formats (PDF for instance - they end up being tiny.) Someday I'll find a good solution for that. http://doc.norang.ca/org-mode.pdf is an example. Thanks for org-mode! Regards, Bernt ___ 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 -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de ___ 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: Release 6.13
Arrgh Sorry - there was an unnecessary line. diff --git a/lisp/org-publish.el b/lisp/org-publish.el index eafa8fa..3ec48c4 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -470,7 +470,11 @@ matching filenames. (defun org-publish-get-project-from-filename (filename) Return the project FILENAME belongs. (let* ((project-name (cdr (assoc (expand-file-name filename) org-publish-files-alist +(dolist (prj org-publish-project-alist) + (if (member project-name (plist-get (cdr prj) :components)) + (setq project-name (car prj (assoc project-name org-publish-project-alist))) Regards, Sebastian Sebastian Rose [EMAIL PROTECTED] writes: OK, here is the patch. This ensures, that the whole project is published for C-c C-e P Hence ditaa blocks can be exported together with a changed Org-file again. diff --git a/lisp/org-publish.el b/lisp/org-publish.el index eafa8fa..3ec48c4 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -470,7 +470,11 @@ matching filenames. (defun org-publish-get-project-from-filename (filename) Return the project FILENAME belongs. (let* ((project-name (cdr (assoc (expand-file-name filename) - org-publish-files-alist + org-publish-files-alist))) +(parent-project nil)) +(dolist (prj org-publish-project-alist) + (if (member project-name (plist-get (cdr prj) :components)) + (setq project-name (car prj (assoc project-name org-publish-project-alist))) Regards, Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Carsten Dominik [EMAIL PROTECTED] writes: New contributed file /org-exp-blocks.el/ This new file implements special export behavior of user-defined blocks. The currently supported blocks are - comment :: Comment blocks with author-specific markup - ditaa :: conversion of ASCII art into pretty png files using Stathis Sideris' /ditaa.jar/ program - dot :: creation of graphs in the /dot/ language - R :: Sweave type exporting using the R program For more details and examples, see the file commentary in /org-exp-blocks.el/. Kudos to Eric Schulte for this new functionality, after /org-plot.el/ already his second major contribution. Thanks to Stathis for this excellent program, and for allowing us to bundle it with Org-mode. Thanks for this! I really like that C-c ' now makes editing the ditaa images easy. Now for my questions related to improving my work-flow for generating documents with ditaa images. Q1: Can org-publish-current-project somehow automatically pick up ditaa generated images? I have a play org file http://doc.norang.ca/org-mode.org which generates the page at http://doc.norang.ca/org-mode.html. I usually edit the source file and then M-x org-publish-current-project to publish my changes. This was working great... until ditaa came along :). Now exporting my .org files creates new ditaa generated images (.png files) which don't get exported with the document because they are part of a different project. After org-publish-current-project I have to remember to also org-publish doc-png to get the ditaa generated images published. Publishing the parent project 'doc' instead doc doc-org (org - HTML export - publishing target) doc-png (copy .png - publishing target) works fine so maybe I just need fix my workflow so my publish code is smart enough to find the appropriate parent project and publish that instead. Q2: Can org-publish handle a source file in more than one project? Sometimes I would like to publish the generated page (org-mode.html) as well as the source file that creates it (org-mode.org) as in Q1 above. I don't think I can have a doc-org project that generates HTML and a doc-src project that just copies the .org files verbatim to the target directory since after publishing one of the two projects the file is 'unchanged' and skipped for publishing the second one. Is there a way to accomplish this? For now I'm manually touching the org file and manually publishing the doc-src project to make it work. ditaa images look great on HTML exports. I'm having some difficulty including them in other formats (PDF for instance - they end up being tiny.) Someday I'll find a good solution for that. http://doc.norang.ca/org-mode.pdf is an example. Thanks for org-mode! Regards, Bernt ___ Emacs-orgmode mailing list
Re: [Orgmode] Re: Release 6.13
Hi Sebastian, it seems to me thatt his patch depends on the projects in org-publish-projects-alist to be defined in a certain order, with the components first, and the big parent projects later. So maybe you need to iterate the dolist loop until it stabilizes. Also, I guess a component could be part of several parents? Hmm, maybe not a likely setup. OK, les not worry about this issue. - Carsten On Nov 25, 2008, at 2:48 AM, Sebastian Rose wrote: Arrgh Sorry - there was an unnecessary line. diff --git a/lisp/org-publish.el b/lisp/org-publish.el index eafa8fa..3ec48c4 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -470,7 +470,11 @@ matching filenames. (defun org-publish-get-project-from-filename (filename) Return the project FILENAME belongs. (let* ((project-name (cdr (assoc (expand-file-name filename) org-publish-files-alist +(dolist (prj org-publish-project-alist) + (if (member project-name (plist-get (cdr prj) :components)) + (setq project-name (car prj (assoc project-name org-publish-project-alist))) Regards, Sebastian Sebastian Rose [EMAIL PROTECTED] writes: OK, here is the patch. This ensures, that the whole project is published for C-c C-e P Hence ditaa blocks can be exported together with a changed Org-file again. diff --git a/lisp/org-publish.el b/lisp/org-publish.el index eafa8fa..3ec48c4 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -470,7 +470,11 @@ matching filenames. (defun org-publish-get-project-from-filename (filename) Return the project FILENAME belongs. (let* ((project-name (cdr (assoc (expand-file-name filename) - org-publish-files-alist + org-publish-files-alist))) +(parent-project nil)) +(dolist (prj org-publish-project-alist) + (if (member project-name (plist-get (cdr prj) :components)) + (setq project-name (car prj (assoc project-name org-publish-project-alist))) Regards, Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Carsten Dominik [EMAIL PROTECTED] writes: New contributed file /org-exp-blocks.el/ This new file implements special export behavior of user-defined blocks. The currently supported blocks are - comment :: Comment blocks with author-specific markup - ditaa :: conversion of ASCII art into pretty png files using Stathis Sideris' /ditaa.jar/ program - dot :: creation of graphs in the /dot/ language - R :: Sweave type exporting using the R program For more details and examples, see the file commentary in /org-exp-blocks.el/. Kudos to Eric Schulte for this new functionality, after /org-plot.el/ already his second major contribution. Thanks to Stathis for this excellent program, and for allowing us to bundle it with Org-mode. Thanks for this! I really like that C-c ' now makes editing the ditaa images easy. Now for my questions related to improving my work-flow for generating documents with ditaa images. Q1: Can org-publish-current-project somehow automatically pick up ditaa generated images? I have a play org file http://doc.norang.ca/org-mode.org which generates the page at http://doc.norang.ca/org-mode.html. I usually edit the source file and then M-x org-publish-current-project to publish my changes. This was working great... until ditaa came along :). Now exporting my .org files creates new ditaa generated images (.png files) which don't get exported with the document because they are part of a different project. After org-publish-current-project I have to remember to also org-publish doc-png to get the ditaa generated images published. Publishing the parent project 'doc' instead doc doc-org (org - HTML export - publishing target) doc-png (copy .png - publishing target) works fine so maybe I just need fix my workflow so my publish code is smart enough to find the appropriate parent project and publish that instead. Q2: Can org-publish handle a source file in more than one project? Sometimes I would like to publish the generated page (org- mode.html) as well as the source file that creates it (org-mode.org) as in Q1 above. I don't think I can have a doc-org project that generates HTML and a doc-src project that just copies the .org files verbatim to the target directory since after publishing one of the two projects the file is 'unchanged' and skipped for publishing the second one. Is there a way to accomplish this? For now I'm manually touching the org file and manually publishing the doc-src project to make it work. ditaa images
Re: [Orgmode] Re: Relative clocking [Further discussion and ideas by OP]
On Nov 24, 2008, at 9:31 PM, Alan E. Davis wrote: Thank you for the reply. On Mon, Nov 24, 2008 at 8:30 PM, Carsten Dominik [EMAIL PROTECTED] wrote: Why would you want to turn off the clock? It is actually not running, only a starting time is recorded. Just start it again when you need a new clock. Perfect! Thank you. A further suggestion is born or my initial experiment with his function: I started the clock a bit too late, so all the timestamps are off by about 30-40 seconds. Is it (at least in theory) possible to adjust all time stamps in a subtree by the same amount? That would enable me to correct all of my notes in one fell stroke. Of course this is possible, but code for that would need to be written. I have written some elisp, not alot. May I request a clue where to start? Well write a function searching for the strings and change them... :-) Something like this (untested) might do it. These functions handle negative times, so you can also use this to change the timings relative to the beginning of a scene, so that a prelude to a scene might be at negative times.: (defun my-change-times-in-region (beg end delta) Change all h:mm:ss time in region by a DELTA. (interactive r\nsEnter time difference like \-1:08:26\ or \0:00:25\: ) (let ((re [-+]?[0-9]+:[0-9]\\{2\\}:[0-9]\\{2\\}) (delta (my-hms-to-secs delta)) old new p) (when (= delta 0) (error No change)) (save-excursion (goto-char end) (while (re-search-backward re beg t) (setq p (point)) (replace-match (save-match-data (my-secs-to-hms (+ (my-hms-to-secs (match-string 0)) delta))) t t) (goto-char p) (defun my-hms-to-secs (hms) Convert h:mm:ss string to an integer time. If the string starts with a minus sign, the integer will be negative. (if (not (string-match \\([-+]?[0-9]+\\):\\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\) hms)) 0 (let* ((h (string-to-int (match-string 1 hms))) (m (string-to-int (match-string 2 hms))) (s (string-to-int (match-string 3 hms))) (sign (equal (substring (match-string 1 hms) 0 1) -))) (setq h (abs h)) (* (if sign -1 1) (+ s (* 60 (+ m (* 60 h (defun my-secs-to-hms (s) Convert integer S into h:mm:ss. If the integer is negative, the strig will start with \-\. (let (sign m h) (setq sign (if ( s 0) - ) s (abs s) m (/ s 60) s (- s (* 60 m)) h (/ m 60) m (- m (* 60 h))) (format %s%d:%02d:%02d sign h m s))) HTH - Carsten Hmmm, looks useful to me also for general note taking, maybe I can add something linke this to Org ___ 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