Re: [Orgmode] Bold text beginning line produces empty PDF

2010-02-12 Thread Carsten Dominik


On Feb 11, 2010, at 11:23 AM, Eric S Fraga wrote:


On Thu, 11 Feb 2010 01:54:11 -0500, Raffi R  wrote:


If I begin a line with bolded text, like so:

*Case 1:*

it produces the following LaTeX:

\textbf{Case 1:\}

Exporting with C-c C-e d produces an empty LaTeX document.

Is this reproducible? Is it a bug?


It works fine with me so long as I have something before this line,
even just the template generated by C-x C-e t.  (see attached file)

However, in testing this out, I have run into two little problems:

1. if I simply visit a buffer (not a file), say x.org, and try
 exporting to Latex in a temporary buffer (C-c C-e L), I get the
 following error:


I believe I have successfully lifted this restriction now.



,
| Debugger entered--Lisp error: (wrong-type-argument stringp nil)
|   file-name-nondirectory(nil)
|   org-export-as-latex(nil nil nil "*Org LaTeX Export*")
|   org-export-as-latex-to-buffer(nil)
|   call-interactively(org-export-as-latex-to-buffer)
|   org-export(nil)
|   call-interactively(org-export nil nil)
`

2. if I subsequently save the buffer into a file (C-x C-w x.org), for
 some reason I get prompted for a file name when trying C-c C-e L.


At lease with the latest version I cannot reproduce this.
Can you please check again after pulling?

Thanks.

- 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] Bold text beginning line produces empty PDF

2010-02-12 Thread Carsten Dominik


On Feb 11, 2010, at 7:54 AM, Raffi R wrote:


If I begin a line with bolded text, like so:

*Case 1:*

it produces the following LaTeX:

\textbf{Case 1:\}

Exporting with C-c C-e d produces an empty LaTeX document.

Is this reproducible? Is it a bug?


I am not able to reproduce it.  WOrks just fine for me.  Can you  
please make
a complete example file and attach the produced tex file as well?  And  
maybe

you settings as listed bu org-submit-bug-report?

Are you using the latest version of Org-mode?  Git release?

Thanks

- Carsten



Thank you,
- Raffi.


___
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] Bold text beginning line produces empty PDF

2010-02-12 Thread Eric S Fraga
On Fri, 12 Feb 2010 09:19:31 +0100, Carsten Dominik  
wrote:
> 
> 
> On Feb 11, 2010, at 11:23 AM, Eric S Fraga wrote:
> 
> > On Thu, 11 Feb 2010 01:54:11 -0500, Raffi R  wrote:
> >>
> >> If I begin a line with bolded text, like so:
> >>
> >> *Case 1:*
> >>
> >> it produces the following LaTeX:
> >>
> >> \textbf{Case 1:\}
> >>
> >> Exporting with C-c C-e d produces an empty LaTeX document.
> >>
> >> Is this reproducible? Is it a bug?
> >
> > It works fine with me so long as I have something before this line,
> > even just the template generated by C-x C-e t.  (see attached file)
> >
> > However, in testing this out, I have run into two little problems:
> >
> > 1. if I simply visit a buffer (not a file), say x.org, and try
> >  exporting to Latex in a temporary buffer (C-c C-e L), I get the
> >  following error:
> 
> I believe I have successfully lifted this restriction now.
> 
> >
> > ,
> > | Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> > |   file-name-nondirectory(nil)
> > |   org-export-as-latex(nil nil nil "*Org LaTeX Export*")
> > |   org-export-as-latex-to-buffer(nil)
> > |   call-interactively(org-export-as-latex-to-buffer)
> > |   org-export(nil)
> > |   call-interactively(org-export nil nil)
> > `
> >
> > 2. if I subsequently save the buffer into a file (C-x C-w x.org), for
> >  some reason I get prompted for a file name when trying C-c C-e L.
> 
> At lease with the latest version I cannot reproduce this.
> Can you please check again after pulling?
> 
> Thanks.
> 
> - Carsten
> 

Carsten,

it all works very well indeed.  Exporting to a temporary latex buffer
works in both of these cases:

1. visiting a new buffer, no file attached;

2. after saving the buffer to a file (write-file).

Further, the OP's original problem is definitely not there.

Thanks,
eric


___
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-style outline

2010-02-12 Thread David Maus
Hi Chao,

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

I don't think so.

First, on Major Modes:

If you edit a particular sort of text (.el - elisp source code or .org
- orgmode text files) Emacs uses a so called /Major Mode/ that "tells"
Emacs about the common structure of these kind of files and contains
helpful functions to edit such a file. You may think of the Major
Modes as a collection of functions that define the /structure/ of a
particular kind of files (elisp source, c++ source etc.) and the
/meaning/ of the structures.

The assumption thereby is, that if you edit a file you are editing a
special kind or class of a text file -- and that all classes of
text files are distinct from each other. So an Orgmode file and an
elisp source file are both text files but of distinct classes -- that
is: of distinct structure with distinct meaning.

Quoting from the section on Major Modes in the Emacs manual[1]

