[Orgmode] Re: Ticket Management integration, muse mode, etc
Hi, David Thank you to the both of you for responding so quickly. Basically David the reasoning why I' doing all this is to try and take more David detailed notes on stuff that maybe the end user should not see in David the ticket - which right now I kinda have to do. I still want to David capture this information, so muse-mode kinda made partial sense David for documentation needs. The goal again is really to have my own David private notes in the end. David Matthew hit it right on the head about what I was trying to do - David and that's using the file. I apologize for my newbieness with David org-mode (I admit while I've used it awhile, I never really David scratched much more than the bare surface of this extension), and David yes the following would work perfectly fine. The only problem is David that a lot of my stuff is automatically generated in one of the David files - so keeping notes in the same file complicate matters David a bit when it comes to my matching those notes in regard to the David next entry. Ok, I think I'm understanding it now. So you have a script that download the issues list from redmine and convert it to an org-mode list of entries. Then you want to have a local file dedicated to each issue, possibly in muse-mode because you like it. What matt proposed would work, but he is also right about the fact that keeping everything in a single org file would give good results as well. Let us know how it turns, bridging BTS and org is very interesting. -- 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] lists and quoted latex
Hi Joao, this is, unfortunately, not possible currently. List structure is based on indentation, and the BEGIN_LaTeX statement cannot be indented. All you can do it make the entire list in LaTeX, like: \begin{enumerate} \item My first option \item My second option some difficult latex here \item --- Should be my third option, but Org-mode resets the list counter here... \end{enumerate} Hmmm, this should work, but it does not. What should be the case is that entire LaTeX environments should be exported totally unchanged There was a bug, fixed in 6.18a. - Carsten On Jan 21, 2009, at 8:35 AM, Joao Pedro Pedroso wrote: Hello, I am a happy new user of Org-mode version 6.17trans. When processing lists in this mode, it seems that Org-mode gets trapped if in the list there is some quoted latex texts, as in: 1. My first option 2. My second option #+BEGIN_LaTeX some difficult latex here #+END_LaTeX 1. --- Should be my third option, but Org-mode resets the list counter here... Any comments on this? Thank you, Pedro ___ 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] BUG? - Time summary overlay inherits org-tag face if heading has tags
On Jan 21, 2009, at 5:59 AM, William Henney wrote: Hi list If a heading has tags, then that heading's time summary overlay (shown by C-c C-x C-d) is displayed using the org-tag face. This looks a bit strange. Is it intended? What is intended is that the face should be only a highlight, and inherit the rest from the headline face which is below the overlay. Of course the assumption was that the tag face would not be too different from the headline face - Carsten It is especially noticeable in my case, since I have my tags shown in a smaller font. org-mode 6.17, emacs 22.3.2, aquamacs 1.5 Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ 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] Command key problem in agenda view
Bruce Hackett bruce.hack...@met.no writes: (setq load-path (append load-path '(~/.emacs.d/org/lisp))) This was something I picked up long, long ago, and never worried about. My guess is that append really means just that, and that add-to-list means prepending. Anyway, org-mode is working correctly now. Thanks for your help! Bruce Since it's common that users experience strange problems due to an old version of Org being loaded, I wrote an entry about that in the FAQ, in Worg: http://orgmode.org/worg/org-faq.php#loaded-old-org -- Daniel ___ 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] Command key problem in agenda view
Hi Daniel, thank you very much for this useful entry. - Carsten On Jan 21, 2009, at 12:35 PM, Daniel Clemente wrote: Bruce Hackett bruce.hack...@met.no writes: (setq load-path (append load-path '(~/.emacs.d/org/lisp))) This was something I picked up long, long ago, and never worried about. My guess is that append really means just that, and that add-to-list means prepending. Anyway, org-mode is working correctly now. Thanks for your help! Bruce Since it's common that users experience strange problems due to an old version of Org being loaded, I wrote an entry about that in the FAQ, in Worg: http://orgmode.org/worg/org-faq.php#loaded-old-org -- Daniel ___ 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] C-c C-e t Missing : Option
Using C-c C-e t to insert options omits : (include time and date stamps). This is with 6.17 trans. 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
[Orgmode] re-search and org-link
I currently use the following hook to achieve the level of detail I like from a sparse tree: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle I combine this hook with (setq org-show-following-heading nil) (setq org-show-entry-below t) This works great unless regexp is within a fontified org-link. Then Emacs hangs and I get the OS X spinning beach-ball. There is a very easy workaround as re-search-backward has no problem with an org-link if font-locking is turned off for the buffer: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (font-lock-mode) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle)) (font-lock-mode))) Practically, I'm content with my solution, but I thought I'd mention it should the bug lie within the org-link code and bite anyone else in other situations. OS X 10.5.6, Emacs 23.0.60.1 (NS), Org-mode 6.18c Best wishes, Christopher ___ 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] Footnotes and R output when exporting to HTML or Latex
Mmmm, so busy concerened about the graphics I didn't realise I had such a major issue with footnotes. I am pasting R output into an org file which comes in like: names(gq3hazard) [1] H1aH1bH1cH2aH2bH2cH3aH3b [9] H3cH3dH4aH4bH4cH5aH5bH5c [17] Htotal I suspect some of you are ahead of me, becasue the Org mode export takes these to be footnotes so in the PDF I get names(gq3hazard) 1 H1a H1b H1c H2a H2b H2c H3a H3b $ˆ9$ H3c H3d H4a H4b H4c H5a H5b H5c $ˆ17$ Htotal with a footnote 1 5 3 7 library(boot) medianCI(na.omit(H1b)) I have no idea where the medianCI bit has come from but looking through the file, the spurious footnotes seems to be causing havoc with the layout. Is it possible to disable the footnote feature and then explicityly tell orgmode that a specific instance of square brackets should be interpreted as a footnote. Thanks, Graham ___ 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] BUG? - Time summary overlay inherits org-tag face if heading has tags
Hi Carsten On Wed, Jan 21, 2009 at 3:32 AM, Carsten Dominik domi...@science.uva.nl wrote: If a heading has tags, then that heading's time summary overlay (shown by C-c C-x C-d) is displayed using the org-tag face. This looks a bit strange. Is it intended? What is intended is that the face should be only a highlight, and inherit the rest from the headline face which is below the overlay. Of course the assumption was that the tag face would not be too different from the headline face Apologies for violating your assumption then :) I take it that fixing this would not be straightforward? In that case, it is probably not worth bothering with for a purely cosmetic issue. I had put the tags in a smaller font so they weren't quite so in my face. I was wondering if I could achieve a similar effect by having the tags go in a property drawer instead of in the headline, but I couldn't see from the manual how to do this. The TAGS property seems to be created on the fly. Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ 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: Footnotes and R output when exporting to HTML or Latex
Graham Is it possible to disable the footnote feature and then Graham explicityly tell orgmode that a specific instance of square Graham brackets should be interpreted as a footnote. Check org-footnote-re and org-footnote-definition-re -- 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
[Orgmode] Re: Footnotes and R output when exporting to HTML or Latex
Paul, Check org-footnote-re and org-footnote-definition-re Thanks, but I would appreciate a bit more hand holding on this. I don't actually know how to check org-footnote-re and org-footnote-definition-re sorry Graham ___ 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] Highlight current date in agenda buffer
Hi there, My friend asked about how to have the current date highlighted when in the week view of the agenda. Any ideas? Thanks, -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. ___ 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] [OT] basic emacs tips you will need someday (was: Footnotes and R output when exporting to HTML or Latex)
Graham, Graham Thanks, but I would appreciate a bit more hand holding on this. Graham I don't actually know how to check org-footnote-re and Graham org-footnote-definition-re I think the best help I can do is to describe the first steps to find your way in the emacs jungle. First, take a few minutes to read and try these three commands. ,[ C-h k C-h k ] | C-h k runs the command describe-key, which is an interactive compiled | Lisp function in `help.el'. | | It is bound to C-h k, f1 k, help k, menu-bar help-menu | describe describe-key-1. | | (describe-key optional key untranslated up-event) | | Display documentation of the function invoked by key. | key can be any kind of a key sequence; it can include keyboard events, | mouse events, and/or menu events. When calling from a program, | pass key as a string or a vector. | | If non-nil, untranslated is a vector of the corresponding untranslated events. | It can also be a number, in which case the untranslated events from | the last key sequence entered are used. | up-event is the up-event that was discarded by reading key, or nil. | | If key is a menu item or a tool-bar button that is disabled, this command | temporarily enables it to allow getting help on disabled items and buttons. | | [back] ` ,[ C-h k C-h v ] | C-h v runs the command describe-variable, which is an interactive | compiled Lisp function in `help-fns.el'. | | It is bound to C-h v, f1 v, help v, menu-bar help-menu | describe describe-variable. | | (describe-variable variable optional buffer frame) | | Display the full documentation of variable (a symbol). | Returns the documentation as a string, also. | If variable has a buffer-local value in buffer or frame | (default to the current buffer and current frame), | it is displayed along with the global value. | | [back] ` ,[ C-h k C-h f ] | C-h f runs the command describe-function, which is an interactive | compiled Lisp function in `help-fns.el'. | | It is bound to C-h f, f1 f, help f, menu-bar help-menu | describe describe-function. | | (describe-function function) | | Display the full documentation of function (a symbol). | | [back] ` Now you are ready to discover org-footnote-definition-re and org-footnote-re. Just press C-h v org-footnote-re RET (RET being enter). ,[ C-h v org-footnote-re RET ] | org-footnote-re is a variable defined in `org-footnote.el'. | Its value is | .\\[\\(?:\\([0-9]+\\)\\|\\(fn:\\([-_[:word:]]+?\\)?\\)\\(?::\\([^]]*?\\)\\)?\\)\\] | | Documentation: | Regular expression for matching footnotes. | | [back] ` ,[ C-h v org-footnote-definition-re RET ] | org-footnote-definition-re is a variable defined in `org-footnote.el'. | Its value is | ^\\(\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]\\) | | Documentation: | Regular expression matching the definition of a footnote. | | [back] ` Right. Now you have a good idea of what those variables are for. But wait ! How to guess the names of the variables ? ,[ C-h f apropos-variable RET ] | apropos-variable is an interactive compiled Lisp function in | `apropos.el'. | | It is bound to menu-bar help-menu search-documentation | find-options-by-name. | | (apropos-variable pattern optional do-all) | | Show user variables that match pattern. | pattern can be a word, a list of words (separated by spaces), | or a regexp (using some regexp special characters). If it is a word, | search for matches for that word as a substring. If it is a list of words, | search for matches for any two (or more) of those words. | | With C-u prefix, or if `apropos-do-all' is non-nil, also show | normal variables. | | [back] ` So calling M-x apropos-variable RET org.*footnote RET will return : ,[ M-x apropos-variable RET org.*footnote RET ] | org-export-html-footnotes-section | Variable: Format for the footnotes section. | org-export-with-footnotes | Variable: If nil, export [1] as a footnote marker. | org-footnote-auto-label | Variable: Non-nil means, define automatically new labels for footnotes. | org-footnote-define-inline | Variable: Non-nil means, define footnotes inline, at reference location. | org-footnote-definition-re | Variable: Regular expression matching the definition of a footnote. | org-footnote-fill-after-inline-note-extraction | Variable: Non-nil means, fill paragraphs after extracting footnotes. | org-footnote-label-history | Variable: History of footnote labels entered in current buffer. | org-footnote-re | Variable: Regular expression for matching footnotes. | org-footnote-section | Variable: Outline heading containing footnote definitions before export. | org-footnote-tag-for-non-org-mode-files | Variable: Tag marking the beginning of footnote section. ` Oh, and org-export-with-footnotes looks interesting also. How to set all those variables now ? In your emacs session, you probably have a *scratch* buffer where you can type the emacs lisp language. You will need the setq
[Orgmode] Re: [OT] basic emacs tips you will need someday (was: Footnotes and R output when exporting to HTML or Latex)
Paul, This looks really useful, the problem with the Friendly manual (and I have the O'Reilly book and the SAMS book) is that its difficult to know where to start and this very focussed help I am sure will give me a kick start. I have now printed it out and will work through it. Many thanks, Graham ___ 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: Footnotes and R output when exporting to HTML or Latex
Graham Smith myotis...@gmail.com wrote: Check org-footnote-re and org-footnote-definition-re Thanks, but I would appreciate a bit more hand holding on this. I don't actually know how to check org-footnote-re and org-footnote-definition-re C-h v org-footnote-re RET or M-x describe-variable RET org-footnote-re RET These are the standard Emacs mechanisms for checking variables (the Help section of the Emacs manual describes these and other similar mechanisms, e.g. describing functions, keys, etc.) But I suspect that you are going to run into a much harder wall after you've done this. The description reads as follows: --- org-footnote-re is a variable defined in `/home/nick/src/emacs/org/git/org-mode/lisp/org-footnote.elc'. Its value is [^][\n]\\[\\(?:\\([0-9]+\\)\\|\\(fn:\\([-_[:word:]]+?\\)?\\)\\(?::\\([^]]*?\\)\\)?\\)\\] Documentation: Regular expression for matching footnotes. --- so you'll need a fair amount of grounding in regular expressions to even decipher this. ___ 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: Footnotes and R output when exporting to HTML or Latex
Nick But I suspect that you are going to run into a much harder wall after you've done this. The description reads as follows: --- org-footnote-re is a variable defined in `/home/nick/src/emacs/org/git/org-mode/lisp/org-footnote.elc'. Its value is [^][\n]\\[\\(?:\\([0-9]+\\)\\|\\(fn:\\([-_[:word:]]+?\\)?\\)\\(?::\\([^]]*?\\)\\)?\\)\\] Documentation: Regular expression for matching footnotes. --- Errm yes, my knowledge of reglar expressions is zero, but thanks :-) Graham ___ 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] C-c C-e t Missing : Option
Fixed, thanks. - Carsten On Jan 21, 2009, at 1:50 PM, Ian Barton wrote: Using C-c C-e t to insert options omits : (include time and date stamps). This is with 6.17 trans. 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 ___ 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] bugs in C-*
Hi, following this thread, I have revisited the commands `C-c -' and `C-c *' and hope that they are now better behaved and more useful: If there is an active region, these commands will act on the region, otherwise on the current line. C-c - This command turns headings or normal lines into items, or items into normal lines. When there is a region, everything depends on the first line of the region: - if it is a item, turn all items in the region into normal lines. - if it is a headline, turn all headlines in the region into items. - if it is a normal line, turn all lines into items. - special case: if there is no active region and the current line is an item, cycle the bullet type of the current list. C-c * This command turns items and normal lines into headings, or headings into normal lines. When there is a region, everything depends on the first line of the region: - if it is a item, turn all items in the region into headlines. - if it is a headline, turn all headlines in the region into normal lines. - if it is a normal line, turn all lines into headlines. I hope these commands a now more consistent and better. - Carsten On Dec 29, 2008, at 8:57 PM, Scott Otterson wrote: I just discovered the very handy C-* function -- I've been converting lists to headlines manually! But I also discovered a couple of bugs: If I select a region containing a plain list and then type C-*, org mode adds the leading stars but doesn't remove the plain list symbols, for example, this: * headline - list 1 - list 2 is converted to this: * headline *** - list 1 *** - list 2 Also, if I'm at the end of a file so that the region can't be extended beyond the end of the last item in the list, then that item isn't converted. In other words, I get this: * headline *** - list 1 - list 2 Thanks, Scott ___ 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: Highlight current date in agenda buffer
Leo sdl@gmail.com writes: My friend asked about how to have the current date highlighted when in the week view of the agenda. Any ideas? I have the following in my .emacs (add-hook 'org-agenda-mode-hook '(lambda () (hl-line-mode 1))) and then just '.' in the agenda goes to today with the hilighted line. When starting the agenda (week, month view) the current line is always on today's date for me. It's not exactly what you want but it Works Great For Me(tm) I also have the week view starting on today and looking 6 days into the future so the first day of the current week is always today. (setq org-agenda-start-on-weekday nil) HTH, 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
[Orgmode] Agenda on iPhone as HTML
I finally have my agenda just the way I like, thanks to custom agenda block commands. So the next natural thing to do was to get this exported so I could see it on my iPhone. Pending a formal Org iPhone application, I decided to put some HTML on a web server I control, and access it from my phone. To make it easier to make phone calls from the agenda, I also create the proper tel links so that tapping a phone number tells the iPhone to dial out. You can see the sed hacking in my super-simple function: (defun pmade:org-write-agenda () Write the agenda buffer to a file, and send to pmade.com. (interactive) (org-write-agenda ~/agenda.html) (shell-command sed -E 's/T:([0-9+-]+)/T:a href=\tel:\\1\\\1\\/a/' ~/agenda.html | ssh -q pmade.com 'cat /opt/sites/pmade.com/www/private/agenda.html') (delete-file ~/agenda.html)) Basically, headlines that have something like T:303-555-1212 will have the number turned into a tel link. Hope this helps someone else. -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US ___ 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: [OT] basic emacs tips you will need someday (was: Footnotes and R output when exporting to HTML or Latex)
Paul R paul.r...@gmail.com writes: Graham, Graham Thanks, but I would appreciate a bit more hand holding on this. Graham I don't actually know how to check org-footnote-re and Graham org-footnote-definition-re I think the best help I can do is to describe the first steps to find your way in the emacs jungle. [snip: nice helpful introduction to Emacs help (206 lines)] I hope this does not sounds too much like a stupid RTFM. This was a RTFM, indeed, but a nice one I hope :) One of the best introductory materials to Emacs I have come across is a series of tutorials on IBM DeveloperWorks website at http://www.ibm.com/developerworks/views/aix/libraryview.jsp?search_by=emacs+editing+environment Hope someone finds it useful. -- Manish Life is beautiful.* * Conditions apply. ___ 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] BUG? - Time summary overlay inherits org-tag face if heading has tags
On Jan 21, 2009, at 4:51 PM, William Henney wrote: Hi Carsten On Wed, Jan 21, 2009 at 3:32 AM, Carsten Dominik domi...@science.uva.nl wrote: If a heading has tags, then that heading's time summary overlay (shown by C-c C-x C-d) is displayed using the org-tag face. This looks a bit strange. Is it intended? What is intended is that the face should be only a highlight, and inherit the rest from the headline face which is below the overlay. Of course the assumption was that the tag face would not be too different from the headline face Apologies for violating your assumption then :) :-) I take it that fixing this would not be straightforward? Of course. I have now introduced a new face for this purpose. It still defaults to secondary-selection, but you can now customize it. The name of the face is `org-clock-overlay'. In that case, it is probably not worth bothering with for a purely cosmetic issue. I had put the tags in a smaller font so they weren't quite so in my face. I was wondering if I could achieve a similar effect by having the tags go in a property drawer instead of in the headline, but I couldn't see from the manual how to do this. The TAGS property seems to be created on the fly. Yes, TAGS are no property, they can only be accessed like properties, for simplicity and consistency of the property interface. This is fully on purpose, because I think the purpose of tags is defeated when you can no longer see them. Hope this helps. - Carsten Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia Look at that, another astronomer! :-) ___ 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-search and org-link
Hi Christopher, turning font-lock off and on does seem to help, but it is a pretty big cannon. The reason hy your hook runs into problem is: When the match is in text marked by an intangible property (like the link part of a link that also has a description), then the command loop moves the cursor you of this location. Apparently this happens here. A more direct solution might be to move to the beginning of the line before continuing the search, like this: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle) (beginning-of-line 1 Or even better: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (while (re-search-backward regexp nil t) (org-back-to-heading) ;; in case match was deeper in entry (show-subtree) (org-cycle) (org-cycle) (beginning-of-line 1 HTH - Carsten On Jan 21, 2009, at 3:17 PM, Christopher Suckling wrote: I currently use the following hook to achieve the level of detail I like from a sparse tree: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle I combine this hook with (setq org-show-following-heading nil) (setq org-show-entry-below t) This works great unless regexp is within a fontified org-link. Then Emacs hangs and I get the OS X spinning beach-ball. There is a very easy workaround as re-search-backward has no problem with an org-link if font-locking is turned off for the buffer: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (font-lock-mode) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle)) (font-lock-mode))) Practically, I'm content with my solution, but I thought I'd mention it should the bug lie within the org-link code and bite anyone else in other situations. OS X 10.5.6, Emacs 23.0.60.1 (NS), Org-mode 6.18c Best wishes, Christopher ___ 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