Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)

2013-09-04 Thread Xiao-Yong Jin

On Sep 4, 2013, at 3:04 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 On Tue, Sep 03, 2013 at 11:34:52PM +0200, nore...@maillard.im wrote:
 Hello,
 
 I have a problem. I need to sync my files between several devices
 (currently 3). At first, I thought the solution would have been to use
 mobileorg (that made sense since I also use an android device) but as
 far as I understand it, it is not really designed for that purpose (I
 have several agendas.org staying in the hierarchy with conflicts from
 all sources...)
 
 How do you sync your files easily and share them between 3, 4 or even
 more places ?
 
 I use Git.

You might try unison.  Works for me.

 -- 
 Suvayu
 
 Open source is the future. It sets us free.
 




Re: [O] default face org-column

2013-06-27 Thread Xiao-Yong Jin
On Jun 1, 2013, at 3:17 PM, Carsten Dominik carsten.domi...@gmail.com wrote:

 Hi Xiao,
 
 I remember that I struggled with the problem that I had to make sure that 
 column view used a fixed-width face - and this was the solution that worked - 
 not a particular pretty one, admittedly.
 
 Do you have an idea on how to change this code that it will always work?  I'd 
 be very happy to accept a good patch.
 
 - Carsten

Hi Carsten,

I wasn't sure what you were talking about until I tried out the theme, 
leuven... and that was really fanciful and totally screwed the column-view 
without your fixed-width face fix.

