[Orgmode] Display bug: Folding headline at EOF without newline

2009-08-16 Thread David Maus
Evening, While debugging some unexpected behaviour of my Pos1-Key I stumpled upon somethinkg I consider a display-bug when folding a headline at the end of a file whose last line of content does not have a new line in org-mode dev. Example file: , | * Headline | | Some text... | | *

Re: [Orgmode] Org-mode version 6.30trans (release_6.30d.19.g1db9); Last character in file not folded correctly

2009-09-07 Thread David Maus
According to Carsten this misbehaviour is not Orgmode's fault, but Outline-Mode's http://www.mail-archive.com/emacs-orgmode@gnu.org/msg16542.html and should be reported as a bug in Emacs23 (what I do use, too). *But*: I didn't file a bugreport for Emacs because I cannot reproduce this

Re: [Orgmode] (probably stupid) link question

2009-09-13 Thread David Maus
At Sun, 13 Sep 2009 10:34:34 -0500, Robert Goldman wrote: I've saved a link to a latex file using org-save-link, but the link is not good enough to find the piece of the file I want. That is, Org-mode tries to jump to the link, but finds only the FIRST match, and it so happens that the

[Orgmode] Org-mode version 6.30trans; Cursor does not move to end-of-line in agenda view

2009-09-20 Thread David Maus
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.

[Orgmode] Worg: Patch w/ fixes for two broken links in org-web

2009-10-19 Thread David Maus
Hi there, Attached patch fixes two broken links on Worg/org-web: Two personal pages were moved. Regards, -- David 0001-org-web-fixed-links-to-personal-pages-of-Scott-Randb.patch Description: Binary data -- OpenPGP... 0x316F4BE4670716FD Jabber dmj...@jabber.org Email.

Re: [Orgmode] Exporting drawers

2009-11-11 Thread David Maus
Hi Uwe, At Wed, 11 Nov 2009 10:48:13 +0100, Uwe Jochum wrote: ... and in my .emacs there is an entry '(org-export- with-drawers t) to make sure the drawers are included when I am exporting the file. But when exporting the file the drawer :ADRESSE: is NOT included; I only get the headlines

Re: [Orgmode] Org-mode to blog with Drupal/Wordpress?

2009-11-12 Thread David Maus
Hi Uri, At Wed, 11 Nov 2009 11:19:27 -0500, U Avalos wrote: Hi all. I know that there are various packages out there to use org-mode to publish *websites* but I don't want to reinvent the wheel. Is there a way to use org-mode to add posts to an existing Drupal or Wordpress site? (I believe

[Orgmode] Org-mode version 6.32trans (release_6.32b.147.g97e21); Cloning subtree on eof may not insert required newline