,
| Emacs provides many alternative major modes, each of which customizes
| Emacs for editing text of a particular sort. The major modes are
| mutually exclusive, and each buffer has one major mode at any time.
`

Having Orgmode's outline functions in all classes of files may seem as
a good idea on the first glance but is nothing one could implement
/without limiting the functionality of Emacs itself/. Why? Because
enabling Orgmode's outline functions for all classes of texts is equal
to making Orgmode the superclass of all classes. And this in turn
means that every (!) subclass has to take structure and meaning of
Orgmode's outline into account, that is: MUST define functions that
handle outline functionality -- whether it is useful for this
particular subclass or not.

In contrast the power of Emacsen lies in having raw text files and
hence the /simplest/ form of text files as superclass providing only
functions for the "basic stuff" (e.g. character encoding). This gives
us the freedom to work on files as we like and need. The only thing a
developer of a new Major Mode has to deal with is the smallest
possible set of functions, necessary to deal with text files.

So even if it is technically possible to make Orgmode's outline
functions available in all other modes it would require either to take
in account all ways text files are or could be handled in past,
present and future (impossible) or to impose harsh limitations (read:
break) all existing modes because we would (re)define structure and
meaning for all these modes.

Second, Orgmode as superclass:

On the other hand in certain circumstances it would be extremely useful
to enable Orgmode's features for, say, programming or maintaining a
configuration file. And thanks to the aforementioned freedom Emacsen
give, it is possible to personally use Orgmode as kind of a superclass
for /your/ files.

There is this incredible piece of software called: Org-babel[2]:

,
| Org-babel extends the very excellent Org-mode with the ability to
| execute source code within Org-mode documents. Org-mode is an Emacs
| major mode for doing almost anything with plain text. If you are not
| familiar with Org-mode please take a moment to read the Org-mode
| homepage before continuing.
`

And the introduction[3] deals with your wish, maintaining source code
with the help of Orgmode, especially "embedding your Emacs
initialization into Org-mode files".[4]


Third:

> Besides, is there any active mailing list of common Emacs questions?

There is: help-gnu-em...@gnu.org[5]

HTH
 -- David

[1] http://www.gnu.org/software/emacs/manual/html_node/emacs/Major-Modes.html

[2] http://orgmode.org/worg/org-contrib/babel/index.php

[3] http://orgmode.org/worg/org-contrib/babel/intro.php

[4] Of course using Orgmode/Org-babel to facilitate your coding means
accepting the limitations Orgmode/Org-babel -- as this is a different
topic this is just a hint.

[5] http://www.gnu.org/software/emacs/#HelpMailing
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


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


Re: [Orgmode] Org-style outline

2010-02-12 Thread Giovanni Ridolfi
David Maus  writes:

> Hi Chao,
>
> At Fri, 12 Feb 2010 00:38:42 -0500,
> Chao Lu wrote:
>>
>> Dear all,
>>
>> I'm writing to see if there's anyway to use org-like outline in ALL
>> kinds of files, like my emacs configuration file, whose suffix is
>> .el. Could I tell Emacs
>>
>> ;;; headline 1
>> ;; headline 2
>>
>> And it begin to have the ability to display my el file just as Org
>> does?
>>
>
> I don't think so.

Sorry for my previous email. I still think so:

please have a look at: 
http://www.emacswiki.org/emacs/OrgMode   Specific Tasks

  Org Mode can be easily configured to help edit Wikipedia articles 
  by changing outline-regexp in the mode hook:

  (add-hook 'org-mode-hook '(lambda () (setq outline-regexp "=+")))

  If you use WThreeM, add the following instead:

  (setq w3m-form-textarea-edit-mode 'org-mode)
  (add-hook 'w3m-form-input-textarea-mode-hook
  '(lambda nil
   (setq outline-regexp "=+")))


and a look at 
  http://www.emacswiki.org/emacs/OutlineMode   Customizing Heading Definition

may give some suggestions.

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


Re: [Orgmode] Org-style outline

2010-02-12 Thread Giovanni Ridolfi
David Maus  writes:

> At Fri, 12 Feb 2010 00:38:42 -0500,
> Chao Lu wrote:
>>
>> I'm writing to see if there's anyway to use org-like outline in ALL
>> kinds of files, like my emacs configuration file, whose suffix is
>> .el. Could I tell Emacs
>>
>> ;;; headline 1
>> ;; headline 2
>>
>> And it begin to have the ability to display my el file just as Org
>> does?
>
> I don't think so.

I think so, is a FAQ: 

http://orgmode.org/faq.html#sec-1.2


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


Re: [Orgmode] Minor nit - LaTeX header contents and footnotes

2010-02-12 Thread Ruud Brekelmans
I still find similar behavior when exporting to LaTeX with:

#+BEGIN_LaTeX
\newcommand{\norm}[1]{\lVert#1\rVert}
#+END_LaTeX


Best regards,
Ruud


On 21 August 2009 06:52, Carsten Dominik  wrote:

> Fixed, thanks.
>
> - Carsten
>
>
> On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:
>
>  I define a LaTeX macro at the top of my document, like so:
>>
>> ,
>> | ...
>> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
>> | #+LATEX_HEADER:   #1\ignorespaces
>> | #+LATEX_HEADER: }
>> | ...
>> `
>>
>> and export - I get the following inserted:
>>
>> ,
>> | ...
>> | \begin{document}
>> |
>> |
>> |
>> |
>> |
>> | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
>> | ...
>> `
>>
>> Obviously, the macro argument spec is mistaken for a footnote.
>>
>> Work-around: add a space like so:
>>
>> #+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}%
>>
>> HTH,
>> Nick
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Bug] Slightly wrong org-tag fontification in agenda

2010-02-12 Thread Tassilo Horn
Hi all,

it seems that org fontifies everything in the agenda following the
heading using the org-tag face.  Basically, that's ok *unless* you don't
use a special background color for tags.  Then it looks wrong.

Here's a screenshot showing the fontification.
<>
I'm using a current git version (Org-mode version 6.34trans
(release_6.34c.67.g25f76f)).

I had a quick look at the code, and it seems the problem is in
`org-agenda-align-tags'.

BTW: Is it really a good decision to propertize the text algorithmically
in the functions building the agenda?  I'm not sure, but it might be
easier to define some `org-agenda-font-lock-keywords' like it's done for
org files, too.

Bye,
Tassilo
___
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: icalendar export incomplete