In order to make it more flexible, instead of just set it once when 
org-faces.el is loaded, I think enforcing it every time when column-view is 
called is a better choice.  Thus came the following little patch.

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index a98deec..f3b8e42 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -169,8 +169,10 @@ This is the compiled version of the format.)
(get-text-property (point-at-bol) 'face))
   'default))
 (color (list :foreground (face-attribute ref-face :foreground)))
-(face (list color 'org-column ref-face))
-(face1 (list color 'org-agenda-column-dateline ref-face))
+(font (list :height (face-attribute 'default :height)
+:family (face-attribute 'default :family)))
+(face (list color font 'org-column ref-face))
+(face1 (list color font 'org-agenda-column-dateline ref-face))
 (cphr (get-text-property (point-at-bol) 'org-complex-heading-regexp))
 pom property ass width f string ov column val modval s2 title calc)
 ;; Check if the entry is in another buffer.
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index 5472964..e968657 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -217,12 +217,6 @@ column view defines special faces for each outline level.  
See the file
   Face for column display of entry properties.
   :group 'org-faces)
 
-(when (fboundp 'set-face-attribute)
-  ;; Make sure that a fixed-width face is used when we have a column table.
-  (set-face-attribute 'org-column nil
- :height (face-attribute 'default :height)
- :family (face-attribute 'default :family)))
-
 (defface org-agenda-column-dateline
   (org-compatible-face 'org-column
 '((t nil)))

In this way, the column-view face will not be bound only to the font family and 
size at the time of loading org-faces.el, but anytime column-view is called.  
I'm not sure if I covered all the cases, but it seems to work well for me.  I 
hope the patch is not broken by the mail app, but I guess it is simple enough 
to read it in one sip of coffee, though I tracked the issue and wrote the patch 
with one cup.

Best,
Xiao-Yong

PS. I realized it was almost a month-old email.  Org-mode is really good at 
remembering it for me.

[O] default face org-column

2013-05-29 Thread Xiao-Yong Jin
Hi,

In org-faces.el,

(when (fboundp 'set-face-attribute)
  ;; Make sure that a fixed-width face is used when we have a column table.
  (set-face-attribute 'org-column nil
  :height (face-attribute 'default :height)
  :family (face-attribute 'default :family)))

I understand why you did this, but it is not quite logical, and somewhat 
invasive.  First, you certainly do not do this with org-table.  Then why 
org-column specifically?  Second, it overwrites the the value I set in the 
emacs theme or custom-set-faces.  Third, the end result is quite bizarre and 
odd-looking.  The default height and default family is some how not what I 
set for the frame, because the font family and size is set when emacs starts up 
and loaded the org-mode.  When I use set-frame-font or text-scale-adjust, 
org-column will stick with the old font family and size.  In fact, because the 
font family for org-column and org-column-title are different, the result is 
just bad.

I don't think it is only my problem, but I'll describe my setup for 
themes/font.  I use default-frame-alist to set the font family and size—The 
above code will not pick up this setup.  I use load-theme and enable-theme to 
load the theme I want.  Sometimes I use set-frame-font or text-scale-adjust to 
get a pleasantly looking texts temporary.  I usually use fixed-width font, so 
the above code is not doing any good.

For the time being, I commented out the above code.

Best,
Xiao-Yong



Re: [O] Org-mode documentation within Emacs

2013-04-24 Thread Xiao-Yong Jin

On Apr 24, 2013, at 6:40 PM, Alan Schmitt alan.schm...@polytechnique.org 
wrote:

 Hi Sebastien,
 
 Sebastien Vauban writes:
 
 See http://lists.gnu.org/archive/html/help-gnu-emacs/2004-10/msg00331.html
 
 I finally managed to make it work using INFOPATH, which is quite painful
 to do under OS X. I really don't understand why there isn't a way to do
 this from inside emacs configuration files (I tried the
 Info-additional-directory-list but it did not work).

I guess you changed the plist of Emacs.app?  That's not really required.  How 
do you install your emacs?

On my machine, with Emacs.app compiled from bzr source, start it with

$ sh -c unset INFOPATH  Emacs -Q

In the scratch buffer,

(getenv INFOPATH)
nil

(add-to-list 'Info-default-directory-list ~/.emacs.d/org-mode/doc)
(~/.emacs.d/org-mode/doc /Applications/Emacs.app/Contents/Resources/info/ 
/usr/share/info/)

(info)
nil

Info-directory-list
(~/.emacs.d/org-mode/doc /Applications/Emacs.app/Contents/Resources/info/ 
/usr/share/info/)

So the only thing I need to do is changing `Info-default-directory-list' in my 
~/.emacs

You might want to check the above procedure and see what you get.

 Thanks for pointing me in the right direction,
 
 Alan
 



Re: [O] Release 8.0

2013-04-20 Thread Xiao-Yong Jin

On Apr 19, 2013, at 1:53 PM, Brian van den Broek 
brian.van.den.br...@gmail.com wrote:

 On 18 Apr 2013 18:05, Carsten Dominik carsten.domi...@gmail.com wrote:
 
  On 18.4.2013, at 18:41, Bastien b...@gnu.org wrote:
 
   Dear all,
  
   I'm releasing Org 8.0.
 
  This is a beautiful release.  Just reading the list of changes wets
  my appetite to try it all out.  A looong list con contributors.
 
  Thanks to you all for your contributions!
 
 An intimidatingly long list of changes, actually. :-)
 
 For what it is worth, I think if Bastien erred in the list of contributors he 
 thanked, it was on the side of over-inclusion, rather than under. In the last 
 year or so, I think I've contributed a tiny change doc patch, a bug report or 
 two, and a few Please, could someone magically make it work like this? 
 messages, yet I find myself included.
 
Yes, indeed!  Honestly, I didn't read the long list of contributors that 
carefully at first.  I decided to take another read after through your message, 
and ... Wow... I really didn't expect my name be in the list, since I have only 
sent a few messages to the list.
 Congrats and thanks to all who helped in whatever way. The efforts from the 
 heroic and steady to minor and irregular have all helped to make my life 
 better.
 
Congratulations to all the orgmode users!  Please allow me to take this chance 
to express my sincere gratitude to everyone subscribed to this orgmode mailing 
list and also people who contributed in other ways!  It is you who have made 
orgmode so fantastic!

Best Regards,
Xiao-Yong




Re: [O] need: custom agenda for last 7 days

2013-02-22 Thread Xiao-Yong Jin
I was just trying to search for this the other day.

On Feb 22, 2013, at 5:19 PM, Bastien b...@altern.org wrote:

 Hi Subhan,
 
 Subhan Tindall subhan.tind...@rentrakmail.com writes:
 
 '(org-agenda-custom-commands (quote ((w Weekly Logs agenda 
 ((org-agenda-span 8))
 
 You can combine `org-agenda-span' and `org-agenda-start-day', 
 which interprets negative values correctly:
 
 '(org-agenda-custom-commands (quote ((w Weekly Logs agenda 
 ((org-agenda-span 8)
  (org-agenda-start-day -7))

I believe you need to pass a string to =org-agenda-start-day=.

(org-agenda-start-day -7)

 
 And *yes*, we need more documentation and tutorials on this.

For this variable, =org-agenda-start-day=, give a link to the document of the 
function =org-read-date= would be great.  I had to read through the source code 
to understand it.

 Help is welcome!
 
 Best,
 
 -- 
 Bastien
 




Re: [O] [ANN] neo - No Emacs Org in Python

2011-04-19 Thread Xiao-Yong Jin
Keep up the good work!

PS.  I actually wish there were a html/javascript
implementation that can pull org files directly from some
online storage places (google docs or dropbox...).  It looks
to me, by reading the code, that it might be possible to
directly port the python code to javascript?

On Tue, 19 Apr 2011 19:59:51 +0200, Olivier Schwander wrote:

 Dear Org users,
 I am pleased to do the first announce of neo, which stands for No Emacs
 Org. The goal of this project is to provide a full implementation of
 Org usable in Python.

 Current features 
 ~
   - Org file parser
   - Agenda builder
   - Todo-list builder
   - Custom todo keywords
   - Command line interface for agenda and todo-lists

 Limitations 
 
   - Read-only (no org file modifications support)
   - No drawers parsing
   - No exporters
   - No formaters parsing (like ==, //, ** and so on, it will wait for 
 exporters)
   - No filtering support

 Roadmap 
 
   - Filtering based on tags
   - Write support for changing todo keywords
   - Capture action in the cli
   - Exporter for HTML

 Ideas of possible applications 
 ~~~
   - Command line interface
   - Web applications (for GTD like http://hiveminder.com, or even a wiki)
   - Batch export on a server without emacs
   - Integration with others tools (like vim)
   - Qt/Gtk user interface

 This is not a release (I need to do more tests, and add some
 documentation), but more a request for comments, ideas or possible
 improvement. You can fetch the sources with


   darcs get http://chadok.info/darcs/neo

 and have a look at the repository on http://redmine.chadok.info/projects/neo

 The package can be installed with the usual Python tools (python
 setup.py build/install). Then launch the command 'neo' to see the help (or
 simply launch neo in the sources directory).

 Cheers,

 Olivier






-- 
Jc/*__o/*
X\ * (__
Y*/\  



[O] typo in the info file

2011-04-18 Thread Xiao-Yong Jin
Hi,

Two lines in the file doc/org.texi

--8---cut here---start-8---
doc/org.texi:8529:@vindex org-overriding-columns-format
doc/org.texi:8533:Org first checks if the variable 
@code{org-overriding-columns-format} is
--8---cut here---end---8---

mention the variable org-overriding-columns-format.  I
believe it should be org-agenda-overriding-columns-format,
instead.

-- 
Jc/*__o/*
X\ * (__
Y*/\  



Re: [Orgmode] extending CDLATEX

2010-12-13 Thread Xiao-Yong Jin
On Mon, 13 Dec 2010 14:06:29 -0500, Marvin Doyley wrote:

 Hi there,
 I would like extend CDLATEX to include additional latex symbols that I 
 frequently use. Does
 anybody know how to do this ?

The instructions are in the beginning of the file.
Basically, you can customize the variable
`cdlatex-math-symbol-alist'.

Best,
Xiao-Yong

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


[OT] Re: [Orgmode] Emacs bindings for remember the milk (work in progress)

2010-07-29 Thread Xiao-Yong Jin
Hi, this is OT.  But where can I find your public key?  I
cannot find it on the servers I know of.
-- 
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


Re: [Orgmode] inline image with link to other than images in html export?

2010-07-21 Thread Xiao-Yong Jin
On Wed, 21 Jul 2010 11:41:55 +0200, Carsten Dominik wrote:

 On Jul 20, 2010, at 8:08 PM, Xiao-Yong Jin wrote:

 Hi,
 
 So the following can be used to show a thumbnail which links
 to another image when exporting to html.
 
 [[file:highres.jpg][file:thumb.jpg]]
 
 Is it possible for the link not to be restricted to image
 files only?  Such that the following
 
 [[OTHER LINK][file:image.jpg]]
 

  [[http://google.org][file:image.jpg]]

 for example?  Works just fine here...

 - Carsten

I'm sorry.  Please ignore my previous post.  Apparently an
emacs instance on one of my servers does not have the latest
org-mode loaded properly.  Just tried on my laptop and it
works perfectly with 7.01.

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Xiao-Yong Jin
On Tue, 20 Jul 2010 14:08:32 +0100, Peter Westlake wrote:

 On Tue, 20 Jul 2010 16:58 +0530, Puneeth puncha...@gmail.com wrote:
 Here's a Pythonic way to do it, tested:

   import re

   my_string = Hello\nWorld
   pattern = re.compile('^',re.MULTILINE)
   my_new_string = re.sub(pattern, ' ', my_string)

 This still might not be quite right, as it will turn Hello\nWorld\n
 into  Hello\n World\n . Avoid that by using a negative lookahead
 for the end of the string:

   my_string = Hello\n\nWorld\n
   pattern = re.compile('^(?!\Z)',re.MULTILINE)
   my_new_string = re.sub(pattern, ' ', my_string)
   print my_new_string

 gives:

 Hello
 
 World

Although python does not recommend TIMTOWTDI, but I would
use the following function

  s = lambda str: ''.join([' ' + s for s in str.splitlines(True)])
  s(Hello\n\nWorld\n)

I think it is much nicer and clearer to me -- probably
because I use a lot of haskell.  And the following is the
function s in haskell

  s = unlines . map (  ++) . lines

Just my 2c.
-- 
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


[Orgmode] inline image with link to other than images in html export?

2010-07-20 Thread Xiao-Yong Jin
Hi,

So the following can be used to show a thumbnail which links
to another image when exporting to html.

  [[file:highres.jpg][file:thumb.jpg]]

Is it possible for the link not to be restricted to image
files only?  Such that the following

  [[OTHER LINK][file:image.jpg]]

would produce a link to OTHER LINK on the inlined image.jpg
when exported to html.


Thanks,
Xiao-Yong
-- 
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


Re: [Orgmode] [babel] Future of Org-babel?

2010-05-06 Thread Xiao-Yong Jin
On Wed, 5 May 2010 17:35:18 -0500, Nathan Neff wrote:

 Guys,
 Is there a project/TODO/Wish list for Org-babel?

 I'd like to give a presentation on Org-babel at the Strange Loop
 conference in St. Louis
 in October.

 http://strangeloop2010.com/

 The Strange Loop conference attracted a lot of very smart people that
 I think would
 be interested in contributing to Org-babel, particularly because it's
 a young project.

 There's plenty more languages that Org-babel could support, so that's
 one area that
 I could mention needs help.

 But, I'd like to point out some of the advanced/aim-for-the-sky ideas
 that you guys have
 for Org-babel -- that would really spark some interest in the crowd.

 What would you say are the most aggressive / cool features that you're
 considering for Org-babel?

I am thinking of something similar to the 'notebook'
interface in Mathematica.  We can present data, code and
analysis results in a consistent and structured way, thanks
to org-mode.  And in addition, we can use all kinds of
different languages that org-babel supports, automatically
generates tables and graphs on the fly as we execute
different code blocks.  This requires a clean and easy way
to propagating information through different languages in
org-babel.  In this sense, org-babel can be an advanced
interface of comint-mode, or even replace it.  Imagine
running several different inferior interpreters, like shell,
python, haskell, gnuplot, (i)maxima, octave and etc, but
variables can be shared between these processes, and all the
code and extra texts are stored in one org-mode file, which
is also the only file you have to work on.

This is my dream about org-babel.  Hope it comes true,
someday.

 Thanks,
 --Nate

Thanks,
Xiao-Yong

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


[Orgmode] a couple of questions about org-mime

2010-04-24 Thread Xiao-Yong Jin
Hi,

I'm using org-mode from git repository at commit

,
| commit 830e0cfe407b42060c3adc490baa7c3104589435
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Thu Apr 22 18:04:13 2010 +0200
`

I have 2 questions regarding `org-mime-htmlize'.

1. How do I quote verbatim code?

   BEGIN_SRC/END_SRC or BEGIN_EXAMPLE/END_EXAMPLE do not do
   what I wanted.  They follow all the mark-up changes,
   which are not desirable.  The only way I found is using
   `=', which is not convenient for multi-line code.

2. Why all the br /?

   With mono-spaced fonts in text/plain, line break looks
   nice.  But I don't think those line-breaks need to be
   preserved even after export to html.

Thanks for the good work though.
-- 
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


Re: [Orgmode] Using Times in org-mode calc?

2010-04-20 Thread Xiao-Yong Jin
On Tue, 20 Apr 2010 12:03:29 -0400, David Frascone wrote:

 I'm trying to make a running log, but I can't seem to get times entered in 
 HH:MM:SS to work right.
 Well -- they work right, but I can't get things to re-display in that 
 format.  And, sometimes math is just screwy.

 For example:

 Distance | Time | Time    | Speed | Speed  |
   (Miles) | HH:MM:SS | Decimal | (MPH) | (Min/Mile) |
 --+--+-+---+|
   2.0 |    12:34 | 3:17    |   |    |
     3 |    30:45 | |   |    |
  #+TBLFM: $3=$2/2

 As you can see the 3:17 is some very strange calculation.  Not sure what it 
 did.  If I use =$2, it returns 6:17

 It seemed like it was doing something wright, but, now it looks like maybe it 
 just doesn't understand HH:MM:SS format?

 What would be the easiest way to implement something like that table?  Lisp 
 functions? 

Calc uses `:' as a fraction bar to represent fractional
numbers.  So as a result,

  12  6
  = 
  34 17

I'm not sure what is the correct way to do it.  But I use a
cheap hack -- abuse the degree notation.  Calc understands
arc degrees as a form of 1...@34'00, that is 

DEGREE @ MIN ' SEC

I use DEGREE field as hours, thus normal arithmetic works
out of the box.

Hope it helps.
-- 
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


Re: [Orgmode] bug in org-crypt?

2010-04-14 Thread Xiao-Yong Jin
On Wed, 14 Apr 2010 09:43:43 +0200, Carsten Dominik wrote:

 Hi Xiao,
 I have just checked in a patch by Peter Jones, which should fix this
 bug.  Please check if this is indeed the case and let me know.

 Thanks.

 - Carsten

Tested and it is indeed fixed.  Thanks.

- jxy

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


Re: [Orgmode] Spreadsheet FR

2010-04-04 Thread Xiao-Yong Jin
On Sun, 4 Apr 2010 15:19:06 -0500, Russell Adams wrote:

 On Sun, Apr 04, 2010 at 12:46:28PM -0400, Xiao-Yong Jin wrote:
 I have an idea.  We can leave the original table intact,
 while making a new dynamically generated table derived from
 the original one.

 The org-babel idea was the do similar, but again you will not have the
 ability to edit the data in the copy.

 Often times you want to filter and then edit adjacent items...

I can imagine some kind of backward propagating of data from
the derived table to the original one by pressing C-u C-c
C-c in the derived table.  I was just thinking that it can
solve the problem of increasing probability of losing data
by miss-typing, because we don't need any extraneous
ellipses, and the original table is always there.  And there
is an advantage of such derived table over an overlay or
Excel that is one can make several different tables from a
single big one according to different criteria.  That might
not introduce more difficulties implementing it than a
direct overlay, but again, I don't know how to implement it.

I guess I am dreaming, now.  But I hope such kind of
functionality is feasible in practice.
-- 
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


Re: [Orgmode] IMPORTANT: (possibly) incompatible Change

2010-04-03 Thread Xiao-Yong Jin
On Sat, 3 Apr 2010 18:55:46 +0200, Carsten Dominik wrote:

 It needs to be:

 (setq org-export-latex-packages-alist
  '(( apacite)
   ( color)
   ( tikz)))

Then it is not an alist.

 (my mistake)

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


Re: [Orgmode] Suggestion: rename Org Font Lock customization group

2010-03-28 Thread Xiao-Yong Jin
On Sun, 28 Mar 2010 12:14:49 -0400, Dan Davison wrote:

 For the sake of non-emacs experts, I think the customization group
 Org Font Lock would be better named Org Appearance. Here's what part of
 the org-customize buffer currently looks like:

I wouldn't invent some new terminology apart from emacs'
own.  But I agree that font lock is not friendly to new
users.  We could mention this in info and tutorial so users
new to emacs can know what they should look for.

[+]-- Group Org TODO
[+]-- Group Org Time
[+]-- Group Org Tags
[+]-- Group Org Properties
[+]-- Group Org Agenda
[+]-- Group Org LaTeX
[-]-\ Group Org Font Lock
 [+]-- Group Org Faces
 |--- Option Org Odd Levels Only
 |--- Option Org Level Color Stars Only
 |--- Option Org Hide Leading Stars
 |--- Option Org Hidden Keywords
 |--- Option Org Fontify Done Headline
 |--- Option Org Fontify Emphasized Text
 |--- Option Org Fontify Whole Heading Line
 |--- Option Org Highlight Latex Fragments And Specials
 |--- Option Org Hide Emphasis Markers
 |--- Option Org Emphasis Regexp Components
 `--- Option Org Emphasis Alist
[+]-- Group Org Completion

It looks really nice.  Thanks!
-- 
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


Re: [Orgmode] Suggestion: rename Org Font Lock customization group

2010-03-28 Thread Xiao-Yong Jin
On Sun, 28 Mar 2010 14:04:16 -0400, Dan Davison wrote:

 Right, when being friendly to new users is the purpose of customize.
 A further argument that Font Lock is a misnomer is that Org Odd
 Levels Only is not related to font lock. It could be put in Structure,
 but I think the decision to put it in the same group as all the other
 variables related to appearance made sense.

 And I think there may be other examples of things that are more
 helpfully described as Appearance than Font Lock. For example, some
 of the options in the Org Startup group might benefit from also having
 an entry in an appearance group, e.g. org-hide-block-startup. Or perhaps
 we could have an option to control whether links to images are replaced
 in the buffer by the image? (a topic for a different thread...)

Hi Dan,

I previously thought it might confuse new users if we use
different term specifically for org-mode.  But now I
completely agree with you.  Appearance is indeed a much
better word for this customize group.
-- 
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


[Orgmode] bug in org-crypt?

2010-03-27 Thread Xiao-Yong Jin
Hi,

If you have the follow org file

* test crypt  :crypt:
** subheading 1
   text 1
** subheading 2
   text 2

with setup as

(require 'org-crypt)
(setq org-tags-exclude-from-inheritance '(crypt))
(setq org-crypt-key CBC0714E)  ; my key

On calling org-encrypt-entry on the first head line, only
subheading 1 get encrypted, subheading 2 remains plain text.
But, if you add an empty line or some text under the first
heading, both subheading 1 and 2 are encrypted.

Testing on recent git checkout results the same.  Is it a bug?

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


Re: [Orgmode] hyperlink to IMAP email

2010-03-26 Thread Xiao-Yong Jin
On Fri, 26 Mar 2010 19:51:52 + (UTC), Arne Freyberger wrote:

 I would like to link to email messages that are held in IMAP folders either
 locally or on the server.   I've tried vm but realized that I would have to 
 set
 up a copy of my IMAP folder structure into the vm folder world in order for 
 that
 to work.  I was about to investigate wanderlust,

Have you looked into gnus?  I've been using gnus and org
links to email messages, either locally stored or remote
IMAP, work perfectly.

Cheers,
jxy
-- 
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


Re: [Orgmode] using orgmode to send html mail?

2010-03-23 Thread Xiao-Yong Jin
On Tue, 23 Mar 2010 13:54:39 -0600, Eric Schulte wrote:

 Nice to see this topic has come back to life.
 I've been playing with my old org-html-mail.el file, and come up with a
 much simpler solution, which takes advantage of the mml message mode
 functionality with is used in gnus (and I would imagine in some other
 Emacs mail clients, but I can't be sure).

 Just call this function and either the active region of your message
 buffer or the entire body (if no region is active) will be exported to
 html using org-mode, and will be wrapped in the appropriate mml wrapper
 to be sent as the appropriate mime type.

Thumbs up for this one.  It should be included in
org-contrib, probably after taken care of other mail client
in emacs?

 So for example this
 1 |  2 | 3 |
 --++---|
 first column | second | third |

 will be exported as this
 ━━
1  2   3   
 ──
  first column   second  third 
 ━━

I use emacs-w3m in gnus, and the table looks great.
-- 
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


Re: [Orgmode] ordered list items start with letters?

2010-03-22 Thread Xiao-Yong Jin
On Mon, 22 Mar 2010 08:08:36 +0100, David Maus wrote:

 Xiao-Yong Jin wrote:
 Hi, is it possible to use a single letter to start an
 ordered list item?  Such as

 a) first
 b) second?

 No, not yet.  Although sometimes I would like have single letter
 lists.

 The question would be:  What to do when we reach z)?

Simply print out a message saying we have reached maximum
number of items possible?  I guess usually we don't need to
count to 'z' for such kind of lists.
-- 
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


[Orgmode] ordered list items start with letters?

2010-03-21 Thread Xiao-Yong Jin
Hi, is it possible to use a single letter to start an
ordered list item?  Such as

  a) first
  b) second?

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


Re: [Orgmode] How to align table in org-mode with Unicode characters, like Chinese

2010-03-03 Thread Xiao-Yong Jin
On Wed, 3 Mar 2010 23:29:23 +0800, filebat Mark wrote:

 Hi All
 I fail to align table which has Chinese, while English characters work very 
 well.
 Below is the sample. Is there any setting can save me out of this annoying 
 problems?

 编号 | 姓名 | 分数 |
 1 | 张三 |   80 |
 2 | 欧阳友人 |   90 |
 3 | 李四 | 75   |

It looks fine to me in my Emacs.  You have to make sure that
your Chinese font is setup exactly twice as wide as English
letters.  See attached screen-shot.

attachment: snapshot.png
-- 
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


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


Re: [Orgmode] ASCIIMathML or LaTeXMathML for HTML?

2010-01-31 Thread Xiao-Yong Jin
On Fri, 29 Jan 2010 11:47:48 +0100, Darlan Cavalcante Moreira wrote:

 A good alternative for creating web pages with math is using jsMath [1]. It 
 uses
 java script to replace latex notation with symbols in some fonts provided by
 it. It works really well after everything is setup and does not suffer the
 problem of poor mathML support by some browsers, since its only javascript.

 Because the replacements are done only when the web page is viewed the 
 publishing
 from org-mode is really fast (you need to tell org-mode not to interpret or
 replace any latex syntax in the equations). Also, after google chrome was
 released and every browser is increasing javascript speed the replacements 
 when
 the web page is viewed in a browser are fast even when there are a lot of
 equations.

 There is a page in worg [2] that explains how to get jsMath working with
 org-mode.

  - Darlan

 [1] http://www.math.union.edu/~dpvc/jsMath/
 [2] http://orgmode.org/worg/org-tutorials/org-jsmath.php

It looks very good.  Thanks.
-- 
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


Re: [Orgmode] ASCIIMathML or LaTeXMathML for HTML?

2010-01-31 Thread Xiao-Yong Jin
On Sun, 31 Jan 2010 18:03:32 +0100, Carsten Dominik wrote:

 I guess that means we don't have to look into asciimathml?

I guess MathML based solutions should be indeed put into
lower priority, since it is not widely supported by major
browsers.

The formulae rendered by JsMath is really impressive.  I
love it more than LaTeX/PDF.  And it is definitely better
than the MathML rendered in Firefox.
-- 
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


[Orgmode] ASCIIMathML or LaTeXMathML for HTML?

2010-01-28 Thread Xiao-Yong Jin
Hi,

Lately I stumbled upon AsciiDoc[1], which uses
ASCIIMathML[2] or LaTeXMathML[3] to export math formulae in
XHTML documents.  Both of these two MathML approaches seem
very nice to me.  I am not sure if anyone has brought this
up.  But I see org-mode info says

   (1) Yes, there is MathML, but that is not yet fully supported by
many browsers, and there is no decent converter for turning LaTeX or
ASCII representations of formulas into MathML. So for the time being,
converting formulas into images seems the way to go.

Admittedly, not all LaTeX functionality are supported, and
only Mozilla/Firefox supports MathML fully.  But I think it
is a decent way to support simple formulae in org-mode for
people who just want to view their notes in Firefox.

[1] http://www.methods.co.nz/asciidoc/
[2] http://www1.chapman.edu/~jipsen/mathml/asciimath.html
[3] http://www.maths.nottingham.ac.uk/personal/drw/lm.html
-- 
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


Re: [Orgmode] org-mode from git and emacs in trunk

2010-01-19 Thread Xiao-Yong Jin
 On Tue, 19 Jan 2010 16:03:17 +0100, Carsten Dominik 
 carsten.domi...@gmail.com said:

 Most likely, when you start Emacs, you have something in your config
 that will load org.el *before* you have added path of Org-mode's
 git distribution to the load path.  Then you add to the
 load-path variable, so when you reload, the new version
 is loaded instead.

 Solution:  Move up the lisp statement that adds org-mode's
 lisp directory to load-path.

Thanks for the guidance!  It turns out that nxhtml is the
intruder that required org.el before I had the chance to
change the load path.  I overlooked the elisp package
dependence.  Problem solved.  Thank you again for the good
work.

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


Re: [Orgmode] Recent upgrade to 6.29a.

2009-10-21 Thread Xiao-Yong Jin
Noorul Islam K M gnu...@gmail.com writes:

 Hello all,

 I just did org pull to update to latest version. (org-version) says this 

 Org-mode version 6.29a

The current version is 6.31a.  If you used git pull, it
should be 6.31trans.

You might want to make sure that you properly installed the
new version.


 But from an org file when I do C-\ and type in a tag name and press
 enter I get following error

 defvar: Symbol's function definition is void: org-float-time

 Looks like function definition is missing. I was not facing this problem 
 earlier.

 Thanks and Regards
 Noorul
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Shotcut Icon and PDF problem in the HTML output

2009-06-30 Thread Xiao-Yong Jin
Xin Shi shixin...@gmail.com writes:

 Hello Experts,

 I noticed two problems with recent org publishing HTML with js support.

 To make is specific, one can use this page as example:

 http://orgmode.org/Changes.html

 1.)  The shortcut icon is no longer displayed (the small icon in the address
 bar)

 In the HTML, the line is still there:

 link rel=SHORTCUT ICON href=/org-mode-unicorn.ico type=image/x-icon /

I didn't notice that.  But, yes, it is missing the icon.


 2.) Print one webpage into PDF is not working:

 For example, go to page:
 http://orgmode.org/Changes.html#sec-4.3.5

 In firefox (3.0.11), Ctrl+p (File-Print ) into PDF, then open with Adobe
 reader gives:
 Adobe Reader: There was an error processing a page. There was a problem
 reading this document(109).

I can't reproduce this.  Is your browser work for other
sites?


 It might due to the org-info.js ...

 Thanks!

 Xin

-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Shotcut Icon and PDF problem in the HTML output

2009-06-30 Thread Xiao-Yong Jin
Xin Shi shixin...@gmail.com writes:

 Hi Xiao-Yong,

 Yes. My broser works on the same page a few weeks ago.

 I tested on other sites, it is OK.  I also tried on the orgmode homepage, same
 error.

It works for me in firefox, which is compiled and
distributed by archlinux.

  Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11)
  Gecko/2009061314 GranParadiso/3.0.11

Let's see if other people have the same problem as you do.


Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Re: install and info

2008-10-09 Thread Xiao-Yong Jin
Richard Riley [EMAIL PROTECTED] writes:

 Bernt Hansen [EMAIL PROTECTED] writes:

 On three systems I have access to the info files are in /usr/share/info

   - Debian
   - FreeBSD
   - Ubuntu

 Debian and Ubuntu should be the same I would think since Ubunti is
 Debian based.

 But there is an org which ships with emacs. I would expect the info file
 from that to be there.

 If one installs from CVS/git should it not be in /usr/local/share/info ?

 I really am not sure personally and frequently have had issues with
 other packages and the installation and location of Info files.


This is the real problem.  I guess most of the package
managers are not happy with conflicting files from different
packages.  Gentoo, archlinux and FreeBSD are all not happy
with this.  So I just decided to install info files some
where in my home directory and prepend that to my $INFOPATH.

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Re: install and info

2008-10-09 Thread Xiao-Yong Jin
Richard Riley [EMAIL PROTECTED] writes:

 Xiao-Yong Jin [EMAIL PROTECTED] writes:

 Richard Riley [EMAIL PROTECTED] writes:

 Bernt Hansen [EMAIL PROTECTED] writes:

 On three systems I have access to the info files are in /usr/share/info

   - Debian
   - FreeBSD
   - Ubuntu

 Debian and Ubuntu should be the same I would think since Ubunti is
 Debian based.

 But there is an org which ships with emacs. I would expect the info file
 from that to be there.

 If one installs from CVS/git should it not be in /usr/local/share/info ?

 I really am not sure personally and frequently have had issues with
 other packages and the installation and location of Info files.


 This is the real problem.  I guess most of the package
 managers are not happy with conflicting files from different
 packages.  Gentoo, archlinux and FreeBSD are all not happy
 with this.  So I just decided to install info files some
 where in my home directory and prepend that to my $INFOPATH.

 Xiao-Yong

 Did you have a local dir file too or put in a link into one of the
 others?

Yes, I have a local dir file.  In my case,

% echo $INFOPATH
/home/jin/etc/info:

% ls /home/jin/etc/info/
dir  emacs-w3m-ja.info  emacs-w3m.info  emms  org


 I suspect this is getting a little OT now and more How does info work
 :-; But it's reassuring to hear that others scratch their heads a little
 too. I have lots of unresolved dir links since I removed (uninstalled
 properly) emacs 22 and 21 and went for CVS Emacs 23 and that only adds
 to my info woes ...

As long as the file `dir' is in your $INFOPATH, it will be
searched before the one(s) in your system.  And that's how I
override the system's while keep the system happy.

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] install and info

2008-10-08 Thread Xiao-Yong Jin
Richard Riley [EMAIL PROTECTED] writes:

 There might be an inconsistency in the install process. Well, on my
 debian system.

 In the Makefile we have

 ,
 | # Where local software is found
 | prefix=/usr/local
 | 
 | # Where local lisp files go.
 | lispdir = $(prefix)/share/emacs/site-lisp
 | 
 | # Where info files go.
 | infodir = $(prefix)/info
 `

 Now I dont pretend to even begin to understand how the info system works
 but a sudo make install-info does not work because (a) it puts the
 file into /usr/local/info and my system appears to expect it in
 /usr/local/share/info. 

I changed infodir by myself.

 In addition the install info command appears to be broken:

 ,
 | if [ ! -d /usr/local/info ]; then mkdir -p /usr/local/info; else true; fi ;
 | cp -p doc/org /usr/local/info
 | install-info --info-file=doc/org --info-dir=/usr/local/info
 | Usage: install-info [options ...] [--] filename
 `

 Hopefully someone can shed some light. I think it used to work but am
 not sure if I was picking up a local info file before.

It always worked for me.  This debian system probably has a
different install-info program as most of other system does.
On mine system:

install-info (GNU texinfo) 4.13
Usage: install-info [OPTION]... [INFO-FILE [DIR-FILE]]

-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Tutorial for Org-plot

2008-09-25 Thread Xiao-Yong Jin
Carsten Dominik [EMAIL PROTECTED] writes:

 Hi everyone,

 Eric has put up a great tutorial about org-plot on worg.  Make sure to check
 it out

 - Carsten

 http://orgmode.org/worg/org-tutorials/org-plot.php

Bravo!  Excellent work.

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Re: Bug? Link to network file/dir does not work

2008-03-28 Thread Xiao-Yong Jin
Wanrong Lin [EMAIL PROTECTED] writes:

 T
 Thomas Baumann wrote:
 Wanrong Lin [EMAIL PROTECTED] writes:

   
 Hi,

 On my Windows machine, I tried to access a link like this from my org file:

 file://host/dir/file_name
 

 shouldn't that be 

 file://host:/dir/file_name

 note the second colon after host.

 Thomas

   
 Tried that (on windows), does not work either. The error message is:
 No such file:  file://host:/dir/file_name

 I thought ideally whatever file path that is acceptable by the OS
 should be usable in org mode.

If tramp/ssh works for you, the following link definitely
works, at least for me.

file:///ssh:remote.host:path/to/the/file


Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Release 5.23a

2008-03-10 Thread Xiao-Yong Jin
Bastien Guerry [EMAIL PROTECTED] writes:

 Xin Shi [EMAIL PROTECTED] writes:

 Is that possible to make it kill the buffer on the C-c C-e h case? Or
 let user to customize this behavior?  I don't know the reason to keep
 that buffer in this case.  

 I don't know what the default should be, I have no personal preference.
 I think it's quite useful to have the exported file accessible through
 the list of buffers even if you don't want to jump to it.

I second that.  Because I use `midnight' to take care of
useless buffers and `ido' does well on choosing buffers,
leaving such a buffer open is not completely useless, if
people have enough RAM.


 But I certainly wouldn't go for an option about this.

 What people think?

I think it could be an option, if someone thinks he/she
would use it.  At the very least, we can have an option to
keep our environment green.


And a second thought on Xin's issue.  I believe the one whom
we should blame to is nXhtml mode, because if I understand
correctly, his problem is that an additional window being
created by nXhtml mode, when the html file is generated.  So
I would guess that even if the buffer is killed after the
generation, that additional nXhtml window would still be
there.  Therefore, I would suggest that Xin disable the
annoying/useless behaviour of nXhtml mode.

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


[Orgmode] [BUG?] org-open-file cannot handle spaces in file name?

2008-01-28 Thread Xiao-Yong Jin
Hi, When I open a link in org-mode containing spaces in the
actual file name, it gives out error as in attached file.



error
Description: error while opening a file


Emacs version: GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu,
GTK+ Version 2.12.1) of 2008-01-13 on
neutrino
org-mode version: Org-mode version 5.19a

I'm not sure it's a problem of a particular emacs version or
of the org-mode, since I updated my emacs and org-mode
together and forget what was the version of org-mode before
updating.
-- 
c/*__o/*
\ * (__
*/\  
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BUG?] org-open-file cannot handle spaces in file name?

2008-01-28 Thread Xiao-Yong Jin
Phil Jackson [EMAIL PROTECTED] writes:

 Hi,

 Xiao-Yong Jin [EMAIL PROTECTED] writes:

 Hi, When I open a link in org-mode containing spaces in the actual
 file name, it gives out error as in attached file.

 Emacs version: GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu,
 GTK+ Version 2.12.1) of 2008-01-13 on
 neutrino

 I can't quite replicate this on 23.0.50.3 (5.19a), if I try with a file
 called 'file with spaces.txt' all is well. With 'file with spaces.pdf' I
 get a different error to you (args out of range). I'll try with 22
 tomorrow and see what I get.

I also see `Args out of range' error.  In fact, if I don't
turn on debug using `toggle-debug-on-error', it shows

Args out of range: 41, 42

in the mini-buffer.  Above two numbers depend on the file
name.

Best,
Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] XHTML export - nbsp; etc.

2007-11-09 Thread Xiao-Yong Jin

Eddward DeVilla [EMAIL PROTECTED] writes:

 I feel tempted to bring up my suggestion of [markup|text] format
 again, but I've been resisting because I feel like a develish nag.  So
 [*|at-syntax] could still be html specific if you really want
 something html specific, but there would be something that could be
 portable to all export formats.  It would just be a matter of deciding
 what 'org' marks should be supported and making sure exporters try to
 support them.  And of course there are other ways to get around *at
 syntax*.

I would vote against heavily mark-up format like that.  I
guess the original design of org-mode is to make a simple
text file that can make personal information organization
much simpler in emacs, as opposed to those half-mark-up
languages like emacs-muse.

I would suggest to keep current method, which is converting
everything that could be converted.  To resolve the
complication in some circumstances where conversion of `[1]'
or `_', `^' and etc. is not wanted, I would propose that we
can just use one of the mark-ups, `=code=', and make it be
actually `=verbatim='.

These are just what I think.  Probably there is another way
to go: merge with emacs-muse!


Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] LaTeX export

2007-11-02 Thread Xiao-Yong Jin
Daniel Dehennin [EMAIL PROTECTED] writes:

 Le 5175 Septembre 1993, Bastien a tapoté:
 Daniel Dehennin [EMAIL PROTECTED] writes:

 I have 2 problems:

 - the underscore _ is not escaped,

 Can you provide an example with context for both the input and the
 output?  Maybe the #+OPTIONS: line could be useful as well.

 Well, having _ in my ORG file was litteraly a _ in my LaTeX source
 and compiling the LaTex source complains about missing $.

 I'm not able to reproduce this I don't understand what happend :-/

 But now, how can I have some\_thing in my LaTeX source ?

 I write many documents with something like:

 variable_name

  and I don't want them to become:

 $variable_{name}$

 in my LaTeX source.

I've also spotted this.  I guess it's hard to make it right.
By default, org-mode doesn't require `$'s to recognize
certain region as math environment.  See info page

: 10.2 Subscripts and Superscripts
: 
: 
: Just like in LaTeX, `^' and `_' are used to indicate super- and
: subscripts.  Again, these can be used without embedding them in
: math-mode delimiters.  To increase the readability of ASCII text, it is
: not necessary (but OK) to surround multi-character sub- and superscripts
: with curly braces.  For example
: 
:  The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
:  the sun is R_{sun} = 6.96 x 10^8 m.
: 
:To avoid interpretation as raised or lowered text, you can quote `^'
: and `_' with a backslash: `\_' and `\^'.
: 
:During HTML export (*note HTML export::), subscript and superscripts
: are surrounded with `sub' and `sup' tags, respectively.

But I would like to propose a work-around.  How about make
`^' and `_' in those regions marked as =this_code= or
something similar not be interpreted as super- and
subscripts?


Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Release org-mode 5.10

2007-09-26 Thread Xiao-Yong Jin
Carsten Dominik [EMAIL PROTECTED] writes:

 Hi,

 org-mode 5.10 is available at http://org-mode.org

 Enjoy!

 - Carsten

I believe it's http://orgmode.org without the dash `-'?

And I also have two issues.

  1. I'm not able to export the file as Latex.  It says

 org-export-as-latex: Wrong type argument: number-or-marker-p, t

  2. Column groups in table are exported wrongly as ASCII.  Take the example
 in the info section.  That table is exported into

   N | N^2 | N^3   N^4   sqrt(n) | sqrt[4](N)  
 +-+-+-+-+
   1 |   1 |   1 1 1 |  1  
   2 |   4 |   8161.4142 | 1.1892  
   3 |   9 |  27811.7321 | 1.3161

 The later two vertical lines are wrong.


Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


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


Re: [Orgmode] Re: Integration of Org mode and mairix

2007-08-04 Thread Xiao-Yong Jin
Bastien [EMAIL PROTECTED] writes:

 Maybe we could use something like `org-custom-link-types' to do the
 trick: its need to know about new link-types, major modes where they
 come into play and what function `org-open-at-point' calls for them.

 For example :

 (setq org-custom-link-types 
   '((mairix (gnus-summary-mode gnus-article-mode) 
'org-make-mairix-link 'org-follow-mairix-link)))

 It will make Org knowing about a new mairix link type. When you're in
 `gnus-summary-mode' or `gnus-article-mode' this type is used instead of
 the default `gnus' type. `org-make-mairix-link' is used to build the
 link, and `org-follow-mairix-link' is used to open link at point.  

 Am not completely sure on how this could be achieved in details, but I
 believe it's a better approach to the integration of tools like mairix,
 tracker and the like.

 What do you think?

I think it's a very good idea.  And we don't even need to
restrict ourselves within index and search tools.  It could
be just an extension to `org-open-at-point'.  When the link
type is not one of the built-ins, the function uses a user
customizable `alist' of link type keywords and corresponding
user supplied functions.

However, some kind of community contributed code base must
be set up so that people like me who don't know much about
elisp can grab some code which works out of box.  And it
would be also much easier to track api changes in the main
org code.  Let's see what Carsten has to say about this,
when he comes back.

Xiao-Yong

 -- 
 Bastien


 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



-- 
c/*__o/*
\ * (__
*/\  


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Integration of Org mode and mairix

2007-08-04 Thread Xiao-Yong Jin
[EMAIL PROTECTED] (Jason F. McBrayer) writes:

 Bastien [EMAIL PROTECTED] writes:

 Xiao-Yong Jin [EMAIL PROTECTED] writes:

 Probably it's the time for us to think of a universal way to support
 system dependent 3rd party index tools. Mairix may not be the only
 search tool people want to use with org-mode, though it is my
 favourite and only index tool I use for now.

 Please see (and comment) my suggestion here:

   http://article.gmane.org/gmane.emacs.orgmode/2563

 I think that's basically right, though in the case of email search,
 probably the best thing would be making nnir work right (and provide
 nnir with a mairix backend).  nnir is supposed to provide a layer of
 indirection between mail indexers and gnus, which should be enough for
 org-mode needs.


Perhaps we should actually suggest Carsten build nnir
support in org-mode and at the same time persuade the
maintainer of nnir.el to support mairix?  ;-)

 -- 
 +---+
 | Jason F. McBrayer[EMAIL PROTECTED]  |
 | If someone conquers a thousand times a thousand others in |
 | battle, and someone else conquers himself, the latter one |
 | is the greatest of all conquerors.  --- The Dhammapada|


 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



-- 
c/*__o/*
\ * (__
*/\  


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Integration of Org mode and mairix

2007-07-31 Thread Xiao-Yong Jin
Hi, it seems I have almost missed the best thing in
this list.

Bastien [EMAIL PROTECTED] writes:

 Hi George,

 Georg C. F. Greve [EMAIL PROTECTED] writes:

 Do you think there is any chance it would make it into the Org
 package? I would greatly prefer not having to maintain a patch for a
 longer period of time.

 I can understand that.  Carsten, what do you think?

I would really appreciate it.

 On the one hand, mairix is unlikely to be heavily in use among Org users
 (unless we continue praising it!), so there is no *strong* necessity of
 making Org natively interact with it. On the other hand, you cannot
 maintain mairix integration through an external library since it depends
 on `org-link-types', `org-store-link' and `org-open-at-point'.

 I would say it worth keeping it into Org. One request though: could we
 spare the cost of a new specific type for threaded searches? For example
 we could have `org-gnus-links-prefer-mairix' being either nil, 'threaded
 or t, so that you can handle the thread option as an argument, even in
 mairix-search.

Probably it's the time for us to think of a universal way to
support system dependent 3rd party index tools.  Mairix may
not be the only search tool people want to use with
org-mode, though it is my favourite and only index tool I
use for now.

 So if you do [[mairixt:m:xyz]] it will pull out the entire thread in
 which that message id is present, so you have the full context, which I
 find very useful.

 Yes, i also like the fast intexing. Other people playing with it around?

Sorry, but I missed the thread.  Where can I grab the code
for support in org-mode?

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 5.01

2007-07-02 Thread Xiao-Yong Jin

Carsten Dominik [EMAIL PROTECTED] writes:

 Hi,

 I am releasing Org-mode 5.01.  It is available at my website

http://www.astro.uva.nl/~dominik/Tools/org

 and also through Emacs CVS.

 I am pretty excited about this release, a new major version.

It's fantastic!  I'm so loving it.  Thank you, Dominik.

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] fg/bg for latex formula image

2007-04-07 Thread Xiao-Yong Jin
Hi, is it possible to make org-create-formula-image be aware
of foreground/background settings in the current buffer?

If I customize org-format-latex-options to adopt my
white-on-black, the exported html also has the formula
images white-on-black, which is rather unpleasant.  Possible
separate the settings for exporting and buffer images?

Actually the preview-latex package in auctex works really
great.  Could we borrow some code?

Thanks,
Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] table formula w/o calc

2006-12-15 Thread Xiao-Yong Jin
Eddward DeVilla [EMAIL PROTECTED] writes:

 Hi all,

  Can table formula's be done without calc?  I've been trying to do
 something like the following:

Maybe you've already tried this.  But I guess it's still worth
mentioning.  You probably need a `#' in the first row as following

  |---+--++++|
  |   | name | P1 | P2 | P3 | TOT|
  |---+--++++|
  | # | Al   | 10 |  9 |  8 | ='(+ $3 $4 $5) |
  | # | Bob  |  9 |  8 | 10 ||
  | # | Carl |  8 | 10 |  9 ||
  | # | Dan  | 10 | 10 | 10 ||
  |---+--++++|

 I haven't been able to get it to do anything even if I used #+TBLFM,
 or ! lines and named variables.  If it's possible then I'm probably
 just doing something stupid.  I'd like to avoid installing calc unless
 I need to.

 Thanks,
 Edd


 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Bug fix release 4.59

2006-12-08 Thread Xiao-Yong Jin
[EMAIL PROTECTED] (J. David Boyd) writes:

 Carsten Dominik [EMAIL PROTECTED] writes:

 M-x load-library RET org RET

 This will re-read org.elc.  Then do

 M-x org-mode RET

 in each org-mode buffer, and you should be transparently switched
 to the new version.

 This should almost always do the right thing.  There are a few
 exceptions,
 but not enough to burden you with.

 How often do you restart Emacs?  Once a week?


 Oh no.  Daily.  I am connecting to my home box running linux from my work box
 running windows XP.  I don't trust the connection on the windows box enough to
 leave it running while I'm not gone.  I also wouldn't want anyone to walk up
 to my machine while I was gone and have access to my home box.

 I start emacs when I get to work in the morning.
 I shut it down before I go home at night.
 So, it runs for ~9 hours every day.

You might be interested in this post
http://article.gmane.org/gmane.emacs.help/35474

 Thanks for the method to reload org.

 Dave



 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Another GTD question.

2006-10-23 Thread Xiao-Yong Jin
Carsten Dominik [EMAIL PROTECTED] writes:

 On Oct 23, 2006, at 9:21, Xiao-Yong Jin wrote:

 I'm wondering if you could absorb all the nifty features from
 emacs-muse or planner, etc.  Especially various export formats and
 more text markups?

 In this generality: no.

 The focus of muse is publishing, and that is not the focus of
 org-mode. So blindly taking over more features is nothing I'd like to
 do.  If you have specific things you'd find particularly useful, and
 if you take the time to describe exactly how they should work instead
 of expecting me to do that, you chances are much better :-)

No, I can't think of any now.  It just works fantastic so far.

Xiao-Yong
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Text Formatting?

2006-10-20 Thread Xiao-Yong Jin
Ed Hirgelt [EMAIL PROTECTED] writes:

 On 10/19/06, Xiao-Yong Jin [EMAIL PROTECTED] wrote:

 Hi, how do you usually format the text body?  I found it frustrating
 if I just want to paste something from somewhere else.

 * List
   1. list
   2. list
   3. list

 indent-region doesn't seem to work very well except the list was
 format as the way that there's no space before the bullet

 You probably want to look at filladapt.  This provides ways to fill lists of
 various types.

Org-Mode is already doing this, I guess.  When you press M-RET, it
inserts the prefix automatically.  I just want to find a way that is
similar to M-C-\ (indent-region) so that I can paste a block of text
and reformat it easily.

 

 * QUOTE Carsten said
   : blah blah blah...
   : and blah blah blah...

 Something like this you can also handle by setting the prefix string (^X . is
 bound to set-fill-prefix)

 C-x . runs `set-fill-prefix'

 `set-fill-prefix' is an interactive compiled Lisp function
   -- loaded from /usr/src/xemacs-21.4.19/.build/lisp/fill.elc
 (set-fill-prefix)

 Documentation:
 Set the fill prefix to the current line up to point.
 Filling expects lines to start with the fill prefix and
 reinserts the fill prefix in each resulting line.

This is good.  Make it much easier to write some thing.  However, it
doesn't help for reformatting.

 

 --
 Ed Hirgelt  

 Discovery consists of seeing what everybody has seen
 and thinking what nobody has thought.

 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Text Formatting?

2006-10-19 Thread Xiao-Yong Jin
Hi, how do you usually format the text body?  I found it frustrating
if I just want to paste something from somewhere else.

For text like

* Title
  body body body body body body body body body body body body body
  body body body body body body body body body body body body body
  body body body body body body body body body body

M-q can do the job very well.  But for a list

* List
  1. list
  2. list
  3. list

indent-region doesn't seem to work very well except the list was
format as the way that there's no space before the bullet

* List
1. list
2. list
3. list

Otherwise it just screws everything up, if you do indent-region on

* List
  1. list
2. list
3. list

Another issue is with `QUOTE' or `:'.  Can I easily indent them to
align with the title as

* QUOTE a message from emacs-orgmode
  message body...
  message body...
  message body...

or

* QUOTE Carsten said
  : blah blah blah...
  : and blah blah blah...

Thank you.  I don't have time to play with the elisp code.  But I
really appreciate it if you can fix the behaviour or give me a piece
of advice.

Xiao-Yong
-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 4.48

2006-09-08 Thread Xiao-Yong Jin
Thanks for the release. 


Carsten Dominik [EMAIL PROTECTED] writes:

- `org-store-link' does the right thing in dired-mode.
  Thanks to Xiao-Yong Yin for pushing this.

My last name is Jin.  :-)

  C-c l will now store a link to the file in the current line
  in a dired-mode buffer.  If the line is in the . line
  indicating a directory, the link points to the directory.
  If there are several files selected, org-mode will
  ignore this selection, because I don't want to store links
  to many files at the same time

Reasonable.  Dealing with multiple links requires much more effort,
and I can't think of a way to do this easily.

-- 
   ,,,
  (o o)
---ooO-(_)-Ooo---


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode