[Orgmode] Ordered lists with alphabetic tags?

2010-02-15 Thread Simon Guest
Hi,

I'd like to produce multi-choice questions using Org mode, exporting
via Latex and Beamer mode to PDF.  My choices need to be alphabetic: A
B C, etc, since I am using a set of classroom clickers (aka voting
buttons) for students to select answers, which have buttons labelled A
to H.

So far, I found no way to change numeric to alphabetic in lists, and
the best I can come up with is

** What's your favourite subject?
+ A Maths
+ B Science
+ C English

etc.

I note that numeric lists are formatted really nicely on slides.  Is
there a way of achieving similar with alphabetic?  Would this be a
useful enhancement?

cheers,
Simon

___
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-15 Thread Sebastian Rose
Jan Böcker  writes:

> On 12.02.2010 23:23, dmg wrote:
>
>> 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/
>
> I think I have found the proper way to handle this in evince.
> Check out the attached patch or pull from:
>
> git://github.com/jboecker/evince.git
>
> This code first retrieves the non-URI-encoded UTF-8 filename and passes
> that to uri_encode. Should g_file_get_path return NULL, we abort,
> because the URI specifies something in gnomes VFS layer that has no
> local path, so the link would not work, anyway.
>
>> By the way, xournal now supports store-link
>
> Works as advertised, thanks!
>
> The only problem I have left now is a cosmetic one: when I store a link
> to, say, /tmp/test.xoj, in Org it becomes file://tmp/test.xoj instead of
> file:/tmp/test.xoj. (I have patched xournal and evince to generate file:
> instead of docview: links.)
>
> This is because org-protocol-sanitize-uri is called after decoding the
> string, allegedly because emacsclient compresses multiple slashes in a
> row to one. However, it seems that this function should be applied
> /before/ the string is URL-decoded. Is this a bug?


Hm - yes and no :)

I did not want to expose to much of the encoding and decoding problem to
the users. It's already complicated enough to add a bookmarklet.

`org-protocol-sanitize-uri' just works for the usual bookmarking and
remembering stuff we used it for - and everyone used it for `http:'
and similar protocols.