2010-02-12 Thread Richard Lewis
At Thu, 1 Oct 2009 13:52:39 +0200,
Carsten Dominik wrote:
> 
> On Oct 1, 2009, at 11:14 AM, Richard Lewis wrote:
> 
> > At Wed, 30 Sep 2009 11:43:05 +0100,
> > Richard Lewis wrote:
> >>
> >> Hi there,
> >>
> >> I've been trying to get org-mode to export all my TODOs and diary  
> >> file
> >> entries to a single iCalendar file (which I then intend to import to
> >> my phone).
> >>
> >> However, when I run the command
> >> org-export-icalendar-combine-agenda-files it only exports a selection
> >> of TODOs and events to the output file. They come from the various
> >> .org files, but do not include all the TODOs and events from those
> >> files. They seem to the ones wit the earliest time stamps.
> >>
> >> I also notice that it's only added ID PROPERTIES to headlines marked
> >> as DONE (or any of the DONE-like SEQ_TODO options I have).
> >>
> >> (I have the following SEQ_TODO setup:
> >>
> >> #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) APPT(a) | DONE(d)  
> >> CANCELLED(c) DEFERRED(f)
> >> )
> >>
> >> Though many of the DONE (etc.) headlines which have been assigned IDs
> >> do not appear in the icalendar export.
> >>
> >> Also, it seems to export the TODO items as VEVENTs rather than  
> >> VTODOs.
> >>
> >> I also tried org-export-icalendar-all-agenda-files and each  
> >> individual
> >> file contained exaclt the same selection of TODOs and events that
> >> appeared in the combined file.
> >>
> >> Any ideas how to get all my TODOs and events into an ics file?
> >>
> > I should also add that I'm using org-mode from the git repository
> > fetched yesterday.
> >
> > I've also checked that it's always exactly the same selection of
> > headlines that get exported.
> >
> > Ultimately what I'd really like to be able to do is export "from" the
> > Agenda day/week view and just get a day (or week's) worth of events
> > and TODOs at a time.
> 
> Hi Richard,
> 
> please take a look at the following variables:
> 
> org-icalendar-include-todo
> org-icalendar-use-deadline
> org-icalendar-use-scheduled
> org-icalendar-store-UID
> 
> The dosctrings of these variables should explain the behavior you are  
> seeing,
> and show ways how to change the behavior.
> 
Thanks for your pointers (and sorry for not acknowledging them
earlier.)

I still haven't quite satisfactorially solved this problem. My current
method is to use (org-write-agenda) and specify a .ics file. However,
this doesn't seem to include entries from my ~/diary file (which *are*
included in my agenda view). I have org-agenda-include-diary set to T
but "~/diary" is not in my org-agenda-files. (Which I just tested and
it seems [quite reasonably] that only org mode files can go in this
list.)

Is it possible for org-write-agenda to include ~/diary information?
-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard Lewis
ISMS, Computing
Goldsmiths, University of London
Tel: +44 (0)20 7078 5134
Skype: richardjlewis
JID: ironchic...@jabber.earth.li
http://www.richard-lewis.me.uk/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+--+
| Support open access to scholarship   |
| http://freeculture.org/ http://www.doaj.org/ |
+--+


___
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] orgmode Cell indentation

2010-02-12 Thread Brecht

Hi,

I'm currently using emacs to note down my progress on programming languages.
Since I'm learning several at the same time now I keep differences 
between syntax in a table

with Java / Scheme / C++ / SuperCollider / Ruby / Python as columns and
for example If / for / while / etc.. as rows.

My problem is I can't have any indentation in a table cell (at least it 
seems like that).

I can't even put spaces myself since a table update deletes them.
Does someone have an idea to solve this in my particular case?

Thanks,
Brecht

bdero...@infogroep.be


___
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-clock] default clock for non-org-mode buffers

2010-02-12 Thread Bernt Hansen
Austin Frank  writes:

> Hello--
>
> Sometimes I want to clock in but I'm not in an org-mode buffer.  Would
> it be possible to either provide a function or hook that uses the
> current buffer to add a selection to the destinations provided by
> `org-clock-select-task'?
>
> I can see two possible functions I would add to an
> `org-clock-prepare-selections-hook'.  First, a version with remember
> that would create a new task to clock into based on the current buffer
>
> #v+
> (defun au-clock-in-to-new-task ()
>   (if (fboundp org-remember)
> ;; use one of my remember templates that creates a TODO entry under
> ;; the heading "uncategorized tasks".  it includes a link to the
> ;; current buffer
> (org-remember nil (kbd "t")))
>   ;;
>   ;; then either clock in to the task right away,
>   ;; or add the new task to the selection buffer somehow
>   ;; ...
> )
> #v-
>
> And second, a version that lets you browse to an existing task.
>
> #v+
> ;; I think this one doesn't work as written, but only because I don't
> ;; know what I am doing
> (defun au-clock-in-go-to-task ()
>   ;; use the org-refile interface to go to an existing task
>   (org-refile t)
>   ;;
>   ;; then do something with link to buffer we clocked in on
>   ;; ...
> )
> #v-
>
> Does a hook or some other way of introducing this functionality already
> exist?  If not, would other people use it?

I have a couple of tasks I clock in regularly from anywhere using f9-o
and f9-m (for organization and mail).  These clock in the task based on
ID.

All of my remember buffers start the clock using the remember hooks.  I
  - start remember
  - clock in via hook
  - enter stuff
  - C-c C-c
  - clock out via hook

This remember task is now in the list.  I have F11 bound to functions to
make clocking in and visiting clocked items easy.

HTH,
Bernt

