Re: [Orgmode] Feature Request: Simultaneous change using S-Up / S-down on time ranges?

2009-03-14 Thread Carsten Dominik

Hi

I agree that this is a good idea.  Implemented in the latest git  
version.


Thanks.

- Carsten

On Mar 12, 2009, at 5:07 PM, Anupam Sengupta wrote:


Hi,

I routinely use time ranges (and occasionally time-stamp ranges) in my
org files to document the scheduled block of time for a meeting or
activity.  As an example, I will mark meetings as:

* A Meeting
 2009-03-12 Thu 10:00-11:00

As often happens with meetings, rescheduling needs to be done and I  
use

S-up or S-down on the time-stamp to make the modifications.  While
this works fine, it usually leads to a duplication when the *time*  
part

of the time-stamp needs to be changed.

For the same example above, if the time-block has now changed to
11:00-12:00, then I need to do S-up on both the 10:00 and the
11:00 string.  I.e,


* A Meeting
 2009-03-12 Thu 11:00-11:00
  ^
  + After the first S-up

* A Meeting
 2009-03-12 Thu 11:00-12:00
^
+ After the second S-up

Can we have a feature (with a toggle option perhaps) which would  
*move*

the block (i.e., both time entries) by the same amount when either one
is moved in the same direction. I.e., the proposal is to have:

* A Meeting
 2009-03-12 Thu 11:00-12:00
  ^ ^
  | |
  | +-- Automatically shifted forward by  
1 hour

  + After the S-up

Thanks!
--
Anupam



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] BUG: org-clock-find-position slurpes a non-clock line into drawer

2009-03-14 Thread Carsten Dominik
Yes, Org is mistaking this item for a clock note.  This is hard to  
avoid.


I recommend the setting

(setq org-clock-into-drawer t)

which will create the drawer already for the first
clock line and avoid this problem.

- Carsten

On Mar 13, 2009, at 6:48 PM, Richard KLINDA wrote:


To reproduce, set your org-clock-into-drawer to 3 (or any number).

Then:

,
| * Foo
| - [ ] bar baz
`

Clock in and out org-clock-into-drawer times, after that I get (= the
checkbox line got into the logbook drawer):

,
| * Foo
|:LOGBOOK:
|CLOCK: [2009-03-13 Fri 18:45]--[2009-03-13 Fri 18:45] =  0:00
|CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] =  0:00
|CLOCK: [2009-03-13 Fri 18:39]--[2009-03-13 Fri 18:39] =  0:00
|- [ ] bar baz
|:END:
`

The bug is in org-clock-find-position, I commented out these lines:

;   (if (and (= (org-get-indentation) ind-last)
;(org-at-item-p))
;   (org-end-of-item))

Now it works, but maybe this breaks other stuff, so please Carsten  
take

a look at this, thanks!

--
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




___
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: ~verbatim~ and =code= inconsistency exporting to Latex/HTML

2009-03-14 Thread Carsten Dominik

Yes, this is the right idea, I have implemented this, thanks.

- Carsten

On Mar 14, 2009, at 3:23 AM, Baoqiu Cui wrote:


Carsten Dominik domi...@science.uva.nl writes:


On Mar 12, 2009, at 9:39 PM, Emilio Garcia Cota wrote:


#+TITLE: (bug|feature)? report -- exporting ~verbatim~ and =code=
into Latex
#+AUTHOR: me
#+EMAIL: e...@ma.il
# I use latest Git (that's 1 commit ahead of 6.24c) on Emacs 22.3.1

* ~verbatim~ and =code=---inconsistency exporting to Latex and HTML