How about exending `org-protocol-sanitize-uri' to detect certain
protocols like `file:' and drop the extra slash for those? Or, better,
add an extra slash, which would be the correct way to express an
absolute path (though most apps on Linux these days take
`file:/one/slash/only').

org-protocol could be used for other purposes, too. Shouldn't Org-mode
follow links like [[file:///absolute/path]] and [[file://absolute/path]]
as we would expect? (OK, I know, emacsclient should be fixed...)





This is, what my browsers here do. They both do not care for the number
of slashes.

Opera 10 changes a correct URI to it's own special URI (note the
`localhost'):

 file://localhost/home


Firefox takes the `correct' URI:

  file:///home/sebastian



Here is a patch, that would fix it. We could add more exceptions to the
if-statement as needed.



diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el
index 9881e9f..b80131c 100644
--- a/lisp/org-protocol.el
+++ b/lisp/org-protocol.el
@@ -267,8 +267,11 @@ Here is an example:
   "emacsclient compresses double and tripple slashes.
 Slashes are sanitized to double slashes here."
   (when (string-match "^\\([a-z]+\\):/" uri)
-(let* ((splitparts (split-string uri "/+")))
-  (setq uri (concat (car splitparts) "//" (mapconcat 'identity (cdr 
splitparts) "/")
+(let* ((splitparts (split-string uri "/+"))
+   (extraslash "//"))
+  (if (string= "file:" (car splitparts))
+  (setq extraslash "/"))
+  (setq uri (concat (car splitparts) extraslash (mapconcat 'identity (cdr 
splitparts) "/")
   uri)



Best wishes,


   Sebastian


___
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] About publishing to html

2010-02-15 Thread Sebastian Rose
Chao Lu  writes:
> Hey,
>
> Another question is, when I publish, I call org-publish, then org prompt me
> several project, I have to choose, how could I configure to directly publish
> to certain project?
>
> like:
> (global-set-key (kbd " ") '*org-publish-directly to some project*)
>
> Best,


Hi Chao Lu,


mostly, you will want to export a project after changing a file, that is
part of that project.


  C-c C-e P

publishes the project, the current buffer is part of.


You could as well write a function and bind it to a certain key: 

(defun chao-lu-publish-project-one()
  (interactive)
  (org-publish-project
(assoc "projects-name" org-publish-project-alist)))


Best wishes

  Sebastian


___
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] Deadline->scheduled workflow

2010-02-15 Thread Norbert Zeh
Hi folks,

I have a question whether the following workflow is possible in orgmode:

- I create a task with a given deadline some time in the future.  I
  don't want to worry about scheduling it.

- I configure deadline warnings to I get a warning that a deadline is
  coming up, say 4 weeks before the deadline.  When I see this warning,
  I know I will have to schedule the task to work on it.

- Now, with the 4-weeks warning, it would be rather annoying to have the
  task show up on every day for the 4 weeks before the task needs to be
  completed.  So I would like upcoming deadlines to show up in my agenda
  view only if the task is not scheduled yet.

Ideally, I think a 2-layered warning system for deadlines would be
useful above.  Warn 4 weeks in advance for unscheduled tasks that have a
deadline coming up.  Warn, say, 7 days in advance for scheduled but
not completed tasks that have a deadline coming up.  Is there any way to
do any of this in orgmode, possibly with some lisp hacking?

Thanks,
Norbert

-- 
"And it happened all the time that the compromise between two perfectly
rational alternatives was something that made no sense at all."
  -- Neal Stephenson, Anathem


___
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] Automatic tagging based on # of todo items as children

2010-02-15 Thread mrb
Hi,

I would like to have org-mode assist me in tagging headlines with a
'prj' tag if that headline contains more than one todo item. It does
not matter if the items are completed or not, if it has more than one
task as its children, I would like to have it tagged with 'prj'

I came up with this:

#+begin_src elisp
(defun ensure-prj-tag()
  "Ensure a header gets a prj tag" 
  (interactive) 
  (org-toggle-tag "prj"
(if (> (length (org-map-entries t "/+TODO|DONE|CANCELLED" 'tree))1)
'on 'off)) )
#+end_src

which sort-of works if the cursor is on the heading.

I need some help with the following:
- I would like it to be automatic and the org-todo-statistics hook
  seem candidates to attach a function to, but I also want it for
  heading which do not have a [1/N] or [%] counter. How to proceed?
- Can I do this automatically on a whole file? 

marcel

-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.nl


smime.p7s
Description: S/MIME cryptographic 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] [babel] #+call: result names?

2010-02-15 Thread Taru Karttunen
Hello

I have code like

#+call: foo(x="bar")

that produces

#+results: foo(x="bar")
...

Referring to the results with such a name elsewhere does not seem to
work and is tedious. Is there a way to to rename the results?

i.e.
#+call: foo(x="bar") as foobar
producing
#+results: foobar

- Taru Karttunen




___
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] Haskell support broken

2010-02-15 Thread Taru Karttunen
Hello

The following is broken in org-babel + Haskell:

#+tblname: foo
| 1 | 2 | 3 |

#+begin_src haskell :var i=foo
1
#+end_src

Babel complains that "reference 'foo' not found in this buffer", 
but works fine when replacing haskell with e.g. perl.

- Taru Karttunen


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

2010-02-15 Thread Emilio Jesús Gallego Arias
egall...@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:

> 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've found the culprit in org-hide-archived-subtrees:

,
| (defun org-hide-archived-subtrees (beg end)
|   "Re-hide all archived subtrees after a visibility state change."
|   (save-excursion
| (let* ((re (concat ":" org-archive-tag ":")))
|   (goto-char beg)
|   (while (re-search-forward re end t)
|   (and (org-on-heading-p) (org-flag-subtree t))
|   (org-end-of-subtree t)
`

The problem is that the RE matches the first archive "property" and
then does an org-end-of-subtree which skips all the subtrees of the
parent tree where the ARCHIVE property is located.

I've replaced this part

|   (and (org-on-heading-p) (org-flag-subtree t))
|   (org-end-of-subtree t)

by

|   (when (org-on-heading-p)
| (org-flag-subtree t)
| (org-end-of-subtree t)))

so org-end-of-subtree is only called if we are really in a headline. I
think that makes sense.

Git patch attached.

