Re: [Orgmode] Percent completion colour disappeared

2009-09-23 Thread Melton Low
Carsten,
I can confirm it works now.  Thanks for the fix.

Mel

On Tue, Sep 22, 2009 at 5:41 AM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 Hi Mel,

 I believe this problem is now fixed, please verify.

 - Carsten

 On Sep 19, 2009, at 5:25 AM, Melton Low wrote:

  I am on a Mac with OS X 10.5.8 Intel.

 Try this:

 1. start Emacs.app by clicking on the emacs app bundle in /Applications.
 2. load the org file with to do items.
 3. start up a new frame with C-x 5 2.

 You will notice the problem is on the 2nd frame.  It's always on the
 subsequent frames.

 I see the same thing on my 10.4.11 PPC Mac as well.

 This is just annoying but I can live with it if you can't reproduce it.

 Mel

 On Fri, Sep 18, 2009 at 11:33 AM, Carsten Dominik 
 carsten.domi...@gmail.com wrote:
 Hi Melton,

 I don't seem to be able to reproduce this problem.

 - Carsten


 On Sep 13, 2009, at 5:37 PM, Melton Low wrote:

 Hi,

 I may have found a problem with colouring of percent completion. The
 percent completion is coloured green for completed headline and red
 for uncompleted headline. This worked fine if the org file was opened
 in the original frame emacs was started with. If you kill the org
 buffer and reload the org file in a new frame it reverted to black.
 The same occurred if you simply load the buffer into a new frame.



 I can reproduce it with Emacs 23.1.1 and latest build from source. I
 am also using the latest git pull of org-mode. Attached is my test
 file.

 Mac OS X 10.5.8 Intel
 Emacs 23.1.1 and Emacs 23.1.50 (latest cvs build)
 Org-mode (latest build from git repo)

 Mel
 test.org___
 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] Org-mode version 6.30; Links in categories break layout

2009-09-23 Thread Peter Westlake


On Fri, 04 Sep 2009 11:44 +0100, Peter Westlake
peter.westl...@pobox.com wrote:
 On Fri, 04 Sep 2009 09:19 +0200, Carsten Dominik
 carsten.domi...@gmail.com wrote:
 
  
  The prefix is now formatted properly, and C-c C-o gives
  also access to this link.
 
 Excellent! Thank you very much!