--
(add-hook 'remember-mode-hook 'org-clock-in 'append)
(add-hook 'org-remember-before-finalize-hook 'bh/clock-in-interrupted-task)

(defun bh/clock-in-interrupted-task ()
  "Clock in the interrupted task if there is one"
  (interactive)
  (if (and (not org-clock-resolving-clocks-due-to-idleness)
   (marker-buffer org-clock-marker)
   (marker-buffer org-clock-interrupted-task))
  (org-with-point-at org-clock-interrupted-task
(org-clock-in nil))
(org-clock-out)))

(global-set-key (kbd "") 'org-clock-goto)
(global-set-key (kbd "C-") 'org-clock-in)

(global-set-key (kbd " m") 'bh/clock-in-read-mail-and-news-task)
(global-set-key (kbd " o") 'bh/clock-in-organization-task)
(global-set-key (kbd " O") 'org-clock-out)

(defun bh/clock-in-task-by-id (id)
  "Clock in a task by id"
  (require 'org-id)
  (save-restriction
(widen)
(org-with-point-at (org-id-find id 'marker)
  (org-clock-in nil

(defun bh/clock-in-organization-task ()
  (interactive)
  (bh/clock-in-task-by-id "437c2cde-fbf0-491f-92ba-51bae487b338"))

(defun bh/clock-in-read-mail-and-news-task ()
  (interactive)
  (bh/clock-in-task-by-id "85c2e69b-6f37-4236-8896-4f7dd86047c1"))

--


___
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-style outline

2010-02-12 Thread Thomas S. Dye


On Feb 11, 2010, at 7:38 PM, Chao Lu wrote:


Dear all,

I'm writing to see if there's anyway to use org-like outline in ALL  
kinds of files, like my emacs configuration file, whose suffix  
is .el. Could I tell Emacs


;;; headline 1
;; headline 2

And it begin to have the ability to display my el file just as Org  
does?


Besides, is there any active mailing list of common Emacs questions?

Any suggestion is welcomed, thanks!

Chao


Aloha Chao,

Org-babel lets you keep source code for many languages in Org-mode  
files.  You have to tangle the Org-mode file to create the source code  
file, so there are some intermediate steps, but it does bring many of  
the advantages of Org-mode to editing and maintaining source code in  
other languages.  The Org-babel Introduction includes an example of  
how to manage an emacs configuration in Org-mode:


http://orgmode.org/worg/org-contrib/babel/intro.php#literate-programming

Eric Schulte has an emacs starter kit with a very useful  
implementation of this idea:


http://eschulte.github.com/emacs-starter-kit/

hth,
Tom___
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] Problems Setting Drawers in .emacs

2010-02-12 Thread Ian Barton

Recently I have noticed a problem setting up Drawers. In my .emacs I have:

(add-to-list 'load-path "~/.emacs.d/src/lisp")
(add-to-list 'load-path "~/.emacs.d/src/org-mode/contrib/lisp")
(require 'org-install)
(require 'org-babel-init)
(org-babel-load-file "~/.emacs.d/blacky.org")

In ~/.emacs.d/blacky.el I have:

;; Define some default drawers.
(setq org-drawers (quote ("PROPERTIES" "SETUP")))

However, PROPERTIES and SETUP aren't recognised as drawers in my org 
files. They don't close and open using tab and the fontification of them 
indicated that org isn't recognising them as drawers.


If I define a drawer in my org file like:

#+DRAWERS: NOTES

this works correctly. Clearly something has got messed up in my setup, 
but I can't work out what it might be.  have moved the org-drawers 
definition near to the top of blacky.el to no effect.


I have also tried deleting my git repo and doing a new checkout.

Before I take the axe to my org configuration and start chopping bits 
off to find out where the problem is, can anyone suggest any reason why 
this might happen?


Ian.


___
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] Minor nit - LaTeX header contents and footnotes

2010-02-12 Thread Eric S Fraga
On Fri, 12 Feb 2010 14:16:06 +0100, Ruud Brekelmans  
wrote:
> 
> [1.1  ]
> I still find similar behavior when exporting to LaTeX with:
> 
> #+BEGIN_LaTeX
> \newcommand{\norm}[1]{\lVert#1\rVert}
> #+END_LaTeX
> 
> 
> Best regards,
> Ruud
> 
> 
> On 21 August 2009 06:52, Carsten Dominik  wrote:
> 
> > Fixed, thanks.
> >
> > - Carsten
> >
> >
> > On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:
> >
> >  I define a LaTeX macro at the top of my document, like so:
> >>
> >> ,
> >> | ...
> >> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
> >> | #+LATEX_HEADER:   #1\ignorespaces
> >> | #+LATEX_HEADER: }
> >> | ...
> >> `


This doesn't solve the problem directly but putting spaces around the 1 works:

--8<---cut here---start->8---
#+BEGIN_LaTeX
\newcommand{\norm}[ 1 ]{\lVert#1\rVert}
#+END_LaTeX
--8<---cut here---end--->8---

(and also works with the header version).


___
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] Annotations from pdf viewer in Linux ?

2010-02-12 Thread Julien Fantin
I've seen some instructions on seting up org-annotation-helper for adobe
acrobat on worg :
http://orgmode.org/worg/org-contrib/org-protocol.php#acrobat-reader-setup

I'd be very interested in integrating this workflow into my linux
configuration.

Does anyone know of a pdf viewer that would allow to do use the setup
described in the link above ?

If not, I guess some shell scripting could do the trick, and I'd love to
hear about that...

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] Dated appointment reminders

2010-02-12 Thread Desmond Rivet
Hi all,

Is there any way to get an early warning reminder of an upcoming
appointment in my agenda without using the DEADLINE feature?

Allow me to elaborate...

What I'm after is something very close to the DEADLINE feature, but not
quite.  With DEADLINE, you have the following behavour (unless there's a
way to alter it?):

 * without a TODO state, you get early reminders in your agenda up until
   the DEADLINE date, after which you get warnings that the date is
   past, forever.
 
 * with a TODO state item, you get the same thing, except you can turn
   off the reminders/warnings by setting the state to DONE.

So unless you want the DEADLINE'ed date appearing on your agenda forever
after the due date, you need a TODO state and you need to set it to
DONE.

What I'm after is something similar to this behavour, except that I
don't want the warnings after the due date is past, even if the TODO
state is not DONE.  Ideally the TODO state, if there is one, would not
be involved at all - it would just be a plain vanilla appointment, with
the added feature that I get early warning reminders as the due date
approaches, and nothing after.

I am currently using the diary for this, and incorporating it into the
orgmode agenda.  I have entries like this:

%%(diary-remind '(diary-date 11 12 t) -14) Mom's birthday.

I've been using this system for a while, and it works.  But it's not
ideal.  For example, I haven't figured out how to incorporate a time
with the date using this system.  If I had an appointment on April 17th,
2010, 6pm, for example, and I wanted a simple reminder 5 days in
advance, I don't know how I'd do that.

Any ideas are appreciated.  Thanks for any help!

-- 
Desmond Rivet

Pain is weakness leaving the body.


___
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: org-cycle opens archived subtrees when the archive property is present

2010-02-12 Thread Emilio Jesús Gallego Arias
Dear org-mode developers,

first and foremost thank you for this wonderful tool.

I think I hit a bug in org-cycle: If the tree has the ARCHIVE property
set and some subtree has the ARCHIVE tag, org-cycle will open the
archive subtree as if we were using C-Tab.

To reproduce save this minimal org file:

#+STARTUP: even
* A
  :PROPERTIES:
  :ARCHIVE: a
  :END:
** B:ARCHIVE:
   Some text

and hit TAB when in the * A headline; then the ** B headline contents
will be incorrectly shown.

I'm using current org git and I've reproduced it without any specific
org-mode configuration.

Regards,
Emilio


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


Re: [Orgmode] orgmode Cell indentation

2010-02-12 Thread Carsten Dominik


On Feb 12, 2010, at 2:40 PM, Brecht wrote:


Hi,

I'm currently using emacs to note down my progress on programming  
languages.
Since I'm learning several at the same time now I keep differences  
between syntax in a table
with Java / Scheme / C++ / SuperCollider / Ruby / Python as columns  
and

for example If / for / while / etc.. as rows.

My problem is I can't have any indentation in a table cell (at least  
it seems like that).

I can't even put spaces myself since a table update deletes them.
Does someone have an idea to solve this in my particular case?


I am afraid that yes, you cannot have indentation in org-mode table  
fields, an it is not likely that this will change.  You might want to  
look into table.el for this applications, which Org will also  
correctly export.


- 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: icalendar export incomplete

2010-02-12 Thread Carsten Dominik


On Feb 12, 2010, at 1:50 PM, Richard Lewis wrote:

Is it possible for org-write-agenda to include ~/diary information?


No.  But there is icalendar.el.

HTH

- 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] PATCH Bugfix: repeating SCHEDULED or DEADLINE interface fix

2010-02-12 Thread Carsten Dominik

Applied thanks.

Paul,  I don't think I have FSF papers from you.  Do you have a general
assignment for Emacs?  If not, would you consider signing one for
Emacs or for org-mode?  That would allow me to apply patches also
in the future, even if they become longer?

Thanks!

- Carsten

On Feb 11, 2010, at 11:10 PM, Paul Holcomb wrote:



If you only have a repeating SCHEDULED item, allow using the
interface to update DEADLINE; also vice-versa.

In other words, allow org-schedule or org-deadline to update normal
timestamps in the existance of other types of repeating timestamps in
the same heading.

--  
Paul Holcomb   *pholcomb\@   
cpoint  net*
GPG key fingerprint  2B62 05AE EE74 845A 705F  D716 28C4  
FE1C 088F CFAC
deadline.patch>___

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


- 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] Tables in ASCII export

2010-02-12 Thread Carsten Dominik

Hi Michael,

this behavior is now the default, controlled by the new user option
`org-export-ascii-table-widen-columns'.

Hope this helps.

- Carsten

On Feb 6, 2010, at 8:15 PM, Michael Gauland wrote:

When I export tables to ASCII, I'd like the rows to expand as  
necessary so the
full contents is visible. I've has a look at org-exp.el, but I'm at  
a bit of a
loss as to where to start mucking in. Any pointers would be greatly  
appreciated!


Thanks,
Mike


___
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


- 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] org-goto + Aquamacs

2010-02-12 Thread Carsten Dominik

Hi Nathan,

I hope this is fixed now, please verify.

Thanks to David Reitter for his feedback on this issue.

- Carsten

On Feb 5, 2010, at 10:24 PM, Nathan Neff wrote:


Hi,

I like using org-goto to jump to headings in an org file.

When I press C-c C-j, Aquamacs displays the contents of
the defconst org-goto-help in a different frame.  Then,
I have to switch back to my main frame.  This is a minor
annoyance.  Is there a way to get Aquamacs not to show this,
or to show it in the same frame?

I tried (setq org-goto-help nil) but the window still pops up and  
focuses,

but has the word 'nil' instead of the help :-/

Thanks,
--Nate
___
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


- 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] [Bug] Slightly wrong org-tag fontification in agenda

2010-02-12 Thread Carsten Dominik

Hi Tassilo,

On Feb 12, 2010, at 2:22 PM, Tassilo Horn wrote:


Hi all,

it seems that org fontifies everything in the agenda following the
heading using the org-tag face.  Basically, that's ok *unless* you  
don't

use a special background color for tags.  Then it looks wrong.

Here's a screenshot showing the fontification.

I'm using a current git version (Org-mode version 6.34trans
(release_6.34c.67.g25f76f)).

I had a quick look at the code, and it seems the problem is in
`org-agenda-align-tags'.



Yes, I think it is fixed now.



BTW: Is it really a good decision to propertize the text  
algorithmically

in the functions building the agenda?  I'm not sure, but it might be
easier to define some `org-agenda-font-lock-keywords' like it's done  
for

org files, too.


That is a good question.  I do, however, not believe that it would
be easy to define font lock keywords which can handle the agenda.
For example, when an item changes state, its face is changed, to
something with depends on where the item comes from and, for example,
how close the deadline is.  And more stuff like that.
So font-lock regexp matching is now enough here.
Yes, it would be enough for tags, but not for other stuff.

- 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] PATCH Bugfix: repeating SCHEDULED or DEADLINE interface fix

2010-02-12 Thread Paul Holcomb
On Fri, Feb 12, 2010 at 06:31:09PM +0100, Carsten Dominik wrote:
> Applied thanks.
> 
> Paul,  I don't think I have FSF papers from you.  Do you have a general
> assignment for Emacs?  If not, would you consider signing one for
> Emacs or for org-mode?  That would allow me to apply patches also
> in the future, even if they become longer?

 I just started looking into this yesterday. :)

-- 
Paul Holcomb   *pholcomb\@  cpoint  net*
GPG key fingerprint  2B62 05AE EE74 845A 705F  D716 28C4 FE1C 088F CFAC


___
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: Dated appointment reminders

2010-02-12 Thread Matt Lundin
Desmond Rivet  writes:

> What I'm after is something very close to the DEADLINE feature, but not
> quite.  With DEADLINE, you have the following behavour (unless there's a
> way to alter it?):
>
>  * without a TODO state, you get early reminders in your agenda up until
>the DEADLINE date, after which you get warnings that the date is
>past, forever.
>  
>  * with a TODO state item, you get the same thing, except you can turn
>off the reminders/warnings by setting the state to DONE.
>
> So unless you want the DEADLINE'ed date appearing on your agenda forever
> after the due date, you need a TODO state 

...not before the deadline (see below).

> and you need to set it to DONE.

Option one (simplest): Omit the todo state before the deadline and then
mark the item DONE after the deadline has past..

--8<---cut here---start->8---
* 6:00pm Appointment
  DEADLINE: <2010-04-17 Sat -7d>
--8<---cut here---end--->8---

until the deadline passes, then

--8<---cut here---start->8---
* DONE 6:00pm Appointment
  DEADLINE: <2010-04-17 Sat -7d>
--8<---cut here---end--->8---

> I am currently using the diary for this, and incorporating it into the
> orgmode agenda.  I have entries like this:
>
> %%(diary-remind '(diary-date 11 12 t) -14) Mom's birthday.
>
> I've been using this system for a while, and it works.  But it's not
> ideal.  For example, I haven't figured out how to incorporate a time
> with the date using this system.  If I had an appointment on April 17th,
> 2010, 6pm, for example, and I wanted a simple reminder 5 days in
> advance, I don't know how I'd do that.

Option two: 

--8<---cut here---start->8---
* Appointments
%%(diary-remind '(diary-date 2 15 2010) -7) 6:00pm My appointment
--8<---cut here---end--->8---

Which produces the following agenda view:

Day-agenda (W06):
Friday 12 February 2010
   8:00.. 
  10:00.. 
  12:00.. 
  14:00.. 
  16:00.. 
  refile: 18:00.. Reminder: Only 3 days until My appointment
  20:00.. 

Best,
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: Problems Setting Drawers in .emacs

2010-02-12 Thread Matt Lundin
Ian Barton  writes:

> In ~/.emacs.d/blacky.el I have:
>
> ;; Define some default drawers.
> (setq org-drawers (quote ("PROPERTIES" "SETUP")))
> 
> However, PROPERTIES and SETUP aren't recognised as drawers in my org
> files. They don't close and open using tab and the fontification of
> them indicated that org isn't recognising them as drawers.
>

Are you sure you aren't setting org-drawers anywhere else in your
configuration files (e.g., in your custom settings)? What is the value
of org-drawers? (C-h v "org-drawers") I assume you've tried grepping
"org-drawers" in your config files...

Best,
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: Annotations from pdf viewer in Linux ?

2010-02-12 Thread Matt Lundin
Julien Fantin  writes:

> I've seen some instructions on seting up org-annotation-helper for
> adobe acrobat on worg : http://orgmode.org/worg/org-contrib/
> org-protocol.php#acrobat-reader-setup
>
> I'd be very interested in integrating this workflow into my linux
> configuration.
>  
> Does anyone know of a pdf viewer that would allow to do use the setup
> described in the link above ?

I use doc-view (included in emacs 23) to view pdf files. Org-remember
nicely saves links to particular pages.

Best,
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] changing the time of one instance of a recurring appointment

2010-02-12 Thread Erik Iverson

Hello,

I did not see this addressed in the manual or FAQ.

Say I have a recurring appointment, every third Monday of the month, at 
11:30 AM, no problem:


** Monthly meeting with Boss <%%(diary-float t 1 3)>11:30

Now, my boss emails me and says, let's change next week's meeting to 
10:30.  How would you handle that?  Just simply change the 11:30 to 
10:30 and remember to change it back next week?  Add a new one-off 
appointment for 10:30 that day and ignore the 11:30 one on your agenda? 
 Or is there some way to do this built into org-mode already?


Thanks a lot!
Erik Iverson



___
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: [Bug] Slightly wrong org-tag fontification in agenda

2010-02-12 Thread Tassilo Horn
Carsten Dominik  writes:

Hi Carsten,

> Yes, I think it is fixed now.

Nearly, now the first colon isn't fontified.  Here's a patch.
>From 00d7a2bab8c5077eae99760c5f62dd09f4c363a4 Mon Sep 17 00:00:00 2001
From: Tassilo Horn 
Date: Fri, 12 Feb 2010 20:27:49 +0100
Subject: [PATCH] Don't omit the first colon when fontifying tags.

---
 lisp/ChangeLog |5 +
 lisp/org-agenda.el |2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 31f5fc0..998d541 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-12  Tassilo Horn  
+
+	* org-agenda.el (org-agenda-align-tags): Don't omit the first
+	colon when fontifying tags.
+
 2010-02-12  Carsten Dominik  
 
 	* org.el (org-get-location): Make sure the selection buffer is
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 21c605f..5a63e47 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6376,7 +6376,7 @@ If FORCE-TAGS is non nil, the car of it returns the new tags."
 	(goto-char (match-beginning 1))
 	(insert (org-add-props
 		(make-string (max 1 (- c (current-column))) ?\ )
-		(plist-put (text-properties-at (point)) 'face nil
+		(plist-put (text-properties-at (1- (point))) 'face nil
   (goto-char (point-min))
   (org-font-lock-add-tag-faces (point-max)
 
-- 
1.6.6.1


>> BTW: Is it really a good decision to propertize the text algorithmically
>> in the functions building the agenda?  I'm not sure, but it might be
>> easier to define some `org-agenda-font-lock-keywords' like it's done for
>> org files, too.
>
> That is a good question.  I do, however, not believe that it would
> be easy to define font lock keywords which can handle the agenda.
> For example, when an item changes state, its face is changed, to
> something with depends on where the item comes from and, for example,
> how close the deadline is.  And more stuff like that.
> So font-lock regexp matching is now enough here.
> Yes, it would be enough for tags, but not for other stuff.

I see.

Bye,
Tassilo
___
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] Annotations from pdf viewer in Linux ?

2010-02-12 Thread Jan Böcker
On 12.02.2010 18:29, Julien Fantin wrote:
> I've seen some instructions on seting up org-annotation-helper for adobe
> acrobat on worg
> : http://orgmode.org/worg/org-contrib/org-protocol.php#acrobat-reader-setup
> 
> I'd be very interested in integrating this workflow into my linux
> configuration.
>  
> Does anyone know of a pdf viewer that would allow to do use the setup
> described in the link above ?
> 

Check out Daniel M. German's work on integrating evince with Org.
He made a patch that adds a "Remember" menu item.

The thread is named "patch to support remember in evince".
gmane link: http://thread.gmane.org/gmane.emacs.orgmode/21814

HTH, Jan


___
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] Which Emacs on Ubuntu

2010-02-12 Thread Graham Smith
I have had to do a fresh install of Ubuntu 9.10, and on going to
re-install Emacs, I see lots of choices.

As I primarily use Emacs to run Orgmode and I find the list of Emacs
options rather confusing, can anyone here suggest which is the best
option to install.

The key choices seem to be Emacs 22 or 23  with or without GTK.

But there is also just an "emacs" option which is described as an
Emacs 23 meta package.

I realise this may well be an Ubuntu or Emacs question, but as I said
my main use for Emacs is Orgmode, so I think some advice from here may
be useful.

So any help would be appreciated.

Many thanks,

Graham


___
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] Which Emacs on Ubuntu

2010-02-12 Thread Eric S Fraga
On Fri, 12 Feb 2010 20:25:03 +, Graham Smith  wrote:
> 
> I have had to do a fresh install of Ubuntu 9.10, and on going to
> re-install Emacs, I see lots of choices.
> 
> As I primarily use Emacs to run Orgmode and I find the list of Emacs
> options rather confusing, can anyone here suggest which is the best
> option to install.
> 
> The key choices seem to be Emacs 22 or 23  with or without GTK.
> 
> But there is also just an "emacs" option which is described as an
> Emacs 23 meta package.
> 
> I realise this may well be an Ubuntu or Emacs question, but as I said
> my main use for Emacs is Orgmode, so I think some advice from here may
> be useful.
> 
> So any help would be appreciated.
> 
> Many thanks,
> 
> Graham

Emacs 23 without a doubt!  I cannot see any reason for using version
22 unless you have to.

My own preference is without GTK but, then again, I don't use any
typical window manager (I use ratpoison) as I don't like using the
mouse at all.

HTH,
eric


___
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] Which Emacs on Ubuntu

2010-02-12 Thread Graham Smith
Eric,

> Emacs 23 without a doubt!  I cannot see any reason for using version
> 22 unless you have to.

Thanks, I was tempted to go for 23, but wasn't sure.

Graham


___
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] Which Emacs on Ubuntu

2010-02-12 Thread Ian Barton

Graham Smith wrote:

I have had to do a fresh install of Ubuntu 9.10, and on going to
re-install Emacs, I see lots of choices.

As I primarily use Emacs to run Orgmode and I find the list of Emacs
options rather confusing, can anyone here suggest which is the best
option to install.

The key choices seem to be Emacs 22 or 23  with or without GTK.

But there is also just an "emacs" option which is described as an
Emacs 23 meta package.

I realise this may well be an Ubuntu or Emacs question, but as I said
my main use for Emacs is Orgmode, so I think some advice from here may
be useful.

So any help would be appreciated.



I use the emacs-snapshot ppa from 
https://launchpad.net/~ubuntu-elisp/+archive/ppa. I had some problems 
with the Ubuntu Emacs 23 package (menu drawing, etc). However, these 
have probably been fixed by now.


The snapshot is a bleeding edge version of Emacs, so you can expect bug 
fixes and new bugs - best of both worlds! Having said that I haven't 
encountered any bugs that affected me.


Ian.


___
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] Which Emacs on Ubuntu

2010-02-12 Thread Ryan Thompson
Even the most unstable development snapshot of emacs usually beats the
MTBF of any other "stable" component of your operating system or
applications.

On Fri, Feb 12, 2010 at 12:47 PM, Ian Barton  wrote:
> Graham Smith wrote:
>>
>> I have had to do a fresh install of Ubuntu 9.10, and on going to
>> re-install Emacs, I see lots of choices.
>>
>> As I primarily use Emacs to run Orgmode and I find the list of Emacs
>> options rather confusing, can anyone here suggest which is the best
>> option to install.
>>
>> The key choices seem to be Emacs 22 or 23  with or without GTK.
>>
>> But there is also just an "emacs" option which is described as an
>> Emacs 23 meta package.
>>
>> I realise this may well be an Ubuntu or Emacs question, but as I said
>> my main use for Emacs is Orgmode, so I think some advice from here may
>> be useful.
>>
>> So any help would be appreciated.
>>
>
> I use the emacs-snapshot ppa from
> https://launchpad.net/~ubuntu-elisp/+archive/ppa. I had some problems with
> the Ubuntu Emacs 23 package (menu drawing, etc). However, these have
> probably been fixed by now.
>
> The snapshot is a bleeding edge version of Emacs, so you can expect bug
> fixes and new bugs - best of both worlds! Having said that I haven't
> encountered any bugs that affected me.
>
> Ian.
>
>
> ___
> 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


[Orgmode] Re: Which Emacs on Ubuntu

2010-02-12 Thread Ben Finney
Graham Smith  writes:

> As I primarily use Emacs to run Orgmode and I find the list of Emacs
> options rather confusing, can anyone here suggest which is the best
> option to install.

The purpose of the ‘emacs’ meta-package is to allow you to defer this to
the Ubuntu package managers. That is, by installing ‘emacs’ you will get
the “best” version of Emacs, updated as appropriate.

-- 
 \  “We tend to scoff at the beliefs of the ancients. But we can't |
  `\scoff at them personally, to their faces, and this is what |
_o__) annoys me.” —Jack Handey |
Ben Finney



___
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: Which Emacs on Ubuntu

2010-02-12 Thread Ben Finney
Graham Smith  writes:

> Thanks, I was tempted to go for 23, but wasn't sure.

Right. So, people who installed ‘emacs’ several years ago would have
Emacs 22, and then later, without changing their selection, the same
people got Emacs 23 when the Ubuntu package maintainers decided it was
ready.

If that appeals to you, just install the ‘emacs’ package.

-- 
 \   “If you are unable to leave your room, expose yourself in the |
  `\window.” —instructions in case of fire, hotel, Finland |
_o__)  |
Ben Finney



___
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: org-protocol: non-ASCII characters

2010-02-12 Thread dmg
> Basically, it is OK to url-encode each character who's binary
> representation start with 1 (i.e., the value of the character is higher
> than 127). The text to be url-encoded should be UTF-8 ideally.
>
> If you use glib::ustring, it's easy to transform any iso-8859 string to
> utf-8. Each character, whos binary representation start with a 1, has to
> be url-encoded as well as the `%' character [1], but you could as
> url-encode the entire utf-8 string.
>
>

Ok, I think I understand the problem now. I have updated xournal to encode the
filename from its encoding to uft8. that seems to work. See

http://github.com/dmgerman/xournal

For evince, I think I have found a problem in the parsing of the link.
Evince already encodes
the URL, but it does not encode the '/', hence you will get a link like this:

emacsclient 
'org-protocol://remember://docview/tmp/00%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA.pdf::1'

the filename is  /tmp/00áéíóú.pdf

But emacs incorrectly stops parsing the link after tmp/

By the way, xournal now supports store-link


--dmg

>
>
>
>
> The function that does the decoding is `org-protocol-unhex-string' which
> in turn uses `org-protocol-unhex-compound'.
>
>
> `man utf-8` shows, how org-protocol tries to decode characters.
>
>
> The JavaScript-Funktion `encodeURIComponent()' returns exactly what we
> need. It recodes a string to utf-8 and then encodes all characters,
> except digits, ASCII letters and these punctuation characters: -_.!~*'()
>
> See ECMA-262 Standard, Section 15.1.3
> (http://bclary.com/2004/11/07/ecma-262.html#a-15.1.3 [2]):
>
>   "The character is first transformed into a sequence of octets using
>    the UTF-8 transformation..."
>
>
> Again, note, that the decoding mechanism relies on the fact, that the
> sequence to decode is url-encoded UTF-8.
>
>
>
>
>
> Example:
>
>  The url-encoded unicode representation of the German umlaut `ö' is
>  `%C3%B6'. Thus
>
>     (org-protocol-unhex-string "%C3%B6")
>
>  gives you "ö".
>
>  In iso-8859-1, the url-encoded representation of the same character `ö' was
>  `%F6'. But
>
>     (org-protocol-unhex-string "%F6")
>
>  gives you "" - the empty string. There is no utf-8 character with this binary
>  representation, since every byte starting with a 1 (i.e. is bigger than 127)
>  starts a multibyte sequence (2 or more bytes).
>
>  But:
>
>     (org-protocol-unhex-string "%2F%3C")
>
>  gives you, as expected,  "/<" which shows, that you could savely
>  url-encode each and every character of a utf-8 encoded string.
>
>
> ==  Footnotes:
>
> [1] The percent character `%' has to be encoded, if followed by
>    [0-9A-Fa-f]{2}, because org-protocol will assume, that a sequence
>    matching "\\(%[0-9a-f][0-9a-f]\\)+" is an encoded character. That
>    said, a `%' has to be url-encoded, since one will hardly ever
>    know for sure, that a `%' is never followed by "[0-9a-f][0-9a-f]".
>
> [2] Get a PDF version of ECMA-262 third edition here:
>    http://www.ecma-international.org/publications/standards/Ecma-262.htm
>
>



-- 
--dmg

---
Daniel M. German
http://turingmachine.org


___
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