Regards,
Emilio
diff --git a/lisp/org.el b/lisp/org.el
index f237367..d2db359 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3597,8 +3597,9 @@ collapsed state."
 (let* ((re (concat ":" org-archive-tag ":")))
   (goto-char beg)
   (while (re-search-forward re end t)
-	(and (org-on-heading-p) (org-flag-subtree t))
-	(org-end-of-subtree t)
+	(when (org-on-heading-p)
+	  (org-flag-subtree t)
+	  (org-end-of-subtree t))
 
 (defun org-flag-subtree (flag)
   (save-excursion


pgprT99z4373P.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] [PATCH] Make org-agenda-todo-ignore-* more flexible

2010-02-15 Thread Andrew Lutomirski
On Mon, Feb 15, 2010 at 1:56 AM, Carsten Dominik
 wrote:
>
> On Feb 14, 2010, at 11:37 PM, Andrew Lutomirski wrote:

>>
>> org-agenda-todo-ignore-scheduled = all isn't documented.
>
> Yes it is.

Whoops, I read your first commit but not your second.

--Andy


___
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] Automatic tagging based on # of todo items as children

2010-02-15 Thread Marcel van der Boom
Hi,

I would like to have org-mode assist me in tagging headlines with a
'prj' tag if that headline contains more than one todo item. It does
not matter if the items are completed or not, if it has more than one
task as its children, I would like to have it tagged with 'prj'

I came up with this:

#+begin_src elisp
(defun ensure-prj-tag()
  "Ensure a header gets a prj tag" 
  (interactive) 
  (org-toggle-tag "prj"
(if (> (length (org-map-entries t "/+TODO|DONE|CANCELLED" 'tree))1) 'on 
'off))
)
#+end_src

which sort-of works if the cursor is on the heading.

I need some help with the following:
- I would like it to be automatic and the org-todo-statistics hook
  seem candidates to attach a function to, but I also want it for
  heading which do not have a [1/N] or [%] counter. How to proceed?
- Can I do this automatically on a whole file? 

marcel

-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.nl


smime.p7s
Description: S/MIME cryptographic 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] Dated appointment reminders

2010-02-15 Thread Darlan Cavalcante Moreira

I use headers with deadlines without any TODO keyword for deadlines of
events. When I don't want to see them anymore in my agenda (they already
happened or I don't care about them anymore) I just change the date in the
DEADLINE to an inactive one (surrounded by [] instead of <>). Its easy, it
works, and I keep the information about the deadline if I ever need it.

- Darlan


At Fri, 12 Feb 2010 10:05:46 -0500,
Desmond Rivet  wrote:
> 
> 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


___
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] Ordered lists with alphabetic tags?

2010-02-15 Thread Darlan Cavalcante Moreira

Maybe there is a better solution, but you can achieve this with

** What's your favourite subject?
#+LaTeX: \renewcommand{\theenumi}{\Alph{enumi}}
1. Math
2. Science
3. English
#+LaTeX: \renewcommand{\theenumi}{\arabic{enumi}}

The second #+Latex is just to go back to the default behaviour. Also, use
"\alph" if you want lowercase and "\Alph" if you want uppercase.

- Darlan

At Mon, 15 Feb 2010 21:07:48 +1300,
Simon Guest  wrote:
> 
> Hi,
> 
> I'd like to produce multi-choice questions using Org mode, exporting
> via Latex and Beamer mode to PDF.  My choices need to be alphabetic: A
> B C, etc, since I am using a set of classroom clickers (aka voting
> buttons) for students to select answers, which have buttons labelled A
> to H.
> 
> So far, I found no way to change numeric to alphabetic in lists, and
> the best I can come up with is
> 
> ** What's your favourite subject?
> + A Maths
> + B Science
> + C English
> 
> etc.
> 
> I note that numeric lists are formatted really nicely on slides.  Is
> there a way of achieving similar with alphabetic?  Would this be a
> useful enhancement?
> 
> cheers,
> Simon
> 
> ___
> 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] [BUG] mismatched faces in block agenda

2010-02-15 Thread Łukasz Stelmach
Hello.

I've just tried a block agenda as described in (info:org:Block agenda).
I've had some DONE entries which had their DONE keyword written in bold
red (like TODO) instead of green.

-- 
Miłego dnia,
Łukasz Stelmach



___
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] Org-mode related bug reintroduced in Aquamacs (was: Refile error - Kill is not a (set of) trees)

2010-02-15 Thread Michael Gilbert
Carsten -

In August of last year, you cleared up a big with the Aquamacs team (see 
below). It seems that this bug has been reintroduced with latest builds of 
Aquamacs. 

-- Michael


On Aug 15,2009, at 9:15 AM, Carsten Dominik wrote:

> Hi Michael, hi Stefan,
> 
> I have now finally been able to reproduce this problem.  It is
> a bug in Aquamacs 2.0. Could one of you please propagate this
> issue to the Aquamacs maintainer?
> 
> In Aquamacs Distribution 2.0preview2, at least the following commands
> fail to set the kill ring appropriately:
> 
>(copy-region-as-kill beg end)
>(kill-kill-region beg end)
> 
> After these commands, in normal Emacs operations,
> 
>(current-kill 0)
> 
> will return the content of the copied/killed region.  Not so
> in Aquamacs.  This breaks Org-mode and presumably other
> packages that will use these function calls.
> 
> This used to work in earlier version of Aquamacs.
> 
> - 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] [babel] #+call: result names?

2010-02-15 Thread Eric Schulte
Hi Taru,

Thanks for pointing this out.

I'm not sure what the cleanest way would be to refer to these results.
I find that in these situations if I were to try to refer the results of
a call line like

#+call: foo(x="bar")

with something like

#+begin_src emacs-lisp :var foobar=foo(x="bar")
  (message "foo of bar is %S" foobar)
#+end_src

Org-babel will end up re-running the foo function passing "bar" as an
argument.  This is generally fine with me as it will return the same
value as referencing the results of the #+call line.

The easiest solution would be to simply un-name all #+call results.
This tiny patch does this

diff --git a/contrib/babel/lisp/org-babel.el b/contrib/babel/lisp/org-babel.el
index 01b730d..4e3e70c 100644
--- a/contrib/babel/lisp/org-babel.el
+++ b/contrib/babel/lisp/org-babel.el
@@ -628,7 +628,7 @@ following the source block."
   (save-excursion
 (let* ((on-lob-line (progn (beginning-of-line 1)
 			   (looking-at org-babel-lob-one-liner-regexp)))
-	   (name (if on-lob-line (first (org-babel-lob-get-info))
+	   (name (unless on-lob-line
 		   (fifth (or info (org-babel-get-src-block-info)
 	   (head (unless on-lob-line (org-babel-where-is-src-block-head))) end)
   (when head (goto-char head))

However the cleanest solution to me seems to be adding a header
argument, maybe named :resname which could be used to control the name
of the results, then passing an empty :resname argument could result in
the following

#+call: foo(x="bar") :resname

#+results:
...

and supplying a value would allow specific naming

#+call: foo(x="bar") :resname eric

#+results: eric
...

Does that sound like a good solution?  Is anyone using results names in
another way which this would not address?

Thanks -- Eric

Taru Karttunen  writes:

> Hello
>
> I have code like
>
> #+call: foo(x="bar")
>
> that produces
>
> #+results: foo(x="bar")
> ...
>
> Referring to the results with such a name elsewhere does not seem to
> work and is tedious. Is there a way to to rename the results?
>
> i.e.
> #+call: foo(x="bar") as foobar
> producing
> #+results: foobar
>
> - Taru Karttunen
>
>
>
>
> ___
> 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] [babel] Haskell support broken

2010-02-15 Thread Eric Schulte
Hi,

Thanks for reporting this, it certainly looks like it is a bug in the
Haskell-specific code.  I've add this to our TODO list.

http://eschulte.github.com/babel-dev/

Best -- Eric

Taru Karttunen  writes:

> Hello
>
> The following is broken in org-babel + Haskell:
>
> #+tblname: foo
> | 1 | 2 | 3 |
>
> #+begin_src haskell :var i=foo
> 1
> #+end_src
>
> Babel complains that "reference 'foo' not found in this buffer", 
> but works fine when replacing haskell with e.g. perl.
>
> - Taru Karttunen
>
>
> ___
> 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] org-todo-keywords-for-agenda missing if org-agenda-multi is set

2010-02-15 Thread Łukasz Stelmach
Hello.

I'am trying to add `todo' and `nottodo' options to org-agenda-skip-if.
Unfortunately I've found that org-todo-keywords-for-agenda (which seems
to be the best source) is nil if org-prepare-agenda gets called when
org-agenda-multi is set (which "fortunately" seems to be the case for
block agendas which I try to shape up). Is it possible (without too much
coding) to get a list of todo/done keywords when creating multipart
(block) agenda?

-- 
Miłego dnia,
Łukasz Stelmach



___
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] mismatched faces in block agenda

2010-02-15 Thread Carsten Dominik

Hi Lukasz,

I have never heard of this bug before.  Maybe you have some incorrect  
setup in one of you files (like a "|" missing in a #+TODO line)


If not, please try to make me a minimal example.

Thanks.

- Carsten

On Feb 15, 2010, at 4:28 PM, Łukasz Stelmach wrote:


Hello.

I've just tried a block agenda as described in (info:org:Block  
agenda).
I've had some DONE entries which had their DONE keyword written in  
bold

red (like TODO) instead of green.

--
Miłego dnia,
Łukasz Stelmach



___
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] [babel] #+call: result names?

2010-02-15 Thread Taru Karttunen
Excerpts from Eric Schulte's message of Mon Feb 15 18:12:36 +0200 2010:
> #+call: foo(x="bar") :resname eric
> 
> #+results: eric
> ...
> 
> Does that sound like a good solution?  Is anyone using results names in
> another way which this would not address?

:resname would solve my issue.

- Taru Karttunen


___
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] mismatched faces in block agenda

2010-02-15 Thread Łukasz Stelmach
Hi.

I am afraid it's not that simple. My default agenda (C-c a a) looks OK.

It seems it *might* have something to do with org-agenda-multi thing I
wrote about in another post today, for neither
org-todo-keywords-for-agenda nor org-done-keywords-are set so it might
be difficult to distinguish them.

(setq org-agenda-custom-commands
  '(
("s" "WUT Agenda" agenda "" )
("p" "WUT Agenda+TODO" ((agenda "") (tags-todo "-HOME-CORPO" 
((org-agenda-sorting-strategy '(tag-up category-up))
))

this happens only with the "p" agenda+todo setup. 

Carsten Dominik  writes:

> Hi Lukasz,
>
> I have never heard of this bug before.  Maybe you have some incorrect
> setup in one of you files (like a "|" missing in a #+TODO line)
>
> If not, please try to make me a minimal example.
>
> Thanks.
>
> - Carsten
>
> On Feb 15, 2010, at 4:28 PM, Łukasz Stelmach wrote:
>
>> Hello.
>>
>> I've just tried a block agenda as described in (info:org:Block
>> agenda).
>> I've had some DONE entries which had their DONE keyword written in
>> bold
>> red (like TODO) instead of green.
>>
>> --
>> Miłego dnia,
>> Łukasz Stelmach
>>
>>
>>
>> ___
>> 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
>

-- 
Miłego dnia,
Łukasz Stelmach



___
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] Worg not updating HTML?

2010-02-15 Thread Carsten Dominik

Hi Dan, Bastien seems to have fixed things again.

Best wishes

- Carsten

On Feb 14, 2010, at 7:50 PM, Dan Davison wrote:


I think that Worg is not working -- this change made on Friday and
subsequent changes seem not to have taken effect in HTML.

Dan

commit 013a0b4bdf7672b0589aa6209120bf8edaf2ce85
Author: Dan Davison 
Date:   Fri Feb 12 12:54:52 2010 -0500

   Fix broken links.



___
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


[Orgmode] Re: Problems Setting Drawers in .emacs

2010-02-15 Thread Bernt Hansen
Ian Barton  writes:

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

Does it help if you (setq org-drawers ...) before the (require
'org-install).  I seem to recall that setq's need to be done before you
load org-mode.

The other alternative is to keep the variables via customize.

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

2010-02-15 Thread Bernt Hansen
Erik Iverson  writes:

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

For these types of meetings I use org-clone-subtree-with-time-shift (C-c
C-x c) to copy the entry and shift the date ahead appropriately.  This
creates separate tasks for each meeting and I'm free to move individual
tasks around as required.

HTH,
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] Agenda ID Duplicates and MobileOrg

2010-02-15 Thread David A. Gershman

I'm trying to get MobileOrg working with my files and the agenda view
seems 'flaky'.  I'm not sure if the problem lies with Org or MobileOrg.

Here is what the Agenda view in Emacs has:

Monday 15 February 2010 W07
  static_dates: 6:00- 7:00 MR - Gather hardware
  static_dates: 6:00- 7:00 MR - Breakfast
  static_dates: 6:00- 7:00 MR - Take medications
  static_dates: 6:00- 7:00 MR - Gather lunch
  static_dates:19:00-19:30 Trash
  static_dates:21:00-23:00 ER - Pick up toys from living room
  static_dates:21:00-23:00 ER - Pick up kid's room
  static_dates:21:00-23:00 ER - Check kitty condo
  static_dates:21:00-23:00 ER - Set out clothes
  static_dates:21:00-23:00 ER - Gather work stuff

When I look at the actual entries, I see some of the 'ER' items have the
same IDs (same problem with 'MR' items):

...
** ER - Pick up toys from living room
   :PROPERTIES:
   :ID:   cp2gnpd1pwe0
   :END:
   <2010-01-28 Thu 21:00-23:00 +1d>
** ER - Pick up kid's room
   :PROPERTIES:
   :ID:   cp2gnpd1pwe0
   :END:
   <2010-01-28 Thu 21:00-23:00 +1d>
** ER - Check kitty condo
   :PROPERTIES:
   :ID:   cp2gnpd1pwe0
   :END:
   <2010-01-28 Thu 21:00-23:00 +1d>
** ER - Set out clothes
   :PROPERTIES:
   :ID:   0aegnpd1pwe0
   :END:
   <2010-01-28 Thu 21:00-23:00 +1d>
** ER - Gather work stuff
   :PROPERTIES:
   :ID:   0aegnpd1pwe0
   :END:
   <2010-01-28 Thu 21:00-23:00 +1d>
...

Everything is in the same date and time, but IDs are duplicated and then
change.  I *think* this is messing up MobileOrg.  Additionally, when I
view the agenda in MobileOrg, the 'Trash' entry for example is not even
showing up.  Turns out it too has the same ID as "Gather Work Stuff"
(0aegnpd1pwe0).  Finally, not even all of the items are showing in the
MobileOrg agenda view that show in Emacs Org Agenda view.

This is reminding me of coding in ADA where a missed semicolon at the
top of the program resulted in hundreds of errors.  Fix the semicolon
and all is right with the universe.  Anyone have ideas as to where the
first error (org mode, mobile org, or me) exists?


David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman


___
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] More convenient capture

2010-02-15 Thread Chao Lu
Dear all,

I'm wondering if org could have the power to capture pictures like the
Evernote does? Although Evernote is far behind in other ways, but the
capture is really convenient, whichever software you are, just select the
content you want to save, and press Win+A, everything is done. I tried the
org-protocol, seems it could not deal with pictures?

Does anybody have good solutions?

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] Re: More convenient capture

2010-02-15 Thread Chao Lu
I just clarified my thought, I guess what I'm seeking for is such a
function,

First, it could be called even outside emacs, globally.

Then, it could recognize what has been selected.

Thirdly, it prompt to user to inquire which org file should it store the
object to. Say, Humor.org

Then, it copy the object with certain name, say, Humor_Pic_2.jpg, and create
a link in the Humor.org. Done!

I'm just new to Emacs, so it anybody interested to help me to write out such
a function?

All the best,

Chao

On Mon, Feb 15, 2010 at 11:05 PM, Chao Lu  wrote:

> Dear all,
>
> I'm wondering if org could have the power to capture pictures like the
> Evernote does? Although Evernote is far behind in other ways, but the
> capture is really convenient, whichever software you are, just select the
> content you want to save, and press Win+A, everything is done. I tried the
> org-protocol, seems it could not deal with pictures?
>
> Does anybody have good solutions?
>
> 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] Problem with markups

2010-02-15 Thread Chao Lu
Dear all,

I just tried to use the markup like **bold** to highlight some text, and it
work well for English just like the manual tells. However, when I try the
same stuff on Chinese like, *高亮*, nothing happened, the star lost its
function and was recognized literally. Is this a bug or is there anyway to
use **bold** like markups for other languages?

All the best,

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


Re: [Orgmode] org-todo-keywords-for-agenda missing if org-agenda-multi is set

2010-02-15 Thread Carsten Dominik


On Feb 15, 2010, at 5:49 PM, Łukasz Stelmach wrote:


Hello.

I'am trying to add `todo' and `nottodo' options to org-agenda-skip-if.
Unfortunately I've found that org-todo-keywords-for-agenda (which  
seems

to be the best source) is nil if org-prepare-agenda gets called when
org-agenda-multi is set (which "fortunately" seems to be the case for
block agendas which I try to shape up). Is it possible (without too  
much

coding) to get a list of todo/done keywords when creating multipart
(block) agenda?


Hi Lukasz,

org-agenda-skip-if is always used in the relevant buffer, so you can  
just use org-not-done-keywords and org-todo-keywords-1 in that function.


- 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-mode related bug reintroduced in Aquamacs (was: Refile error - Kill is not a (set of) trees)

2010-02-15 Thread Carsten Dominik

Hi Michael,

I suggest that you contact David Reitter.

Best wishes

- Carsten

On Feb 15, 2010, at 4:16 PM, Michael Gilbert wrote:


Carsten -

In August of last year, you cleared up a big with the Aquamacs team  
(see below). It seems that this bug has been reintroduced with  
latest builds of Aquamacs.


-- Michael


On Aug 15,2009, at 9:15 AM, Carsten Dominik wrote:


Hi Michael, hi Stefan,

I have now finally been able to reproduce this problem.  It is
a bug in Aquamacs 2.0. Could one of you please propagate this
issue to the Aquamacs maintainer?

In Aquamacs Distribution 2.0preview2, at least the following commands
fail to set the kill ring appropriately:

  (copy-region-as-kill beg end)
  (kill-kill-region beg end)

After these commands, in normal Emacs operations,

  (current-kill 0)

will return the content of the copied/killed region.  Not so
in Aquamacs.  This breaks Org-mode and presumably other
packages that will use these function calls.

This used to work in earlier version of Aquamacs.

- 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


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

2010-02-15 Thread Carsten Dominik

Hi Emilio,

thanks for the bug report and correct analysis - I have applied your  
patch.


- Carsten

On Feb 15, 2010, at 1:02 PM, Emilio Jesús Gallego Arias wrote:


egall...@babel.ls.fi.upm.es (Emilio Jesús Gallego Arias) writes:


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've found the culprit in org-hide-archived-subtrees:

,
| (defun org-hide-archived-subtrees (beg end)
|   "Re-hide all archived subtrees after a visibility state change."
|   (save-excursion
| (let* ((re (concat ":" org-archive-tag ":")))
|   (goto-char beg)
|   (while (re-search-forward re end t)
|   (and (org-on-heading-p) (org-flag-subtree t))
|   (org-end-of-subtree t)
`

The problem is that the RE matches the first archive "property" and
then does an org-end-of-subtree which skips all the subtrees of the
parent tree where the ARCHIVE property is located.

I've replaced this part

|   (and (org-on-heading-p) (org-flag-subtree t))
|   (org-end-of-subtree t)

by

|   (when (org-on-heading-p)
| (org-flag-subtree t)
| (org-end-of-subtree t)))

so org-end-of-subtree is only called if we are really in a headline. I
think that makes sense.

Git patch attached.

Regards,
Emilio
diff --git a/lisp/org.el b/lisp/org.el
index f237367..d2db359 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3597,8 +3597,9 @@ collapsed state."
(let* ((re (concat ":" org-archive-tag ":")))
  (goto-char beg)
  (while (re-search-forward re end t)
-   (and (org-on-heading-p) (org-flag-subtree t))
-   (org-end-of-subtree t)
+   (when (org-on-heading-p)
+ (org-flag-subtree t)
+ (org-end-of-subtree t))

(defun org-flag-subtree (flag)
  (save-excursion
___
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] Automatic tagging based on # of todo items as children

2010-02-15 Thread Carsten Dominik

Hi Marcel,

there is not simple other way, because only when making TODO  
statistics are the TODO children counted.  You can hook into `org- 
after-todo-state-change-hook' with a function that moves back up to  
the parent and then counts children with TODO keyword.


THis is untested:

(defun my-define-prj ()
  (save-excursion
(when (org-up-heading-safe)
  (let ((beg (point))
(end (org-end-of-subtree t t))
two-not-done)
(goto-char beg)
(goto-char (point-at-eol))
(setq two-not-done
  (and (re-search-forward org-not-done-heading-regexp end t)
   (re-search-forward org-not-done-heading-regexp end t)))
(goto-char beg)
(org-toggle-tag "prj" (if two-not-done 'on 'off))

(add-hook 'org-after-todo-state-change-hook 'my-define-prj)

- Carsten



On Feb 15, 2010, at 12:05 PM, m...@hsdev.com wrote:


Hi,

I would like to have org-mode assist me in tagging headlines with a
'prj' tag if that headline contains more than one todo item. It does
not matter if the items are completed or not, if it has more than one
task as its children, I would like to have it tagged with 'prj'

I came up with this:

#+begin_src elisp
(defun ensure-prj-tag()
 "Ensure a header gets a prj tag"
 (interactive)
 (org-toggle-tag "prj"
   (if (> (length (org-map-entries t "/+TODO|DONE|CANCELLED" 'tree))1)
'on 'off)) )
#+end_src

which sort-of works if the cursor is on the heading.

I need some help with the following:
- I would like it to be automatic and the org-todo-statistics hook
 seem candidates to attach a function to, but I also want it for
 heading which do not have a [1/N] or [%] counter. How to proceed?
- Can I do this automatically on a whole file?

marcel

--
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.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


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

2010-02-15 Thread Carsten Dominik


On Feb 13, 2010, at 2:54 PM, Ruud Brekelmans wrote:



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

Yes, it's not a big deal, but the header version doesn't have this  
problem anymore.


Yes, this kind of code belongs into the header, I think, most of the  
time.
Still, I have improved this situation, your example above no longer  
causes

the bracket to be interpreted as a footnote.

- 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] Deadline->scheduled workflow

2010-02-15 Thread Carsten Dominik

Hi Norbert,

this is currently not possible, I am afraid.

You could deal with it by hand, by changing the warning period once  
you have scheduled the item.


- Carsten

On Feb 15, 2010, at 10:56 AM, Norbert Zeh wrote:


Hi folks,

I have a question whether the following workflow is possible in  
orgmode:


- I create a task with a given deadline some time in the future.  I
 don't want to worry about scheduling it.

- I configure deadline warnings to I get a warning that a deadline is
 coming up, say 4 weeks before the deadline.  When I see this warning,
 I know I will have to schedule the task to work on it.

- Now, with the 4-weeks warning, it would be rather annoying to have  
the

 task show up on every day for the 4 weeks before the task needs to be
 completed.  So I would like upcoming deadlines to show up in my  
agenda

 view only if the task is not scheduled yet.

Ideally, I think a 2-layered warning system for deadlines would be
useful above.  Warn 4 weeks in advance for unscheduled tasks that  
have a

deadline coming up.  Warn, say, 7 days in advance for scheduled but
not completed tasks that have a deadline coming up.  Is there any  
way to

do any of this in orgmode, possibly with some lisp hacking?

Thanks,
Norbert

--
"And it happened all the time that the compromise between two  
perfectly

rational alternatives was something that made no sense at all."
 -- Neal Stephenson, Anathem


___
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


[Orgmode] Re: Problem with markups

2010-02-15 Thread Carsten Dominik


On Feb 16, 2010, at 5:37 AM, Chao Lu wrote:


Dear all,

I just tried to use the markup like *bold* to highlight some text,  
and it work well for English just like the manual tells. However,  
when I try the same stuff on Chinese like, *高亮*, nothing  
happened, the star lost its function and was recognized literally.  
Is this a bug or is there anyway to use *bold* like markups for  
other languages?


Hi Chao,

this works just fine for me, the Chinese characters are in bold all  
right.


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] [Bug] org-remember doesn't support Windows clipboard in templates

2010-02-15 Thread Carsten Dominik

Hi Ivan,

feel free to propose a patch.

- Carsten

On Feb 14, 2010, at 1:57 AM, Ivan Vanyushkin wrote:


Hello.

If I use org-remember templates variables for clipboard (like %x -  
Content of the X clipboard), they don't work under Windows.


I think, for fixing this you should use either (x-get-selection- 
value) or (w32-get-clipboard-data) in template engine for Windows.


Thank you.



___
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] Introducing ical2org

2010-02-15 Thread Carsten Dominik

Hi Doug, this is very interesting, thank you very much.

- Carsten

On Feb 13, 2010, at 3:52 PM, Doug Hellmann wrote:

ical2org is a command line tool for exporting data from the Mac OS X  
application iCal so it can be used with org-mode.  Data transfer is  
one-way only (from iCal to emacs), and is intended to be used to  
show alarms and scheduled events managed by iCal within org's agenda  
view.  Any calendar accessible to iCal can be converted; I use it  
with group calendar subscriptions, Google calendar feeds, and  
private local calendars.


Version 1.0.2 produces output using org-mode outline (in which each  
entry includes the summary, location, date and time, and complete  
event description) or an abbreviated format compatible with diary  
mode.


The program is a stand-alone Python app, available under a BSD  
license.  Installation and usage instructions are available from http://www.doughellmann.com/projects/ical2org/ 
.


Doug



___
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


[Orgmode] Re: Problem with markups

2010-02-15 Thread Chao Lu
Dear all,

Sorry to my spam, there's nothing wrong with Chinese, just found in order to
have bold, there has to be some whitespace before the star. Please forget my
previous email. Sorry.

Chao

On Mon, Feb 15, 2010 at 11:37 PM, Chao Lu  wrote:

> Dear all,
>
> I just tried to use the markup like **bold** to highlight some text, and
> it work well for English just like the manual tells. However, when I try the
> same stuff on Chinese like, *高亮*, nothing happened, the star lost its
> function and was recognized literally. Is this a bug or is there anyway to
> use **bold** like markups for other languages?
>
> All the best,
>
> 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


Re: [Orgmode] Problem with markups

2010-02-15 Thread Xiao-Yong Jin
On Mon, 15 Feb 2010 23:37:06 -0500, Chao Lu wrote:

> Dear all,
> I just tried to use the markup like *bold* to highlight some text, and it work
> well for English just like the manual tells. However, when I try the same
> stuff on Chinese like, *高亮*, nothing happened, the star lost its function
> and was recognized literally. Is this a bug or is there anyway to use *bold*
> like markups for other languages?

I am pretty sure it is not a bug related to org-mode.  You
are not seeing *高亮* in bold font is related to your emacs
font setup.  It is controlled by the text properties with
the face set to bold.  As a matter of fact, I can see
Chinese text in bold but not in italic shape, that is
because I don't have Chinese fonts in italic shapes (but,
who needs that?).

The following is in my ~/.Xresources to setup fonts for
emacs,

Emacs.Font: fontset-jxy
Emacs.Fontset-0: -*-envy code r-medium-r-normal--12-*-*-*-*-*-fontset-jxy, \
han: -*-microsoft yahei-medium-r-normal--*-*-*-*-*-*-*-*, \
cjk-misc: -*-microsoft yahei-medium-r-normal--*-*-*-*-*-*-*-*, \
hangul: -*-dotumche-medium-r-normal--*-*-*-*-*-*-*-*, \
kana: -*-ms gothic-medium-r-normal--*-*-*-*-*-*-*-*, \
symbol: -*-nsimsun-medium-r-normal--*-*-*-*-*-*-*-*, \
cyrillic: -*-dejavu sans mono-medium-r-normal--10-*-*-*-*-*-*-*
-- 
Jc/*__o/*
X<\ * (__
Y*/\  <


___
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