Re: [Orgmode] Make text below heading not part of the heading
For my money, it's neither bug nor feature, but a (minor) restriction that follows from the (hugely enabling) feature of simple-to-use outline folding. An exception would be an added feature. For my part, I've not yet had a use case where inserting an extra heading was not a satisfactory solution. Yours, Christian On 1/26/11 10:05 PM, Jeff Horn wrote: On Wed, Jan 26, 2011 at 3:55 PM, Marcelo de Moraes Serpa wrote: Would the current behavior be considered a bug or a feature? I consider it a feature. I don't know what your use case is (why you want to do this), but if you want to callout particular information, as a header, without messing with folding, I suggest trying org-inlinetask-insert-task. You can delete the "TODO" keyword if it pops up. You could also use list items instead of headers if you want to visually separate text from the body, like a note to self. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Make text below heading not part of the heading
Christian Moe christianmoe.com> writes: > > For my money, it's neither bug nor feature, but a (minor) restriction > that follows from the (hugely enabling) feature of simple-to-use > outline folding. An exception would be an added feature. For my part, > I've not yet had a use case where inserting an extra heading was not a > satisfactory solution. > Christian is right that it's just a design limitation, but he makes it sound like the restriction follows from having simple-to-use folding, or that because simple folding is so useful by itself, we can overlook minor inconveniences like lack of fine-grained control over folding. I disagree. I would argue that _because_ folding and outlining is so central to org mode's usefulness, it would be good to introduce better control over folding. I, for one, would like to see a feature like Marcelo suggests. Implementing it the way he describes would probably be somewhat non-trivial, because it does interfere with the fundamental model of an org document. However, there are very simple ways to achieve the desired effect. For instance, a special mark-up of a heading (e.g. * ~~ heading) could be made equivalent to setting the visibility:true property. I've played with the relevant code in org.el, and it wouldn't be hard to implement. Another example where I would very much like to see more control over folding are the #+begin_src/#+end_src, #+begin_example/#+end_example, etc. blocks. In particular, I'd like an option to see #+begin... blocks in the outline view as I'm cycling through visibility with shift-tab. In a lengthy org-babel document, such an ability would be invaluable. In short, for complicated org documents with many outline levels, visiblity requirements, :DETAILS: drawers and #+begin/#+end blocks, the current level of control over folding is not entirely satisfactory. It doesn't look hard to fix, but unfortunately it seems that everyone is content with the status quo... --Leo > > On 1/26/11 10:05 PM, Jeff Horn wrote: > > On Wed, Jan 26, 2011 at 3:55 PM, Marcelo de Moraes Serpa > > gmail.com> wrote: > >> Would the current behavior be considered a bug or a feature? > > > > I consider it a feature. I don't know what your use case is (why you > > want to do this), but if you want to callout particular information, > > as a header, without messing with folding, I suggest trying > > org-inlinetask-insert-task. You can delete the "TODO" keyword if it > > pops up. > > > > You could also use list items instead of headers if you want to > > visually separate text from the body, like a note to self. > > > > ___ > Emacs-orgmode mailing list > Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Make text below heading not part of the heading
On Thu, Jan 27, 2011 at 5:14 AM, Leo Alekseyev wrote: > control over folding is not entirely satisfactory. It doesn't look hard to > fix, > but unfortunately it seems that everyone is content with the status quo... "Be the engine of change you want to see in the world." I don't know elisp, but I'm hardly interested in blocking new feature development. I've contributed a small bit to Worg and to the documentation, so I can tell you it is relatively easy to get started contributing. Why not write a patch for folding? http://orgmode.org/worg/org-contribute.html -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Tangle subtree only?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi my org document is structured in such a way, that each subtree is to be tangled into a separate file, specified in a :PROPERTIES: :tangle: filename :END: drawer. If I change something in one subtree, I do tangle the whole file, just because of a small change in one of the many subtrees. Is there a way to tangle only the subtree in which the cursor is positioned (like the 1 in the export)? Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1BWKsACgkQoYgNqgF2egop9ACfYvkWp4p8GvbbS2V6gn5iZYIM cQIAn1GOosGdE2KdNeAJNIOxhe1yWh2I =oww7 -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Tangle subtree only?
Rainer M Krug writes: > Hi > > my org document is structured in such a way, that each subtree is to be > tangled into a separate file, specified in a > :PROPERTIES: > :tangle: filename > :END: > drawer. > > If I change something in one subtree, I do tangle the whole file, just > because of a small change in one of the many subtrees. > > Is there a way to tangle only the subtree in which the cursor is > positioned (like the 1 in the export)? Hi Rainer, C-x n s (org-narrow-to-subtree) then tangle as normal. (We do have org-babel-execute-subtree; I'm not necessarily saying that the tangle analog shouldn't exist) Dan > > Thanks, > > Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-latex and figures
I could not understand why on earth my pdf had all the images after the whole document. Then I found this: http://www.eng.cam.ac.uk/help/tpl/textprocessing/float_hint.html and found out that the default for a figure was \begin{figure}[ptb] while in the generated latex file from org I had \begin{figure}[htb] So I changed to the default and now it works fine... Isn't that default maybe a bit dangerous? The fact is that if the first image doesn't fit "here" it will be printed late and all the others after. I might also just use the latex code here for these things, I don't care to export to other formats, it's just nicer to look if it's in org syntax ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: how to create a one page weekly schedule
Detlef Steuer writes: > Dear org-ers, > > I would like to get a "normal" weekly landscape schedule out of my > agenda. > Now I _really_ would like to see or export to something like: > > * Schedule for 17.1. - 21.1.2011 > | | Mo | Tu | We| Th | Fr| > | 8-9 || | || | > | 9-10 | 9:00 lecture b | | || | > | 10-11 | -- 10:30 | | || | > | ... | ..and so on| ... | | .. | ..| > | 16-17 || | || lecture a | > | 17-18 || | || | > | 19-20 || | sport || | > | 20-21 || | sport || | > > > Is that already possible? Has anyone implemented such a scheme? > Any ideas how to achieve such a look, may be using external tools? > Not that I know of. The closest I've come is the calendar's monthly LaTeX export. (t m in the calendar buffer) To see only appointments, I put the following line in my diary file: --8<---cut here---start->8--- &%%(org-diary :timestamp :sexp) --8<---cut here---end--->8--- I also advise the function org-diary so as to bind a custom org-agenda-prefix-format (suitable for the calendar export): --8<---cut here---start->8--- (defadvice org-diary (around my-org-diary activate) (let ((org-agenda-prefix-format "%t %s ")) ad-do-it)) --8<---cut here---end--->8--- I imagine one could create a babel function that finds the relevant entries and then inserts them at the appropriate places in a table. For instance, this snippet will return a list of strings (with helpful text properties) of all appointments within the next seven days: --8<---cut here---start->8--- (let ((day 0) (items nil) dates date) (while (< day 7) (add-to-list 'dates (calendar-current-date day) t) (setq day (1+ day))) (org-prepare-agenda-buffers org-agenda-files) (while (setq date (pop dates)) (mapc (lambda (file) (setq items (append items (org-agenda-get-day-entries file date :timestamp :sexp org-agenda-files)) items) --8<---cut here---end--->8--- One could expand this expression to sort the items and place them in a table within an org buffer. Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-latex and figures
Hi Andrea, There is no default that will work in all situations. A default of [ptb] will typically generate some pages with just a figure and lots of white space. I make a lot of latex documents and I find the path of least resistance is to use a default of [htb!] and pay attention to the large figures so they don't float to the end and take the other figures with them. All the best, Tom On Jan 27, 2011, at 4:04 AM, Andrea Crotti wrote: I could not understand why on earth my pdf had all the images after the whole document. Then I found this: http://www.eng.cam.ac.uk/help/tpl/textprocessing/float_hint.html and found out that the default for a figure was \begin{figure}[ptb] while in the generated latex file from org I had \begin{figure}[htb] So I changed to the default and now it works fine... Isn't that default maybe a bit dangerous? The fact is that if the first image doesn't fit "here" it will be printed late and all the others after. I might also just use the latex code here for these things, I don't care to export to other formats, it's just nicer to look if it's in org syntax ___ Emacs-orgmode mailing list Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Make text below heading not part of the heading
Marcelo de Moraes Serpa writes: > This might be a stupid question, but I still could not find a proper > solution for the following issue: > > Let's say I have the following text in an org buffer: > > * A folded heading with some text beneath... > > And that I want to keep the document going by typing below this > heading. However, the text *should not* belong to the heading in > question. It is "headless". Could you please explain why and in what context you want this behavior? Are you concerned primarily about outline visibility? Or agenda search results? > The issue is that org always tries to "eat" any text below a heading. > If I fold it and then type the text beneath, it seems to work, until I > unfold,fold again (or reload the file) just to see the text as part of > that item again. > > is there a way to have text below an org heading not be part of the > heading itself, in org terms ? If you are only concerned about visibility, you have two options: 1. You can set the VISIBILITY property of that subtree to "all" or "content" and then use C-u C-u TAB to restore the startup visibility of the document. 2. You can use an inline task to create a heading that does not fold (though this heading along with the text will be folded into any higher level heading to which it belongs). Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Filtering org file according to priorities
"Renger van Nieuwkoop" writes: > Hi > > I have the following list in an org-file > * Work > ** [#A] Goal1 > ** [#B] Goal2 > ** [#A] Goal3 > > I want to filter for all entries with priority A. If I use C-c / p > PRIORITY A Org-mode highlights all the entries with [#A] but also shows > the other entries with [#B]. > How can I hide those entries? > (setq org-show-siblings nil) For finer-grained control, type C-h v org-show-siblings. Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Notes reviews with sparse trees
Giorgio Valoti writes: > since I started using Org I collected a bunch of notes in a journal > file and I’d like to review them on a regular schedule. Ideally, I’d > like to mark a given entry with a review timestamp so I can skip it > the next I review the journal file and then use a sparse tree to see > only the notes that I haven’t reviewed in a while. > > The problem is that I can’t get a sparse tree using these timestamps > because it works only with deadlines and schedules. Does anybody know > how to work around this limitation, short of using a regexp? You can use tags/property matches for this. For all inactive timestamps more than two weeks in the past: C-c / m TIMESTAMP_IA<"<-2w>" The same for all active timestamps: C-c / m TIMESTAMP<"<-2w>" For inactive timestamps, more than one week old and less than two weeks old: C-c / m TIMESTAMP_IA<"<-1w>"+TIMESTAMP_IA>"<-2w>" For today's timestamps: C-c / m TIMESTAMP="" And so on... Please see the following for more details: (info "(org) Matching tags and properties") (info "(org) Special properties") http://orgmode.org/worg/org-tutorials/advanced-searching.html#special-properties Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [ANN] Changes to lists
Hello, > Karl Maihofer writes: > Pressing M- with the cursor on "Item 2" in the example below > inserts a space before the inline task, so that it's no longer > recognized as a task. > - Item 1 > - Item 2 > - Item 2.1 > > *** Inline Task > Text > *** END > > - Item 2.2 > - Item 3 Fixed and pushed. I also repaired wrong indentation of text inside the task. Thanks for reporting this. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Hiding deadlines for completed (but not DONE) tasks
David Maus writes: > At Wed, 12 Jan 2011 21:09:33 +0100, > Michael Brand wrote: >> >> On Wed, Jan 12, 2011 at 19:06, Giorgio Valoti wrote: >> > mmmh, maybe there’s just something wrong with my conf: >> > >> > (setq org-todo-keywords (quote ((sequence "TODO(t)" "STARTED(n)" "|" >> > "DONE(d!/!)") >> > (sequence "WAITING(w@/!)" "SOMEDAY(s!)" "|" "CANCELLED(c@/!)") >> > (sequence "APPT(a!)" "ERRAND(e!)" "ONSITE(o!)" "|" "HOME(h!/!)") >> > (sequence "APERTO(f!)" "|" "CHIUSO(F!/!)") >> > (sequence "QUOTE(q!)" "QUOTED(Q!)" "|" "APPROVED(A@)" "EXPIRED(E@)" >> > "REJECTED(R@)" >> > >> > When I tag an item as CANCELLED, the agenda hides it; when I tag it as >> > CHIUSO it still shows up. >> >> I can not see anything wrong with this configuration and I hope that >> someone else can tell more. > > This config looks okay and I can't reproduce the problem. I can't reproduce the problem either. > However: It is true that a done task with a deadline stays on the > agenda (C-a a) if the deadline is/was today. This is the default setting, but it can also be changed by setting org-agenda-skip-deadline-if-done to t. Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] Changes to lists
Hi Nicolas, Nicolas Goaziou writes: [...] I've found some time today to install the new-struct branch at my work machine. Things look good so far and the checkboxes have started to work again. :-) I've briefly switched on alphabetical lists and that has worked quite well on the lists I tried it on. None of them were overly long, though. There's another regression with regards to checkboxes vs. the "old" 7.01h that I've noticed. If sublists are put into drawers, then checkboxes depending on that sublist are not updated with your new version and progress boxes on that sublist will always be at [0%] and [0/0]. The hierarchy inside the drawer is correctly updated as well as anything around the drawer. Try the folloing testcase: --8<---cut here---start->8--- #+DRAWERS: CLOSED * [1/3] List Checkbox Test - [-][%] First [/] <-- this will be updated + [ ] Sub1 + [ ] Sub2 + [X] Sub3 - [-] Second :CLOSED: + [-] [%] Sub1 [/] <-- this will not be updated * [ ] Subsub1 * [ ] Subsub2 * [X] Subsub3 + [X] Sub2 + [X] Sub3 :END: - [X] Third + [X] Sub1 + [X] Sub2 + [X] Sub3 --8<---cut here---end--->8--- In this case "Second" will not be recognized to have a sublist with the new version, while it was at 7.01h. It is debatable what the "correct" behaviour is, but if in doubt I'd opt for keeping it backwards compatible. Another slight oddity is present in the HTML export of this list: --8<---cut here---start->8--- [-] First [X] Sub1 [X] Sub2 [X] Sub3 [X] Second [-] Third [X] Sub1 [X] Sub2 [X] Sub3 --8<---cut here---end--->8--- The unfinished checkboxes and progress cookies are not boldened as they are in Orgmode itself and putting a hidden "X" inside the not begun checkboxes is somewhat tenous as the "hidden" attribute might not be honored (as happens for example if you display with "no style"). Putting a non-breaking space there might be a better idea. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: startup hidestars also hides the point (square at point) [6.33x]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Situation: A file with #+STARTUP: hidestars Expected: The first stars are hidden, but the marker which shows the point is visible (since the variable only says hide *stars*). Real result: The stars are hidden, but when the point is on any of the hidden stars, I don't see the marker which shows the point. Problem: Due to the point being inivisible, I often stumble through the file, because I don't know where the point is. Best wishes, Arne PS: Org-mode is cool! Along with remember-mode it slowly ursurps my whole information management workflow :) Emacs : GNU Emacs 23.2.1 (i686-pc-linux-gnu) of 2011-01-04 on fluss Package: Org-mode version 6.33x current state: == (setq org-agenda-files '("~/.emacs.d/private/org/emacs-plan.org") org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file "~/.emacs.d/private/org/emacs-remember-mode.org" org-directory "~/Dokumente/eigenes/orgfiles/" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(turn-on-font-lock #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp nil ) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Status google calendar sync
Hi > I try this and get absolutely nothing. Just an empty calendar line. > I am using the latest (0.9.12), BTW. If you enter > > google --help > > part of the help is: > > --fields=FIELDS Fields to list with list task. I got an older version (0.9.5)... all of this makes me think that it probably is better to just use .ics files for everything. Just found out that google offers a 'private' link to each calendar as xml, ical or html so that you can easily download it using wget without needing to log in... >>[...] > Perhaps, but one of the things I want to do is to share a couple of my > Google calendars with specific groups of people. I have a home, work, > and two different teaching calendars. If I have an .ics file on my > machine that doesn't help much in the sharing, does it? I don't know > as I have never used an .ics file for anything yet. > > I would like to maintain info about upcoming classes in my org file and, > when things change, update the calendar with the appropriate > information. Occasionally I have had to reschedule classes, for > example, or break a single session into two sessions. What I want is > to publish the resulting information after all my org file manipulations > are done so my students can see the results. You can point google calendar to an .ics file and it will import it (settings->import calendar) (see [1]), so I would think you could create different .ics files via org-export-icalendar-..., upload them to a public webpage (but with a cryptic name and directory browsing disabled, so that only you and google calendar can find the files) and google imports them as different calendars and updates them too. Arun [1] http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=37100 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] need help with lisp for export function regarding timestamps
Hi trying to get the export to ics working using org-icalendar-verify-function and org-export-icalendar-combine-agenda-files At the moment I'm using the following as a verify function: (defun mycal-export () (setq mycategory (org-get-category)) (setq myrepeat (org-get-repeat)) (and (not (member mycategory org-export-exclude-category)) (eval myrepeat which excludes categories listed in org-export-exclude-category and also only export repeated items at the moment. I would like to add items that have a start and an end date, that is something like SCHEDULED: -- but I can't figure out how to check for these? Do I need to write my own reg-exp for this and test the whole entry or is there some org internal function for this? I only found org-get-scheduled-time, but that does only seem to return the first timestamp? Any ideas on how to accomplish this? Thanks Arun ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode