[Orgmode] Re: Generate list of all tags in use?

2010-11-24 Thread Richard Lawrence
Hi Uriel,

> Is there a way to generate a list of all tags in use in all agenda files?
> I'm thinking of something like a tag cloud. 

Would org-get-buffer-tags help you out?

Richard


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


[Orgmode] Generate list of all tags in use?

2010-11-24 Thread Uriel Avalos
Is there a way to generate a list of all tags in use in all agenda files?
I'm thinking of something like a tag cloud. 

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


Re: [Orgmode] Re: Automatic global tag list?

2010-11-24 Thread Uriel Avalos
Thanks. That did the trick. I found that I also had to disable 
org-use-fast-tag-selection. For some reason, with that set to t or
auto, I couldn't select from the global tag list.

On Wed, 24 Nov 2010 09:38:26 +0100
Sébastien Vauban  wrote:

> Hi Matt,
> 
> Matt Lundin wrote:
> > Have you tried the following setting?
> >
> > (setq org-complete-tags-always-offer-all-agenda-tags t)
> >
> >> BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's
> >> not documented there?
> >
> > C-h f org-global-tags-completion-table.
> 
> C-h v org-complete-tags-always-offer-all-agenda-tags says:
> 
> ,
> | org-complete-tags-always-offer-all-agenda-tags is a variable defined in 
> `org.el'.
> | Its value is nil
> | 
> | Documentation:
> | If non-nil, always offer completion for all tags of all agenda files.
> | Instead of customizing this variable directly, you might want to
> | set it locally for remember buffers, because there no list of
> | tags in that file can be created dynamically (there are none).
> | 
> |   (add-hook 'org-remember-mode-hook
> | (lambda ()
> |   (set (make-local-variable
> | 'org-complete-tags-always-offer-all-agenda-tags)
> |t)))
> | 
> | You can customize this variable.
> | 
> | [back]
> `
> 
> (didn't know about that var)
> 
> You see that one should sed 's/remember/capture/g'.
> 
> --8<---cut here---start->8---
> --- INDEX:/lisp/org.el
> +++ WORKDIR:/lisp/org.el
> @@ -2732,10 +2732,10 @@ To disable these tags on a per-file basis, insert 
> anywhere in the file:
>  (defcustom org-complete-tags-always-offer-all-agenda-tags nil
>"If non-nil, always offer completion for all tags of all agenda files.
>  Instead of customizing this variable directly, you might want to
> -set it locally for remember buffers, because there no list of
> +set it locally for capture buffers, because there no list of
>  tags in that file can be created dynamically (there are none).
>  
> -  (add-hook 'org-remember-mode-hook
> +  (add-hook 'org-capture-mode-hook
>  (lambda ()
>(set (make-local-variable
>  'org-complete-tags-always-offer-all-agenda-tags)
> --8<---cut here---end--->8---
> 
> It seems there are a lot more references to remember, but I'm not sure which
> can be safely removed.
> 
> Best regards,
>   Seb
> 
> -- 
> Sébastien Vauban
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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


Re: [Orgmode] Re: repo.or.cz down

2010-11-24 Thread tycho garen
On Wed, Nov 24, 2010 at 02:48:38PM +, Seweryn Kokot wrote:
> It seems that the server http://repo.or.cz/w/org-mode.git was up just for a 
> moment since I managed to pull the latest org-mode version, now it's down 
> again.

The server didn't come back as promptly as we would have liked after a
networking issue, and pasky disabled Apache for a while things
stabilized. Everything should be working at this point. I'd poke a bit
further, but I'm on a train at the moment, and my connection
is... somewhat lackluster.

Sorry about that. 

Cheers,
sam

-- 
tycho(ish) @
 ga...@tychoish.com
  http://www.tychoish.com/
  http://www.cyborginstitute.com/
  "don't get it right, get it written" -- james thurber


pgpQfAIp3I19W.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-latex-to-pdf-process missing?

2010-11-24 Thread Bernt Hansen
Jeff Horn  writes:

>>> 3) Shouldn't org-latex be loaded automatically?
>>
>> You're referencing a variable in org-latex.  It probably doesn't get
>> defined until you have auto-loaded org-latex by using some function
>> provided by that file.  If you want to use the variable before that I
>> think you need to require the package to force loading it early.
>
> I didn't realized that's how autoloads work. So they're "just in time"
> loads? Designed to cut back on the initial load time?

That's my understanding of how it works.  The main purpose of autoloads
(as far as I know) is to speed up Emacs initial startup time.

Regards,
Bernt

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


[Orgmode] ASCII export - "AutoFill"

2010-11-24 Thread Gustav Wikström
Hello!

Just a silly question... If I want to export to ASCII from my Org-file, and
want the exported ASCII to have all the paragraphs restricted to, say, 80
columns - Is there a nice way  to do this without first converting all the
paragraphs in the org-file?

In essence, Org-mode file:


* Heading


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc varius
scelerisque nisi, ac tristique tellus porta ut. Cras porta, tortor eget
malesuada pellentesque, lorem enim accumsan mauris, quis imperdiet risus
velit id ante. Quisque porttitor ornare turpis non aliquam.

Exported ASCII-text file:

* Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc
varius scelerisque nisi, ac tristique tellus porta ut. Cras
porta, tortor eget malesuada pellentesque, lorem enim accumsan
mauris, quis imperdiet risus velit id ante. Quisque porttitor
ornare turpis non aliquam.

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


[Orgmode] Awesome! Date-tree from agenda!

2010-11-24 Thread Nathan Neff
I've been looking for a way to do quick "journal" entries
for /past/ dates, and was disappointed that the Journal
capture template always used the current date.

I found out you can go to a date in the agenda, and press "k c", which
will cause any capture-template to use the date in the agenda, not today's date.
This will use the agenda's date when putting journal entries into a
file like this:

* 2010-11-17 Wednesday
** Did something in the past (I entered this from the agenda, going
back to 2010-11-17)

Cool!
http://orgmode.org/manual/Using-capture.html#Using-capture

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


[Orgmode] mobileorg and archive sibling

2010-11-24 Thread Brody, William (Buck)
I use the "archive sibling" feature for completed items.  Within MobileOrg, the 
ARCHIVE tag does not seem to have any functionality.  As a result, my MobileOrg 
file is cluttered with many obsolete items.  Any ideas for how I might fix this 
problem?

Thanks

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


[Orgmode] Re: Sunrise / Sunset in Agenda View only for Current Day?

2010-11-24 Thread Raymond Zeitler
This worked wonderfully!  Thanks!

I decided to combine the &%%(diary-day-of-year) into the same category with
&%%(diary-sunrise-sunset).

My setup is shown on Emacs wiki:

http://www.emacswiki.org/emacs/RaymondZeitler

All the best!

--
Raymond Zeitler  


-Original Message-
From: Matt Lundin [mailto:m...@imapmail.org] 
Sent: Wednesday, November 03, 2010 8:44 PM
To: Raymond Zeitler
Cc: emacs-orgmode@gnu.org
Subject: Re: Sunrise / Sunset in Agenda View only for Current Day?

"Raymond Zeitler"  writes:

> I added sunrise & day of the week to the org file that I base my agenda
view
> on.  But this adds the information for every day that's displayed in the
> agenda.  Is it possible to get the information to show up only for the
> current day?
>
> TIA
>
> Here's the relevant content in the org file:
> #+CATEGORY: Day/Year
> &%%(diary-day-of-year)
> #+CATEGORY: Sunrise
> &%%(diary-sunrise-sunset)

One way to accomplish this is with a custom skip function and a custom
agenda command. In order for this particular setup to work, you'll need
to put the sunrise sexp in it's own subtree, as in:

--8<---cut here---start->8---
* Sunrise
  :PROPERTIES:
  :CATEGORY: Sunrise
  :END:
&%%(diary-sunrise-sunset)
--8<---cut here---end--->8---

Note: it's important that you use the CATEGORY property to ensure that
the category "Sunrise" is limited to a single subtree.

Then, you could add the following function to your emacs:

--8<---cut here---start->8---
(defun my-org-skip-sunrise ()
  (if (and (not (equal date (calendar-current-date)))
   (string= (org-get-category) "Sunrise"))
  (org-end-of-subtree t)
nil))
--8<---cut here---end--->8---

Finally, you could define a custom command that instructs org to use the
skip function to bypass all "Sunrise" entries for days other than today:

--8<---cut here---start->8---
(add-to-list 'org-agenda-custom-commands 
 '("x" "My agenda" agenda ""
((org-agenda-ndays 7)
 (org-agenda-skip-function 'my-org-skip-sunrise
--8<---cut here---end--->8---

If you're feeling brave, you could disregard the docstring for
org-agenda-skip-function and bind the variable globally (i.e., invoke
my-org-skip-sunrise on all agenda commands), but I wouldn't recommend
this.

Hope this helps,
Matt


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


[Orgmode] Re: [Babel] RESULT block when error

2010-11-24 Thread Sébastien Vauban
Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban  writes:
>> "Eric Schulte" wrote:
>>> I've fixed this problem and applied the :wrap header argument patch to
>>> the core Org-mode repository.
>>
>> You did not answer about making the wrap option by default. It's that a
>> great feature, for HTML in particular (you'll see, in a couple of weeks, my
>> proposition for a Worg3.css), that I find it useful for everybody, without
>> doing any config. Is it due to LaTeX, or do you find another reason why not
>> making it the default? Just interested by your answer...
>
> Sorry, I was rushed this morning.  I'm hesitant to turn this feature on
> by default for two main reasons
> 1) I generally prefer to have the /simplest/ option be the default
>option, and in this case the simplest behavior is to have no wrapper
> 2) I'm not sure how a user would turn this feature off, once it has been
>turned on i.e. we don't yet (but I suppose we should) have a "nowrap"
>header argument
>
> Also, as this is a header argument it can easily be configured on the
> user, system, language, file, or individual block basis.  If at some
> point the preponderance of Babel users have "wrap" set in their default
> header arguments, or there appears to be wide support for such a change
> from the mailing list then I would support adding it to the default, but
> probably not until then.

Fine with me. Thanks for answering to all my (too?) numerous posts...

BTW, yes, I think as well we should have some sort of nowrap setting, in order
to cancel the option that I just set on a system-basis. Though I'd like this
to be done SOMEDAY (otherwise, something is missing), I don't regard this as
urgent at all.

(I'm dreaming, but) I'd even like to try and implement such a thing. SOMEDAY
on my list as well!

Thanks a lot.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: Refile to a different Org file?

2010-11-24 Thread Sébastien Vauban
Hi Raymond,

"Raymond Zeitler" wrote:
> I'm trying to change the value of org-refile-targets to enable me to refile
> to the other files that make up my agenda view.  Its value started out as
> just nil, which worked exactly right for one file because I was able to
> refile to all the *categories* in ~/todo.org, using tab completion, and it
> didn't get confused by tags or heading names.
>
> So far I've used customization to put this into the appropriate section of
> my .emacs:
>
>  '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1) (nil
> :maxlevel . 1
>
> This doesn't work the way I expect.  I figured out that I can refile if I
> specify the heading "Tasks" and the filename.  But I cannot refile to any
> categories other than the ones in ~/todo.org.  And sometimes I get choices
> that I don't want where the heading starts with the same text as the
> category name.  BTW, I use unique category names across all files.

This is what I'm using:

#+begin_src emacs-lisp
;; any headline with level <= 2 is a target
(setq org-refile-targets '((nil :maxlevel . 2)
; all top-level headlines in the
; current buffer are used (first) as a
; refile target
   (org-agenda-files :maxlevel . 2)))

;; provide refile targets as paths, including the file name
;; (without directory) as level 1 of the path
(setq org-refile-use-outline-path 'file)

;; allow to create new nodes (must be confirmed by the user) as
;; refile targets
(setq org-refile-allow-creating-parent-nodes 'confirm)

;; refile only within the current buffer
(defun my/org-refile-within-current-buffer ()
  "Move the entry at point to another heading in the current buffer."
  (interactive)
  (let ((org-refile-targets '((nil :maxlevel . 5
(org-refile)))
#+end_src

In particular, the file notation allows me to easily refile to any Org file
(from the agenda ones):

Work.org/Appointments

or

Perso.org/Appointments

Does this answer your concern, or did I miss your point?

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Using C-n/C-n in Column View

2010-11-24 Thread Peter Jones
I've noticed that using C-n or C-p in column view jumps me around
between columns and sometimes outside of any column at all.  When using
the arrow keys point moves up and down rows, staying in the same column
as I'd expect.

I checked my bindings, and C-n is bound to:

,
| C-n runs the command next-line, which is an interactive compiled Lisp
| function in `simple.el'.
`

And the down arrow appears to be bound to some anonymous function:

,
|  runs the command #[nil "i^X\302\303!\210\304
| \203...@m\204^v^@\302\303!\210\202...@\305^h!\210 \306=\205\"^...@\307
| )\207" [col major-mode beginning-of-line 2 org-invisible-p2
| move-to-column org-agenda-mode org-agenda-do-context-action] 2 nil
| nil], which is an interactive compiled Lisp function.
`

I've grepped the source and I can't seem to find where this binding is
set.  I'd like to set it to C-n so it works as expected since I really
*hate* using the arrow keys.

Thanks.

-- 
Peter Jones - pmade inc.
303-219-0226 http://pmade.com


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


[Orgmode] Refile to a different Org file?

2010-11-24 Thread Raymond Zeitler
I'm trying to change the value of org-refile-targets to enable me to refile
to the other files that make up my agenda view.  Its value started out as
just nil, which worked exactly right for one file because I was able to
refile to all the *categories* in ~/todo.org, using tab completion, and it
didn't get confused by tags or heading names.

So far I've used customization to put this into the appropriate section of
my .emacs:

 '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1) (nil
:maxlevel . 1

This doesn't work the way I expect.  I figured out that I can refile if I
specify the heading "Tasks" and the filename.  But I cannot refile to any
categories other than the ones in ~/todo.org.  And sometimes I get choices
that I don't want where the heading starts with the same text as the
category name.  BTW, I use unique category names across all files using this
structure:

* Tasks
#+CATEGORY: DM_Tasks

My setup files (.emacs and .orgmode) are a modified version of John
Wiegley's tutorial setup (sans the above customization) and can be found on
the Emacs wiki at this link:

http://www.emacswiki.org/emacs/RaymondZeitler

Is it possible to get the original "nil" behavior while searching through
all agenda files?  Or should I just use unique Level 1 headings in each
file?  How do other folks use Org-mode with multiple files?

Hope this makes sense.

Thanks

--
Raymond Zeitler  


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


Re: [Orgmode] %20 in file://... URL

2010-11-24 Thread David Maus
At Tue, 23 Nov 2010 06:25:40 +0100,
Vincent Belaïche wrote:
> 
> >From:David Maus
> >Subject: Re: [Orgmode] %20 in file://... URL
> >Date:Mon, 22 Nov 2010 19:16:09 +0100
> >User-agent:  Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) 
> >FLIM/1.14.9 (GojÅ) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 
> >(HANACHIRUSATO)
> >
> >At Mon, 22 Nov 2010 16:46:44 +0100,
> >Vincent Belaïche wrote:
> >> I see, so I understand that you will someday modify a function creating
> >> links in order to implement character escaping. I can give a hand if
> >> tell me the function name.
> >
> >To be exact: Org already escapes some characters (C-h v
> >org-link-escape-chars RET) and the colon is a candidate for beeing on
> >the list.  
> 
> What does "already" exactly means ? 

It means that Org performs percent escaping in some cases but there
are currently three problems:

 1. The percent escaping/unescaping functions are not unicode aware;
 2. The percent escaping/unescaping functions require a user to
explicitly tell which characters should be escaped;
 3. There is no clear rule in place when to escape/unescape -- that is
the problem you'Ve hit.

The solution for the 3rd problem is not to modify `org-open-file' but
to implement the rule that says: 

 - If a link is written in an Org file, the everything after the
   scheme (type) is percent escaped.  IIRC this is already done for
   characters that would breake the parser (square brackets) but some
   chars are missing (the percent sign, obviously).
 - if a link is read from an Org file and passed to another function,
   the part after scheme is unescaped.

These two rule would cover the problem you face: Although the link is
not created by Org, it is unescaped before it is opened, so %3A would
expand to ":".

> 
> Ok, you mean that some version of org already does the job, but not the
> org that is on the official Git depo ?
> 

Yes, kind of.  It's a personal working copy of the offical repository
and when I am finished I either merge it into the offical one or ask
someone review the changes and "pull" my version into the offical
repo.  Think of it as the bleeding bleeding edge -- highly unstable,
not guaranteed to work at all.


> 
> The following is just comments on the code, most of it is a matter of
> taste, which you may well disagree with.
> 
> 1. In the org.el file in the link which you provided I found also these
>functions org-entry-protect-space & org-entry-restore-space which
>does also some escaping, why not use a unique function

Good point.

> 
> 2. In the function org-link-escape, there is a lambda expression  
> 
>(lambda (sequence)
>   (format "%%%.2X" sequence))
> 
>The argument name should be sequence-element rather than sequence.

Dto.  Changed it.

> 
> 3. In org-link-unescape, there are 3 substringing-or-concatenations, but
>you could make it simpler by a single replace-match and using a 
> start-position in the
>string-match. That would look like this (*not tested*):
> 
> (defun org-link-unescape (str)
>   "Unhex hexified unicode strings as returned from the JavaScript function
> encodeURIComponent. E.g. `%C3%B6' is the german Umlaut `ö'."
>   (setq str (or str ""))
>   (let ((case-fold-search t)
> (pos 0))
> (while (string-match "\\(%[0-9a-f][0-9a-f]\\)+" str pos)
>  (setq pos (+ pos (/ (- (match-end 0) (match-beginning 0))
>3))
>  str (replace-match 
>   (org-link-unescape-compound (upcase  (match-string 0 
> str); hex
>))
>   t t str
>   str))
> 
> My feeling that the kind of code above is slightly simpler in
> execution as there is only one string manipulation at each
> iteration instead of two, and also easier to maintain as is has
> fewer use cases (i.e. it does not really matter if the escaped
> sequence is at the end of string or not). You also avoid some
> intermediate variables like `replacement' as the use of
> replace-match make it self explanatory that the result of
> org-link-unescape-compound is a replacement.

Agreed, refactoring the unescape functions is on the list.

> 
> 3. in org-link-unescape-compound,  
> 
> (remove "" (split-string hex "%"))
> 
> 
>can be replaced by (cdr  (split-string hex "%")) because there is
>always only one empty string in the sequence and it is in the 1st
>place.

Agreed.

> 
> 4. in org-link-unescape-compound, you could have made fewer comparison
>by replacing code
> 
>(shift
> (if (= 0 eat) ;; new byte
> (if (>= val 252) 6
>   (if (>= val 248) 5
> (if (>= val 240) 4
>   (if (>= val 224) 3
> (if (>= val 192) 2 0)
>   6))
>(xor
> (if (= 0 eat) ;; new byte
> (if 

Re: [Orgmode] Re: [Babel] RESULT block when error

2010-11-24 Thread Eric Schulte
Hi Seb,

Sébastien Vauban  writes:

> Hi Eric,
>
> "Eric Schulte" wrote:
>> I've fixed this problem and applied the :wrap header argument patch to
>> the core Org-mode repository.
>
> Thanks a lot...
>
> You did not answer about making the wrap option by default. It's that a great
> feature, for HTML in particular (you'll see, in a couple of weeks, my
> proposition for a Worg3.css), that I find it useful for everybody, without
> doing any config. Is it due to LaTeX, or do you find another reason why not
> making it the default?  Just interested by your answer...
>

Sorry, I was rushed this morning.  I'm hesitant to turn this feature on
by default for two main reasons
1) I generally prefer to have the /simplest/ option be the default
   option, and in this case the simplest behavior is to have no wrapper
2) I'm not sure how a user would turn this feature off, once it has been
   turned on i.e. we don't yet (but I suppose we should) have a "nowrap"
   header argument

Also, as this is a header argument it can easily be configured on the
user, system, language, file, or individual block basis.  If at some
point the preponderance of Babel users have "wrap" set in their default
header arguments, or there appears to be wide support for such a change
from the mailing list then I would support adding it to the default, but
probably not until then.

Cheers -- Eric

>
> Best regards,
>   Seb

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


[Orgmode] [PATCH] org-agenda: convert category to string

2010-11-24 Thread Julien Danjou
* org-agenda.el (org-format-agenda-item): Convert category to a string
if it is a symbol. This fixes the following call to
org-agenda-get-category-icon which fails if category is not a string.

Signed-off-by: Julien Danjou 
---
 lisp/org-agenda.el |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index a248068..638629d 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5044,7 +5044,9 @@ Any match of REMOVE-RE will be removed from TXT."
   org-agenda-show-inherited-tags
   org-agenda-hide-tags-regexp))
 (let* ((category (or category
-org-category
+(if (stringp org-category)
+org-category
+  (symbol-name org-category))
 (if buffer-file-name
 (file-name-sans-extension
  (file-name-nondirectory buffer-file-name))
-- 
1.7.2.3


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


[Orgmode] Re: [Babel] RESULT block when error

2010-11-24 Thread Sébastien Vauban
Hi Eric,

"Eric Schulte" wrote:
> I've fixed this problem and applied the :wrap header argument patch to
> the core Org-mode repository.

Thanks a lot...

You did not answer about making the wrap option by default. It's that a great
feature, for HTML in particular (you'll see, in a couple of weeks, my
proposition for a Worg3.css), that I find it useful for everybody, without
doing any config. Is it due to LaTeX, or do you find another reason why not
making it the default?  Just interested by your answer...

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Latex under windows

2010-11-24 Thread Chao LU
Dear all,

I'm trying to publish org files containing latex fragments, or (Preview it).
My configuration used to be quite OK, but not working now, I'm not quite
sure what happened. But seems org could successfully generate the *.tex file
from the org file (in the %Temp%), but fail to generate the *.dvi, and so
the png could not be converted.

I double checked the Latex command, it is in the %PATH%, but the latex
command will trigger pdftex (I'm using MiKTeX portable 2.9), will that be
the cause of the failure?

Error message:
---
Saving file e:/Var/URoot/My Dropbox/org/org/Physics.org...
Wrote e:/Var/URoot/My Dropbox/org/org/Physics.org
FOLDED
Saving file e:/Var/URoot/My Dropbox/org/org/Physics.org...
Wrote e:/Var/URoot/My Dropbox/org/org/Physics.org
SUBTREE (NO CHILDREN)
Creating images for entry...1
Failed to create dvi file from a:/TEMP/orgtex1620UMh.tex
Creating images for entry...done.  Use `C-c C-c' to remove images.
Cannot find image file `e:/Var/URoot/My
Dropbox/org/org/ltxpng/Physics_f74dea7d59a672b862629c7b1f8d745672346a29.png'
[4 times]
---

Thanks a lot, and happy thanksgiving day!

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


[Orgmode] request for latex-to-org importer

2010-11-24 Thread Marvin Doyley
Does anybody have a latex-org- importer ?
I would like to use this as a collaborative tool when working with
colleagues and students who are versed in latex but not familiar with emacs
or org mode. Could prove to be very powerful when editing latex manuscripts
- just import into org edit (my preferred way of working with latex) and
export back to latex and send to co-authors.

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


Re: [Orgmode] [Babel] RESULT block when error

2010-11-24 Thread Eric Schulte
Hi Seb,

I've fixed this problem and applied the :wrap header argument patch to
the core Org-mode repository.

Thanks -- Eric

Sébastien Vauban  writes:

> Hi Eric,
>
> I guess, in case of error, that it'd be better to have the RESULT block on 2
> lines, with nothing in between.
>
> Currently:
>
> #+begin_src sh
> greppp
> #+end_src
>
> #+results:
> #+END_RESULT#+BEGIN_RESULT
>
> Best regards,
>   Seb

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


[Orgmode] Re: org-latex-to-pdf-process missing?

2010-11-24 Thread Jeff Horn
>> 1) I see stuff floating around the list from time to time about
>> "org-install", which I've never had to use, but I gather takes care of
>> some autoloads. Is this correct?
>
> Yes this is for autoloads.  I think this is provided for you if you use
> the version of org-mode that comes with Emacs.  If you want to use a
> newer org-mode from git then you should require org-install so you get
> the autoload definitions that go with that version of org-mode.

Will do.

>> 3) Shouldn't org-latex be loaded automatically?
>
> You're referencing a variable in org-latex.  It probably doesn't get
> defined until you have auto-loaded org-latex by using some function
> provided by that file.  If you want to use the variable before that I
> think you need to require the package to force loading it early.

I didn't realized that's how autoloads work. So they're "just in time"
loads? Designed to cut back on the initial load time?

>> 5) Aren't (require 'function)'s looked down upon in the user's
>> customization file?
>
> They are?  Not that I'm aware of.  I add require lines for anything I
> want to have setup before it's called the first time (not that I restart
> emacs all that often but it happens.)  I have requires for the following
> org packages in my .emacs
>
>  - (require 'org-install)
>  - (require 'org-protocol)
>  - (require 'org-crypt)
>  - (require 'org-id)
>  - (require 'org-latex)

That's helpful. Part of my confusion was that some of those packages,
like protocol, crypt, and id, are available through the customize
interface (my preferred method of dealing with org-mode setup), but
org-latex was not listed (nor org-install, but that seems reasonable
to me).

Thanks!
Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

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


Re: [Orgmode] In-buffer LaTeX too small (almost illegible)

2010-11-24 Thread Nicolas Goaziou
Hello,

> Barton  writes:

> The in-buffer LaTeX previews generated by org-preview-latex fragment
> are smaller than what can be called readable.

> Perhaps there is some change I can make to the default configuration
> to increase the size of the generated preview fragments?

You should have a look at `org-format-latex-options':

(setq org-format-latex-options 
  (plist-put org-format-latex-options :scale 1.3))
  
Regards,

-- Nicolas

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


[Orgmode] Bug: void-function time-to-seconds, gnus-git [7.01trans]

2010-11-24 Thread Uwe Brauer

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.


Hello this is bizarre problem. I use 6.36c with Xemacs21.4
and 7.01h with 21.5.18. However when I upgraded from nognus
0.11 to the latest gnus-git version, the org-export function
 does not work any more, I attach the error message.

I can "solve" the problem by adding 
(load-library "time-date.el")

But I presume this is not the right way to do things.

Uwe Brauer 

Debugger entered--Lisp error: (void-function time-to-seconds)
  time-to-seconds((19693 10334 26285))
  org-float-time()
  (defvar org-agenda-last-marker-time (org-float-time) 
("/home/oub/xemacs/site-lisp/packages/org-6.36c/lisp/org-agenda.elc" . 101447))
  load-internal("org-agenda" nil t nil binary)
  load("org-agenda" nil t nil)
  si:require(org-agenda nil)
  require(org-agenda)
  byte-code("..." [require org org-macs org-agenda org-exp-blocks org-src] 2)
  load-internal("org-exp" nil nil nil binary)
  load("org-exp" nil nil nil)
  apply(load ("org-exp" nil nil nil))
  dired-handler-fn(load "org-exp" nil nil nil)
  load("org-exp" nil nil nil)


Emacs  : XEmacs 21.5  (beta29) "garbanzo" [Lucid] (i686-pc-linux, Mule) of Tue 
Nov  2 2010 on gilgamesch.quim.ucm.es
Package: Org-mode version 7.01trans

current state:
==
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-after-include-files-hook '(org-export-blocks-preprocess)
 outline-mode-hook '(hide-body)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-include-diary t
 outline-minor-mode-hook '((lambda nil
(local-set-key [(shift 
return)] (quote hide-body)))
   )
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(# # org-babel-result-hide-spec 
org-babel-hide-all-hashes
 my-org-keys turn-on-flyspell iso-accents-mode
 turn-on-auto-capitalize-mode)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src 
org-babel-exp-inline-src-blocks))
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-table-default-size "3x3"
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
 (comment 
org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa 
nil)
 (dot org-export-blocks-format-dot nil))
 org-occur-hook '(org-first-headline-recenter)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   
org-beamer-auto-fragile-frames
   
org-beamer-place-default-actions-for-lists)
 outline-regexp ";;; \\|("
 outline-heading-end-regexp "[\n]"
 )
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Mobile Setting and file encoding

2010-11-24 Thread Chao LU
Hi Joost,

Thanks a lot, this helps, after I convert all the org files I have, then try
Mobile org again, all the files could be decoded in MobileOrg now.

Best,

Chao

On Tue, Nov 23, 2010 at 2:33 PM, Joost Helberg  wrote:

> Chao,
>
> whenever mobileorg fails loading the file and converting it into an
> UTF8 string, the error message about encoding is presented.
>
> The cause of your problem can be many things:
>  - the file is incorrectly recognised as encrypted
>  - the file is incorrectly recognised as not-encrypted
>  - the encoding is not utf-8 and there are offending bytes
>  - the parsing of the index file fails somehow
>
> To make sure utf-8 is all you do, evaluate (in .emacs e.g.):
>
> (prefer-coding-system   'utf-8)
> (set-default-coding-systems 'utf-8)
> (set-terminal-coding-system 'utf-8)
> (set-keyboard-coding-system 'utf-8)
> (setq default-buffer-file-coding-system 'utf-8)
>
> Furthermore, make sure you try everything not encrypted.
>
> Also, this helped with me, don't run the latest git org-mode against
> production release mobileorg. Somehow my mobileorg on iphone failed on
> the first lines of the index file. mobileorg on Android didn't fail
> however.
>
> Good luck!
>
> Joost Helberg
>
> > "Chao" == Chao LU  writes:
>  > Subject: [Orgmode] Org Mobile Setting and file encoding
>  > From: Chao LU 
>  > To: emacs-orgmode@gnu.org
>  > Date: Tue, 23 Nov 2010 12:54:49 -0500
>
>  > Dear list,
>
>  > I'm trying to set up Mobile Org, but there's some problem,
>
>  > All my org files are placed in in ~/My Dropbox/org/org, as following:
>  > -
>  > (defvar org-dir (concat Dropbox "/org") "org dir")
>  > (defvar org-source-dir (concat Dropbox "/org/org")  "org source dir")
>  > (defvar pub-html-dir (concat Dropbox "/org/public_html") "html dir")
>  > (defvar org-mobile-dir (concat Dropbox "/MobileOrg") "org mobile dir")
>
>  > Then I set Mobile Org like this:
>  > (setq org-mobile-directory org-source-dir)
>  > (setq org-mobile-force-id-on-agenda-items nil)
>  > (setq org-mobile-inbox-for-pull (concat org-source-dir "/mobile.org"))
>
>  > After org-mobile-push command, the agenda is generated, but in Mobile
> Org,
>  > it could not be opened,
>  > and the error message is bad file encoding, unable to detect file
> encoding,
>  > please re-save this file using UTF-8.
>
>  > So how could I figure out what the file encoding of my org files, and if
>  > not, how to convert them (there's quite a bit) to UTF-8,
>  > and in the future how to save the files automatically to UTF-8 with the
>  > Chinese support?
>
>  > The coding system is really confusing, thanks a lot!!
>
>  > Chao
>
> --
> Snow B.V.http://snow.nl
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Babel] Error output buffer

2010-11-24 Thread Dan Davison


Sébastien Vauban 
writes:

> Hi,
>
> A quick wished feature, if you agree on its usefulness.
>
> Currently, all error messages are concatenated to the same buffer, execution
> after execution, which makes it *difficult to distinguish between the new
> errors*, and the ones already seen previously.

Hi Seb,

I agree, that had been bothering me too. I had fixed it a week or so ago
in my local set up, and I've just pushed that to master. It wipes the
error buffer clean at the start of execution (on C-c C-c, and during
export).

Dan

>
> Different propositions:
>
> - delete the contents of the buffer before every code execution
>
> - add something visible after every execution, like a separator line or a ^L
>   character (new page, than can easily be displayed as a rule)
>
> - always show the last lines in a different color
>
> - in the same spirit, use two alternate colors for the messages (like in some
>   HTML tables, for odd/even rows)
>
> - add a timestamp with the date, before every code execution.
>
> This is not exhaustive, just some (funny for some of them) ideas I have in
> mind in order to make the messages more visible than they currently are.
>
> Thanks.
>
> Best regards,
>   Seb


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


[Orgmode] In-buffer LaTeX too small (almost illegible)

2010-11-24 Thread Barton
Greetings mailing list,

I use orgmode for my LaTeX math notetaking (and every other aspect of
my life as well).

The problem at hand may not be particularly germane to org-mode, so
please forgive me if this ends up being some silly quirk of my
configuration.

I'm using Arch Linux/TexLive 2010/latest org-mode. My window manager
is Xmonad, I don't run any Gtk+ settings daemons. The in-buffer LaTeX
previews generated by org-preview-latex fragment are smaller than what
can be called readable.

Perhaps there is some change I can make to the default configuration
to increase the size of the generated preview fragments?

Thank you for reading this,
Barton

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


[Orgmode] Better ways to address fields in tables

2010-11-24 Thread Torsten Wagner
Hi,
I was wondering whether it might be possible to address table fields, which 
float due to adding and deletion of rows, more easily and thought about two 
possible ways.
The way I know (are there more ways?)

| | A | B|
|-+---+---|
| | a | 1 |
| | b | 1 |
|-+---+---|
| | s | 2 |
|^|   | f |
|-+---+---|
many many more rows

To calculate the sum s of all rows between a and b even if there will be more 
or less any time later I, use
f = vsum(@i...@ii-1)

Rather verbose for a simple sum.
Might it be possible to adress the target fields relativ to horizonal lines?
@II = vsum(@i...@ii-1)
This would make it independend of the number of rows in the block and there 
would be no need to assign a name to the field.

On the other hand, I often use a description beside the actual field like the 
"s" in the above example and in reality it might be something like "sum of all 
foo". Now I have to assign a name for the variable (above simply "f") or e.g., 
sum_foo. I am ending up having two descriptions for the same field, a human 
readable and an arithmetical.
Marking the first one (the one contains "s") in a special way could indicate to 
use it as a variablename for another field.

| A | B|
|---+---|
| a | 1 |
| b | 1 |
|---+---|
| s\> | 2 |
 
Whereas \> indicates: Use this string as the variable name for the field to the 
right. Similar, there could be \< \^ \v to assign the string to the field to 
the left, above or below. This method would be redundant to the original method 
for fields above and below but less verbose. Kind of shortcut.

Greetings
Torsten
 

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


Re: [Orgmode] Re: repo.or.cz down

2010-11-24 Thread Bastien
Hi Giovanni,

Giovanni Ridolfi  writes:

> http://orgmode.org is up
>
> but the web interface of the git repo:
>
> http://repo.or.cz/w/org-mode.git
>
> is down :-(

Yes, I guess they are fixing it right now.

> Unfortunately I do not have "whois" so I can't say
> if orgmode.org has the same IP of the git repo.

No they are not -- orgmode.org is a separate server.

Best,

-- 
 Bastien

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


[Orgmode] Re: repo.or.cz down

2010-11-24 Thread Seweryn Kokot
Giovanni Ridolfi  yahoo.it> writes:

> 
> Seweryn Kokot  gmail.com> writes:
> 
> >>The http://repo.or.cz seems to be down 
> > it's up again.
> http://orgmode.org is up
> 
> but the web interface of the git repo:
> 
> http://repo.or.cz/w/org-mode.git
> 
> is down 
> 
> Unfortunately I do not have "whois" so I can't say
> if orgmode.org has the same IP of the git repo.

It seems that the server http://repo.or.cz/w/org-mode.git was up just for a 
moment since I managed to pull the latest org-mode version, now it's down 
again.

Regards,
Seweryn






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


Re: [Orgmode] Re: repo.or.cz down

2010-11-24 Thread Giovanni Ridolfi
Seweryn Kokot  writes:

>>The http://repo.or.cz seems to be down 
> it's up again.
http://orgmode.org is up

but the web interface of the git repo:

http://repo.or.cz/w/org-mode.git

is down :-(

Unfortunately I do not have "whois" so I can't say
if orgmode.org has the same IP of the git repo.

cheers,
Giovanni

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


[Orgmode] [Babel] RESULT block when error

2010-11-24 Thread Sébastien Vauban
Hi Eric,

I guess, in case of error, that it'd be better to have the RESULT block on 2
lines, with nothing in between.

Currently:

#+begin_src sh
greppp
#+end_src

#+results:
#+END_RESULT#+BEGIN_RESULT

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: repo.or.cz down

2010-11-24 Thread Seweryn Kokot
it's up again.

Cheers



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


[Orgmode] Literal Blocks in Org-mode

2010-11-24 Thread Carsten Dominik

Hi Sacha,

I hear you had a problem with Org not publishing Literal code blocks  
correctly in a blog post?


http://sachachua.com/blog/2010/11/emacs-recording-ledger-entries-with-org-capture-templates/#comments

If you care to describe the circumstances on emacs-orgmode@gnu.org (or  
directly to me), I am sure we can find what went wrong and fix it


Best wishes

- Carsten

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


Re: [Orgmode] Re: [Babel] Need for an extra literal block construct

2010-11-24 Thread Nicolas Goaziou
Hello,
> Sébastien Vauban writes:

> I meant, for me, there are only 2 useful options regarding a "block
> environment" such as BLOCKQUOTE and VERSE:

> - either, nothing is "interpreted"; that is, line breaks are
> preserved, and lists are preserved as well (outputted as they are
> written in the block)

This is EXAMPLE environment and, in a less drastic way, VERSE
(patched).

> - either, line breaks are not preserved, and lists are nicely
> formatted as lists, with nice bullets in HTML/PDF (customized in CSS
> or class file).

This is QUOTE environment, almost. Lists are correctly exported, but
not recognized in the Org buffer.

> For me, as of now, I do not see a useful use case, where one would
> want to have line breaks preserved (as written in the source block)
> *but* lists interpreted (ie, not as written in the source block).

I agree. So, if the patch for VERSE is good, what's left is to let Org
recognize lists in some predefined environments (namely CENTER and
QUOTE).

Regards,

-- Nicolas

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


Re: [Orgmode] Re: HTML export and blogging to blogger.com

2010-11-24 Thread Eric S Fraga
Samuel Wales  writes:

> On 2010-11-17, Eric S Fraga  wrote:
>> I apologise for jumping into the middle of a conversation but your
>
> It's an open conversation.  Jump away.  :)

Thanks!

>> reference to longlines-mode brings to mind visual-line-mode which was
>> introduced in Emacs 23 (I believe).  This mode turns on =word-wrap= as
>> well which makes the text look like it has been filled (i.e. soft
>> returns in your parlance) without actually changing the underlying
>> text.
>
> This is tempting, but (1) I am stuck with 22 for now and (2) I am not
> yet comfortable with the idea.  I'm not sure it will work with git,
> magit, diff-mode, ediff, etc. the way I want it to.

I completely understand (1) so that is enough reason to not consider
visual-line-mode.  I used to have the same constraint when using one of
my handheld units...

However, I don't really understand what you are saying in point (2).
What is "it" in "not sure _it_ will work"?  If you are referring to
visual-line-mode, it only affects the display on the screen (for text
buffers) and has absolutely no impact on version control or any tool
that works with the underlying file.

cheers,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.124.g6e3f)

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


[Orgmode] [Babel] Patch for "Evaluation aborted"

2010-11-24 Thread Sébastien Vauban
Hi Eric and Dan,

I was puzzled this morning by a message "evalution aborted" without any extra
info. "Aborted" made me think there was an error, so I toggle debug-on-error,
but it did not give me any more insight on the problem.

After searching for the message in the code base, I found it in =ob.el= and
understood it was when eval was disabled (set to =no= or =never=).

In this case, I would ask for a clearer message:

--8<---cut here---start->8---
diff --git a/lisp/ob.el b/lisp/ob.el
index 584d627..5bb0d5c 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -219,7 +219,7 @@ of potentially harmful code."
 (not (yes-or-no-p
   (format "Evaluate this%scode on your system? "
   (if info (format " %s " (nth 0 info)) " "))
-   (prog1 nil (message "evaluation aborted"))
+   (prog1 nil (message "Evaluation disabled by user (option)."))
   t)))
 
 ;;;###autoload
--8<---cut here---end--->8---

Feel free to change it to something better, but, in any case, I'd prefer
"disabled" over "aborted". At least in my mind, "disabled" is not related to
"error", while "aborted" is (in my mind, or in my Frenglish).

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] repo.or.cz down

2010-11-24 Thread Bastien
Hi all,

The http://repo.or.cz seems to be down at the moment.  

Don't waste your time by trying to pull from git right now...  

I'll post an update when the server is up again.  Anyone faster
than me is welcome to do so as well!

Cheers,

-- 
 Bastien

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


[Orgmode] Re: Automatic global tag list?

2010-11-24 Thread Sébastien Vauban
Hi Matt,

Matt Lundin wrote:
> Have you tried the following setting?
>
> (setq org-complete-tags-always-offer-all-agenda-tags t)
>
>> BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's
>> not documented there?
>
> C-h f org-global-tags-completion-table.

C-h v org-complete-tags-always-offer-all-agenda-tags says:

,
| org-complete-tags-always-offer-all-agenda-tags is a variable defined in 
`org.el'.
| Its value is nil
| 
| Documentation:
| If non-nil, always offer completion for all tags of all agenda files.
| Instead of customizing this variable directly, you might want to
| set it locally for remember buffers, because there no list of
| tags in that file can be created dynamically (there are none).
| 
|   (add-hook 'org-remember-mode-hook
| (lambda ()
|   (set (make-local-variable
| 'org-complete-tags-always-offer-all-agenda-tags)
|t)))
| 
| You can customize this variable.
| 
| [back]
`

(didn't know about that var)

You see that one should sed 's/remember/capture/g'.

--8<---cut here---start->8---
--- INDEX:/lisp/org.el
+++ WORKDIR:/lisp/org.el
@@ -2732,10 +2732,10 @@ To disable these tags on a per-file basis, insert 
anywhere in the file:
 (defcustom org-complete-tags-always-offer-all-agenda-tags nil
   "If non-nil, always offer completion for all tags of all agenda files.
 Instead of customizing this variable directly, you might want to
-set it locally for remember buffers, because there no list of
+set it locally for capture buffers, because there no list of
 tags in that file can be created dynamically (there are none).
 
-  (add-hook 'org-remember-mode-hook
+  (add-hook 'org-capture-mode-hook
 (lambda ()
   (set (make-local-variable
 'org-complete-tags-always-offer-all-agenda-tags)
--8<---cut here---end--->8---

It seems there are a lot more references to remember, but I'm not sure which
can be safely removed.

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] Selective export of table columns

2010-11-24 Thread Suvayu Ali

Hi Carsten,

On Tuesday 23 November 2010 11:47 PM, Carsten Dominik wrote:

But I have a related but probably slightly off-topic question. I tried
setting the label of a radio table in a tex source file. This breaks
the conversion. Is this supported?



You mean the receiver location is in a TeX file?

In this case you should also put the sender table into the TeX file,
between \begin{comment}...\end{comment}, and turn on the minor
orgtbl-mode in that TEX file to edit the table.



Yes I did exactly that. And the regular table conversion works just 
fine. I was asking whether it is possible to specify the label for the 
table using this method, as the "#+LABEL: tbl:somename" directive does 
for regular latex export of org files.


My issue is if I set the label by putting a "\label{tbl:somename}" by 
hand after the conversion, it goes away the next time I refresh the orgtbl.


I have attached an example showing the two occasions.


- Carsten


--
Suvayu

Open source is the future. It sets us free.


radio_tables.tex
Description: TeX document
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Highlight special string

2010-11-24 Thread Karl Maihofer

Hi,

I don't know if this is an Org- or Emacs-Question. For highlighting  
special strings in AucTeX I used a variable  
"font-latex-user-keyword-classes" so I thought there may be an  
org-specific variable to achieve what I want in orgmode.


I'd like to highlight the strings "(ok)" and "(fail)" in my  
Org-document. Ok should get a green background, fail a red one. I  
think highlighting in emacs should last, but it would be great to have  
these strings highlighted in HTML-export, too, if this is no problem.


Could anybody give me a hint how to define highlighting for special  
strings in orgmode?


Thanks a lot!
Karl






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