2009-11-12 Thread David Maus
-publish-org-to-html) :recursive t :author David Maus :email maus.da...@gmail.com) (private-static :base-directory ~/Org/www :base-extension css :publishing-directory ~/www/private :publishing-function org

[Orgmode] Bug: org-wl: from property not set as expected [6.33]

2009-11-14 Thread David Maus
~/www/private :publishing-function (org-publish-org-to-html) :recursive t :author David Maus :email maus.da...@gmail.com) (private-static :base-directory ~/Org/www :base-extension css :publishing-directory

Re: [Orgmode] More on GTD, browse todos by priority or creation date

2009-11-16 Thread David Maus
Hi T o n g, At Mon, 16 Nov 2009 02:47:39 + (UTC), T o n g wrote: Ok, enough off-track babbling, what I want to know is that weather org- mode can somewhat allows me to assign arbitrary levels of priority to my todo list, and let me browse them in their priority order (so that high

Re: [Orgmode] Sending org-mode nodes

2009-11-19 Thread David Maus
Hi Lukasz, At Wed, 18 Nov 2009 17:46:43 +0100, lukasz.stelm...@iem.pw.edu.pl wrote: I've just made a note which I would like to send (with its attachment) via email. Is it possible? I mean, I would like to select a node (C-c @) and then few keystrokes more and have the letter sent or at least

Re: [Orgmode] Emacs package management with org-mode

2009-11-20 Thread David Maus
Hi Andrea, At Sat, 14 Nov 2009 18:35:28 + (UTC), andrea Crotti wrote: I was keeping a list of packages I use with emacs (here) http://github.com/AndreaCrotti/Emacs-conf/blob/master/.emacs.d/README.txt but now I had another idea, why don't create a table with org mode? I thought a

[Orgmode] Bug: can't insert new headline on top of file with `org-insert-headline-respect-content' [6.33trans]

2009-11-22 Thread David Maus
'((private-dynamic :base-directory ~/Org/www :base-extension org :publishing-directory ~/www/private :publishing-function (org-publish-org-to-html) :recursive t :author David Maus :email maus.da...@gmail.com

[Orgmode] Bug: Infinite loop when org-entry-put is called in buffer not in org-mode [6.33trans]

2009-11-25 Thread David Maus
-directory ~/Org/www :base-extension org :publishing-directory ~/www/private :publishing-function (org-publish-org-to-html) :recursive t :author David Maus :email maus.da...@gmail.com) (private-static :base

Re: [Orgmode] Bug: Infinite loop when org-entry-put is called in buffer not in org-mode [6.33trans]

2009-11-26 Thread David Maus
Hi Carsten, At Thu, 26 Nov 2009 08:42:09 +0100, Carsten Dominik wrote: Hi David, you cannot reasonably expect that org-mode functions should work in other modes. And you cannot expect these functions to check the mode all the time. I don't know what you are up to here. But maybe the

Re: [Orgmode] [OT] Emacs for email?

2009-12-02 Thread David Maus
At Wed, 02 Dec 2009 17:31:05 +0100, jema...@gnu.org wrote: These and the others you will find allude to this approach fitting in with the more general GTD view, which is why org-mode is critical (for me) to get this working. I actually do something similar, but keeping the

Re: [Orgmode] [OT] Emacs for email?

2009-12-02 Thread David Maus
At Wed, 02 Dec 2009 08:43:51 -0500, Matt Price wrote: [1 multipart/signed (7bit)] [1.1 text/plain; UTF-8 (quoted-printable)] On Tue, 2009-12-01 at 20:57 -0300, Darlan Cavalcante Moreira wrote: I use wanderlust for email (including this list) and it works really well with imap. I was

[Orgmode] Bug: Infinite loop in `org-previous-item' when there's nothing above item (patch included) [6.33trans (release_6.33f.80.gb777e3)]

2009-12-05 Thread David Maus
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.

[Orgmode] [Worg] Lots of broken links in published version

2009-12-13 Thread David Maus
Just realized that there a lot of broken links in the published version of Worg. Seems like something went totally wrong with the export to html. For instance: http://orgmode.org/worg/ The main resources The link to the official page reads http:/g and leads to http://orgmode.org/worg/g -or-

Re: [Orgmode] access scattered notes centralized

2009-12-13 Thread David Maus
At Sun, 13 Dec 2009 00:11:33 +0200, Kestutis Matonis wrote: I would like to clear up one thing. Lets say i have notes in /home/documents/work/note.org, /home/documents/computers/note.org, and i would like that they would stay there, but also i would like to access all scattered notes from

Re: [Orgmode] [Worg] Lots of broken links in published version

2009-12-14 Thread David Maus
At Sun, 13 Dec 2009 20:14:17 +0100, Carsten Dominik wrote: Hi David, thanks! Please verify that things are now back to normal. Hi Carsten, I checked the pages I found yesterday and some random pages and everything seems to be back to normal. Regards -- David -- OpenPGP...

[Orgmode] Bug: Problems with missing newline on last line of narrowd subtree [6.33trans (release_6.33f.129.g904a)]

2009-12-17 Thread David Maus
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.

Re: [Orgmode] Re: Contracts in Orgmode

2009-12-24 Thread David Maus
At Tue, 22 Dec 2009 13:49:07 -0800, Markus Heller wrote: After some more googling and having a closer look at the org manual, I came up with a solution that might work. It uses dependencies and org-depend.el. I've pasted it below, and as usual, I'd appreciate any comments/improvement

Re: [Orgmode] How to change CREATED property value to inactive in org-expiry

2009-12-27 Thread David Maus
Hi Manish, At Sun, 27 Dec 2009 00:41:15 +0530, Manish wrote: I have just spent an hour trying to figure out how to change the timestamp added as a result of org-expiry-insinuate to inactive with no success. It seems to me that I need to change something in function org-expiry-insert-created

Re: [Orgmode] How to change CREATED property value to inactive in org-expiry

2009-12-27 Thread David Maus
Ah, forgot: To enable inactive timestamps when using the expiry+ branch simply set the variable `org-expiry-inactive-timestamps' to t. Regards -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. maus.da...@gmail.com ICQ... 241051416

Re: [Orgmode] How to change CREATED property value to inactive in org-expiry

2009-12-31 Thread David Maus
Hi Bastien, I attached the two patches: - 0001: Use `org-time-string-to-time' to convert timestamps to time objects - 0002: Allow inactive timestamps I am currently pondering whether or not it could be useful to limit the creation of the created timestamp to todo headlines only. At least

[Orgmode] Bug: Store link to Wanderlust message fails when subject contains encoded characters [6.33trans (release_6.33f.173.g8f17)]

2010-01-01 Thread David Maus
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.

[Orgmode] Proposal: Extended link capabilities to Wanderlust messages for Orgmode

2010-01-01 Thread David Maus
Proposal: Extended link capabilities to Wanderlust messages for Orgmode Below you will find three proposals to extend Orgmode's capabilities to store links to Wanderlust messages. Wanderlust is a mail user agent for Emacsen, entirely written in elisp. For the proposed modifications there is an

[Orgmode] Re: Proposal: Extended link capabilities to Wanderlust messages for Orgmode

2010-01-01 Thread David Maus
*grml*, For the third proposal I actually forgot the proposed modification: 1.3 Link to thread --- Sometimes I'd like to store a link not just to a particular message but to a whole discussion thread. * Problem with current solution It is currently not possible

Re: [Orgmode] Bug: Store link to Wanderlust message fails when subject contains encoded characters [6.33trans (release_6.33f.173.g8f17)]

2010-01-03 Thread David Maus
At Sun, 3 Jan 2010 14:40:58 +0100, Carsten Dominik wrote: Hi David, could you please provide a full backtrace for this bug? Backtrace attached. My first guess on why it happens was wrong, as expected: There are messages with encoded umlauts that do not cause this error. Regards --

Re: [Orgmode] Bug: Store link to Wanderlust message fails when subject contains encoded characters [6.33trans (release_6.33f.173.g8f17)]

2010-01-03 Thread David Maus
Hi Carsten, At Sun, 3 Jan 2010 19:47:18 +0100, Carsten Dominik wrote: Can I ask you to submit this as a bug report to Emacs? I'll certainly do that. I also attached a patch for org-wl.el that removes all text properties of the subject string. Regards -- David -- OpenPGP...

Re: [Orgmode] Emacs initialization problem on Windows after latest git pull of Org

2010-01-04 Thread David Maus
Hi Manish, At Mon, 4 Jan 2010 23:02:55 +0530, Manish wrote: Hello List, After the latest git update, Emacs init is interrupted with this message: Symbol's function definition is void: mailcap-parse-mailcaps Recent changes and related info: - Windows XP SP2 - GNU Emacs 23.1.1

Re: [Orgmode] Org-expiry: How to define keyword for org-expiry-add-keyword

2010-01-05 Thread David Maus
Hi Markus, At Mon, 04 Jan 2010 11:37:45 -0800, Markus Heller wrote: If I type M-x org-expiry-process-entries in expiry.org, I get the following error: Symbol's function definition is void: org-expiry-handler function This actually is a bug in org-expiry.el that is fixed with the attached

Re: [Orgmode] Re: Org-expiry: How to define keyword for org-expiry-add-keyword

2010-01-07 Thread David Maus
At Tue, 05 Jan 2010 15:26:06 -0800, Markus Heller wrote: On 1/5/2010 8:47 AM, David Maus wrote: Hi Markus, At Mon, 04 Jan 2010 11:37:45 -0800, Markus Heller wrote: If I type M-x org-expiry-process-entries in expiry.org, I get the following error: Symbol's function definition

Re: [Orgmode] Re: Org-expiry: How to define keyword for org-expiry-add-keyword

2010-01-10 Thread David Maus
At Thu, 07 Jan 2010 18:01:11 +0100, David Maus wrote: [1 text/plain; US-ASCII (7bit)] At Tue, 05 Jan 2010 15:26:06 -0800, Markus Heller wrote: But when I run M-x org-expiry-process-entries in the agenda or in my example file (see below), I get the following message in the minibuffer

Re: [Orgmode] TODO dependencies and file-level keywords

2010-01-11 Thread David Maus
At Mon, 11 Jan 2010 15:08:08 +0100, Giovanni Ridolfi wrote: Giovanni Ridolfi giovanni.rido...@yahoo.it writes: Carsten Dominik carsten.domi...@gmail.com writes: Hi Chris, I am not able to reproduce this. I can reproduce it with the latest version: Org-mode version 6.34 (trans

[Orgmode] Re: [Fwd: Orgmode] Proposal: Enhanced link capabilites to Wanderlust messages

2010-01-17 Thread David Maus
Hi Tokuya, At Wed, 13 Jan 2010 01:35:59 +0900, Tokuya Kameshima wrote: Hi David, Thank you for the mail. I missed your proposal on the mailing list. As for 1.3 Link to thread, I think we can avoid the global level implementation by the following modification: In the WL summary mode,

[Orgmode] Bug: Getting property ALLTAGS always returns nil [6.33trans (release_6.33f.130.gb8e0)]

2010-01-17 Thread David Maus
deadline from %S on %t) (deldeadline . Removed deadline, was %S on %t) (clock-out . )) org-enforce-todo-dependencies t org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\David Maus\\ org-export-preprocess-before-selecting-backend-code-hook '(org

[Orgmode] Re: Bug: Getting property ALLTAGS always returns nil [6.33trans (release_6.33f.130.gb8e0)]

2010-01-17 Thread David Maus
And replying to myself: The problem seems to be that some if-clauses in `org-entry-properties' are not right: - when requesting the ALLTAGS property, the code that adds its value to the alist did not check if the variable `specific' is ALLTAGS, but TAGS - when requesting the BLOCKED

Re: [Orgmode] clock based context settings

2010-01-20 Thread David Maus
Hi Richard, At Tue, 19 Jan 2010 23:16:08 +0100, Richard Riley wrote: I would like to be able to execute arbitrary elisp when I clock in or out of a certain org.item This would be very, very useful for defining variables or even keystrokes on a per project basis. Ideally it would work using

[Orgmode] [Worg] Addition to org-hacks: Remove redundant tags

2010-01-25 Thread David Maus
Hello, Attached patch adds a section to the org-hacks page of Worg with a function that removes redundant tags, that is: tags that are inherited by a parent headline or the #+FILETAGS headline and local to a headline. This function is useful for me as I generally use tags to denote a todo's

Re: [Orgmode] Make archived headers unavailable as refile targets?

2010-01-26 Thread David Maus
Hi Paul, At Tue, 26 Jan 2010 15:18:47 +, Paul Mead wrote: 2010/1/26 Carsten Dominik carsten.domi...@gmail.com: Take a look at the variable `org-refile-target-verify-function'. HTH - Carsten Thanks Carsten, I've had a look at the variable and the customize option for it

Re: [Orgmode] [Worg] Addition to org-hacks: Remove redundant tags

2010-01-26 Thread David Maus
At Tue, 26 Jan 2010 11:04:06 +0530, Manish wrote: Applied to Worg. Thanks Ooops, attached patch fixes a small glitch in this function that prevented it working on headlines without tags. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. maus.da...@gmail.com

Re: [Orgmode] Re: Autoset org-agenda-files

2010-02-01 Thread David Maus
At Mon, 1 Feb 2010 21:52:01 +0100, Carsten Dominik wrote: On Feb 1, 2010, at 9:47 PM, BKnoth wrote: On 2/1/2010 7:59 AM, Fredrik wrote: I wonder if someone with some elisp knowledge could help me out I have a folder containing all my org-files named as X.org and would like to

Re: [Orgmode] file link format question - How to format link when square brackets [ ] are already in filename?

2010-02-02 Thread David Maus
At Tue, 02 Feb 2010 11:50:31 +0100, Erwin Panen wrote: Hi everyone, I guess this is a minor question, but it has puzzled me already more than once. My example: The below example is normally all on one line. ---Begin code-- **

Re: [Orgmode] interacting with word processors (opeonffice, word)

2010-02-02 Thread David Maus
At Tue, 2 Feb 2010 12:55:42 -0600, Russell Adams wrote: On Tue, Feb 02, 2010 at 08:44:54PM +0200, Rainer M Krug wrote: Hi Matt try latex2rtf: export org-mode to LaTeX and use latex2rtf to convert it to rtf. I am using latex2rtf to convert LaTeX code (generated by LyX) into rtf for

Re: [Orgmode] Org-style outline

2010-02-12 Thread David Maus
Hi Chao, At Fri, 12 Feb 2010 00:38:42 -0500, Chao Lu wrote: Dear all, I'm writing to see if there's anyway to use org-like outline in ALL kinds of files, like my emacs configuration file, whose suffix is .el. Could I tell Emacs ;;; headline 1 ;; headline 2 And it begin to have the

Re: [Orgmode] Re: [PATCH] little fixes for attachment git commiting

2010-02-18 Thread David Maus
Łukasz Stelmach wrote: David Maus maus.da...@gmail.com writes: Łukasz Stelmach wrote: David Maus maus.da...@gmail.com writes: Łukasz Stelmach wrote: The other one helps if for some reason the file one would like to add matches an entry in a .gitignore file. I suppose no one puts anything

Re: [Orgmode] Git Store Link Broken?

2010-02-20 Thread David Maus
Hi Daniel, Daniel E. Doherty wrote: Hello all, I noticed when I upgraded org from 6.21 (which comes with Emacs) to the git version (6.34trans), org-store-link stopped working. When I try to store a link from dired, I get a stringp nil error, with this debugger output: It's a small glitch in

Re: [Orgmode] Re: Remove scheduled date when switch TODO states

2010-02-22 Thread David Maus
Matt Lundin wrote: Nathaniel Flath flat0...@gmail.com writes: I have a todo state, PENDING, that I organize tasks that I cannot perform immediately.  Is there a way to configure org-todoconfigure so that when a task is switched to PENDING, if it has a scheduled date that date is removed? You

Re: [Orgmode] Re: Setting org-id-track-globally to nil results in Wrong argument type: hash-table-p, nil in org-id-find-id-file

2010-02-26 Thread David Maus
Geralt wrote: can nobody else reproduce my problem? btw. I forgot to mention that I'm using Emacs 23.1.1 and Orgmode 6.21b I could reproduce it and attached is a fix. The problem was, that the function that queries the global id database did not take in account `org-id-locations' beeing set to

[Orgmode] [patch] Correction for the manual (chapter 13.1.4)

2010-02-28 Thread David Maus
While wrapping my head around a set of publishing functions to create atom and rss feeds I noticed an incorrect description in the manual. In chapter 13.1.4 in reads: , | :publishing-function | | Function executing the publication of a file. This may also be a list | of functions, which will

[Orgmode] [wish] pass project plist to preparation and completion function

2010-02-28 Thread David Maus
Urgency: Low A publishing project can define a preparation and a completion function to prepare and finalize the export. Currently both functions that can be supplied in `org-publish-project-alist' are called without any arguments. I'm currently trying to write exporter functions that create

Re: [Orgmode] enhancement request: include check-boxes in Shift-arrow cycling on lists

2010-02-28 Thread David Maus
Livin Stephen Sharma wrote: I think this would be a useful in daily use: to be able to easily convert a list [whether numbers or bullets] into a list of - [ ] foo check-box items. FWIW, I use regex'es to achieve this for now. Turning plain list items into checkboxes is already possible:

Re: [Orgmode] C-RET errs

2010-03-01 Thread David Maus
Leo wrote: Hello all, I wonder if there's a cure for this error. When I hit C-RET in a fresh org-mode buffer but not at the beginning, it errs with something like this: Before first headline at position 2 in buffer *xyz* but M-RET does not err at all. This is tested with org-mode that is part

Re: [Orgmode] :scale option in org-format-latex-options

2010-03-13 Thread David Maus
Hi Dan, Dan Davison wrote: When creating png images of latex fragments in org-create-formula-image, the :scale option in org-format-latex-options is not currently honoured (it's commented out). My dvipng documentation says -x num Set the x magnification ratio to num/1000.

Re: [Orgmode] Wikipedia article on Org-mode

2010-03-14 Thread David Maus
Carsten Dominik wrote: Hi, there is a Wikipedia article about Org-mode, and it has problems in the reference section. Somehow I feel I should not be he one editing this article - can someone here fix these issues? Thanks - Carsten Fixed. Missing angle bracket in a reference tag. -- David

Re: [Orgmode] cannot pull from repo.or.cz today

2010-03-17 Thread David Maus
William Henney wrote: Is anyone else seeing this? $ git pull --verbose repo.or.cz[0: 195.113.20.142]: errno=Operation timed out fatal: unable to connect a socket (Operation timed out) Nope, works fine here. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email.

Re: [Orgmode] LaTeX export Avoid \newline command after timestampsX-Draft-From: (nnimap+mc:INBOX.sncb)

2010-03-17 Thread David Maus
Carsten Dominik wrote: Hi Francesco, thanks for this. The reason why I put this is is to make sure that text after that line will start in a new line, and now flow into the scheduled/deadline line. For example: *** DONE My Task :Be:

Re: [Orgmode] publishing, and :auto-index

2010-03-18 Thread David Maus
Hi Carsten, Carsten Dominik wrote: Hi, I am wondering is anyone is using the :auto-index functionality with Org publishing. I'm not using it on my publishing projects but intend to use it as the place I can hook in to publish an atom feed for multiple input files of a project. For this index

Re: [Orgmode] LaTeX export Avoid \newline command after timestampsX-Draft-From: (nnimap+mc:INBOX.sncb)

2010-03-18 Thread David Maus
Francesco Pizzolante wrote: The problem with the actual implementation is that it forces a newline in all cases (both if you have text in the heading or not) which does not respect the document class formatting that you've chosen. Took me a while to realize the problem with current

Re: [Orgmode] LaTeX export Avoid \newline command after timestampsX-Draft-From: (nnimap+mc:INBOX.sncb)

2010-03-18 Thread David Maus
Francesco Pizzolante wrote: Hi David, This cleary /is/ problem. Maybe we should catch these two cases (patch attached): , | (unless (and (looking-at .*\n[ \t]*\n) (looking-at .*newline[ \t]*$)) ` Insert \newline only if there is no paragraph separator. As far as I can see

Re: [O] Scheduling calling debugger

2011-07-19 Thread David Maus
At Tue, 19 Jul 2011 13:22:10 +0200, Suvayu Ali wrote: Hi Orgers, Scheduling or rescheduling seems to be invoking the debugger for me (I run emacs with debug-on-error set to t). Although it doesn't seem to do anything wrong to the scheduled entry. Strange! The error at the end was generated

Re: [O] New feature: loop over siblings for some commands

2011-07-19 Thread David Maus
At Mon, 18 Jul 2011 10:32:11 +0200, Bastien wrote: Dear all, from latest git repo: (setq org-loop-over-siblings-within-active-region-p t) will allow you to run some commands on several siblings in the active region. For example: start active region * Item 1 * Item 2 * Item 3 end

Re: [O] Scheduling calling debugger

2011-07-19 Thread David Maus
At Tue, 19 Jul 2011 20:23:40 +0200, suvayu ali wrote: Hi David and Memnon, Thank you for looking at this. On Tue, Jul 19, 2011 at 7:53 PM, David Maus dm...@ictsoc.de wrote: Debugger entered--Lisp error: (invalid-function org-loop-over-siblings-in-active-region)   org-loop-over

Re: [O] New feature: loop over siblings for some commands

2011-07-21 Thread David Maus
After a first look at the macro and its usage I have the feeling that the macro would be wrong and/or a bad design choice. It conditionally implements a mapping of body to a headline's siblings. Thus it is a specialized case of applying a function to zero or more headlines based on a selection

Re: [O] New feature: loop over siblings for some commands

2011-07-27 Thread David Maus
Hi Bastien, At Wed, 27 Jul 2011 17:28:36 +0200, Bastien wrote: Hi David, David Maus dm...@ictsoc.de writes: I highly recommend to not use this macro but to build the intended functionality with separate building blocks: Factor out the flesh of the respective functions (e.g. org

[O] [PATCH 0/8] Org mode macros, refactored

2011-08-02 Thread David Maus
for a program to be part of Emacs core. David Maus (8): New macro: Execute BODY in enviroment with uninterned SYMBOLS. Use new macro org-with-uninterned New macro: Evaluate BODY in ENVIRONMENT New function: Substitute posix classes in regular expression Use macro org-with-uninterned New

[O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SYMBOLS

2011-08-02 Thread David Maus
* org-macs.el (org-with-uninterned): New macro. Execute BODY in enviroment with uninterned SYMBOLS. --- lisp/org-macs.el |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 906be61..53c60e5 100644 --- a/lisp/org-macs.el +++

[O] [PATCH 3/7] Use new macro org-with-uninterned

2011-08-02 Thread David Maus
* org-macs.el (org-preserve-lc, org-with-point-at) (org-with-remote-undo, org-save-outline-visibility): Use new macro org-with-uninterned. --- lisp/org-macs.el | 90 -- 1 files changed, 47 insertions(+), 43 deletions(-) diff --git

[O] [PATCH 7/7] Make org-batch-store-agenda-views a fun, use org-eval-in-environment

2011-08-02 Thread David Maus
* org-agenda.el (org-batch-store-agenda-views): Make it a function, use org-eval-in-environment. --- lisp/org-agenda.el | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 6079377..9215d2a 100644 ---

[O] [PATCH 2/7] New macro: Evaluate FORM in ENVIRONMENT

2011-08-02 Thread David Maus
* org-macs.el (org-eval-in-environment): New macro. Evaluate FORM in ENVIRONMENT. (org-with-uninterned): Move to top of file. --- lisp/org-macs.el | 23 ++- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index

[O] [PATCH 4/7] New function: Substitute posix classes in regular expression

2011-08-02 Thread David Maus
* org-macs.el (org-substitute-posix-classes): New function. Substitute posix classes in regular expression. (org-re): Rewritten to use new function. --- lisp/org-macs.el | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/lisp/org-macs.el

[O] [PATCH 5/7] Use macro org-with-uninterned

2011-08-02 Thread David Maus
* org-agenda.el (org-agenda-with-point-at-orig-entry): Use macro org-with-uninterned. --- lisp/org-agenda.el | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index d47013b..25a556e 100644 --- a/lisp/org-agenda.el +++

[O] [PATCH 6/7] Use org-eval-in-environment, make macros functions

2011-08-02 Thread David Maus
* org-agenda.el (org-batch-agenda, org-batch-agenda-csv): Make a function, use org-eval-in-environment. --- lisp/org-agenda.el | 59 ++- 1 files changed, 26 insertions(+), 33 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index

Re: [O] [PATCH 0/8] Org mode macros, refactored

2011-08-02 Thread David Maus
*sigh* These patches should apply to current master but I somehow messed up my development tree. Two separate commits where squashed to 2/7 -- will post a follow up this afternoon. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de

Re: [O] [PATCH 2/7] New macro: Evaluate FORM in ENVIRONMENT

2011-08-02 Thread David Maus
At Tue, 02 Aug 2011 12:50:05 +0200, Štěpán Němec wrote: On Tue, 02 Aug 2011 11:23:35 +0200 David Maus wrote: * org-macs.el (org-eval-in-environment): New macro. Evaluate FORM in ENVIRONMENT. (org-with-uninterned): Move to top of file. --- lisp/org-macs.el | 23

Re: [O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SYMBOLS

2011-08-02 Thread David Maus
Supersedes 1/7: Define macro at top of the file. From 3a97836940b18ea2f50d53218e51fa81d617e788 Mon Sep 17 00:00:00 2001 From: David Maus dm...@ictsoc.de Date: Tue, 2 Aug 2011 15:39:49 +0200 Subject: [PATCH] New macro: Execute BODY in enviroment with uninterned SYMBOLS * org-macs.el (org

Re: [O] [PATCH 2/7] New macro: Evaluate FORM in ENVIRONMENT

2011-08-02 Thread David Maus
Fix smashed up commits: these two replace 2/7 From d55980b50dea594912b38bd7d9b96989c6a54129 Mon Sep 17 00:00:00 2001 From: David Maus dm...@ictsoc.de Date: Tue, 2 Aug 2011 15:41:36 +0200 Subject: [PATCH] New macro: Evaluate FORM in ENVIRONMENT * org-macs.el (org-eval-in-environment): New macro

Re: [O] Bug: Refile sometimes loses the last line [7.7 (release_7.7.15.gc363)]

2011-08-04 Thread David Maus
At Wed, 03 Aug 2011 21:35:40 -0400, Bernt Hansen wrote: Jason Dunsmore emacs-orgm...@deathroller.dunsmor.com writes: Hi Bernt, Can you see if this patch fixes the problem? diff --git a/lisp/org.el b/lisp/org.el index c7b28dd..41ac8c6 100644 --- a/lisp/org.el +++ b/lisp/org.el

Re: [O] Bug: Refile sometimes loses the last line [7.7 (release_7.7.15.gc363)]

2011-08-04 Thread David Maus
At Thu, 04 Aug 2011 09:35:24 -0500, Jason Dunsmore wrote: Hi David, I just pushed a simplified version of the solution: No need to count lines, just check if point is at end of buffer. I just tried out your patch. The logic in your patch is slightly different - it checks if the point is

Re: [O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SYMBOLS

2011-08-10 Thread David Maus
Hi Samuel, Hi Štěpán, Thanks for the feedback on org-with-uninterned. I'm preparing the patches for master and decided to use the 'add-noise' approach suggested by Štěpán but renamed the macro to `org-with-gensyms'. Thus we can change the implementation. Best, -- David -- OpenPGP...

Re: [O] New feature: loop over siblings for some commands

2011-08-10 Thread David Maus
Hi Bastien, I've created a dedicated topic branch on Github git://github.com/dmj/dmj-org-mode.git feat/org-loop-over-headlines And implemented looping over headlines in active region for org-schedule und org-deadline. Differences between this branch and your proposed patch: 1/ Extend the

Re: [O] [bug] killing and yanking _sometimes_ doesn`t indent correctly

2011-08-10 Thread David Maus
Hi Detlef, At Tue, 9 Aug 2011 16:19:26 +0200, Detlef Steuer wrote: Hi! Using the following files I can reproduced a bug I encountered. [...] Thanks for reporting. I pushed a fix for both problems, the wrong level and eating the existing headline. However: Should be --- ** Subheading 1

[O] More on macros: Defined edebug-spec

2011-08-12 Thread David Maus
I just pushed a commit to master that adds edebug specifications to all macros defined by Org mode. With these specifications in place it is now possible to step through macros with edebug like a normal function call. Information about instrumenting macro calls can be found here:

Re: [O] New feature: loop over siblings for some commands

2011-08-12 Thread David Maus
At Wed, 10 Aug 2011 10:34:14 +0200, David Maus wrote: Whats next: Handle folded subtrees. Currently org-schedule w/ active region schedules hidden subtrees, too. Using a tags/prop/todo query seems suboptimal because you would have to know the characteristics of the region beforehand. To me

Re: [O] org-paste-subtree and org-refile broken

2011-08-13 Thread David Maus
Hi Matt, Hi Sebastien, I pushed a temporary workaround to master that should fix the problem with refile and capture. Both depend on a buggy behavior of org-paste-subtree, i.e. pasting a subtree *above* the target headline when called with point at the beginning of the target headline. A fix for

Re: [O] org-paste-subtree and org-refile broken

2011-08-13 Thread David Maus
At Sat, 13 Aug 2011 09:25:19 +0200, David Maus wrote: Hi Matt, Hi Sebastien, I pushed a temporary workaround to master that should fix the problem with refile and capture. Both depend on a buggy behavior of org-paste-subtree, i.e. pasting a subtree *above* the target headline when called

Re: [O] Keeping an eye on byte-compilation warnings

2011-08-14 Thread David Maus
At Sat, 13 Aug 2011 16:49:50 -0500, John Wiegley wrote: Maybe we're all using different versions of Emacs, but I find that byte-compilation warnings keep increasing as time goes by. I'd like to ask people to compile their code before committing, to keep the build log clean. It looks messy

Re: [O] [PATCH 1/7] New macro: Execute BODY in enviroment with uninterned SYMBOLS

2011-08-16 Thread David Maus
At Tue, 16 Aug 2011 18:34:04 +0200, Bastien wrote: Hi David, David Maus dm...@ictsoc.de writes: Thanks for the feedback on org-with-uninterned. I'm preparing the patches for master and decided to use the 'add-noise' approach suggested by Štěpán but renamed the macro to `org

Re: [O] org-paste-subtree and org-refile broken

2011-08-20 Thread David Maus
At Sat, 13 Aug 2011 09:03:40 -0500, Matt Lundin wrote: David Maus dm...@ictsoc.de writes: At Sat, 13 Aug 2011 09:25:19 +0200, David Maus wrote: Hi Matt, Hi Sebastien, I pushed a temporary workaround to master that should fix the problem with refile and capture. Both depend

[O] [PATCH 0/5] loop over headlines in active region

2011-08-24 Thread David Maus
, but I'm not sure if this would be a right thing (tm) to do. Best, -- David David Maus (5): Extend scope 'region to include body of last headline in active region Immediately return if scope is region but no region is active New customization variable: Loop over headlines in active region

[O] [PATCH 1/5] Extend scope 'region to include body of last headline in active region

2011-08-24 Thread David Maus
* org.el (org-map-entries): Extend scope 'region to include entire body of last headline in active region. --- lisp/org.el |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index de8c72b..b69b77c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@

[O] [PATCH 2/5] Immediately return if scope is region but no region is active

2011-08-24 Thread David Maus
* org.el (org-map-entries): Immediately return if scope is region but no region is active. --- lisp/org.el | 116 ++- 1 files changed, 59 insertions(+), 57 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index b69b77c..27bad52 100644

[O] [PATCH 3/5] New customization variable: Loop over headlines in active region

2011-08-24 Thread David Maus
* org.el (org-loop-over-headlines-in-active-region): New customization variable. Loop over headlines in active region. (org-schedule, org-deadline): Apply to headlines in region depending on new customization variable. --- lisp/org.el | 159

[O] [PATCH 5/5] Avoid conflict between bulk command and loop-over-headlines

2011-08-24 Thread David Maus
* org-agenda.el (org-agenda-bulk-action): Bind `org-loop-over-headlines-in-active-region' to nil to avoid conflict with bulk command. --- lisp/org-agenda.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 07f3c12..bb0062d

[O] [PATCH 4/5] Skip invisible headlines when mapping over headlines in active region

2011-08-24 Thread David Maus
* org.el (org-deadline, org-schedule): Skip invisible headlines when mapping over headlines in active region. --- lisp/org.el |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index d15c946..03c4c13 100644 --- a/lisp/org.el +++ b/lisp/org.el @@

Re: [O] [PATCH 0/5] loop over headlines in active region

2011-08-28 Thread David Maus
At Thu, 25 Aug 2011 12:08:42 +0200, Štěpán Němec wrote: On Thu, 25 Aug 2011 06:25:29 +0200 David Maus wrote: As for the macro: What stop me to implement a macro for the generic operation is that for now the macro would depend on the global customization variable. That's not a problem

Re: [O] [PATCH 0/5] loop over headlines in active region

2011-08-28 Thread David Maus
Hi Carsten, At Thu, 25 Aug 2011 08:13:21 +0200, Carsten Dominik wrote: I am wondering, why did you choose to skip invisible headlines? I would worry that this introduces inconsistent behavior and also makes it hard to use this feature in a programmatic way. Good points. I though of skipping

Re: [O] [PATCH 2/5] Immediately return if scope is region but no region is active

2011-08-28 Thread David Maus
Hi Carsten, At Thu, 25 Aug 2011 07:43:48 +0200, Carsten Dominik wrote: On 25.8.2011, at 06:25, David Maus wrote: * org.el (org-map-entries): Immediately return if scope is region but no region is active. --- lisp/org.el | 116

  1   2   3   4   5   6   7   >