[Orgmode] Repeat time ranges
hi org-users! i 'am having the following problem. I have some activities that i organize like this: * University calendar ** Class 1 2009-10-12 Mon 15:00-2009-10-12 Mon 16:00 what i want to do, is have this time range repeat itself every week for 13 occurrences. Is this possible? at least is it possible to have the time range repeat itself indefinitely, like with ** Class 1 2009-10-12 Mon 15:00 +1w best regards, nicolas ___ 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] Searching inside of attachments (pdf, odt)?
Hi Samuel, Samuel Wales samolog...@gmail.com schrieb: My idea is to use ordinary agenda search like this: 1) agenda search displays the headline that has the attachment. 2) org uses an alist to determine the correct textifier according to extension. e.g. '((.pdf . pdf2text)). 3) agenda searches normally (as if the contents of the attachment were body text). correct me if i'm wrong, but your approach is to search inside (an) already identified attachment(s)? I'd like to find attachments by searching inside the whole set of attachments. I do have many articles (pdf-files) to deal with. When i write a report on a special topic i have to find articles that are relevant to the topic i'm working on at the moment. If we use the standard textifiers the procedure will probably get very slow if there are many attachments. I think using an index would be a good idea. To describe what i'm looking for: My first step is to create an entry for each article, define tags (describing the content) and add some notes. * Title of the article :tag:tag:tag: :PROPERTIES: :Attachments: article.pdf :ID: 387HJGJD78-758GZFHF87-JKHKJ57dfd9 :END: - Very good explanation of X. - New view on Y. But it would be much more powerful to be able not only to find an entry by searching for tags but to search inside the attachments. I'm not a programmer, so sorry if my ideas are stupid. ;-) But i thing the following questions have to be answered: 1) Is there a tool like Lucene that can index pdf-files as they are stored by orgmode (directory structure)? 2) Is it possible to send a query to this tool from within emacs? 3) Is it possible to import the answer of the tool into emacs and combine it with orgmode so that the result looks somehow like this: Search string 'XX' found in file 'article.pdf' attached to task 'Title of the article'. A click on the name of the attachment should open the pdf-file in the pdf-reader; a click on the task name should show the task in the org-buffer. Karl ___ 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] Repeat time ranges
Hi Nicolas, I think org-clone-subtree-with-time-shift was implemented exactly for this use case: (org-clone-subtree-with-time-shift n optional shift) Clone the task (subtree) at point n times. The clones will be inserted as siblings. In interactive use, the user will be prompted for the number of clones to be produced, and for a time shift, which may be a repeater as used in time stamps, for example `+3d'. When a valid repeater is given and the entry contains any time stamps, the clones will become a sequence in time, with time stamps in the subtree shifted for each clone produced. If shift is nil or the empty string, time stamps will be left alone. hth, Stephan Nicolas Aggelidis wrote: hi org-users! i 'am having the following problem. I have some activities that i organize like this: * University calendar ** Class 1 2009-10-12 Mon 15:00-2009-10-12 Mon 16:00 what i want to do, is have this time range repeat itself every week for 13 occurrences. Is this possible? at least is it possible to have the time range repeat itself indefinitely, like with ** Class 1 2009-10-12 Mon 15:00 +1w best regards, nicolas ___ 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] The Perl color style
Carsten Dominik carsten.domi...@gmail.com writes: On Oct 12, 2009, at 11:19 AM, Water Lin wrote: Mikael Fornius m...@abc.se writes: Water Lin water...@ymail.com writes: #+BEGIN_SRC perl-mode For me: #+BEGIN_SRC perl is more colorful. I don't know why, when I am using #+BEGIN_SRC perl , Emacs will tell me the error: face-attribute: Invalid face: quote Could not find config file ~/.tidyrc. Winging it. Are you using htmlize.el as it comes distributed with Org in the contrib directory, or some other, older version? You need 1.36 at least. - Carsten I am sorry. I don't think I catch your idea. I have my own htmlize.el whoes version is 1.36. But I don't know whether Org is using this one. How can I find out this? Thanks Water Lin But if I use #+BEGIN_SRC Perl which has the capital P, it works but the output is not colorful enough I think. Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ 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 - 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 -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] The Perl color style
Water Lin water...@ymail.com writes: , Emacs will tell me the error: face-attribute: Invalid face: quote Could not find config file ~/.tidyrc. Winging it. This looks as a configuration typo or similar problem. Maybe you should try to enalble emacs debug on error feature: M-x toggle-debug-on-error RET , retry the org-export command and see if any information on why you have errors show up in the backtrace. If you have problem reading the backtrace you can post it here and I will give it a try. I am sorry. I don't think I catch your idea. I have my own htmlize.el whoes version is 1.36. But I don't know whether Org is using this one. How can I find out this? M-: htmlize-version RET can give an answer when htmlize-package is loaded. -- Mikael Fornius ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] The Perl color style
Mikael Fornius m...@abc.se writes: Water Lin water...@ymail.com writes: , Emacs will tell me the error: face-attribute: Invalid face: quote Could not find config file ~/.tidyrc. Winging it. This looks as a configuration typo or similar problem. Maybe you should try to enalble emacs debug on error feature: M-x toggle-debug-on-error RET , retry the org-export command and see if any information on why you have errors show up in the backtrace. If you have problem reading the backtrace you can post it here and I will give it a try. I am sorry. I don't think I catch your idea. I have my own htmlize.el whoes version is 1.36. But I don't know whether Org is using this one. How can I find out this? M-: htmlize-version RET can give an answer when htmlize-package is loaded. I think I found the reason, there is something wrong with my Perl script, so htmlize can't parse it and add color. I changed a different script and tried htmlize, the Perl color is good. Thanks! Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ 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: LaTeX export of images
Hi Carsten, Sorry for my late reply on this subject. OK, I have now modified image placement in LaTeX. 1. Image in text [[./img/x.png]] 2. Floating image with caption and modified size and placement #+CAPTION: My caption #+ATTR_LATEX: placement=[H] width=0.6\textwidth [[./img/x.png]] 3. Wrapping text around the image #+ATTR_LaTeX: wrap #+ATTR_HTML: align=left [[./img/x.png]] 4. Wrapping text around the image with modified size and wrapfigure placement #+ATTR_LaTeX: wrap width=0.38\textwidth placement={r}{0.4\textwidth #+ATTR_HTML: align=right width=250 [[./img/x.png]] Even if there is a caption, wrap will work and force the image to be non-floating with text wrapped around. Comments? I did not test the wrap option yet, but the rest is perfect (images in text, placements, width, captions, labels). I still miss one single option: float in order to force the centered figure environment if if no caption/label is present. I would add something like #+ATTR_LATEX: float or #+ATTR_LATEX: float=t Is this feasible? Thanks a lot! Francesco ___ 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] LaTeX export of tables
Hi, When exporting tables to LaTeX, I think it would be good to have the following options to be able to define: - the table environment to be used: now we have the option to have tabular and longtable, but I could also use array, tabular*, tabularx, tabulary, etc. The general rule is: \begin{TABLEENV}{WIDTH}[VPOS]{COLS} ROWS \end{TABLEENV} TABLEENV can be any of tabular, array, tabular*, tabularx, etc., depending on the type of table I want. Some types of table need a WIDTH to be specified; in this case, I would add a WIDTH option. An extra vertical position VPOS option can also be added to some types of table. The COLS parameter already receives the value from the align org attribute. The following options #+ATTR_LATEX: tabularx width=\textwidth align=lX vpos=tb would generate the following LaTeX code: \begin{tabularx}{\textwidth}[tb]{lX} ROWS \end{tabularx} - the rule to be used as hline (similar option as in #+ORGTBL: :hline=\\midrule): #+ATTR_LATEX: hline=midrule or #+ATTR_LATEX: hline=\\midrule - define the top and bottom rules: #+ATTR_LATEX: toprule=\\toprule bottomrule=\\bottomrule Does it make sense? Would it be possible to have these new options in a future orgmode release? Thanks a lot. Francesco ___ 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: Emacs startup file
saikari keitele saikar...@gmail.com writes: Hi Saikari, I'm new to orgmode and quite new to Emacs. Welcome! Could you please tell me the exact lines I have to add to the emacs startup file (.emacs.el) to enable orgmode? If you use Emacs 23.1, then you don't need to do anything. Simply open a file with .org extension will enable org-mode. That said, you might want to specify which org files are used to generate the agenda view. Let's say all your org files are in a directory ~/org/, then add this code to you .emacs. (setq org-agenda-files '(~/org)) You might also want to set up custom global keys to fire up the agenda or to store a link to the current document. Org's nice manual explains how to do that: ,[ (info (org)Activation) ] | (global-set-key \C-cl 'org-store-link) | (global-set-key \C-ca 'org-agenda) ` 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] Emacs startup file
saikari keitele saikar...@gmail.com writes: Could you please tell me the exact lines I have to add to the emacs startup file(.emacs.el) to enable orgmode? ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) (global-font-lock-mode 1) ; for all buffers (add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only See Emacs Info documentation browser: (info (org) Activation) for more information. -- Mikael Fornius ___ 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: Emacs startup file
saikari keitele saikar...@gmail.com writes: Hi, I'm new to orgmode and quite new to Emacs. Could you please tell me the exact lines I have to add to the emacs startup file(.emacs.el) to enable orgmode? Thanks http://doc.norang.ca/org-mode.html#Setup -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] Re: Emacs startup file
saikari keitele saikar...@gmail.com writes: I'm new to orgmode and quite new to Emacs. Could you please tell me the exact lines I have to add to the emacs startup file(.emacs.el) to enable orgmode? Welcome ;) If you are new to emacs, really learn, how to use the integrated documenatation. Its great and always available! Press a) 'Control+h' 'i' . This gives you the info system. b) 'h' . Gives you a tutorial, how to use it. It takes some time to get used to it, but its really worth it. c) Find the org documentation in the info system. The node Introduction should help you getting started. The org documentation is very well written and quite extensive. hth, and have fun :)! ___ 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: Repeat time ranges
Nicolas Aggelidis n.aggeli...@gmail.com writes: hi org-users! i 'am having the following problem. I have some activities that i organize like this: * University calendar ** Class 1 2009-10-12 Mon 15:00-2009-10-12 Mon 16:00 what i want to do, is have this time range repeat itself every week for 13 occurrences. You can use a diary sexp. See the following FAQ. It contains a solution for an example almost exactly like yours above: http://orgmode.org/worg/org-faq.php#diary-sexp-in-org-files Best, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-version from git 6.30 trans
I have my configs setup so that org-mode is a git submodule from git://repo.or.cz/org-mode.git I updated my submodule but org-version is still saying 6.30 trans. Is 6.31 on a branch or tag? Greg Newman http://20seven.org twitter: gregnewman___ 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] Searching inside of attachments (pdf, odt)?
FWIW I think this might be handled easier if all that happened would be a grep on the attachments, or directories. The usual grep interface can be used and then it becomes a fast general purpose data mining extension. I can see it being used to search a codebase or website for a text string. I guess it could be further refined with some kind of dispatcher - like the file dispatcher that invokes a specific tool to view an attachment, except it uses an attachment specific search or defaults to grep if its not an emacs editable file. Possibly an extension fo the current file:text-file::in buffer search , but uses this grep or whatever if it comes up against something un-emacs-editable. An added bonus of a search dispatcher type approach: it would give users the chance to extend the search into whatever tool(s)/file format(s) they are using without having to become core to org. Just my 2eurocents worth: Tim. 2009/10/13 Karl Maihofer ignora...@gmx.de: Hi Samuel, Samuel Wales samolog...@gmail.com schrieb: My idea is to use ordinary agenda search like this: 1) agenda search displays the headline that has the attachment. 2) org uses an alist to determine the correct textifier according to extension. e.g. '((.pdf . pdf2text)). 3) agenda searches normally (as if the contents of the attachment were body text). correct me if i'm wrong, but your approach is to search inside (an) already identified attachment(s)? I'd like to find attachments by searching inside the whole set of attachments. I do have many articles (pdf-files) to deal with. When i write a report on a special topic i have to find articles that are relevant to the topic i'm working on at the moment. If we use the standard textifiers the procedure will probably get very slow if there are many attachments. I think using an index would be a good idea. To describe what i'm looking for: My first step is to create an entry for each article, define tags (describing the content) and add some notes. * Title of the article :tag:tag:tag: :PROPERTIES: :Attachments: article.pdf :ID: 387HJGJD78-758GZFHF87-JKHKJ57dfd9 :END: - Very good explanation of X. - New view on Y. But it would be much more powerful to be able not only to find an entry by searching for tags but to search inside the attachments. I'm not a programmer, so sorry if my ideas are stupid. ;-) But i thing the following questions have to be answered: 1) Is there a tool like Lucene that can index pdf-files as they are stored by orgmode (directory structure)? 2) Is it possible to send a query to this tool from within emacs? 3) Is it possible to import the answer of the tool into emacs and combine it with orgmode so that the result looks somehow like this: Search string 'XX' found in file 'article.pdf' attached to task 'Title of the article'. A click on the name of the attachment should open the pdf-file in the pdf-reader; a click on the task name should show the task in the org-buffer. Karl ___ 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] Removing time grid lines (invalid function)
Hi all, I'm attempting to use the hack listed on worg titled : Remove time grid lines that are in an appointment. I'm having a bit of trouble. I'm using emacs 23.1. I add this to my .emacs file: (defun org-time-to-minutes (time) Convert an HHMM time to minutes (+ (* (/ time 100) 60) (% time 100))) (defun org-time-from-minutes (minutes) Convert a number of minutes to an HHMM time (+ (* (/ minutes 60) 100) (% minutes 60))) (defadvice org-agenda-add-time-grid-maybe (around mde-org-agenda-grid-tweakify (list ndays todayp)) (if (member 'remove-match (car org-agenda-time-grid)) (flet ((extract-window (line) (let ((start (get-text-property 1 'time-of-day line)) (dur (get-text-property 1 'duration line))) (cond ((and start dur) (cons start (org-time-from-minutes (+ dur (org-time-to-minutes start) (start start) (t nil) (let* ((windows (delq nil (mapcar 'extract-window list))) (org-agenda-time-grid (list (car org-agenda-time-grid) (cadr org-agenda-time-grid) (remove-if (lambda (time) (find-if (lambda (w) (if (numberp w) (equal w time) (and (= time (car w)) ( time (cdr w) windows)) (caddr org-agenda-time-grid) ad-do-it)) ad-do-it)) (ad-activate 'org-agenda-add-time-grid-maybe) And it starts up fine. Then I try and get my agenda and I get this message: org-agenda-add-time-grid-maybe: Invalid function: (extract-window (line) (let ((start (get-text-property 1 (quote time-of-day) line)) (dur (get-text-property 1 (quote duration) line))) (cond ((and start dur) (cons start (org-time-from-minutes (+ dur (org-time-to-minutes start) (start start) (t nil Doing a C-x C-e on the (ad-activate 'org-agenda-add-time-grid-maybe) line also gives the error. I have noticed that when I use emacs-cvs on Debian lenny, I have a similar but somewhat different problem: emacs will spit out a warning similar to the error above, but when I do a C-x C-e directly on the relevant portions of my .emacs file, everything works. I'm not sure how to start debugging this. To be honest, I'm not even sure what flet is; it doesn't seem to be in the emacs lisp manual... Any help is appreciated. Thanks in advance. -- Desmond Rivet Pain is weakness leaving the body. ___ 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] Removing time grid lines (invalid function)
Desmond Rivet desmond_n...@videotron.ca wrote: Hi all, I'm attempting to use the hack listed on worg titled : Remove time grid lines that are in an appointment. I'm having a bit of trouble. I'm using emacs 23.1. I add this to my .emacs file: ... Try adding this: (load-library cl-macs) before you use flet. Does it fix it? (defadvice org-agenda-add-time-grid-maybe (around mde-org-agenda-grid-tweakify (list ndays todayp)) (if (member 'remove-match (car org-agenda-time-grid)) (flet ((extract-window (line) (let ((start (get-text-property 1 'time-of-day line)) ... And it starts up fine. Then I try and get my agenda and I get this message: org-agenda-add-time-grid-maybe: Invalid function: (extract-window (line) (let ((start (get-text-property 1 (quote time-of-day) line)) (dur (get-text-property 1 (quote duration) line))) (cond ((and start dur) (cons start (org-time-from-minutes (+ dur (org-time-to-minutes start) (start start) (t nil Nick ___ 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] Searching inside of attachments (pdf, odt)?
Hi, My idea is to keep it simple at first. Everybody will come up with great ways to integrate with his favorite IR tool. Here I want to focus on the org interface. The org interface can be the same as any other agenda search, with all the same controls. The back end can use special-purpose textifiers like pdf2text (or whatever) or general-purpose textifiers from IR tools. Doesn't matter. Later, the mechanism can get more fancy if desired. But first, we should implement existing behavior. I often move things to attachments merely because they are large. I don't want search to work differently just because I did that. Search should IMO work the same as it does for outline bodies. This includes regexp syntax. If we use anything other than Emacs, we risk one regexp syntax for attachments and another for outline bodies. That makes me shudder. Later, we can use the fancier IR tools, or use reverse indexes. But not everybody has IR tools installed, and reverse indexes might be premature optimization. If you're worried about speed, this is a perfect, simple application for caching. I'd try it before concluding that it is too slow. If it is, we have a good foundation into which we can hook your favorite IR. I don't think there's a downside to achieving compatibility and full agenda integration first, then only after that doing the fancy stuff. Have you tried the agenda search feature yet? If not, perhaps trying it first will help ground the discussion. ___ 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] New guidelines for posting about org-babel (was problem with example block and headings)
On Oct 12, 2009, at 7:01 PM, Eric Schulte wrote: Giovanni Ridolfi giovanni.rido...@yahoo.it writes: --- Lun 12/10/09, Eric S Fraga ucec...@ucl.ac.uk ha scritto: Footnotes: [1] I wonder whether there should be a separate orb-babel mailing list to avoid too much noise in the org-mode list? what about a tag in the subject line such as: Subject: [babel] problem with example block and headings I second Giovanni's suggestion. So lets make this a rule. Can I please ask people discussing features of org-babel on this mailing list to mark their posts with [babel] in the headline? This will allow those who are not interested in this part of the discussion to filter against such messages, or to automatically sort them into a separate folder. Thanks! - 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] ECB and org-mode
On Oct 12, 2009, at 5:31 PM, Eric S Fraga wrote: At Mon, 12 Oct 2009 15:06:24 +0200, Carsten Dominik wrote: Hi Eric, you would have to find out which function is the one doing the jumping to the method. With some luck there will be a hook called after jumping somewhere. With no luck, one can still advise this function. A good function to call for this is org-bookmark-jump-unhide. Thanks for the pointer. The method, in ecb, is tree-buffer-select which is part of tree-buffer. I'm still tracing the code but I should have enough to do what you suggest, especially through advise (there's no hook that I can see unfortunately). If you find a solution, please post, maybe I can install it in org.el, using eval-after-load (I'm doing this already for a couple of other packages that let you jump right in the middle of an Org file). - 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: `C-u 2 S-Tab' with `#+STARTUP: odd'
On Oct 12, 2009, at 10:00 PM, Michael Brand wrote: I wonder how the function org-outline-level is intended to work. Should it show the outline level or count the stars like in org- version 6.31a and one has to take into account `odd' himself to get the outline level when implementing own stuff which use e. g. the function org-shifttab? org-outline-level shows the number of stars, independently of org- odd-levels Use (org-reduced-level (org-outline-level)) to get normalized levels. Inside org, you need to check which function works with what kind of level, this is unfortunately not entirely abstracted. HTH - Carsten Thank you, exactly what I have missed. Allow me to mention that I would like this hint to be added to the Help documentation of org- outline-level where I looked before. Done. There is something more with org-outline-level in org-version 6.31a which I still don't understand because I am not aware of some functions used in its implementation. I drilled down the quite special situation to the following file content. I hope that the indentation of x by three spaces does not get lost in the mailing list archive: -*- eval: (org-mode) -*- x After opening this file and confirming `eval', org-outline-level reports `3' (changes when changing the indentation of x) but I expect it to report someting like `0', `1000' or `1001' or similar like it does with variations like e. g. -*- mode: org -*- x The function assumes that the cursor is located at the beginning of an outline heading. If it is not, it will return garbage. HTH - Carsten - 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: Do we still have XEmacs users?
Carsten Dominik writes: Do we still have XEmacs users around here? Of course! (Sorry for the late reply.) Richard ___ 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] ECB and org-mode
At Tue, 13 Oct 2009 10:00:29 +0200, Carsten Dominik wrote: On Oct 12, 2009, at 5:31 PM, Eric S Fraga wrote: At Mon, 12 Oct 2009 15:06:24 +0200, Carsten Dominik wrote: Hi Eric, you would have to find out which function is the one doing the jumping to the method. With some luck there will be a hook called after jumping somewhere. With no luck, one can still advise this function. A good function to call for this is org-bookmark-jump-unhide. Thanks for the pointer. The method, in ecb, is tree-buffer-select which is part of tree-buffer. I'm still tracing the code but I should have enough to do what you suggest, especially through advise (there's no hook that I can see unfortunately). If you find a solution, please post, maybe I can install it in org.el, using eval-after-load (I'm doing this already for a couple of other packages that let you jump right in the middle of an Org file). - Carsten I will do so. I've been distracted by work :( but will return to this when I get a chance! thanks, eric ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Q: How to search dates within current week
Q: How to search dates within current week [ I am posting this according to //gmane.org/post.php instructions. I hope this works. ] I am a beginner in using Orgmode. I would like to search for CLOSED items within the current week. The closest posting was in 2007 entitled search for dates as tag or property http://article.gmane.org/gmane.emacs.orgmode/4506/match=date+search I tried 2 approaches but have some problems. 1) Keywords - today, tomorrow, yesterday Is there a keyword for thisweek? in the vein of today, tomorrow. where thisweek means the current Mon-Sun window. 2) Match string : +CLOSED=-1w+CLOSED=0w Currently -1w is a moving window of the last 7 days, so the search result will change every day. It is also possible there are simpler solutions I have not thought of. For example, the Timeline would serve my purpose except that currently, it only shows scheduled items, not closed items. Thanks, Plumber Click now for prescreened plumbing contractors. http://thirdpartyoffers.juno.com/TGL2131/c?cp=E8xQWEzZ2JspvKiaW7DFNgAAJz2dHEwHj3vEVwLaaaOeXNfeAAYAAADNAAAndwA= ___ 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