One small thing, though - in the agenda TODO view, pressing t to mark
the task as Done messes up the layout:  

  [[http://orgmode.org][Org-Mode]]:   TODO Demonstrate problem with link
  in category

(which appears as:

  Org-Mode:   TODO Demonstrate problem with link in category)


Press T on that line:

  [[http://orgmode.org][Org-Mode]]:   TODO Demonstrate problemDONE
  Demonstrate problem with link in category

(which appears as:

  Org-Mode:   TODO Demonstrate problemDONE Demonstrate problem with link
  in category)

Regards,

Peter.



___
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] Including orgstruct-mode files in todo list and agenda

2009-09-23 Thread Robin Green
I would like to have files other than .org files, e.g. source code
files, with some TODOs in them created by orgstruct-mode, included in
todo lists and agendas generated by C-c a.

My plan is to create symbolic links in my org directory, with names
altered from the original filenames so that they end in .org, pointing
to those other files. As the files are plain text and don't contain
anything else which could be mistaken for a TODO entry or whatever, I
think this should work.

Will this work reliably?
-- 
Robin


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


[Orgmode] Re: Is it possible to show an agenda item only if it's due?

2009-09-23 Thread J. David Boyd
PT spamfilteracco...@gmail.com writes:

 Matt Lundin mdl at imapmail.org writes:
 
 Ah I see. Another idea: write an agenda skip function that converts the
 timestamp to universal time and ignores the entry if it is greater than
 (current-time). Such as,
 

 Wow, I didn't you can write your own agenda skip function. The depths of 
 Org are infinite. :)

 Thanks. I'll try your solution.


Once you get it working, please share!




___
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] Including orgstruct-mode files in todo list and agenda

2009-09-23 Thread Carsten Dominik


On Sep 23, 2009, at 1:18 PM, Robin Green wrote:


I would like to have files other than .org files, e.g. source code
files, with some TODOs in them created by orgstruct-mode, included in
todo lists and agendas generated by C-c a.

My plan is to create symbolic links in my org directory, with names
altered from the original filenames so that they end in .org, pointing
to those other files. As the files are plain text and don't contain
anything else which could be mistaken for a TODO entry or whatever, I
think this should work.

Will this work reliably?


This will work reliably if you can get Emacs to visit these files
in Org-mode.  An I think, the condition for this will be that none
of these files is being visited already under the original name...

- Carsten



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


Re: [Orgmode] [BUG] org-export-normalize-links: Invalid function: org-if-unprotected-at

2009-09-23 Thread Carsten Dominik


On Sep 23, 2009, at 4:59 AM, Eric Schulte wrote:


Hi,

When publishing large html projects I sometimes run into the following
error.

: org-export-normalize-links: Invalid function: org-if-unprotected-at

This happens unpredictably, and I find that it can normally be fixed  
by

some combination of...
- updating Org-mode with git pull
- running make clean  make in my Org-mode directory
- restarting Emacs

My questions are
- has anyone else seen this?
- does anyone have advice for forensic analysis I should perform next
 time this happens?

Thanks -- Eric



Hi Eric,

I think this can happen when using a uncompiled version of org-exp.el  
that is

getting a compiled version of org.el via (require 'org).

Adding

   (require 'org-macs)

to org-exp.el (I just did that) should hopefully get rid of this issue.

- Carsten


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


Re: [Orgmode] [BUG] org-export-normalize-links: Invalid function: org-if-unprotected-at

2009-09-23 Thread Eric Schulte
Carsten Dominik carsten.domi...@gmail.com writes:

 On Sep 23, 2009, at 4:59 AM, Eric Schulte wrote:

 Hi,

 When publishing large html projects I sometimes run into the following
 error.

 : org-export-normalize-links: Invalid function: org-if-unprotected-at

 This happens unpredictably, and I find that it can normally be fixed
 by
 some combination of...
 - updating Org-mode with git pull
 - running make clean  make in my Org-mode directory
 - restarting Emacs

 My questions are
 - has anyone else seen this?
 - does anyone have advice for forensic analysis I should perform next
  time this happens?

 Thanks -- Eric


 Hi Eric,

 I think this can happen when using a uncompiled version of org-exp.el
 that is
 getting a compiled version of org.el via (require 'org).

 Adding

(require 'org-macs)

 to org-exp.el (I just did that) should hopefully get rid of this issue.

 - Carsten

Hi Carsten,

I just grabbed the latest version of Org-mode, ran

  $ make clean  make

restarted Emacs, and tried again and ran into the same issue.

  org-export-normalize-links: Invalid function: org-if-unprotected-at

I then ran

  $ make clean

restarted Emacs, and tried again, and the publish worked without a
problem.  It seems to be a problem related to compiled version of either
org-exp.el or org-macs.el, but I have no idea which.  For now I'm
content running uncompiled.  Please let me know if there is some way for
me to investigate or provide more useful debugging info.

Thanks -- Eric


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


[Orgmode] Org-mode version 6.30trans (release_6.30d.869.g4cb3); Footnotes not working in figure captions

2009-09-23 Thread Eric S Fraga

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.


If I remember correctly, footnotes used to work in figure captions
(#+CAPTION: xxx[fn:1], say).  Today, when I exported a file to HTML,
all the footnotes except those in captions came out fine.  The ones in
captions were not processed and were exported as text verbatim.

See attached files for an example (including both the org file and a
random image) in the second heading of the file (the first heading is
another problem I reported a few days ago).

Thanks,
eric



Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2009-08-03 on raven, modified by Debian
Package: Org-mode version 6.30trans (release_6.30d.869.g4cb3)



test2.org
Description: Binary data
inline: mip.jpg___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: LaTeX export of images

2009-09-23 Thread Sébastien Vauban



Hi Francesco,

Francesco Pizzolante wrote:
 1) Images in the middle of the text

 If I have the following example:

 ,
 | For this example, I will use this image [[myimage.png]] which is a very 
 good one.
 `

 Then, when exported, it produces the following LaTeX code:

 ,
 | For this example, I will the use this image
 | \centerline{\includegraphics{myimage}} which is a very good one.
 `

 Which produces weird layout when compiled to PDF.

 In this case, we should just generate \includegraphics{myimage} without the
 centerline command.

Given the output of the `\centerline' command, I guess that the inlining of an
image inside a line of text is not supported as is by Org. I can second such a
choice.

For such an effect, then, you still have a solution: simply write a chunk of
LaTeX code in your Org file.


 2) Images in floats

 In the case of floats, the correct generated code should be something like:

 \begin{figure}[htb]
 \centering
 \includegraphics{myimage}
 \label{LABEL}
 \caption{CAPTION}
 \end{figure}

 and not

 \begin{figure}[htb]
 \centerline{\includegraphics{myimage}}
 \label{LABEL}
 \caption{CAPTION}
 \end{figure}

 This can also be fixed quickly I think.

I'm not really aware of the `\centerline' command in LaTeX. It's true that, in
order to center, the most commonly usages are:

- the `\centering' command, to be put inside a group, or

- the `center' environment -- but this is generally considered as evil, as it
  adds unwanted spaces around.


 Now, the question is: is it correct to identify a float image thanks to its
 caption and label attributes? Can't we have a float image without label or
 caption?

That's right that I generally would also like to have all figures exported as
floats (or, at least, that such a decision would not just depend on the
presence or absence of a label/caption).

Best regards,
  Seb

-- 
Sébastien Vauban




___
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] display of links on headlines

2009-09-23 Thread Andreas Amann
Hi,

not sure if the following small (but for me annoying) display glitch
is worth to report, but I noticed that links which are on a headline
cause a following ellipsis to be wrongly underlined as well. A minimal
example which demonstrates what I mean would be the following:


* [[http://testlink.org][headerlink]]
test body


Putting this into a file test.org and starting emacs with 

$ emacs -Q test.org

displays the line

* headerlink...

where headerlink and the ellipses ... are both underlined. Since the
ellipses is not part of the link, I would expect that it should not be
underlined. This keeps annoying me and I fix it by adding a space as
the last character in the headline. Unfortunately my lisp knowledge
is not sufficient to find the probably trivial real fix for this, ...

I used today's org-mode (4cb3e37) and a recent emacs CVS (August) built.


Thanks, 
Andreas




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


[Orgmode] Re: LaTeX export of images

2009-09-23 Thread Sébastien Vauban
Jeff Kowalczyk wrote:
 Sébastien Vauban wxhgmqzgw...@... writes:
 Francesco Pizzolante wrote:
 In this case, we should just generate \includegraphics{myimage} without
 the centerline command.

 Given the output of the `\centerline' command, I guess that the inlining of
 an image inside a line of text is not supported as is by Org. I can second
 such a choice.

 +1 for default to inline graphics. When using Org for How-To and project
 documentation delivered as PDF, floating screenshot-size images typically
 situate far from the descriptive text.

My point was mainly that, IMHO, floating or not should not be tied to the
presence or absence of caption/label.

Your problem with screenshots far away should be solved by putting the H
specifier to the float environment and loading the `float' package.


 I would prefer inline images by default (or option), and a file/subtree
 level option to use LaTeX floating layout.

That'd be a great way to be able to specify which type of inlining we want.
On a per file basis seems sufficient for me.

Best regards,
  Seb

-- 
Sébastien Vauban



___
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] =code= and ~verbatim~ with bashslash (\), LaTeX export

2009-09-23 Thread Jeff Kowalczyk
Is there a way to escape backslashes (\) in code and verbatim that will export 
to LaTeX correctly?

When writing =\\host\share= or =C:\path\to=, pdftolatex output is incorrect.

The various methods described in [1] don't work for me in Org.

Thanks,
Jeff

[1] 
http://stackoverflow.com/questions/256457/how-does-one-insert-a-backslash-or-a-tilde-into-latex


  



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


[Orgmode] Re: =code= and ~verbatim~ with bashslash (\), LaTeX export

2009-09-23 Thread Bernt Hansen
Jeff Kowalczyk j...@yahoo.com writes:

 Is there a way to escape backslashes (\) in code and verbatim that will 
 export to LaTeX correctly?

 When writing =\\host\share= or =C:\path\to=, pdftolatex output is incorrect.

 The various methods described in [1] don't work for me in Org.

#+begin_example 
 ~ and \ in latex
 \host

 \\host\share and c:\path\to\something

#+end_example

-Bernt


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


[Orgmode] Re: org-babel: interactive terminal support

2009-09-23 Thread Benjamin Andresen
Hey Eric,

Eric Schulte schulte.e...@gmail.com writes:

 Benjamin Andresen be...@in-ulm.de writes:

 So if I understand the purpose is to evaluate source-code blocks in
 Org-mode files which will open terminals in new windows, send shell
 commands to those terminals, and either display information in the
 terminals and possible insert output from those terminals into Org-mode
 buffers?
The first part is correct. It will open different terminals depending on
the amount of sessions specified and run the code in the source-code
blocks.

It's only a one-way street at the moment though, the resulting output is
currently dismissed. (But possible to get, depending on what
shell/config is used. screen's hardcopy.)

 I like the idea, however I can't get it working on my Mac.  I am able to
 pop open new xterms, however nothing seems to make it into or out of
 screen (maybe this is because I all ways have screen running as my
 normal terminal emulator?).

Nope, that shouldn't have anything to do with it. I also have screen
running at all times. It's creating a new screen instance for every
session. The sockets are named org-babel-session-$SESSION.

The problem might be in line 49, because I hard-coded a one second sleep
timer in there to only send the resulting source code block afterward.
(To give xterm and screen a time to spawn.)

That's pretty dirty and I should fix that.

 I don't see where you have /bin/zsh hard-coded...

That's because my mail was sent before I had a look around how other
modes handle parameter. Now it's defaulting to sh but it can be
changed with :cmd

 Thanks! -- Eric


br,
benny


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


[Orgmode] Re: =code= and ~verbatim~ with bashslash (\), LaTeX export

2009-09-23 Thread Jeff Kowalczyk
Bernt Hansen bernt at norang.ca writes:
 
 Jeff Kowalczyk jtk at yahoo.com writes:
 
  Is there a way to escape backslashes (\) in code and verbatim that will
export to LaTeX correctly?
 
  When writing =\\host\share= or =C:\path\to=, pdftolatex output is incorrect.
 
  The various methods described in [1] don't work for me in Org.
 
 #+begin_example 
  ~ and \ in latex
  \host
 
  \\host\share and c:\path\to\something
 
 #+end_example
 
 -Bernt

Thanks, Bernt. The begin_example method and :  have been working well with
backslashes for me.

The =code= and ~verbatim~ markup would allow the author to spell paths and other
backslash items in the normal flow of text.

A feature request then: =code= and ~verbatim~ would escape characters with the
same environment/rules as the other literal example methods (presuming this is
possible for LaTex, of course)

Thanks,
Jeff



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


[Orgmode] Re: two custom agenda view questions

2009-09-23 Thread Matt Lundin
Michael Gilbert m...@gilbert.org writes:

 Still too much of a newbie to figure this out on my own. I get lost in
 the Lisp still.

 (1) I want to define a custom agenda view that displays only those
 tasks that have today as a deadline or are past-due. Since many of my
 tasks also have scheduled timestamps, sometimes these end up being the
 same day. It looks to me as if they will be left out if I skip
 scheduled items, even if they also have a current deadline. How can I
 finesse this?

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((d Due today agenda 
 ((org-deadline-warning-days 1)
  (org-agenda-skip-scheduled-if-deadline-is-shown t)
  (org-agenda-skip-function '(org-agenda-skip-entry-if 
'notdeadline))
--8---cut here---end---8---

 (2) Eventually, I want to create a DONE log of copies of items as they
 get finished, with contextual data retained. But for right now, all I
 want is to be able to switch to an agenda view of tasks that were
 complete today. I've tried a few ideas that seemed like low-hanging
 fruit here, but no luck.

Type l in the agenda for log mode.

- Matt


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