#+BEGIN_EXAMPLE
[a-zA-Z_]
[!#*+-/:;=?]
[\t\n\r ,]
This works OK
#+END_EXAMPLE

However if I want to randomly inline any of those in a paragraph,
=[!#*+-/:;=?]= they're not properly escaped =[a-zA-Z_]= for Latex
---while for HTML =[\t\n\r ,]= org-mode does the Right Thing(tm).


The reason for this is that in LaTeX, inline pieces use

\verb=[a-zA-Z_]=


Don't know if this is a good idea, but can we scan the text string and
dynamically choose a delimiter that does not appear in the string?  We
need to have some delimiter candidates to choose from, and have to  
spend

some extra CPU cycles to scan the string, which can be assumed short??

If = is part of the string, this construct fails.  Whatever  
character

I choose,  it will fail for someone.  I guess I could use the
paragraph symbol §, maybe this is the least likely one of them all?
it works in my LaTeX installation - could a few more people try this
on their systems?

does

\verb§bladibla§

work in LaTeX?


I got the following error on my MacBook:


ERROR: Package inputenc Error: Keyboard character used is undefined

--- TeX said ---
(inputenc)in inputencoding `utf8'.

See the inputenc package documentation for explanation.
Type  H return  for immediate help.
...

l.43   \verb.§
 bladibla.§
--- HELP ---
From the .log file...

You need to provide a definition with \DeclareInputText
or \DeclareInputMath before using this key.


Baoqiu




I also find odd that ~verbatim~'ed text is =monospaced= in Latex
while
it is not in HTML.


Yes, I know this, both constructs use \verb in LateX.  I'd say this  
is

clearly good enough, though.

Is there a non-monospaced, verbatim equivalent for \verb in LaTeX?



* Another little thing---EMAIL option for Latex seems to have no
effect
The +EMAIL option below is not shown in Latex---whereas I can see   
it

in
the exported HTML. Is that a feature, a bug, or both?


What should it influence?  The standard LaTeX header we use  
(maketitle)

does not list the email.  You can build your own title, using
{{{email}}}
as a place holder.

- Carsten




* Thanks!


___
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




___
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] [Patch] Add another bullet type ( →)

2009-03-14 Thread Carsten Dominik

Hi Martin,

thank you for the patch.

I will, however, not install it, at least not in the present form.

Org-mode is hard-core plain text, and for me this also means that
all the control parts that have special meaning should be plain
ASCII characters.  The only exception is that tags are allowed
contain characters specific for other languages.  So I do not
want to hard-code a non-ASCII character in this way.

I would consider a patch which introduces a variable listing
the allowed bullet characters.  If you want to make such a patch,
it will be a non-trivial patch and you would have to sign
over copyright to the FSF so that I can include it.

Sorry for making this so hard

One thing I would worry about is this:  Org sometimes normalized
all bullets in a list to have the same bullet type.  This would
interfere with your idea of having one special bullet in an
otherwise normal list.  Has this never cause problems in your setup?

- Carsten

On Mar 13, 2009, at 11:58 PM, Martin Pohlack wrote:


Hi All,

I tend to use a right arrow (→, U2192) from time to time in plain
lists to separate normal item from conclusions / next actions etc.:

 - Topic
   - Fact 1
   - Fact 2
   → Conclusion

I would appreciate it if org-mode could support this type of bullet
point.  The attached patch implements what I had in mind.

I'm not sure if the adaptation in /org-cycle-list-bullet/ is useful
for others --- I don't use the arrow for many items in a list, but
only single ones --- But I included it in the patch for completeness.

(Also, there may be better ways to encode unicode chars in regexp than
using the utf-8 encoding, that the patch uses.)

Cheers,
Martin
--- /home/mp26/src/org-mode/lisp/org-list.el	2009-03-13  
23:42:05.0 +0100

+++ org-list.el 2009-03-13 19:57:51.0 +0100
@@ -118,7 +118,7 @@
  :type 'integer)

(defvar org-list-beginning-re
-  ^\\([ \t]*\\)\\([-+*]\\|[0-9]+[.)]\\) +\\(.*\\)$)
+  ^\\([ \t]*\\)\\([-+*→]\\|[0-9]+[.)]\\) +\\(.*\\)$)

(defcustom org-list-radio-list-templates
  '((latex-mode % BEGIN RECEIVE ORGLST %n
@@ -158,9 +158,9 @@
  (goto-char (point-at-bol))
  (looking-at
   (cond
-	((eq llt t)  \\([ \t]*\\([-+]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\\) 
\\( \\|$\\))
-	((= llt ?.)  \\([ \t]*\\([-+]\\|\\([0-9]+\\.\\)\\)\\|[ \t]+\\*\\)\ 
\( \\|$\\))
-	((= llt ?\)) \\([ \t]*\\([-+]\\|\\([0-9]+))\\)\\|[ \t]+\\*\\)\\( \ 
\|$\\))
+	((eq llt t)  \\([ \t]*\\([-+→]\\|\\([0-9]+[.)]\\)\\)\\|[ \t]+\\*\ 
\)\\( \\|$\\))
+	((= llt ?.)  \\([ \t]*\\([-+→]\\|\\([0-9]+\\.\\)\\)\\|[ \t]+\\*\ 
\)\\( \\|$\\))
+	((= llt ?\)) \\([ \t]*\\([-+→]\\|\\([0-9]+))\\)\\|[ \t]+\\*\\)\\ 
( \\|$\\))
	(t (error Invalid value of `org-plain-list-ordered-item- 
terminator')))


(defun org-at-item-bullet-p ()
@@ -205,7 +205,7 @@
  (looking-at [ \t]*$)
   (timerp (and descp
(save-match-data
- (string-match ^[-+*][ \t]+[0-9]+:[0-9]+:[0-9]+$
+ (string-match ^[-+*→][ \t]+[0-9]+:[0-9]+:[0-9]+$
descp
   (eow (save-excursion (beginning-of-line 1) (looking-at [ \t]*)
(match-end 0)))
@@ -337,7 +337,7 @@
  (condition-case nil (org-back-to-heading t)
(error (throw 'exit nil)))
  (unless (org-entry-get nil ORDERED) (throw 'exit nil))
- (if (re-search-forward ^[ \t]*[-+*0-9.)] \\[[- ]\\] end t)
+ (if (re-search-forward ^[ \t]*[-+*→0-9.)] \\[[- ]\\] end t)
  (org-current-line)
nil))

@@ -360,7 +360,7 @@
  (end (move-marker (make-marker)
(progn (outline-next-heading) (point
  (re \\(\\(\\[[0-9]*%\\]\\)\\|\\(\\[[0-9]*/[0-9]*\\]\\)\\))
- (re-box ^[ \t]*\\([-+*]\\|[0-9]+[.)]\\) +\\(\\[[- X]\\]\\))
+ (re-box ^[ \t]*\\([-+→*]\\|[0-9]+[.)]\\) +\\(\\[[- X]\\]\\))
  (re-find (concat re \\| re-box))
  beg-cookie end-cookie is-percent c-on c-off lim
  eline curr-ind next-ind continue-from startsearch
@@ -674,7 +674,7 @@
  Cycle through the different itemize/enumerate bullets.
This cycle the entire list level through the sequence:

-   `-' -  `+'   -  `*'  -  `1.'  - `1)'
+   `-'  -  `+'  -  `→'  -  `*'  -  `1.'  -  `1)'

If WHICH is a string, use that as the new bullet.  If WHICH is an  
integer,

0 means `-', 1 means `+' etc.
@@ -688,11 +688,12 @@
 new old)
 (setq new (cond
((and (numberp which)
- (nth (1- which) '(- + * 1. 1)
+ (nth (1- which) '(- + → * 1. 1)
((string-match - current) (if prevp 1) +))
((string-match \\+ current)
-(if prevp - (if (looking-at \\S-) 1. *)))
-   ((string-match \\* current) (if prevp + 1.))
+(if prevp - (if (looking-at \\S-) 1. →)))
+   ((string-match → current) (if prevp + *))
+   

[Orgmode] One year after - questions and suggestions

2009-03-14 Thread Bastien
Hi Carsten and all,

it's been one year now that I stopped actively contributing to Org, but
I didn't stop using it, of course.  Here is a lng list of questions
and suggestions I have.  I tested them over a fresh Org and Emacs, both
pulled from their repos this morning.  

I apologize if most of this has already been mentionned in discussions I
missed - I digged the mailing list a bit but I didn't check thoroughly.

Thanks!



- BUG: When export a descriptive list to ASCII, replace the :
  separator by a single :.

- BUG: Switch to a state requiring an annotation, cancel the annotation,
  there will be an empty :LOGBOOK: drawer.  Remove it?

- BUG: When picking up a date with `org-time-stamp', up and down will
  browse the minibuffer history.  I think it does not make sense here.

- BUG/FR: When building completion list for refiling, don't include the
  very entry we are trying to refile.

- BUG: In agenda mode, C-e goes to the [last-1] char of the line.  (Note
  that this is not visible when the entries finishes with a link.)

- BUG: Weird result of C-c * when used before the first heading.

- BUG: Properties inserting in a remember buffer are not indented
  correctly when the remember note goes to its target.  For example:
  
  * My remember note
:PROPERTIES:
:Effort: 10
:END:

  Is refiled to the Notes entries:
 
  * Notes
  ** My remember note
   :PROPERTIES:
   :Effort: 10
   :END:

  ... but the drawer does not align with the stars.

- BUG?: When deleting an attachment, the :ID: property is not itself
  deleted.  Not sure if it's wrong, but it's weird.



- FR: In addition to the {+} {:} facilities for dynamically computing a
  property's value, have a way to use a calc or a tbl formula?
  Additionnally, have a _DEFAULT suffix to define defaults.

- FR: A function to display the link the cursor is on (the same way the
  mouse displays a small popup.)  This function would particularily be
  useful in the agenda view.

- FR: C-c C-l in agenda view to edit link at point?  (Or is this
  producing to much overlap between org-agenda and the normal org
  editing mode?)

- FR: Highlight the currently clocked-in task in agenda-mode? 

- FR: When selecting an attachment, if there is already a directory
  defined for this the current entry, then use this directory as the
  default directory for browsing and select the attachment.

- FR: All numeric values within brackets are highlighted.  Since this
  type of footnotes is now discouraged, I think it make sense not to
  highlight those values (having digits in square brackets is not so
  rare.)

- FR: When refiling to a non-existent entry, create this entry on the
  fly?

- FR: Allow to insert +1d-type strings when picking up a date with
  `org-time-stamp'.

- FR: Symmetric to individual lead time, I wish I can have individual
  remaining time - for example, the number of days during which a
  deadline is still visible in the agenda view.  (That would happily
  steal 90% of what org-expiry.el is trying to achieve.)

- FR: IMHO, turning off follow-mode in the agenda view should restore
  the window configuration we had before turning follow-mode on.  (By
  the way, not being able to use `C-x 1' when follow-mode is on is quite
  confusing.)

- FR: Following a sh: or an elisp: link prompts the user for
  confirmation.  Can we have a variable that let the user to globally
  turn this off?

- FR: Visually mark (with #) entries that are marked in the agenda view?
  
- FR: When setting a mark in the agenda view, go to the next line?
  (Like in buffer-menu and other menu mode.)

- FR: When undoing an archive command, correctly delete was has been
  added to the archive file?

- FR: Symmetric to `C-c / b' have a `C-c / a' command to select entries
  that are after a date?

- FR: Maybe `?' could provide a little help in agenda mode.

- FR: Grouping several :clock: lines when clocking periods are very
  close to each other (with a user-defined threshold).  For example,
  clocking 5 times 10 minutes within the same hour would be rounded up
  to one hour.



- Q: How to set a recurring time range (say an 2-days event)?
  
  For example: 2009-03-14 sam--2009-03-15 dim recurring each month.
  I know I could use a diary sexp but I wonder if it's possible withing
  Org's syntax.

- Q: Is there a way to select properties which values are =   to a
  numeric value?

- Q: `org-attach-auto-tag' has no effect when attaching a directory
  (instead of a file)?

- Q/FR: Is there a way to set `org-enforce-todo-dependencies' per task?
  (By the way, if I understand correctly, the :ORDERED: property only
  makes sense when `org-enforce-todo-dependencies' is non-nil, right?)

- Q/FR: How to go at the end of a field in a table?  Maybe C-a and C-e
  could be 

Re: [Orgmode] ~verbatim~ and =code= inconsistency exporting to Latex/HTML

2009-03-14 Thread Emilio Garcia Cota
hmm I've just seen that I missed Baoqiu Cui's e-mail, because I'm not
suscribed to the list and forgot to CC myself in the first place.

Sorry for the noise,
Emilio.


___
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] Large Font in Column-View

2009-03-14 Thread Karl Maihofer
Hi,

when I switch to column-view the font size increases. I don't really
know since when this happens on my system...

I use Emacs 23.0.91.1 (todays cvs version) and Org-Mode 6.24b. I tried
to start Emacs without any modifications (without ~/.emacs), too - but
the same problem.

Any ideas?

Kind regards,
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


[Orgmode] Announcing my Python module to read org-mode files

2009-03-14 Thread Charles Cave

Over the last couple of months I have developed a Python module
to read an org-mode file and return the nodes as a list
of objects.  The module is the basis of a Python/TK GUI
program to display a Word of the Day (another article
will be published about this program soon).

Here is the article (and source code)
http://members.optusnet.com.au/~charles57/GTD/orgnode.html

This is an example of what the module can do:

import Orgnode
nodelist = Orgnode.makelist(newgtd.org)

print \n- PROJECT LIST 
for node in nodelist:
  if node.Tag() == PROJECT:
  print [ ], node.Heading()


I hope the module is of interest to Python programmers!

Charles






___
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