[O] Bug in calculations with durations and time values in tables

2011-09-01 Thread Gustav Wikström
Hello, just a small bug-report. The following does not seem right:

|First |Second |Result |
|--+---+---|
| 00:00:00 | -00:10:10 | -01:49:50 |
#+TBLFM: $3='(+ $1..$2);T

|First |Second | Result |
|--+---+|
| 00:00:00 | -00:10:10 |  -0.17 |
#+TBLFM: $3='(+ $1..$2);t

|First |Second |Result |
|--+---+---|
| 00:00:00 | -02:01:00 | -03:59:00 |
#+TBLFM: $3='(+ $1..$2);T

|First |Second | Result |
|--+---+|
| 00:00:00 | -02:01:00 |  -2.02 |
#+TBLFM: $3='(+ $1..$2);t


Somehow, when the result of a time-calculation with minutes and seconds goes
negative the result gets an additional negative two hours added (with the
minutes and seconds removed from these two hours)... This seems to be a
problem when doing calculations with the suffix ;T.

;t works as intended in this respect.

Regards
Gustav


[O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Richard Lewis
Hi there,

I want to include the following in an org-mode buffer and be able to
export it to LaTeX:

#+begin_src python :exports code
s[0]
#+end_src

The problem is that org-mode treats s[0] as a footnote reference and
produces LaTeX like this:

\begin{verbatim}
s\footnote{DEFINITION NOT FOUND: 0 }
\end{verbatim}

Is it possible to escape the square brackets?

Thanks,
Richard



Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Erik Iverson

Richard,

On 09/01/2011 06:24 AM, Richard Lewis wrote:


I want to include the following in an org-mode buffer and be able to
export it to LaTeX:

#+begin_src python :exports code
s[0]
#+end_src


This works for me with both python and R code blocks on the latest version 
pulled from git.  Which version of org-mode are you experiencing this with?


--Erik




Re: [O] Use (org-entry-properties) in a mode derived from org-mode

2011-09-01 Thread Stefan Reichör
Hello again!

 Hi!

 I'd like to derive a mode from org-mode.

 I do something like this:

 (define-derived-mode derived-org-mode org-mode dorg derived org-mode
   (message derived-org-mode activated)
   )

 When I activate the derived-org-mode, M-: (org-entry-properties) does no 
 longer work.

 Using org-mode it works.

 When I use derived-mode-p in org-mode-p everything works:


 (defsubst org-mode-p ()
   Check if the current buffer is in Org-mode or a derived mode.
   ;;(eq major-mode 'org-mode))
   (if (derived-mode-p 'org-mode) t nil))


 I think changing org-mode-p should be the correct change to make
 deriving from org-mode work.

 Perhaps a (if (symbolp 'derived-mode-p) ...) is necessary to avoid
 compatibility problems.

 What do the org developers think of this improvement?



In function org-edit-src-code there is already support for derived modes from 
org-mode:
,
|   (let ((mark (and (org-region-active-p) (mark)))
|   (case-fold-search t)
|   (info (org-edit-src-find-region-and-lang))
|   (full-info (org-babel-get-src-block-info))
|   (org-mode-p (or (org-mode-p) (derived-mode-p 'org-mode)))
`

(defun org-mode-or-derived-mode-p ()
  Check if the current buffer is in Org-mode or a derived mode.
  (if (derived-mode-p 'org-mode) t nil))

Using org-mode-or-derived-mode-p would change the function like this:
,
| In function org-edit-src-code
|   (let ((mark (and (org-region-active-p) (mark)))
|   (case-fold-search t)
|   (info (org-edit-src-find-region-and-lang))
|   (full-info (org-babel-get-src-block-info))
|   (org-mode-p (org-mode-or-derived-mode-p))
`

org-mode-p could be replaced step by step with org-mode-or-derived-mode-p to 
enhance the support for org-mode derived modes.

I need org-mode-or-derived-mode-p instead of org-mode-p in org-entry-properties.

It would be great if org-mode-or-derived-mode-p could be added!

Thanks,
  Stefan.




Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Jambunathan K

 The problem is that org-mode treats s[0] as a footnote reference and
 produces LaTeX like this:

Make sure your Org version is NEWER than this post.
https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00447.html

From the above post

,
| Footnotes cannot live anymore in example, src, verse, latex, html and
| docbook blocks.
`

Jambunathan K.



[O] Google Tasks integration

2011-09-01 Thread Brad Collette
I've been using org-mode for a year or so and I really like it.

I've also been using mobileorg to get my stuff on my iphone.  However, I'm
less satisfied with that.  Having to both push and pull from both ends to
keep things in sync is a pain and I often forget.

I saw that Google released an API for tasks back in May.
http://googlesystem.blogspot.com/2011/05/google-tasks-api.html

I'd love to be able to just push/pull from the desktop and then access my
tasks through one of the many task apps available on the phone or from
machines that don't have org-mode or access to my org files.

Is there any work going on to be able to take advantage of this API from
org-mode?


Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Richard Lewis
At Thu, 01 Sep 2011 17:58:00 +0530,
Jambunathan K wrote:
 
  The problem is that org-mode treats s[0] as a footnote reference and
  produces LaTeX like this:
 
 Make sure your Org version is NEWER than this post.
 https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00447.html
 
 From the above post
 
 ,
 | Footnotes cannot live anymore in example, src, verse, latex, html and
 | docbook blocks.
 `

Thanks for the pointer. It led me to discover that some of my org-mode
libraries were coming from the Debian emacs package, and some from my
git repository. So a site-specific problem.  I've actually been caught
out by this before, so no excuse really.

Thanks,
Richard



[O] org-bable and gnuplot

2011-09-01 Thread Marvin Doyley
Hi there,

I am planning to use gnuplot to plot some data that I have in org table.
Everything is set-up correctly and gnuplot is installed my mac.
Unfortunately, when I run the following org file I get a zero byte file --
everything seems to run ok, except nothing is written to the output file.
Does anybody know what I am doing wrong ?

#+tblname: testing
| x |  y |
|---+|
| 1 |  2 |
| 2 |  4 |
| 3 |  6 |
| 4 |  8 |
| 5 | 10 |
| 6 | 12 |
| 7 | 14 |
| 8 | 16 |
#+begin_src gnuplot :var data=testing :file output.eps :exports both
set title test
set auto x
set style data histogram
set style fill solid border -1
set boxwidth 0.9
plot data using 1:2
#+end_src

#+results:
[[file:output.eps]]
cheers
M


[O] How to suppress \label commands in beamer export

2011-09-01 Thread Darlan Cavalcante Moreira

I'm trying to convert a presentation I've done in beamer to org-mode. I'm
going to improve this presentation and add more stuff to it. I'd like to do
it in org-mode.

However, org adds \label{sec-numbers} in the generated tex file after all
environments and this adds some blank space between the blocks in the final
presentation. I understand this extra blank space is more like a latex
issue, but I couldn't find a way to stop org-mode from creating the \label
lines.

In order to reproduce this, export the attached org file to a beamer
presentation. Notice how Block 1 and Block 2 (as well as Block 3 and
Block 4) have a lot of blank space between them. In fact, this makes Block
2 and Block 4 goes out of the frame.

Now, in the .tex file that org created, erase all the \label lines and
compile the file again. Notice how the blank space between the blocks
changes and now Block 2 and Block 4 fit nicely inside each frame.


Note: I use the overprint environment. The attached file has two lines that
must be executed in order to make overprint work. Maybe this environment
should be added to org-beamer-environments-default.

--
Darlan



test_org_beamer.org
Description: Binary data





[O] Clearing checkboxes after a recurring task is done

2011-09-01 Thread Tatsuhito Koya
Hello,

I have a recurring task defined something like this:

* TODO Inspect systems
DEADLINE: 2011-06-01 Wed +1m
- [ ] Inspect System A
- [ ] Inspect System B
- [ ] Inspect System C
- [ ] Inspect System D

The variable org-enforce-todo-dependencies is set, so that I cannot change
this task to DONE until all systems are inspected.

I notice that even if I change the task to DONE, the checkboxes are still
checked
although the deadline is moved forward by a month. Is there a way to
automatically
clear the checkboxes when I change the task to DONE?

I checked the manual but could not find relevant information.

I am using org-mode 7.7 and GNU emacs for Windows 23.3.1.

Thank you,


[O] Best practices? Multiple .org files?

2011-09-01 Thread Brian Wood
I've been using orgmode for 6 months and really like it. I started with 
on monolithic work.org file.  I'm worried that at some point this file 
will get too big and bog down emacs.  I'm not sure how big it would have 
to be...?  To avoid that I'm thinking that I should break up this file 
into multiple .org files in a directory.  If I do that:


1. I would like to still see the same top-level tree that I see now when 
I shift-Tab e.g:


* Admin
* Drupal
* MacOS
* Linux
* Time Reports

So if I create drupal.org that contains the contents of * Drupal, and 
I remove * Drupal from work.org, is there a way to still see my top 
level tree including Drupal?


2. Is there a way I can search for a string across all of my .org files 
from within orgmode?


--
Brian Wood
Applications Programmer
UC Berkeley IST Application Services




Re: [O] Best practices? Multiple .org files?

2011-09-01 Thread Joseph Kern
On Thu, Sep 1, 2011 at 1:35 PM, Brian Wood bw...@berkeley.edu wrote:

 I've been using orgmode for 6 months and really like it. I started with on
 monolithic work.org file.  I'm worried that at some point this file will
 get too big and bog down emacs.  I'm not sure how big it would have to
 be...?  To avoid that I'm thinking that I should break up this file into
 multiple .org files in a directory.  If I do that:

 1. I would like to still see the same top-level tree that I see now when I
 shift-Tab e.g:

 * Admin
 * Drupal
 * MacOS
 * Linux
 * Time Reports

 So if I create drupal.org that contains the contents of * Drupal, and I
 remove * Drupal from work.org, is there a way to still see my top level
 tree including Drupal?

 2. Is there a way I can search for a string across all of my .org files
 from within orgmode?


Yes. Search view:

C-c a s

This is a special search that lets you select entries by matching a
substring or specific words using a boolean logic


http://orgmode.org/guide/Search-view.html


 --
 Brian Wood
 Applications Programmer
 UC Berkeley IST Application Services





Re: [O] org-bable and gnuplot

2011-09-01 Thread Eric Schulte
Marvin Doyley marvin...@gmail.com writes:

 Hi there,

 I am planning to use gnuplot to plot some data that I have in org table.
 Everything is set-up correctly and gnuplot is installed my mac.
 Unfortunately, when I run the following org file I get a zero byte file --
 everything seems to run ok, except nothing is written to the output file.
 Does anybody know what I am doing wrong ?

 #+tblname: testing
 | x |  y |
 |---+|
 | 1 |  2 |
 | 2 |  4 |
 | 3 |  6 |
 | 4 |  8 |
 | 5 | 10 |
 | 6 | 12 |
 | 7 | 14 |
 | 8 | 16 |
 #+begin_src gnuplot :var data=testing :file output.eps :exports both
 set title test
 set auto x
 set style data histogram
 set style fill solid border -1
 set boxwidth 0.9
 plot data using 1:2
 #+end_src

 #+results:
 [[file:output.eps]]
 cheers
 M

Hi Marvin,

I just tried your example locally, and I also got an empty .eps file.  I
then jumped to the *gnuplot* buffer where I saw the following.

,
| gnuplot data = /tmp/babel-4592fc8/gnuplot-4592Pna
| gnuplot set term eps
|   ^
|  unknown or ambiguous terminal type; type just 'set terminal' for a 
list
| 
| gnuplot set output output.eps
| gnuplot set title test
| gnuplot set auto x
| gnuplot set style data histogram
| gnuplot set style fill solid border -1
| gnuplot set boxwidth 0.9
| gnuplot plot data using 1:2
|   ^
|  use 'set term' to set terminal type first
| 
| gnuplot 
`

so if your gnuplot is like my gnuplot then eps is not a known terminal
type.  I'd suggest trying the following.  Also, notice that I changed
your plot line -- histograms are not intuitive in gnuplot.

#+tblname: gnuplot-testing
| x |  y |
|---+|
| 1 |  2 |
| 2 |  4 |
| 3 |  6 |
| 4 |  8 |
| 5 | 10 |
| 6 | 12 |
| 7 | 14 |
| 8 | 16 |

#+begin_src gnuplot :var data=gnuplot-testing :file output.eps :exports both
set term postscript
set title test
set auto x
set style data histogram
set style fill solid border -1
set boxwidth 0.9
plot data using 2:xtic(1)
#+end_src

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Clearing checkboxes after a recurring task is done

2011-09-01 Thread Nicolas Goaziou
Hello,

Tatsuhito Koya tkoy...@gmail.com writes:

 I have a recurring task defined something like this:

 * TODO Inspect systems
 DEADLINE: 2011-06-01 Wed +1m
 - [ ] Inspect System A
 - [ ] Inspect System B
 - [ ] Inspect System C
 - [ ] Inspect System D

 I notice that even if I change the task to DONE, the checkboxes are
 still checked although the deadline is moved forward by a month. Is
 there a way to automatically clear the checkboxes when I change the
 task to DONE?

You may have a look at org-checklist in contrib directory, which does
exactly that.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-bable and gnuplot

2011-09-01 Thread John Hendy
On Thu, Sep 1, 2011 at 1:13 PM, Eric Schulte schulte.e...@gmail.com wrote:

 Marvin Doyley marvin...@gmail.com writes:

  Hi there,
 
  I am planning to use gnuplot to plot some data that I have in org table.
  Everything is set-up correctly and gnuplot is installed my mac.
  Unfortunately, when I run the following org file I get a zero byte file --
  everything seems to run ok, except nothing is written to the output file.
  Does anybody know what I am doing wrong ?
 

snip


 so if your gnuplot is like my gnuplot then eps is not a known terminal
 type.  I'd suggest trying the following.  Also, notice that I changed
 your plot line -- histograms are not intuitive in gnuplot.


snip


 #+begin_src gnuplot :var data=gnuplot-testing :file output.eps :exports both
 set term postscript
 set title test
 set auto x
 set style data histogram
 set style fill solid border -1
 set boxwidth 0.9
 plot data using 2:xtic(1)
 #+end_src


Shameless plug: this and more is available at the orgmode gnuplot
babel documentation on Worg. Check it out if you're interested.
--- Top level: 
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html
--- This in particular (generating eps files):
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-7_2



Re: [O] Best practices? Multiple .org files?

2011-09-01 Thread Brian Wood

Wow, how did I miss search view. Sweet!

Brian Wood
Applications Programmer
UC Berkeley IST Application Services





Re: [O] Clearing checkboxes after a recurring task is done

2011-09-01 Thread Tatsuhito Koya
Thank you, this is exactly what I need!

On Thu, Sep 1, 2011 at 11:17 AM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Hello,

 Tatsuhito Koya tkoy...@gmail.com writes:

  I have a recurring task defined something like this:
 
  * TODO Inspect systems
  DEADLINE: 2011-06-01 Wed +1m
  - [ ] Inspect System A
  - [ ] Inspect System B
  - [ ] Inspect System C
  - [ ] Inspect System D
 
  I notice that even if I change the task to DONE, the checkboxes are
  still checked although the deadline is moved forward by a month. Is
  there a way to automatically clear the checkboxes when I change the
  task to DONE?

 You may have a look at org-checklist in contrib directory, which does
 exactly that.

 Regards,

 --
 Nicolas Goaziou



[O] [odt/xhtml] Export lists as tables (list-tables)

2011-09-01 Thread Jambunathan K

I am pleased to announce support for list-tables in the odt/xhtml
exporters. See below for some introductary note. Also refer to the
attached org/odt/html files.

Thanks for your past and future inputs.
Jambunathan K.


Related posts:

1. Thanks to Ben for introducing list-table in this post
https://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01101.html

2. Thanks to Nathan Neff for raising the topic of resumes in the context
   of odt exporter
https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00998.html

Discussions with him led me to understand the two column style of
resumes. (Visibly speaking) the Eurpass CV template linked to below is
also pre-dominantly a two column format save for few rows which have
multiple columns.

http://europass.cedefop.europa.eu/img/dynamic/c1624/type.FileContent.file/CVTemplate_en_GB.odt

3. Thanks to Matt Price for passing complex table by me and registering
   some use cases.
https://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg01186.html

The overarching theme in all these threads is a multi-column table with
copious text where each column is variably sized.

List-tables is a humble first step in this direction. (Proportional
sizing of columns and support for grid lines is coming soon)

From the blurb:
,
| ;; Notes on LIST-TABLES
| ;; 
| ;; When `org-lparse-list-table-enable' is non-nil, the following list
| ;;
| ;; #+begin_list-table
| ;; - Row 1
| ;;   - 1.1
| ;;   - 1.2
| ;;   - 1.3
| ;; - Row 2
| ;;   - 2.1
| ;;   - 2.2
| ;;   - 2.3
| ;; #+end_list-table
| ;;
| ;; will be exported as though it were a table as shown below.
| ;;
| ;; | Row 1 | 1.1 | 1.2 | 1.3 |
| ;; | Row 2 | 2.1 | 2.2 | 2.3 |
| ;;
| ;; Note that org-tables are NOT multi-line and each line is mapped to
| ;; a unique row in the exported document.  So if an exported table
| ;; needs to contain a single paragraph (with copious text) it needs to
| ;; be typed up in a single line. Editing such long lines using the
| ;; table editor will be a cumbersome task.  Furthermore inclusion of
| ;; multi-paragraph text in a table cell is well-nigh impossible.
| ;;
| ;; LIST-TABLEs are meant to circumvent the above problems with
| ;; org-tables.
| ;;
| ;; Note that in the example above the list items could be paragraphs
| ;; themselves and the list can be arbitrarily deep.
| ;;
| ;; Inspired by following thread:
| ;; https://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01101.html
`

#+TITLE: list-tables.org
#+AUTHOR:Jambunathan K
#+EMAIL: kjambunat...@gmail.com
#+DATE:  2011-08-30 Tue
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

* List Tables1
  A normal list

  - a
  - b
  - c

* List Table 2

  A homogenous list-table

#+begin_list-table
- Row 1
  - Row 1.1
  - Row 1.2
  - Row 1.3
- Row 2
  - Row 2.1
  - Row 2.2
  - Row 2.3
#+end_list-table

* List Table 3
  
  A degenerate list-table

#+begin_list-table
- Row 1
- Row 2
- Row 3
#+end_list-table

* List Table 4

  A non-homogenous list-table

#+begin_list-table
- Row 1
  - Row 1.1
  - Row 1.2
  - Row 1.3
- Row 2
  - Row 2.1
- Row 3
  - Row 3.1
  - Row 3.2
#+end_list-table

* List Tables 4
  A complex true-to-the-spirit multiline list-table

#+begin_list-table
- Row 1
  - Row 1.1
- Subitem under 1.1
- Yet another subitem under 1.1
  - Row 1.2
  - Row 1.3
- Row 2
  - Row 2.1
  - Row 2.2

Subtext for 2.1
  - Row 2.3
#+end_list-table

Title: list-tables.org



  

  



  list-tables.org


  
	1 List Tables1 
	

	  
	A normal list
	  

	  

	
	  a

	

	
	  b

	

	
	  c

	

	  



	

  

  
	2 List Table 2 
	


	  

	A homogenous list-table
	  



	  
	
	
	
	  
		
		  Row 1
		
		
		  
		Row 1.1
		
		
		  
		Row 1.2
		
		
		  
		Row 1.3
	  
	  
		
		  Row 2
		
		
		  
		Row 2.1
		
		
		  
		Row 2.2
		
		
		  
		Row 2.3
	  

	

	  





	

  

  
	3 List Table 3 
	


	  
	
	A degenerate list-table
	  

	  
	
	
	
	  
		
		  Row 1
	  
	  
		
		  Row 2
	  
	  
		
		  Row 3
	  

	

	  





	

  

  
	4 List Table 4 
	


	  

	A non-homogenous list-table
	  




	  
	
	
	
	  
		
		  Row 1
		
		
		  
		Row 1.1
		
		
		  
		Row 1.2
		
		
		  
		Row 1.3
	  
	  
		
		  Row 2
		
		
		  
		Row 2.1
	  
	  
		
		  Row 3
		
		
		  
		Row 3.1
		
		
		  
		Row 3.2
	  

	

	  





	

  

  
	5 List Tables 4 
	

	  
	A complex true-to-the-spirit multiline list-table
	  



	  
	
	
	
	  
		
		  Row 1
		
		
		  
		Row 1.1
		  
		  

		
		  Subitem under 1.1

		

		
		

Re: [O] org-bable and gnuplot

2011-09-01 Thread Marvin Doyley
Thanks,
set terminal did the trick

cheers
M

On Thu, Sep 1, 2011 at 2:21 PM, John Hendy jw.he...@gmail.com wrote:

 On Thu, Sep 1, 2011 at 1:13 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Marvin Doyley marvin...@gmail.com writes:
 
   Hi there,
  
   I am planning to use gnuplot to plot some data that I have in org
 table.
   Everything is set-up correctly and gnuplot is installed my mac.
   Unfortunately, when I run the following org file I get a zero byte file
 --
   everything seems to run ok, except nothing is written to the output
 file.
   Does anybody know what I am doing wrong ?
  

 snip

 
  so if your gnuplot is like my gnuplot then eps is not a known terminal
  type.  I'd suggest trying the following.  Also, notice that I changed
  your plot line -- histograms are not intuitive in gnuplot.
 

 snip

 
  #+begin_src gnuplot :var data=gnuplot-testing :file output.eps :exports
 both
  set term postscript
  set title test
  set auto x
  set style data histogram
  set style fill solid border -1
  set boxwidth 0.9
  plot data using 2:xtic(1)
  #+end_src
 

 Shameless plug: this and more is available at the orgmode gnuplot
 babel documentation on Worg. Check it out if you're interested.
 --- Top level:
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html
 --- This in particular (generating eps files):

 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-7_2



Re: [O] Best practices? Multiple .org files?

2011-09-01 Thread Darlan Cavalcante Moreira

But the original question remains. Is it better, regarding speed, to split
the content into several files (all included in the agenda) or a single
file will be faster?

In [1] you find Should I use one big org file or multiple files?, with a
few tips for improving speed, but does not answer this.

There was a thread about org speed some time ago but I don't remember if a
conclusion about this topic was reached.

[1] http://orgmode.org/worg/org-faq.html

--
Darlan

At Thu, 01 Sep 2011 11:38:45 -0700,
Brian Wood bw...@berkeley.edu wrote:
 
 Wow, how did I miss search view. Sweet!
 
 Brian Wood
 Applications Programmer
 UC Berkeley IST Application Services
 
 
 



[O] indent fixup error on refile (more details)

2011-09-01 Thread Michael Gilbert
Hi —

This is a resend of an earlier message, with more detail from the debugger 
below.

I'm afraid I don't know exactly where this error was introduced (I do nightly 
updates) and I have been on travels and haven't been monitoring the list 
closely. So I apologize in advance is this is a lousy error message. But I 
wanted to put it out there in case it was already something that had someone's 
attention

When I refile from the agenda, I will frequently get this error:

org-fixup-indentation: Invalid search bound (wrong side of point)

The item is copied to the new location (as the new topmost item in the 
location), but the indentation, as you might expect, is incorrect. Also as you 
might expect, the  item is not deleted from its original location. Bulk refiles 
stop after just messing up the first one, of course.

Anyone else experiencing this? Has it been discussed and I just didn't managed 
to search for it properly?

Debugger results:

Debugger entered--Lisp error: (error Invalid search bound (wrong side of 
point))
  re-search-forward(\\(\\(?:CLO\\(?:CK\\|SED\\)\\|DEADLINE\\|SCHEDULED\\)\\|^[ 
]*[[]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]
\n]*?\\)[]]\\(--?-?[[]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^]
\n]*?\\)[]]\\)?*$\\|^[]*:[a-zA-Z][a-zA-Z0-9_]*:.*$\\) 223 t)
  org-fixup-indentation(-1)
  org-promote()
  org-map-region(org-promote 85 228)
  org-paste-subtree(3)
  org-refile(nil #buffer Notes.org (#(Family  Friends (FamilyFriends.org) 
0 16 (org-category-position 1 org-category #(MyPeople 0 8 ...) fontified 
nil)) /Users/mcg/OrgMode/Projects/MCGprojects/FamilyFriends.org ^\\(\\*+\\)[ 
  ]+\\(?:\\(TODO\\|STARTED\\|DONE\\|WAITING\\|CANCELLED\\)[   
]+\\)?\\(?:\\(\\[#.\\]\\)[  ]+\\)?\\(?:\\(?:\\[[0-9%/]+\\]\\)[  
]+\\)?\\(Family  Friends\\)[   ]*\\(?:\\[[0-9%/]+\\]\\)?\\(?:[ 
]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[]*$ #marker at 1 in 
FamilyFriends.org))
  org-agenda-refile(nil nil t)
  (lambda nil (interactive) (org-agenda-refile nil nil t))()
  call-interactively((lambda nil (interactive) (org-agenda-refile nil nil t)) 
nil nil)



— Michael

http://nonprofitnews.org
http://gilbert.org




Re: [O] Best practices? Multiple .org files?

2011-09-01 Thread suvayu ali
On Thu, Sep 1, 2011 at 11:01 PM, Darlan Cavalcante Moreira
darc...@gmail.com wrote:
 But the original question remains. Is it better, regarding speed, to split
 the content into several files (all included in the agenda) or a single
 file will be faster?


If you have source blocks, one big file might be slow. As far as I
recall the issue was font-lock. I personally go for several agenda
files in the root directory categorised depending on kind of tasks or
notes. I have subdirectories (not included in agenda files) for
details on various projects. These are included in the
org-agenda-text-search-extra-files, so they are included when I do C-c
a s.

I hope that helps.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [odt/xhtml] Export lists as tables (list-tables)

2011-09-01 Thread suvayu ali
Hi Jambunathan,

On Thu, Sep 1, 2011 at 9:31 PM, Jambunathan K kjambunat...@gmail.com wrote:
 I am pleased to announce support for list-tables in the odt/xhtml
 exporters. See below for some introductary note. Also refer to the
 attached org/odt/html files.

 Thanks for your past and future inputs.
 Jambunathan K.


Absolutely blown away by the features you keep on adding to org and
org-odt! I can confidently say everyone on the list will agree your
contributions have been invaluable. :)

On a more serious note, I'll try to find time this weekend to test things out.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] indent fixup error on refile (more details)

2011-09-01 Thread Michael C Gilbert

On Sep 1, 2011, at 3:33 PM, Michael Gilbert wrote:

 I'm afraid I don't know exactly where this error was introduced (I do nightly 
 updates) and I have been on travels and haven't been monitoring the list 
 closely. So I apologize in advance is this is a lousy error message. But I 
 wanted to put it out there in case it was already something that had 
 someone's attention
 
 When I refile from the agenda, I will frequently get this error:
 
   org-fixup-indentation: Invalid search bound (wrong side of point)
 
 The item is copied to the new location (as the new topmost item in the 
 location), but the indentation, as you might expect, is incorrect. Also as 
 you might expect, the  item is not deleted from its original location. Bulk 
 refiles stop after just messing up the first one, of course.

New information:

I am pretty sure this only happens when the item to be refiled has a Properties 
drawer.

I am guessing the pointer to fix the indentation isn't moving to the correct 
location somehow

Anyone who knows more than me about this (which is 90% of you): Any ideas?

— Michael




Re: [O] [odt/xhtml] Export lists as tables (list-tables)

2011-09-01 Thread Matt Price
On Thu, Sep 1, 2011 at 7:12 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 Hi Jambunathan,

 On Thu, Sep 1, 2011 at 9:31 PM, Jambunathan K kjambunat...@gmail.com wrote:
 I am pleased to announce support for list-tables in the odt/xhtml
 exporters. See below for some introductary note. Also refer to the
 attached org/odt/html files.

 Thanks for your past and future inputs.
 Jambunathan K.


 Absolutely blown away by the features you keep on adding to org and
 org-odt! I can confidently say everyone on the list will agree your
 contributions have been invaluable. :)

 On a more serious note, I'll try to find time this weekend to test things out.

 --
 Suvayu

 Open source is the future. It sets us free.


this looks awesome. not sure when I can test drive it properly but it
really makes a lot of sense for people like me, who sometimes use
tables merely as a formatting convention and not e.g. as a spreadsheet
or similar.  thanks once gain J!
m



Re: [O] setting up org-remember

2011-09-01 Thread David Maus
At Tue, 30 Aug 2011 11:42:24 +0200,
Renato wrote:

 On Mon, 29 Aug 2011 16:07:33 +0200
 Renato renn...@gmail.com wrote:

  Hello, I'm trying to set up org-remember, however I'm having some
  problems.

 I really didn't expect these multiple very detailed replies, thank you
 very much guys! So it seems that (require 'org-remember) doesn't solve
 the problem. I even tried doing M-x load-file
 RET /usr/share/emacs/23.3/lisp/org/org-remember.el.gz but still I
 there's no match for org-remember-insinuate.

Although you are going to upgrade locally to 7.x it could useful to
check if there is a problem with the Org version shipped with Emacs
23.3 on Arch Linux.

What exactly do you mean with: I seem to miss the function
org-remember-insinuate (No Match).? Does Emacs throw an error if you
call `org-remember-insinuate'? Did you try it with emacs -Q to rule
out a configuration issue (e.g. related to load-path)?

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpViJTLyQFR5.pgp
Description: PGP signature


[O] FYI: Org mode testing framework, Emacs 23 and 22

2011-09-01 Thread David Maus
Just FYI: I've tried to get the testing framework running on Emacs 23
and Emacs 22 and succeeded to 50%:

 - copying ert.el and ert-x.el from Emacs24 Git repository at
   git://git.savannah.gnu.org/emacs.git with master on
   231bffa3e6c37164fa40ad18bd27249cc7704e30 and installing jump.el is
   sufficient to get the test suit running again

 - not so much luck with Emacs22: Recent ERT requires `special-mode',
   defined in simple.el from 23.x upwards.

Emacs 22 version used was: GNU Emacs 22.3.2 (i686-pc-linux-gnu) of 2011-05-28 
on x60s

Not having the test suit running with Emacs22 is a not-so-good because
Org mode claims compatibility with Emacs22:

, [ http://orgmode.org/]
| This package works on GNU Emacs 24, 23 and 22, and (with minor
| restrictions) on XEmacs 21. Emacs 22.2 ships with Org-mode version
| 4.67d, Emacs 23.1 with 6.21b. The latest Emacs development version
| usually contains a fairly recent version, but may lag a bit behind the
| website release.
`

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpNRCQstNeWq.pgp
Description: PGP signature


[O] [PATCH] Small fix for contrib/lisp/org-elisp-symbol.el

2011-09-01 Thread David Maus
Attached patch fixes a small issue with
contrib/lisp/org-elisp-symbol.el, a contributed package that defines a
link type for elisp symbols.

Currently org-elisp-symbol.el uses `eq' to compare a symbol value with
a string. Such a comparism always evals to nil:

#+begin_src emacs-lisp
(let ((foo foo))
  (eq foo foo)) = nil
#+end_src

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de
From 4b5d2e726d8f64e111c42623ae0cd5cf8d82ad70 Mon Sep 17 00:00:00 2001
From: David Maus dm...@ictsoc.de
Date: Thu, 1 Sep 2011 06:49:29 +0200
Subject: [PATCH] Use `string=' to compare strings

* org-elisp-symbol.el (org-elisp-symbol-store-link): Use `string=' to
compare strings.

(let ((foo foo))
  (eq foo foo)) = nil
---
 contrib/lisp/org-elisp-symbol.el |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-elisp-symbol.el b/contrib/lisp/org-elisp-symbol.el
index e614e97..6eb8114 100644
--- a/contrib/lisp/org-elisp-symbol.el
+++ b/contrib/lisp/org-elisp-symbol.el
@@ -104,8 +104,8 @@
 (stype (cond ((commandp sym-name) Command)
  ((functionp sym-name) Function)
  ((user-variable-p sym-name) User variable)
- ((eq def defvar) Variable)
- ((eq def defmacro) Macro)
+ ((string= def defvar) Variable)
+ ((string= def defmacro) Macro)
  (t Symbol)))
 (args (if (match-string 3)
   (mapconcat (lambda (a) (unless (string-match ^ a) a))
-- 
1.7.2.5



pgpBs3SyLfVdE.pgp
Description: PGP signature