[O] org-tempo and org-structure-template-alist changes

2018-01-07 Thread Rustom Mody
Recent changes to org (not sure when), seem to have changed the type
of org-structure-template-alist

This broke org-reveal : https://github.com/yjwen/org-reveal

I suggested (without too much knowledge) the attached patch to the reveal folks
(Issue: https://github.com/yjwen/org-reveal/issues/315#issuecomment-355868192 )

Now someone has asked that that patch be made into a pull-request

It would be good if someone here can look at the patch in the light of
these recent changes and see
if the patch looks ok
--- ox-reveal.el2017-12-24 16:59:00.993293157 +0530
+++ ox-reveal-new.el2017-12-24 17:54:22.293899742 +0530
@@ -359,7 +359,7 @@
   :group 'org-export-reveal
   :type 'string)
 
-(defcustom org-reveal-note-key-char "n"
+(defcustom org-reveal-note-key-char ?n
   "If not nil, org-reveal-note-key-char's value is registered as
   the key character to Org-mode's structure completion for
   Reveal.js notes. When `<' followed by the key character are
@@ -1228,7 +1228,7 @@
 ;; Register auto-completion for speaker notes.
 (when org-reveal-note-key-char
   (add-to-list 'org-structure-template-alist
-   (list org-reveal-note-key-char 
"#+BEGIN_NOTES\n\?\n#+END_NOTES")))
+   (cons org-reveal-note-key-char "notes")))
 
 (provide 'ox-reveal)
 


Re: [O] New git url

2018-01-05 Thread Rustom Mody
On Fri, Jan 5, 2018 at 1:33 PM, Rustom Mody <rustompm...@gmail.com> wrote:

> Ive changed .git/config thusly:
>
>
> $ diff config .git/config
> 7c7
> < url = git://orgmode.org/org-mode.git
> ---
> > url = https://code.orgmode.org/bzg/org-mode.git
>
>
Dunno why thats garbling

It is

< url = gitCOLONSLASHSLASHorgmode.org/org-mode.git
---
> url = httpsCOLONSLASHSLASHcode.orgmode.org/bzg/org-mode.git
<https://code.orgmode.org/bzg/org-mode.git>

Replace the COLONSLASHSLASH by the 3 chars '://'


[O] New git url

2018-01-05 Thread Rustom Mody
Ive changed .git/config thusly:


$ diff config .git/config
7c7
< url = git://orgmode.org/org-mode.git
---
> url = https://code.orgmode.org/bzg/org-mode.git

As best as I can see its working!

Questions

1. Is this right?
2. This change should probably go up on the main web-page somewhere since
the mailing list hides mail-addresses. So we can make out that something
needs change but not exactly what!


[O] org-install?

2016-06-14 Thread Rustom Mody
There are a number of documentation pages, eg
http://orgmode.org/worg/org-tutorials/org4beginners.html
http://orgmode.org/worg/org-faq.html

that recommend to use
(require 'org-install)

However org-install itself says:

;; The file org-install is obsolete.
;;
;; It is provided here so that (require 'org-install) does not
;; trigger an error for users with obsolete Emacs configuration.
;; You can safely remove (require 'org-install) from your config."


And contains nothing else!!

So what exactly is the case?
What is the setup procedure recommended for git-installed org?


Re: [O] Turn off html entities in md export

2015-06-26 Thread Rustom Mody
On Fri, Jun 26, 2015 at 1:24 PM, Nicolas Goaziou m...@nicolasgoaziou.fr
wrote:

 Hello,

 Rustom Mody rustompm...@gmail.com writes:

  Bitbucket does not allow html entities in markdown
  See https://bitbucket.org/rustom/vit-projects/wiki/emacs
  and search for #
 
  So how to turn off html entities in md export?

 It depends on where these entities are coming from.


Simple basic thing
... becomes …
-- becomes –
etc



 Anyway, vanilla Markdown supports HTML so anything ox-md cannot
 translate into Markdown syntax (e.g., tables) is exported as pure HTML.


For systems (bitbucket is just a common example) that simply does not work
because of security or whatever reasons
See
https://bitbucket.org/site/master/issue/6930/support-some-or-all-html-in-markdown-bb
for BB users clamoring but BB not likely to listen


  And if thats not available any tips on how to hook say a sed-filter to
  ox-md export?

 See filters in (info (org)Advanced configuration).


Thanks
Will try to check that out


Re: [O] Turn off html entities in md export

2015-06-26 Thread Rustom Mody
On Fri, Jun 26, 2015 at 1:24 PM, Nicolas Goaziou m...@nicolasgoaziou.fr
wrote:

 Hello,

 Rustom Mody rustompm...@gmail.com writes:

  Bitbucket does not allow html entities in markdown
  See https://bitbucket.org/rustom/vit-projects/wiki/emacs
  and search for #
 
  So how to turn off html entities in md export?

 It depends on where these entities are coming from.

 Anyway, vanilla Markdown supports HTML so anything ox-md cannot
 translate into Markdown syntax (e.g., tables) is exported as pure HTML.


As https://bitbucket.org/tutorials/markdowndemo/overview#markdown-header-tab
shows
bitbucket md tables are very similar to org tables (and html table is
disallowed)

How to say (to ox-md) Leave tables as they are  ?


Re: [O] Turn off html entities in md export

2015-06-26 Thread Rustom Mody
On Fri, Jun 26, 2015 at 2:13 PM, Nicolas Goaziou m...@nicolasgoaziou.fr
wrote:

 Rustom Mody rustompm...@gmail.com writes:

  Simple basic thing
  ... becomes …
  -- becomes –
  etc

 In this particular case, see `org-export-with-special-strings'.


Thanks Nicolas
Thats a help


[O] Turn off html entities in md export

2015-06-25 Thread Rustom Mody
Bitbucket does not allow html entities in markdown
See https://bitbucket.org/rustom/vit-projects/wiki/emacs
and search for #

So how to turn off html entities in md export?

And if thats not available any tips on how to hook say a sed-filter to
ox-md export?



[O] bitbucket wikis in org

2015-06-08 Thread Rustom Mody
Hi

Bitbucket does not (yet) support org syntax for docs/README¹... in
particular wiki.
Of course one can write the wiki in org and export to markdown.
However I suspect that this will knock out bitbucket's own git backend
system
when for example all ids change in the md generated from org.

Does anyone have a workflow and directory organization for this?

Rusi

¹ org lovers may kindly increase the pester-factor out here
https://bitbucket.org/site/master/issue/6569/support-org-mode-for-readme-files-bb-7757


[O] Escaping again!

2014-05-30 Thread Rustom Mody
I have some pseudo-haskell in slides I am preparing with org and ox-reveal

- \(+\):: Int → Int → Int
- \(-\):: Int → Int →Int
- \(\leq\):: Int → Int → Bool
- \(=\):: Int → Int → Bool

Those '::' are haskell for has type
However putting a space before the '::' makes it into a definition list!

Ive also tried making the \( \) enclose the whole line -- no use!

So how to escape the :: and tell org: Please dont make this a definition
list?


Re: [O] Escaping again!

2014-05-30 Thread Rustom Mody
Hi Bastien

On Fri, May 30, 2014 at 7:30 PM, Bastien b...@gnu.org wrote:

 Hi Rustom,

 Rustom Mody rustompm...@gmail.com writes:

  - \(+\):: Int → Int → Int
  - \(-\):: Int → Int →Int
  - \(\leq\):: Int → Int → Bool
  - \(=\):: Int → Int → Bool

 1. \(+\) :: Int → Int → Int
 2. \(-\) :: Int → Int →Int
 3. \(\leq\) :: Int → Int → Bool
 4. \(=\) :: Int → Int → Bool

 would do -- but this is not entirely satisfactory.

 For now description lists accept both - and +.  I'm all for
 allowing only - so that we could use

 + \(+\) :: Int → Int → Int
 + \(-\) :: Int → Int →Int
 + \(\leq\) :: Int → Int → Bool
 + \(=\) :: Int → Int → Bool

 in your example.

 What do you and others think?


If you are asking me about a proposed change, I thank you for the
consideration :-)

Please dont take the following too seriously -- I am just spoilt by the
fact that I am an old programmer.

Here is a command I ran on the org sources and its output:

$ grep -r '' .
./contrib/lisp/ox-groff.el:  \\(\\)?[ \t]*\n .br\n
output)))


./lisp/ox-latex.el:\\(\\)?[ \t]*\n  \n
output)))
./lisp/ox-latex.el:  \\(\\)?[ \t]*\n  \n
contents)))
./lisp/ox-odt.el:\\(\\)?[ \t]*\n text:line-break/
output t)))
./lisp/ox-man.el:  (setq output (replace-regexp-in-string
\\(\\)?[ \t]*\n .br\n
./lisp/ox-html.el: \\(\\)?[ \t]*\n
./lisp/ox-html.el:   \\(\\)?[ \t]*\n
./lisp/ox-texinfo.el:\\(\\)?[ \t]*\n  @*\n output)))
./lisp/ox-texinfo.el: \\(\\)?[ \t]*\n  \n
contents)))
./lisp/org.el:(looking-at \\($\\|[^]\\

So sometimes we need that much ESCAPE-ing.

I realise that the general support for escaping in org is much harder than
in a programming language like lisp because there are so many different
contexts and different entities to escape.

However I would also like to humbly submit that if one doesn't have
systematic general escaping, there will always be legitimate uses that will
not be addressable.

Anyways… if you are doing this just for me (!) very kind of you!
For now I am getting along using '꞉' (Unicode 0xA789).

Regards,
Rusi

-- 
http://blog.languager.org


Re: [O] Escaping again!

2014-05-30 Thread Rustom Mody
David Loyall wrote:

 [...] if one doesn't have systematic general escaping, there
  will always be legitimate uses that will not be addressable.

 +1

 As a lowly user, I have often wished for a hypothetical function called 
 org-escapify-region.  (And of
 course the reverse function.)

Just another instance that I had to deal with today.
When using reveal and ox-reveal one needs to set
#+REVEAL_ROOT: path/to/reveal.js

I wanted to 'comment out' that line.
After trying ':' and single-quote neither of which worked, I finally got it
by making it into:

#+REVEAL_ROOT_XX: ...


[O] Playwriitng with org?

2014-05-16 Thread Rustom Mody
Earlier I used to use troff and wrote play/drama-like pieces using that
eg http://www.the-magus.in/Publications/ewd.pdf

Later we switched to latex and using play.sty. Here is an example:
http://www.the-magus.in/Publications/DotingOnTheDot.pdf

I would now like to stay in org as much as possible and use latex as the
backend — using maybe play.sty but there seem to be alternatives like
dramatist.sty.

Is this possible/easy/worthwhile?

Thanks
Rusi


Re: [O] exporting α/β to latex/pdf

2014-05-05 Thread Rustom Mody
Suvayu said:

The easiest solution is to use a modern TeX engine like XeTeX or LuaTeX
 along with a font with the required glyphs.  I personally use XeTeX with
 Linux libertine fonts.  You can find my setup here:

 https://github.com/suvayu/.emacs.d/blob/master/org-mode-config.el#L176


Hi Suvayu

I am interested in switching over to xetex. I find however that things dont
work very easily and googleing around I find that some fixes are needed. eg
http://ledgersmb.org/faq/xelatex

Do you also need to do these? Or is there something more generic/uptodate?

Thanks
Rusi


Re: [O] Request for worg page -- escaping questions

2014-04-20 Thread Rustom Mody
On Fri, Apr 18, 2014 at 5:30 PM, Bastien b...@gnu.org wrote:

 Rustom Mody rustompm...@gmail.com writes:

  Trouble is you guys are the hares that make us (me at least) into
  tortoises --
  you add significant functionality faster than I can keep with the
  'what' (leave aside how and details).

 Well, remember that Worg is here to *stay* -- so let's start with
 basic stuff, not bleeding-edge features.  There is a lot of basic
 stuff we still need to document... and we also need to clean-up
 stuff... but agreed that's pretty boring :/

  Still I'll try my hand.
  What I would like is a graphic -- an automata-diagram made perhaps by
  dot.
  Can that easily/conveniently go up onto worg?

 Of course!  Thanks in advance,


Thanks to Alan's dot, Ive come up with something (attached).
Leave aside complete, its not even really work-in-progress :-)
Just a sense of the direction I was asking for.

Would such a doc be appropriate for worg?

Regards,
Rusi


orgdfa.org
Description: Binary data


[O] source block coloring inconsistency

2014-04-17 Thread Rustom Mody
Ive struggling with source code blocks for a few days.
After not managing inline source in some cases I tried to switch to
display blocks.  Here again after trying for a couple of days I
thought I was on an org bug.

Finally I find its not a bug. However the hinting given by the
coloring of code-blocks could perhaps be improved???

Heres the example file (heavily cut down)
---
#+TITLE: Unicode in Python
#+OPTIONS: toc:nil
* Introduction
Python has been making long strides in embracing unicode.
However it is arguably only half-way yet -- python programs can
/support/ unicode well however python program- /source/ is still
completely ASCII.

Well… Actually with python 3 (not 2) this is already possible
#+BEGIN_SRC python
 α, β, γ = 1,2,3
 (α, β, γ)
(1, 2, 3)
#+END_SRC
* Legend
** Math Space Advantage -- MSA

Below I will point such cases out with a 'MSA'. In some cases its
technically required to have spaces, in others its just more
aesthetic to have them.
#+BEGIN_SRC python
x in lst
#+END_SRC python
cannot be written as

#+BEGIN_SRC python
xinlst
#+END_SRC python
---

Some blocks export (to html) correct; some dont.
Finally traced it to the end line:
#+END_SRC python
which should be
#+END_SRC


However emacs shows the end line in red as though it recognized it.

Could the fontlock highlighter and the exporter be consistent with
respect to syntax?

IOW for a block ending as follows:
#+BEGIN_SRC python

If it is wrong it should not be colored as a block

If it is right then export should work on it as a block

Thanks
Rusi

org version: 8.2.5e
emacs version 24.3.1



[O] Bug? (was Request for worg page -- escaping questions)

2014-04-17 Thread Rustom Mody
On Thu, Apr 17, 2014 at 9:42 PM, Bastien b...@gnu.org wrote:

 Hi Rustom,


   3. How to enter a '|' into tables

 IIRC this is a FAQ: http://orgmode.org/worg/org-faq.html


Trying to dig a bit into this -- some table issues -- I seem to have
stumbled onto a bigger issue: org seems to be crashing emacs.

Ive checked it about 4 times.
I cant exactly give the exact offending file because once it goes into 100%
cpu mode theres nothing I can do but to kill emacs from a shell.

1 Started org with: make vanilla in org directory
2 version is 8.2.5e
3. Now I edit something.org (to get into org mode):
4 Now type as follows
* Intro
|a|b|c^
5. (point is at ^)Hit C-c C-c
emacs hangs (ie gets unresponsive, cpu 100% needs to be killed from outside)


Re: [O] Bug? (was Request for worg page -- escaping questions)

2014-04-17 Thread Rustom Mody
On Thu, Apr 17, 2014 at 11:31 PM, Bastien b...@gnu.org wrote:

 Rustom Mody rustompm...@gmail.com writes:

  Ive checked it about 4 times.
  I cant exactly give the exact offending file because once it goes
  into 100% cpu mode theres nothing I can do but to kill emacs from a
  shell.

 Probably an Emacs issue, M-x report-emacs-bug and provide the recipe.


Sure I can do that.

It looks like some runaway regexp falling off the end of file to me:

It does not happen with builtin org (7.9)
Happens with what I pulled yesterday 8.2.5e
Happens equally with emacs23 and 24
Does not happen if the table is followed by anything
So if you still think it classifies as an emacs bug I can file it

Please let me know

Rusi

-- 
http://www.the-magus.in
http://blog.languager.org


Re: [O] Bug? (was Request for worg page -- escaping questions)

2014-04-17 Thread Rustom Mody
On Fri, Apr 18, 2014 at 1:09 AM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Hello,

 Rustom Mody rustompm...@gmail.com writes:

  Trying to dig a bit into this -- some table issues -- I seem to have
  stumbled onto a bigger issue: org seems to be crashing emacs.
 
  Ive checked it about 4 times.
  I cant exactly give the exact offending file because once it goes into
 100%
  cpu mode theres nothing I can do but to kill emacs from a shell.
 
  1 Started org with: make vanilla in org directory
  2 version is 8.2.5e
  3. Now I edit something.org (to get into org mode):
  4 Now type as follows
  * Intro
  |a|b|c^
  5. (point is at ^)Hit C-c C-c
  emacs hangs (ie gets unresponsive, cpu 100% needs to be killed from
  outside)

 It was an infloop in `org-element-context', which should be fixed. Thank
 you for reporting this.


 Regards,

 --
 Nicolas Goaziou


Thanks Nicolas --  works now!
I came upon this trying to poke into another issue:  Table containing code
containing a '|'

It was earlier giving some elisp errors -- dont remember on export or on
C-c C-c.
Now that is not happening which is good!

However there is still a minor issue: font-locking shows something like ~x
| y~
inside a table as code but the other table commands like C-c C-c and export
to html treats the '|' as a table marker.

I of course checked Bastien's pointer to the FAQ for '|' inside table.
As of now neither vert nor \vert{} work.


Re: [O] Request for worg page -- escaping questions

2014-04-17 Thread Rustom Mody
On Thu, Apr 17, 2014 at 9:42 PM, Bastien b...@gnu.org wrote:

 Hi Rustom,

 Rustom Mody rustompm...@gmail.com writes:
  Just expressing a similar need of org-moders!

 Hopefully you get enough to start a tutorial on Worg :)


Heh!
Ok thats the least I can do.
Trouble is you guys are the hares that make us (me at least) into tortoises
--
you add significant functionality faster than I can keep with the 'what'
(leave aside how and details).

Still I'll try my hand.
What I would like is a graphic -- an automata-diagram made perhaps by dot.
Can that easily/conveniently go up onto worg?

-- 
http://www.the-magus.in
http://blog.languager.org


Re: [O] How to change org-export-html-style

2014-04-16 Thread Rustom Mody
Ok Thanks Nick

I had to change org-export-html-style  to org-html-head  and now its working

How the 7.xx variable was working is still somewhat a mystery though.


[O] Strings inside code blocks

2014-04-16 Thread Rustom Mody
I want to put a string-literal inside an inline code-block
Neither
~Hello World~
nor =Hello World= seem to work

If it cant be done then I need an html specific solution; I'd prefer a
generic one though.

Thanks
Rusi


Re: [O] Strings inside code blocks

2014-04-16 Thread Rustom Mody
Thorsten Jolitz wrote:

 This

 ,--
 | * 1st Level
 | src_emacs-lisp{Hello World}
 `--

 renders this...


does not seem to work for me.
Some requirements I need python code inline inside tables.


[O] How to change org-export-html-style

2014-04-15 Thread Rustom Mody
My html styles are in a file my-org.css in ~/orghacks

I need (for various reasons) to inline these styles

I have this code in my init to change the html style

-
(defun rusi/load-css()
  Returns string from css file (hardwired) suitable for inline css
  (interactive)
  (setq org-export-html-style
(with-temp-buffer
  (insert \nstyle type=\text/css\\n)
  (insert-file-contents (expand-file-name my-org.css ~/orghacks))
  (goto-char (point-max))
  (insert \n/style\n)
  (buffer-string
(rusi/load-css)

Now if I edit and save the my-org.css file and then call M-: (rusi/load-css)
it does not work.
Restarting emacs makes it work.
Ive checked that org-export-html-style is actually changed.
However org-mode seems to be keeping some internal copy after first use.
org-reload is not helping here


Re: [O] How to change org-export-html-style

2014-04-15 Thread Rustom Mody
On Tue, Apr 15, 2014 at 5:00 PM, Rustom Mody rustompm...@gmail.com wrote:

 My html styles are in a file my-org.css in ~/orghacks

 I need (for various reasons) to inline these styles



I should have mentioned the org version: 8.2.5e
Emacs version: 24.3.1


Re: [O] How to change org-export-html-style

2014-04-15 Thread Rustom Mody
On Tue, Apr 15, 2014 at 10:39 PM, Rick Frankel r...@rickster.com wrote:

 On 2014-04-15 07:30, Rustom Mody wrote:

 I need (for various reasons) to inline these styles

 I have this code in my init to change the html style

 -
 (defun rusi/load-css()
   Returns string from css file (hardwired) suitable for inline css
   (interactive)
   (setq org-export-html-style
 (with-temp-buffer
   (insert nstyle type=text/cssn)
   (insert-file-contents (expand-file-name my-org.css ~/orghacks))
   (goto-char (point-max))
   (insert n/stylen)
   (buffer-string
 (rusi/load-css)
 
 Now if I edit and save the my-org.css file and then call M-:
 (rusi/load-css)
 it does not work.
 Restarting emacs makes it work.
 Ive checked that org-export-html-style is actually changed.
 However org-mode seems to be keeping some internal copy after first use.
 org-reload is not helping here


 Can you explain not working? There's not enough info here to see
 what problem you are having.

 rick



Lets say my-org.css has this one line:

code { color: green; }

ie put inline code blocks in green when exporting to html

I change it to

code { color: blue; }

1  save the file
2. Run rusi/load-css
3. Check that org-export-html-file's value has changed from green to blue

However exports from org to html continue to export code-blocks as green

Restart emacs and export (some org file that has code blocks)
Now they are blue


Re: [O] how to enter ==

2014-04-02 Thread Rustom Mody
On Wed, Apr 2, 2014 at 3:11 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Tuesday,  1 Apr 2014 at 02:52, Rustom Mody wrote:
  If I enter code inline that has an == that is taken as an escape for code
  So how to enter '==' literally

 How about ~==~?


In that case the full ~==~ appears on export :-(


Re: [O] how to enter ==

2014-04-02 Thread Rustom Mody
On Wed, Apr 2, 2014 at 6:39 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Wednesday,  2 Apr 2014 at 12:08, Rustom Mody wrote:
  On Wed, Apr 2, 2014 at 3:11 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 
  On Tuesday,  1 Apr 2014 at 02:52, Rustom Mody wrote:
   If I enter code inline that has an == that is taken as an escape for
 code
   So how to enter '==' literally
 
  How about ~==~?
 
 
  In that case the full ~==~ appears on export :-(

 ummm, it doesn't for me but I guess you have the == within a larger code
 segment?  Maybe post an example?  What version of org are you using?


Heres a file
--
#+TITLE: Python for Unicode
#+OPTIONS: toc:nil
* Collections

However there is a catch: =⦃1,2,3⦄ ~==~ ⦃1,2,3,1,2⦄= \\
Remember that in python =set([1,2,3,1,2]) ~==~ set([1,2,3])= \\
--

And now do C-c C-e h o
Do not the tilde's remain?

org-version: 8.2.5e
emacs started with -Q (except for putting this in the path)


 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.5h-660-gef207f




-- 
http://www.the-magus.in
http://blog.languager.org


[O] Request for worg page -- escaping questions

2014-04-01 Thread Rustom Mody
Over time in using org Ive come up with some issues.
Some have been solved. Some I was shown workarounds.
Some remain unsolved.

Many of these issues can be clubbed together under what computer folk call
'escaping'.

Can we have a worg page for such as the following?

   1. How to put a '=' into code
   2. How to start a line with a '*' -- (a) for headers (b) for ordinary
   lines?
   3. How to enter a '|' into tables
   4. Newlines -- \\ behaves inconsistently in latex and html [Same  as
   above because its about escaping newlines]
   5. How to make normal (ie not radio) text like this some-text
   6. How to make normal text that looks like  [fn::somestuff]

Note all these may not have solutions, eg a C programmer cannot get a '*/'
into a comment however he may try.  However he can get a '\' into a string
or a quote mark itself with '\\' and '\'.  For getting a '%' into a printf
format however, '\%' is not the way but '%%' Such things are documented
(and taught to) C programmers.

Just expressing a similar need of org-moders!

Regards,

Rusi


[O] how to enter ==

2014-03-31 Thread Rustom Mody
If I enter code inline that has an == that is taken as an escape for code
So how to enter '==' literally



Re: [O] how to enter ==

2014-03-31 Thread Rustom Mody
On Tue, Apr 1, 2014 at 7:34 AM, briangpowell . briangpowel...@gmail.com wrote:
 * One thing that may work:

 = ^H=

 ** In emacs that would be: = Cqh=

 ** In vi that would be = Cvh=

 *** i.e. you enter a Cntrl-h--the literal control character ^H--which is
 literally: BackSpace

 --this may not work in this case; but, it works in a lot of strange cases.

This doesn't work


 * Could also make a variable: export EQUALS==; etc.

I dont understand -- are you recommending an org-macro?



Re: [O] how to enter ==

2014-03-31 Thread Rustom Mody
On Tue, Apr 1, 2014 at 8:01 AM, Rustom Mody rustompm...@gmail.com wrote:
 On Tue, Apr 1, 2014 at 7:34 AM, briangpowell . briangpowel...@gmail.com 
 wrote:
 * One thing that may work:

 = ^H=

 ** In emacs that would be: = Cqh=

 ** In vi that would be = Cvh=

 *** i.e. you enter a Cntrl-h--the literal control character ^H--which is
 literally: BackSpace

 --this may not work in this case; but, it works in a lot of strange cases.

 This doesn't work


 * Could also make a variable: export EQUALS==; etc.

 I dont understand -- are you recommending an org-macro?

For the time being I am getting along with
==
in place of ==
ie two side-by-side FULL WIDTH EQUALS SIGN

Not very nice looking though...



Re: [O] org-html5presentation

2014-03-25 Thread Rustom Mody
On Tue, Mar 25, 2014 at 1:55 PM, Bastien b...@gnu.org wrote:
 Rustom Mody rustompm...@gmail.com writes:

 Bastien: Ive written to Takumi Kinjo

 Thanks!

 --
  Bastien

Well I should mention that the link mentions Carsten as the author
and Takumi (good deal lower) for 'modifications'.
I let common sense (I have a modest supply) prevail over technicality
so did not mention it earlier

Takumi wrote back saying he will try to look into it over the weekend
I wrote back suggesting that he may ask here for help on using the new
export infra-structure.

But I wonder whether it is necessary or whether org-reveal is good enough??

Rusi

-- 
http://www.the-magus.in
http://blog.languager.org



Re: [O] org-html5presentation

2014-03-24 Thread Rustom Mody
Marcin wrote:
 Just my 2 cents: I've just tried org-reveal and it works like a charm.

Thanks Marcin this looks promising

Rick wrote:
 There are also s5 (ox-s5) and deck.js (ox-deck) exporters in contrib ;).

s5 is what I started with.
But it looks a bit bit-rotten [we are in 2014 and its generating xhtml]

deck I have to check out.
Since Marcin has provided direct experience with reveal, I'll start
with that for the moment

Thanks both

Bastien: Ive written to Takumi Kinjo
Rusi



[O] org-html5presentation

2014-03-23 Thread Rustom Mody
At this
http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html
it is said that org-html5presentation works

However the code linked claims to need org 7.5

Does it work?
Any easy way of making it work?

Rusi



Re: [O] org-html5presentation

2014-03-23 Thread Rustom Mody
On Sun, Mar 23, 2014 at 8:33 PM, Bastien b...@gnu.org wrote:
 Hi Rustom,

 Rustom Mody rustompm...@gmail.com writes:

 However the code linked claims to need org 7.5

 Does it work?

 Did you try?

 Any easy way of making it work?

 See previous question :)

I did this much:

(require 'org-html5presentation)
M-x org-export-as-html5presentation

I get (from *Messages*)
org-export-html5presentation-convert-special-strings: Symbol's value
as variable is void: org-export-html-special-string-regexps

I can poke around more
However given the 7.5 requirement I thought I'd ask first


Rusi
-- 
http://www.the-magus.in
http://blog.languager.org



Re: [O] org-html5presentation

2014-03-23 Thread Rustom Mody
On Sun, Mar 23, 2014 at 8:40 PM, Rustom Mody rustompm...@gmail.com wrote:
 On Sun, Mar 23, 2014 at 8:33 PM, Bastien b...@gnu.org wrote:
 Hi Rustom,

 Rustom Mody rustompm...@gmail.com writes:

 However the code linked claims to need org 7.5

 Does it work?

 Did you try?

 Any easy way of making it work?

 See previous question :)

 I did this much:

 (require 'org-html5presentation)
 M-x org-export-as-html5presentation

 I get (from *Messages*)
 org-export-html5presentation-convert-special-strings: Symbol's value
 as variable is void: org-export-html-special-string-regexps

 I can poke around more
 However given the 7.5 requirement I thought I'd ask first

Just checked with org 7.something (dunno for sure since org-version
does not work -- I had kept around an old directory in case of upgrade
hiccups)

and the above works (with emacs -Q)

That is it exports though there is a small problem with the display --
margins are cut off



[O] Bug: Wrong type argument: Integer or marker-p, nil

2014-01-31 Thread Rustom Mody
For the below file, if I place the cursor in the right column
and give C-c C-c I get the above error


org 8.2.5e
emacs 24.3.1

---
* What about $\Leftrightarrow$ ?
As we know the truth-table for 'iff' also written as $\Leftrightarrow$ is
as follows
#+ATTR_LATEX: :align |c|c|c|
| $P$ | $Q$ | $P \Rightarrow Q$ |$Q \Rightarrow P$   |
-


Re: [O] Stop clock on closing emacs

2014-01-31 Thread Rustom Mody
Igor wrote
 Hi,

 is there any hook to stop automatically a running clock when closing
 emacs?

 I can't find anything neither in the manual nor in internet...


In (info (org)Clocking Work Time)

is given this:
  (setq org-clock-persist 'history)
  (org-clock-persistence-insinuate)

They dont work??


[O] vertical space

2014-01-30 Thread Rustom Mody
Im having an issue with inconsistent vertical space

If I do latex export \\es at eol produce blank lines
However with html export they appear in output but not consistently
org version 8.2.5e
emacs version 24.3.1

Below a cut-down version from a file I see it happening

#+TITLE: Equational Reasoning in Logic
#+AUTHOR: Rusi
#+OPTIONS: toc:nil
* Object and Meta language
Look at the following proof

#+ATTR_LATEX: :mode math :environment flalign
P \wedge (Q \vee P)\\
 \wedge distributes over \vee  \\
= (P \wedge Q) \vee (P \wedge Q) \\
 Idempotence of \vee  \\
=  P \wedge Q \\
 \\
 \\
Observe that:
- Each proof step has an expression
- Each step also carries an implicit statement, that the given expression
is $True$ . So, in the first step, we have an implicit statement:  P \wedge
(Q \vee P) = True
-


Re: [O] vertical space

2014-01-30 Thread Rustom Mody
Nick wrote:

 Why exactly the last one is parsed as a literal string and not as a line
 break, I don't know. Nicolas will probably explain all. The only thing I
 can say is that if there is something other than whitespace on the line
 before the \\, it gets parsed as a line break; if there is only
 whitespace (or nothing), it gets parsed as a string. That's probably a
 rough description and not quite right in all particulars, but I hope
 it's close enough.


So the question remains: How to get generic, consistent vertical space?


[O] making static mathjax work

2014-01-23 Thread Rustom Mody
Ive been trying to make the staticmathjax (in contrib) work
It appears I have a number of xulrunners -- output with -v:

Mozilla XULRunner 17.0.10 - 20131030234958
Mozilla XULRunner 24.2.0 - 20131215094009
Mozilla XULRunner 1.9b3pre - 2007122108

The last seems to run without doing anything
The other two give version mismatch issues

Does anyone have a current recipe to make it work?

Perhaps not relevant since the static mathjax stuff is independent of emacs
However just in case :-)

emacs 24.3.1 and 23.4.1
org 8.2.5e
On Debian testing

Thanks
Rusi



[O] using custom ids

2014-01-21 Thread Rustom Mody
After Nicholas recently directed my attention to custom_ids Ive been using them.

Now I find this:
In a file say foo.org, I have an anchor point and a link point.

If I write the anchor as
* Head ppe
I can write the link as [[ppe][Description]]

However if I write the anchor as
* Head
:PROPERTIES:
:CUSTOM_ID: ppe
:END:

then the above link does not produce an html link at all
Instead Ive to write
[[file.html#ppe][Description]]

Is this expected behavior? Am I missing something?

Thanks
Rusi



Re: [O] using custom ids

2014-01-21 Thread Rustom Mody
On Tue, Jan 21, 2014 at 10:37 PM, Rustom Mody rustompm...@gmail.com wrote:
 After Nicholas recently directed my attention to custom_ids Ive been using 
 them.

 Now I find this:
 In a file say foo.org, I have an anchor point and a link point.

 If I write the anchor as
 * Head ppe
 I can write the link as [[ppe][Description]]

 However if I write the anchor as
 * Head
 :PROPERTIES:
 :CUSTOM_ID: ppe
 :END:

 then the above link does not produce an html link at all
 Instead Ive to write
 [[file.html#ppe][Description]]

Ok So I need to write
[[#ppe][Description]]

Sorry for the noise



[O] minimizing mixed installs

2014-01-19 Thread Rustom Mody
After my recent encounters with mixed installs, I poked around a bit
and found this line (around line 80) in org.el

(load org-loaddefs.el t t t)

It seems to me (with very scant knowledge of course :D)
- the noerror (first 't' ) makes this fail silently
- to load another org-loaddefs in the path if it exists

Ive replaced this with these 3 lines:

(setq vv (concat (file-name-directory load-file-name) org-loaddefs.el))
(message (format vv is %s vv))
(load vv nil t t)

This ensures that
- only a sibling org-loaddefs of org.el will be loaded
- if this file -- org-loaddefs -- not found then fail noisily

[The setq and the vv are of course a hack to see whats going on]

On my setup I could check these 4 cases
1 emacs23
2 emacs24

a with org-loaddefs works
b without org-loaddefs gives explicit errors



Re: [O] odt exporter on mixed org setup

2014-01-18 Thread Rustom Mody
Thanks

On Sun, Jan 19, 2014 at 12:23 AM, Jambunathan K  wrote:
 The following message is a courtesy copy of an article
 that has been posted to gmane.emacs.orgmode as well.

 Rustom Mody rustompm...@gmail.com writes:

 Currently I have a setq on org-mode-hook

 I don't run make install, I just do make.

 Here is what I have in .emacs.

 DO NOT do an explicit (require 'ox-backend).  Instead customize
 `org-export-backends' and the ODT exporter there.

 Here is the sequence I have in my .emacs.

 (add-to-list 'load-path ~/src/org-mode/lisp/)
 (require 'org-loaddefs)

Ok That require did it (I think!)
ie on my machine works for emacs 23 and 24


 (add-to-list 'load-path ~/src/org-mode/contrib/lisp/)

 (setq org-odt-data-dir ~/src/org-mode/etc/)

 (custom-set-variables
  '(org-export-backends
(quote (ascii html icalendar latex odt org)))

I dont have a custom; just a setq. Hope thats ok??

(setq org-export-backends '(ascii html odt))

[I would like to avoid custom if I can; wont make a fuss if I cant :-) ]

Thanks
Rusi



Re: [O] odt exporter on mixed org setup

2014-01-18 Thread Rustom Mody
On Sun, Jan 19, 2014 at 8:57 AM, Rustom Mody rustompm...@gmail.com wrote:
 Thanks

 On Sun, Jan 19, 2014 at 12:23 AM, Jambunathan K  wrote:
 The following message is a courtesy copy of an article
 that has been posted to gmane.emacs.orgmode as well.

 Rustom Mody rustompm...@gmail.com writes:

 Currently I have a setq on org-mode-hook

 I don't run make install, I just do make.

 Here is what I have in .emacs.

 DO NOT do an explicit (require 'ox-backend).  Instead customize
 `org-export-backends' and the ODT exporter there.

 Here is the sequence I have in my .emacs.

 (add-to-list 'load-path ~/src/org-mode/lisp/)
 (require 'org-loaddefs)

 Ok That require did it (I think!)
 ie on my machine works for emacs 23 and 24

On second thoughts, Ive replaced that require with a load-file with
explicit path
since
- I prefer an explicit error to unexpected weirdness
- that file tends to get removed by build processes
- there are multiple org-loaddefs.el files and I DONT want the others

Now I can verify that
- after a make clean starting emacs gives me errors on startup
- after a make compile that error goes away



Re: [O] odt exporter on mixed org setup

2014-01-16 Thread Rustom Mody
On Thu, Jan 16, 2014 at 8:22 PM, Jambunathan K  wrote:
 Rustom Mody  writes:

 org-odt-data-dir is coming in bound to /usr/share/emacs/etc/org (which
 is non-existent)

 Open a bug against the packager.

Dunno what you mean... I am using org fresh-cooked off git!
And anyway your setq to org-odt-data-dir has settled the issue as far
as I can see.

The only question I have (not so much an org question as emacs/elisp)
is where to put that setq and whether defvar would be better than
setq.

Currently I have a setq on org-mode-hook



Re: [O] tooltips

2014-01-15 Thread Rustom Mody
On Wed, Jan 15, 2014 at 10:26 PM, Bastien b...@gnu.org wrote:
 Christian Moe m...@christianmoe.com writes:

 Let me know if this doesn't work or isn't clear.

 It works very well!

 I made a micro screencast for demoing it:
 http://bzg.fr/u/org-footnotes-jquery.ogv

 Thanks for packaging this.

 --
  Bastien

Thanks Christian for that.
Just one small thing -- Can we remove the number?

[I tried to look at the js but could not figure out the details and
also the debugging model]



Re: [O] tooltips

2014-01-15 Thread Rustom Mody
On Thu, Jan 16, 2014 at 3:44 AM, Christian Moe wrote:

 Rustom Mody writes:

 Thanks Christian for that.
 Just one small thing -- Can we remove the number?

 Sure, try this new version of fntooltip.js:

Super! Thanks Christian!



[O] odt exporter on mixed org setup

2014-01-15 Thread Rustom Mody
Just helped a friend to install and upgrade to latest org.
Method summary:
$ git clone
$ make update
combined with setup of load-paths

Ended with: ox-odt cannot find factory style files

I remember that I too had this problem
http://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00341.html
and it had recently disappeared.

Checked that it comes back it I use emacs23; goes away if I use emacs24
Checked that the messages when it works in emacs24 are like thus:

Debug (ox-odt): Searching for OpenDocument styles files...
Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
Debug (ox-odt): Trying ~/pdsw/etc/styles/...
Debug (ox-odt): Trying ~/pdsw/org-mode/lisp/etc/styles/...
Debug (ox-odt): Trying /usr/share/emacs/24.3/etc/org/...
Debug (ox-odt): Using styles under /usr/share/emacs/24.3/etc/org/
Debug (ox-odt): Searching for OpenDocument schema files...
Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
Debug (ox-odt): No OpenDocument schema files installed

So evidently my 'working' odt export is working because its using the
builtin emacs odt exporter and not the latest one

Looking at org-odt-* stuff I see almost a dozen files and directories
and file lists and what not.

All attempts so far at doing
 (setq org-odt-styles-dir ~/pdsw/org-mode/etc/styles)
in various places, hooks etc have not changed the fact that it gets
the builtin one



Re: [O] tooltips

2014-01-14 Thread Rustom Mody
On Tue, Jan 14, 2014 at 11:16 PM, Christian Moe m...@christianmoe.com wrote:

 Bastien writes:

 Instead of changing the current HTML, I'd rather go and find a
 solution where some javascript can display the tooltip.

 E.g.:

 ---

 $(document).ready(fntooltips);

 function fntooltips() {
 $(.footnum).each(
 function () {
 $([href='# + this.id + '])
 .attr(title,
   this.parentNode.parentNode.textContent);
}
 )
 }

 -

 Tested with JQuery 1.9.1 and a recent Org.

 Yours,
 Christian


May I have the setup?
ie where do I put that JS, the invocation/import or whatever of JQuery etc
[I really dont know any JS!]



[O] tooltips

2014-01-13 Thread Rustom Mody
I was wondering if org-mode html generation has some automatic way of
generating tooltips.

Something along the lines that instead of generating a footnote, a
footnote should generate a tooltip.  The html would be something like
this:

!DOCTYPE html
html
body
div title=Hi! Now you see me!hover me/div
/body



Re: [O] make doc failing

2013-12-30 Thread Rustom Mody
On Mon, Dec 30, 2013 at 3:36 PM, Vladimir Lomov wrote:
 In short texi2dvi works texi2pdf fails

 Try to add -q option to TEXI2PDF, I resolved that issue when texinfo 5.0
 (actually I don't remember when, though could dig git log of my repo)
 apperead in my distro (Archlinux).

 P.S.
 If you are interesed how I do this, see this file (package build script),
 https://github.com/vp1981/pkgbuild/blob/master/emacs-org-mode/PKGBUILD
 especially line with TEXI2PDF.

No -q does not help

Likewise Achim:

 The error should go away if you remove the comments.  Let me know if
 that works for you, I'll check in a fix in a few days.

The perl warning goes if those those LC_ALL/LANG lines are commented out
However the pdf generation still fails

However texi2dvi works (maybe with some strange artifacts in the pdf
-- not checked details) and then dvipdf.

Also removing the --expand seems to make it work without errors



Re: [O] make doc failing

2013-12-30 Thread Rustom Mody
My current conclusion on this is that there seems to be some issues
with texi2pdf version 5

The explicit command
texi2pdf -V --tidy --batch --expand org.texi
generated this first page
[Note there is some garbage at top]

texi2pdf  --batch --expand org.texi
ends with
/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.


pg1.pdf
Description: Adobe PDF document


Re: [O] make doc failing

2013-12-29 Thread Rustom Mody
Nick wrote:
 I tried last night and again tonight after pulling: I get no errors
 with `make doc'.

And I continue to get the errors with no doc (pdf) built.
I can attach the build messages (800 lines)
For now some snippets of what I see

git pull
Already up-to-date.
...

texi2pdf --batch --clean --expand org.texi
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = C
are supported and installed on your system.

...

Cannot open load file: ob-sh
-
Note that locale returns as follows:
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=en_US.UTF-8



Re: [O] make doc failing

2013-12-29 Thread Rustom Mody
Nick wrote:

  texi2pdf --batch --clean --expand org.texi
  perl: warning: Setting locale failed.
  perl: warning: Please check that your locale settings:
  LANGUAGE = (unset),
  LC_ALL = (unset),
  LANG = C
  are supported and installed on your system.

 Where does perl come into the picture? Both texi2pdf and the program it
 calls, texi2dvi, are shell scripts. The only references to perl I find
 are in the run_hevea() function of texi2dvi and in the target making
 the orgcard in the doc Makefile. But that should not cause the PDF
 manual problems

texinfo has been ported to perl:
http://savannah.gnu.org/forum/forum.php?forum_id=7507
I find makeinfo and texi2html at least are perl

$ makeinfo --version
makeinfo (GNU texinfo) 5.2

Is yours the same?

  Cannot open load file: ob-sh

 ob-sh does not exist any more. Check your local.mk and delete it if it's
 there - I had the same problem because I had added it to
 BTEST_OB_LANGUAGES.

Nothing in local.mk but I find a testing/lisp/test-ob-sh.el
Is my git remote misdirected by any chance?

$ git remote -v show
origingit://repo.or.cz/org-mode.git (fetch)
origingit://repo.or.cz/org-mode.git (push)



Re: [O] make doc failing

2013-12-29 Thread Rustom Mody
Nick wrote:
 Rusi wrote:
  $ makeinfo --version
  makeinfo (GNU texinfo) 5.2
 
  Is yours the same?
 

 No, mine is 4.13 - apparently before the perl switcheroo.

And doc/Makefile has:

%.pdf:LC_ALL=C# work around a bug in texi2dvi
%.pdf:LANG=C# work around a bug in texi2dvi
%.pdf:%.texi org-version.inc
$(TEXI2PDF) $

Commenting out the LC/LANG lines makes the perl warning go away

Generation is still a problem
Works from command line texi2dvi
Fails with make doc

In short texi2dvi works texi2pdf fails



[O] links and anchors

2013-12-27 Thread Rustom Mody
Context is html export

I have a file of quotes like the following
--
* Declarative vs Imperative
Never tell people  how to do things. Tell them what to do and they will
surprise you with their ingenuity  \\
General G.S.Patton (1941)
-
which I link from another file

Now if
1. I put the anchor declarative inside the body then the header
vanishes on following the link
2. If I write it as
* Declarative and Imperative declarative
it works well but the header looks ugly at least in org though not on export
3. Looking at the generated html I see the autogenerated sec-9 for
that para can be used.  But then Ive to keep synced with what is
auto-generated.

What do people use for this situation?

-- 
http://www.the-magus.in
http://blog.languager.org



Re: [O] links and anchors

2013-12-27 Thread Rustom Mody
On Fri, Dec 27, 2013 at 4:59 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Rustom Mody rustompm...@gmail.com writes:

 Context is html export

 I have a file of quotes like the following
 --
 * Declarative vs Imperative
 Never tell people  how to do things. Tell them what to do and they will
 surprise you with their ingenuity  \\
 General G.S.Patton (1941)
 -
 which I link from another file

 Now if
 1. I put the anchor declarative inside the body then the header
 vanishes on following the link
 2. If I write it as
 * Declarative and Imperative declarative
 it works well but the header looks ugly at least in org though not on export
 3. Looking at the generated html I see the autogenerated sec-9 for
 that para can be used.  But then Ive to keep synced with what is
 auto-generated.

 What do people use for this situation?

 Did you try custom-id? See section 4.2 in manual.


 Regards,

 --
 Nicolas Goaziou

Thanks Nicholas -- just the thing!
[And about time I started learning about properties :D ]



[O] html5 generation minor bug

2013-12-27 Thread Rustom Mody
When the html-doctype is set to html5 the generator still generates
name attributes in links which is not correct html5
http://dev.w3.org/html5/markup/a.html#a-constraints



Re: [O] html5 generation minor bug

2013-12-27 Thread Rustom Mody
On Fri, Dec 27, 2013 at 10:53 PM, Bastien b...@gnu.org wrote:
 Hi Rustom,

 Rustom Mody rustompm...@gmail.com writes:

 When the html-doctype is set to html5 the generator still generates
 name attributes in links which is not correct html5
 http://dev.w3.org/html5/markup/a.html#a-constraints

 Can you give an example of what it does and what it should do?

Heres an org-file:
--
#+TITLE: Quotes and References
#+OPTIONS: toc:nil
* Soul
:PROPERTIES:
:CUSTOM_ID: soul
:END:
Nobel prize winner Wislawa Szymborska's poem on
[[http://www.poemhunter.com/poem/a-few-words-on-the-soul/][the soul]]
is a
poet's way of showing how dualistic our habitual thinking is
--
This is as far as I can see the offending line produced by html generation
--
h2 id=soula id=sec-1 name=sec-1/aspan
class=section-number-21/span Soul/h2
--
You can check for yourself
Generate the html yourself and use the validator here
http://validator.w3.org/check

Note 1. there are warnings, not errors
Note 2. Ive just cut out one sample from a file of mine. I could cut
down further

emacs version 24.3.1
org-version 8.2.4

emacs started with -Q
org put into path
then execute
(setq org-html-doctype html5)

[On another note choosing xhtml doctype in 2013 seems a strange
default given that xhtml is one of those standards that 'never
happened'
http://news.cnet.com/8301-17939_109-10281477-2.html
Of course I need to add the disclaimer that I know too little to
distinguish hype from fact in web matters]

Regards
Rusi

-- 
http://www.the-magus.in
http://blog.languager.org



[O] make doc failing

2013-12-27 Thread Rustom Mody
After latest pull make doc is failing to make org.pdf

Lots of stuff ending with
---
Output written on org.pdf (259 pages, 976592 bytes).
Transcript written on org.log.
/usr/bin/texi2dvi: pdftex exited with bad status, quitting.
make[1]: *** [org.pdf] Error 1
make[1]: Leaving directory `/src/pdsw/org-mode/doc'
make: *** [pdf] Error 2

But I cant seem to find org.log
And there is no org.pdf in doc



Re: [O] make doc failing

2013-12-27 Thread Rustom Mody
On Sat, Dec 28, 2013 at 9:06 AM, Rustom Mody rustompm...@gmail.com wrote:
 After latest pull make doc is failing to make org.pdf

 Lots of stuff ending with
 ---
 Output written on org.pdf (259 pages, 976592 bytes).
 Transcript written on org.log.
 /usr/bin/texi2dvi: pdftex exited with bad status, quitting.
 make[1]: *** [org.pdf] Error 1
 make[1]: Leaving directory `/src/pdsw/org-mode/doc'
 make: *** [pdf] Error 2

 But I cant seem to find org.log
 And there is no org.pdf in doc

Further:
Went into doc directory and did
$ texi2dvi org.texi
no (visible) error
followed by
$ dvipdf org.dvi

Seems to be working

-- 
http://www.the-magus.in
http://blog.languager.org



[O] escaping org commands

2013-12-20 Thread Rustom Mody
How does one escape something in a text that is an org-command
eg
I wanted to write
Something

It vanished from the export because its a link-target!


Re: [O] escaping org commands

2013-12-20 Thread Rustom Mody
On Fri, Dec 20, 2013 at 9:37 PM, Bastien b...@gnu.org wrote:

 Hello,

 Rustom Mody rustompm...@gmail.com writes:

  How does one escape something in a text that is an org-command
  eg
  I wanted to write
  Something
 
  It vanished from the export because its a link-target!

 You can customize `org-activate-links' so that radio links are
 not activated -- not tested, but my assumption is that the exporter
 should handle this fine.

 There is also `org-export-filter-radio-target-functions'.

 HTH,


Thanks Bastien that will work in this case
However I am also looking for something more generic:

When there is something in my document which normally looks like an
org command, is there any generic way of saying This particular
command-like thing is not a command

eg in C a backslash in strings (and in some cases a %) is an escape
character

Is there no such general (set of) concepts for org?

Rusi

-- 
http://www.the-magus.in
http://blog.languager.org


Re: [O] Org Tutorials need more structure

2013-09-29 Thread Rustom Mody
Some years ago I had sent a mail on this subject (Feb 6 2009).  I fished it
out and was editing it (below) and then see that Eric Abrahamsen has said
most what I wanted to say.

Anyways Ive kept the subject list below and want to add only this much:

People come to org for different reasons/needs/inclinations.
It is definitely worthwhile clubbing these diverse/contrasting ways into a
few (5-10?) foci/approaches

My subject list

* Publishing
** Web
** Latex
** Doc

* Brainstorming

* Managing My Data
  own private hyperlink system

* Time/project mgmt
*** Agenda
*** Time tracking
*** GTD
*** Journalling

* Tables and spreadsheets
* Programming (Babel)
** Literate programming
** Reproducible research
** Meta Programming


Re: [O] epresent issue

2013-09-27 Thread Rustom Mody
On Fri, Sep 27, 2013 at 3:13 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Rustom Mody rustompm...@gmail.com writes:

  On Fri, Sep 27, 2013 at 7:20 AM, Rustom Mody rustompm...@gmail.com
 wrote:
 
  Hi
 
  I am trying to use epresent for presentation.
  Start epresent with M-x epresent-run
 
  I seem to need to press one more q to get out of epresenting and then
 that
  q gets into the file.
 

 I can't reproduce this problem with a recent version of epresent and
 Org-mode.  For example with the following minimal Emacs invocation
 (without any configuration, run from the epresent directory).

 emacs -Q --eval (progn (add-to-list 'load-path
 \~/src/org-mode/lisp\) (require 'org)) -l epresent.el present.org


I tried this (with my-path adjustments); and a just-downloaded epresent
from above link; still the same behavior

In more detail:

0. Run command

emacs -Q --eval (progn (add-to-list 'load-path \~/pdsw/org-mode/lisp\)
(require 'org)) -l ~/.emacs.d/downloads/epresent.el  lastLect.org
and then in emacs:

1. Start with epresent-run
The buffer changes form half-way -- ie
a. it becomes full-screen,
b the menu line vanishes but
c. the mode line is present
d. the fonts are still small

2. After than whatever key I press (including q) it becomes like a
presentation -- ie no mode-line and large fonts

3. One more q and it quits with the q appearing where point was last


[O] Fwd: epresent issue

2013-09-27 Thread Rustom Mody
On Fri, Sep 27, 2013 at 9:58 PM, Rustom Mody rustompm...@gmail.com wrote:

 On Fri, Sep 27, 2013 at 3:13 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Rustom Mody rustompm...@gmail.com writes:

  On Fri, Sep 27, 2013 at 7:20 AM, Rustom Mody rustompm...@gmail.com
 wrote:
 
  Hi
 
  I am trying to use epresent for presentation.
  Start epresent with M-x epresent-run
 
  I seem to need to press one more q to get out of epresenting and then
 that
  q gets into the file.
 

 I can't reproduce this problem with a recent version of epresent and
 Org-mode.  For example with the following minimal Emacs invocation
 (without any configuration, run from the epresent directory).

 emacs -Q --eval (progn (add-to-list 'load-path
 \~/src/org-mode/lisp\) (require 'org)) -l epresent.el present.org


 I tried this (with my-path adjustments); and a just-downloaded epresent
 from above link; still the same behavior

 In more detail:

 0. Run command

 emacs -Q --eval (progn (add-to-list 'load-path \~/pdsw/org-mode/lisp\)
 (require 'org)) -l ~/.emacs.d/downloads/epresent.el  lastLect.org
 and then in emacs:

 1. Start with epresent-run
 The buffer changes form half-way -- ie
 a. it becomes full-screen,
 b the menu line vanishes but
 c. the mode line is present
 d. the fonts are still small

 2. After than whatever key I press (including q) it becomes like a
 presentation -- ie no mode-line and large fonts

 3. One more q and it quits with the q appearing where point was last



Also just checked with this trivial 4-line file in case there was something
in my org file.  Still the same
--
* H1
** H11
** H12
* H2
---

I just wonder if its to do with
1. emacs version 23.4.1
2. I am using xfce not the more common gnome/kde etc
Thinking of the second because there is a kind of lag in the full-screening
of the window -- something which seems related to the window manager??



-- 
http://www.the-magus.in
http://blog.languager.org


[O] epresent issue

2013-09-26 Thread Rustom Mody
Hi

I am trying to use epresent for presentation.
Start epresent with M-x epresent-run

I seem to need to press one more q to get out of epresenting and then that
q gets into the file.

Thanks

Rusi


Re: [O] epresent issue

2013-09-26 Thread Rustom Mody
On Fri, Sep 27, 2013 at 7:20 AM, Rustom Mody rustompm...@gmail.com wrote:

 Hi

 I am trying to use epresent for presentation.
 Start epresent with M-x epresent-run

 I seem to need to press one more q to get out of epresenting and then that
 q gets into the file.

 Thanks

 Rusi


Sorry for the half-complete line:
 Start epresent with M-x epresent-run

Was meaning to write a scenario but then decided that the one line was
enough :-)

Did not include usual version stuff (I assumed that I am doing something
wrong)
so here it is

Org-mode version 8.2 (release_8.2-34-g33aded
Emacs 23.4.1
epresent downloaded yesterday

Rusi
-- 
http://www.the-magus.in
http://blog.languager.org


Re: [O] Some orgtbl doc issues

2013-09-03 Thread Rustom Mody
Ive posted this on the python list
https://mail.python.org/pipermail/python-list/2013-September/655021.html


Re: [O] Some orgtbl doc issues

2013-08-31 Thread Rustom Mody
Well clearly the radio tables section reads better now. Further comments
inline.
Before that some general comments.

The Python list thread starting here
http://mail.python.org/pipermail/python-list/2013-July/653164.html

As you will see some python programmers (including emacsers!) seem to have
a need for something like this and dont seem to know about org. And by
extension one may assume other languages than python also. In short this
seems to be a general need.

So what is written below should be taken less from my own pov -- I am
hardly an org power-user but still a user -- than from the pov of a general
emacser -- a programmer who uses emacs and knows next to nothing about org


On Fri, Aug 30, 2013 at 10:16 PM, Carsten Dominik carsten.domi...@gmail.com
 wrote:

 Hi Rustom,

 thanks for this.

 On 16.8.2013, at 16:30, Rustom Mody rustompm...@gmail.com wrote:

  Ive recently been poking around in orgtbl mode and encountered some
  issues.  Not sure how much is my own lack of understanding and how
  much there are some little doc issues.
 
  1 Option names dont match
  =
 
   - Its orgtbl-radio-table-templates in emacs
   - Its orgtbl-radio-tables in doc Appendix A.6.2

 Fixed, thanks.

 
 
  2 Receiving string
  ==
 
   - Seems to be RECEIVE ORGTBL

 It is BEGIN RECEIVE ORGTBL followed by a table name.  As the example in
 the manual shows.  Does this have to be more explicit?

   - String seems to be hardwired. Which may be ok if its by design.

 Yes, hardwired by design.


Not a problem in itself.

It becomes a problem in connection with the dfault value of
org-radio-table-templates which contains many instances of

BEGIN RECEIVE ORGTBL %n

and thereby suggests that that is changeable


   - Not clear what is the relation of this string and
 orgtbl-radio-templates

 The templates insert a BEGIN RECEIVE/END RECEIVE table template with
 *proper commenting* around it in different programming modes.
 I improved this in the docs.

   - I find 1 space is fixed between RECEIVE and ORGTBL. Multiple
  allowed between ORGTBL and table-name

 OK, I have removed this restriction.

   - Its not clear from the doc whether its RECEIVE ORGTBL or
   /* RECEIVE ORGTBL

 That depends on the programming mode.  The documentation says that the
 lines must be comments in the current mode, I would think that this is
 clear enough.


Some languages (eg Python) have no multiline comment but have a multiline
string which is also ok to use



   - Subtle interaction between # in org and host mode comment char -- #
 in python, shell etc -- could do with some elaboration

 Can you propose something for the documentation?

 
 
  3 hook system
  =
 
   - What are the hooks for orgtbl?
   - How do the org hooks relate to the orgtbl hooks?
   - Note: orgtbl is for those who are not otherwise using orgmode

 What to you mean?  Mode hooks, or hooks for specific functionality of the
 table?  If table commands run hooks, the corresponding orgtbl commands will
 do so as well, because they simply call the table functions in an
 environment where the proper keys bindings are not accessible.


As I said at start of this mail, we are looking at orgtbl for otherwise
non-org users.
For that audience I was exploring whether vanilla org would work OTB
ie without any of my org-settings
also not the latest but one bundled with emacs

Since at that point I really could not understand
orgtbl-radio-table-templates and thought it had to be set I asked. As it
appears now, it works without any customization so the point is moot.
Nevertheless the general question is: If a non-org user of orgtbl needs to
set up minor-mode specific customization where is it to be done?


 orgtbl-mode is a standard minor mode and has `orgtbl-mode-hook', similar
 to all other minor modes.  See the documentation of define-minor-mode.  Do
 you feel the manual should say so?  It does not document many other hooks
 in org either, because there are too many.


 
  4 Long header line
  ==
 
   I could not figure out how to split a long
   :#+ORGTBL: SEND...  line

 It cannot be split.


There are programming related organizations for which something like
80-char lines is really not negotiable!
So I hope this can be considered as a feature request of course a very
minor one

Regards

 - Carsten



Speaking generally, maybe someone should respond to that python list thread.
It can be me however someone more org-knowledgeable may be more appropriate
:-)

Thanks and regards
Rusi

-- 

http://blog.languager.org


[O] Some orgtbl doc issues

2013-08-16 Thread Rustom Mody
Ive recently been poking around in orgtbl mode and encountered some
issues.  Not sure how much is my own lack of understanding and how
much there are some little doc issues.

1 Option names dont match
=

  - Its orgtbl-radio-table-templates in emacs
  - Its orgtbl-radio-tables in doc Appendix A.6.2


2 Receiving string
==

  - Seems to be RECEIVE ORGTBL
  - String seems to be hardwired. Which may be ok if its by design.
  - Not clear what is the relation of this string and
orgtbl-radio-templates
  - I find 1 space is fixed between RECEIVE and ORGTBL. Multiple
allowed between ORGTBL and table-name
  - Its not clear from the doc whether its RECEIVE ORGTBL or
  /* RECEIVE ORGTBL
  - Subtle interaction between # in org and host mode comment char -- #
in python, shell etc -- could do with some elaboration


3 hook system
=

  - What are the hooks for orgtbl?
  - How do the org hooks relate to the orgtbl hooks?
  - Note: orgtbl is for those who are not otherwise using orgmode


4 Long header line
==

  I could not figure out how to split a long
  :#+ORGTBL: SEND...  line

Regards
Rusi



[O] orgmode tables for programmers (was table export to same buffer)

2013-08-14 Thread Rustom Mody
On Mon, Aug 12, 2013 at 11:50 PM, William Henney when...@gmail.com wrote:


 The template is not strictly necessary - you can just add the required
 lines by hand to your C source file.
 I think that orgtbl-to-generic should be able to do what you want out of
 the box.  Maybe the attached example (orgtbl-test.c) might help you.  The
 idea is that you edit the org table at the top, then C-u C-u C-c C-c will
 update all the formulae in the table and install the results in your C
 source code at the bottom.  This is not quite what you originally asked
 for, since you have two copies of the data in the file and you have to
 remember to only edit the version in the org table.  But it is pretty
 close.

 Cheers

 Will


Thanks Will.
Ive converted your code to python (attached).
I find it works in org 8 but not in 6.33 -- the default for emacs on debian.
Is it easy to make it work for earlier org also??

Reason: This question was asked on the python list: thread starting
http://mail.python.org/pipermail/python-list/2013-July/653164.html
And so it would be good to have an example that works mostly out of the box


orgtbl.py
Description: Binary data


Re: [O] orgmode tables for programmers (was table export to same buffer)

2013-08-14 Thread Rustom Mody
On Wed, Aug 14, 2013 at 12:54 PM, Rustom Mody rustompm...@gmail.com wrote:

 I find it works in org 8 but not in 6.33 -- the default for emacs on
 debian.
 Is it easy to make it work for earlier org also??


Ok Ive managed to hack up something:  The attached works in org 6.33 and
8.0.7
Just one small help needed:
How to split the very long line

#+ORGTBL SEND mytable...

into multiple lines??


Regards
Rusi


orgtbl6.33.py
Description: Binary data


Re: [O] Bug: Revert orgtbl-create-or-convert-from-region [6.33x]

2013-08-05 Thread Rustom Mody
I was writing up what I could make out of having program-files with inline
tables.
The example is done for python.  It is exactly what the OP wants but close
enough so giving it here.
This file shows two approaches for making python data structures from
orgtbl with both sender and receiver in same file.

The first table is made with single line comments
The second table is made using python's triple-quote feature
The third is the recipient for both/either of the above

To try out orgtbl minor mode needs to be active after python mode is active.
Also it does not quite work for org 6.33
---
For the first use M-x orgtbl-toggle-comment followed by C-c C-c (inside the
table) to send to recipient, followed by another M-x orgtbl-toggle-comment

For the second only C-c C-c in the sender table is sufficient


cut here

# #+ORGTBL: SEND marks orgtbl-to-generic :sep ,
#   | abe   | 1 | 2 | 3 | 4 | 10 |
#   | beth  | 3 | 1 | 5 | 7 | 16 |
#   | cathy | 5 | 6 | 7 | 5 | 23 |
# #+TBLFM: $6=$2+$3+$4+$5


orig_table = 

#+ORGTBL: SEND marks orgtbl-to-generic :lfmt   \%s\: [%s,%s,%s,%s,%s],
:llfmt   \%s\: [%s,%s,%s,%s,%s]
  | abe   | 1 | 2 | 3 | 4 | 10 |
  | beth  | 9 | 1 | 5 | 9 | 24 |
  | cathy | 5 | 6 | 7 | 5 | 23 |
#+TBLFM: $6=$2+$3+$4+$5


stud_db = {
# BEGIN RECEIVE ORGTBL marks
abe,1,2,3,4,10
beth,3,1,5,7,16
cathy,5,6,7,5,23
# END RECEIVE ORGTBL marks
}

--- cut here -



-- 
http://www.the-magus.in
http://blog.languager.org


Re: [O] Bug: Revert orgtbl-create-or-convert-from-region [6.33x]

2013-08-05 Thread Rustom Mody
On Tue, Aug 6, 2013 at 10:58 AM, Rustom Mody rustompm...@gmail.com wrote:

 I was writing up what I could make out of having program-files with inline
 tables.
 The example is done for python.  It is exactly what the OP wants but close
 enough


That was intended to be NOT exactly what the OP wants...


Re: [O] table export to same buffer

2013-08-04 Thread Rustom Mody
On Sun, Aug 4, 2013 at 5:04 AM, William Henney when...@gmail.com wrote:


 On Fri, Aug 2, 2013 at 11:52 PM, Rustom Mody rustompm...@gmail.comwrote:

 Sebastien Vauban wrote

 On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody rustompm...@gmail.comwrote:

 Is it possible to export an orgmode table not to a new file but
 overwriting the org table in the same buffer?

 Context is editing source code which contains a largeish table of (say)
 constants.
 Editing is done with orgtbl minor mode.
 When done it should become back the table in the natural format of the
 programming language
 [For simplicity lets just say csv will do]



 Using an Org Babel code block (which you have to write, of course) taking as
 input your table, and outputting your constants in the wished format should 
 do
 what you're looking for, right?


 I dont think so.
 The context is writing C with C mode (or haskell with haskell-mode python
 with python-mode etc) ie the user is not using orgmode.  That is why I
 mentioned orgtbl, ie org table editing facilities are needed but the major
 mode is something else.


 What about a radio table using orgtbl-to-generic?

 See Appendix 6 of the Org manual

 Will


This looks like a useful approach

The variable names dont seem to match:
Appendix 6.2 talks of orgtbl-radio-tables
However org (8.0.7) seems to have orgtbl-radio-table-templates

Assuming they are the same, anywhere I can read about the documentation of
the template format?
Specifically I find that the name of the receiving function
(orgtbl-to-latex) seems to have a significance.  The same in the template
seems to have none


[O] table export to same buffer

2013-08-02 Thread Rustom Mody
Is it possible to export an orgmode table not to a new file but overwriting
the org table in the same buffer?

Context is editing source code which contains a largeish table of (say)
constants.
Editing is done with orgtbl minor mode.
When done it should become back the table in the natural format of the
programming language
[For simplicity lets just say csv will do]


Re: [O] table export to same buffer

2013-08-02 Thread Rustom Mody
Sebastien Vauban wrote

 On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody rustompm...@gmail.comwrote:

 Is it possible to export an orgmode table not to a new file but
 overwriting the org table in the same buffer?

 Context is editing source code which contains a largeish table of (say)
 constants.
 Editing is done with orgtbl minor mode.
 When done it should become back the table in the natural format of the
 programming language
 [For simplicity lets just say csv will do]



 Using an Org Babel code block (which you have to write, of course) taking as
 input your table, and outputting your constants in the wished format should do
 what you're looking for, right?


I dont think so.
The context is writing C with C mode (or haskell with haskell-mode python
with python-mode etc) ie the user is not using orgmode.  That is why I
mentioned orgtbl, ie org table editing facilities are needed but the major
mode is something else.

However here some pre and postprocessing is also probably required.
Something like an automation of the following:

1. Editing a large struct spec in C -- major mode is C-mode
2. Select the region (may even be a rectangle)
3. Paste into an org-mode buffer
4. Run C-c | on region
5. Edit table as required
6. org-table-export in desired format to a file F
7. Visit F
8. Copy/Cut F (if necessary as rectangle)
9. Go back to original C-mode buffer and paste


[O] build + odt-export issues

2013-07-08 Thread Rustom Mody
I have org from git
 make autoloads works
make all seems to work except that it ends with
-
Compiling /src/pdsw/org-mode-8/lisp/ox.el...

In toplevel form:
ox.el:5791:62:Warning: variable assignment to constant
`org-export-stack-mode-map'

In end of data:
ox.el:6151:1:Warning: the following functions are not known to be defined:
scroll-up-line, scroll-down-line
Wrote /src/pdsw/org-mode-8/lisp/ox.elc
Done (Total of 103 files compiled, 3 skipped)
make[2]: Leaving directory `/src/pdsw/org-mode-8/lisp'
make[1]: Leaving directory `/src/pdsw/org-mode-8/lisp'
--

However export to odt gives me
Error (ox-odt): Cannot find factory styles files, aborting

$ make install
make -C doc install
make[1]: Entering directory `/src/pdsw/org-mode-8/doc'
make[1]: *** No rule to make target `install'.  Stop.
make[1]: Leaving directory `/src/pdsw/org-mode-8/doc'
make: *** [install-doc] Error 2

though make install-lisp seems to work

org version 8.0.5
emacs version 23.4.1


[O] org build/git problems

2013-07-08 Thread Rustom Mody
Ive been having problems with odt export which seem to be related to build
issues which seem to be related to git issues.
http://thread.gmane.org/gmane.emacs.orgmode/74409

In more detail:
http://orgmode.org/worg/dev/org-build-system.html
says that the build structure includes (among other makefiles) these
---

org-mode/doc/Makefile
org-mode/etc/Makefile
org-mode/lisp/Makefile

---
However on my system I 'find' as follows
---
$ find . -iname makefile
./lisp/Makefile
./Makefile
---
ie there are NO makefiles in etc doc etc. Only in lisp.

So I conclude that the etc make which is needed to setup the odt export
paths is not happening and so odt-export is barfing.

So where are the makefiles?

Running git status I get the following which among other things shows the
makefiles from doc and etc as deleted.
I am too much of a git noob to know what next!!
---
$ git status
# On branch master
# Changes not staged for commit:
#   (use git add/rm file... to update what will be committed)
#   (use git checkout -- file... to discard changes in working
directory)
#
#deleted:.dir-locals.el
#deleted:.dir-settings.el
#deleted:contrib/scripts/.gitignore
#deleted:contrib/scripts/dir2org.zsh
#deleted:contrib/scripts/ditaa.jar
#deleted:contrib/scripts/docco.css
#deleted:contrib/scripts/org-docco.org
#deleted:contrib/scripts/staticmathjax/.gitignore
#deleted:contrib/scripts/staticmathjax/README.org
#deleted:contrib/scripts/staticmathjax/chrome/chrome.manifest
#deleted:contrib/scripts/staticmathjax/chrome/content/main.js
#deleted:contrib/scripts/staticmathjax/chrome/content/main.xul
#deleted:contrib/scripts/staticmathjax/defaults/preferences/prefs.js
#deleted:contrib/scripts/x11idle.c
#deleted:doc/.aspell.org.conf
#deleted:doc/.nosearch
#deleted:doc/Documentation_Standards.org
#deleted:doc/Makefile
#deleted:doc/dir
#deleted:etc/Makefile
#deleted:mk/fake_change_log.pl
#deleted:mk/git-changelog
#deleted:mk/guidesplit.pl
#deleted:mk/list-hooks.pl
#deleted:mk/manfull.pl
#deleted:mk/mansplit.pl
#deleted:request-assign-future.txt
#deleted:testing/.gitignore
#deleted:testing/examples/include.org
#deleted:testing/examples/include2.org
#deleted:testing/examples/link-in-heading.org
#deleted:testing/examples/links.org
#deleted:testing/examples/no-heading.org
#deleted:testing/examples/normal.org
#deleted:testing/examples/ob-awk-test.in
#deleted:testing/examples/ob-awk-test.org
#deleted:testing/examples/ob-lilypond-broken.ly
#deleted:testing/examples/ob-lilypond-broken.org
#deleted:testing/examples/ob-lilypond-test.error
#deleted:testing/examples/ob-lilypond-test.ly
#deleted:testing/examples/ob-lilypond-test.org
#deleted:testing/examples/ob-maxima-test.org
#deleted:testing/examples/ob-octave-test.org
#deleted:testing/examples/ob-screen-test.org
#deleted:testing/examples/org-exp.org
#deleted:testing/examples/property-inheritance.org
#deleted:testing/jump
#
no changes added to commit (use git add and/or git commit -a)


Re: [O] org build/git problems

2013-07-08 Thread Rustom Mody
On Tue, Jul 9, 2013 at 8:27 AM, Rustom Mody rustompm...@gmail.com wrote:

 Ive been having problems with odt export which seem to be related to build
 issues which seem to be related to git issues.
 http://thread.gmane.org/gmane.emacs.orgmode/74409

 In more detail:


Ran a
git reset --hard

The deleted status-es disappeared
Now odt export is working.

So two questions:
1. What could have happened that those files vanished?

2. Is it possible with the new build system to run org compiled but in-tree.
I do not like to run org from a separate build-directory than the git
directory because it creates one more nook for versionitits. See thread
http://thread.gmane.org/gmane.emacs.orgmode/73974/


Re: [O] org-odt-export-to-odt: hide text

2013-07-07 Thread Rustom Mody
Hi,
I have written something that may be useful to some and is somewhat
complementary to what is being discussed here.
[Well 'written' is not quite accurate  -- Nick and Stefan helped me get it
together]
Its a transliteration system that Ive used with the itrans devanagari (ie
Hindi/Sanskrit etc)

I expect that in any language in which
1. there is a somewhat accepted standard roman form
2. that roman form is available as an emacs input method
3. the roman is easier to write but painful (for natives of course!!) to
read

this will be useful

ie make a buffer (needs to be visiting a file) containing
OM
and call rpm-apply-iinput-method
and you should get a buffer containing
ॐ

Regards
Rusi

-- 
http://www.the-magus.in
http://blog.languager.org


apply-input-method.el
Description: Binary data


[O] babel - python question

2013-07-05 Thread Rustom Mody
[Complete babel noob here]

Following the babel doc
http://orgmode.org/worg/org-contrib/babel/intro.html#library-of-babel

I wrote this

* Head
#+name: ppp :results value
#+begin_src python
import time
print(Hello, today's date is %s % time.ctime())
print('Two plus two is')
return 2 + 2
#+end_src

Hit C-c C-c

and got a new block

#+RESULTS:
: 4


I am mystified!
In python a top level return gives a syntax error.
Here it works. Is some secret function being created?

Also the results changed to output does not change the behavior


Re: [O] Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]

2013-06-29 Thread Rustom Mody
On Sat, Jun 29, 2013 at 1:11 PM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Hello,

 Rustom Mody rustompm...@gmail.com writes:

  Now I find the crash occurs between
  org-export-preprocess-string and org-footnote-normalize

 These functions do not exist in the current export framework. You're
 calling the old exporter.


 Regards,

 --
 Nicolas Goaziou


So then something is wrong with my git.
[I am on a different machine right now so following is from memory...]

a. git pull shows upto date
b. org version shows 8.0.2 (or thereabouts)

Is there some 'git reset --hard ...' magic that I can try?
Of course I could just download whole again but that seems strange thing to
do...

-- 
http://www.the-magus.in
http://blog.languager.org


Re: [O] Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]

2013-06-29 Thread Rustom Mody
On Sat, Jun 29, 2013 at 5:15 PM, Rustom Mody rustompm...@gmail.com wrote:



 On Sat, Jun 29, 2013 at 1:11 PM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Hello,

 Rustom Mody rustompm...@gmail.com writes:

  Now I find the crash occurs between
  org-export-preprocess-string and org-footnote-normalize

 These functions do not exist in the current export framework. You're
 calling the old exporter.


 Regards,

 --
 Nicolas Goaziou


 So then something is wrong with my git.
 [I am on a different machine right now so following is from memory...]

 a. git pull shows upto date
 b. org version shows 8.0.2 (or thereabouts)

 Is there some 'git reset --hard ...' magic that I can try?
 Of course I could just download whole again but that seems strange thing
 to do...



Well finally! C-c C-e works (at least on one machine!) I was using
org-export-as-html

Maybe if it is non-working it should be removed?


[O] Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]

2013-06-28 Thread Rustom Mody
export as html is crashing with this (from *Messages* buffer)

org-export-preprocess-string: Wrong number of arguments: (then all sorts of
unprintable chars)


---
(setq
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 )


Re: [O] Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]

2013-06-28 Thread Rustom Mody
On Fri, Jun 28, 2013 at 10:42 PM, Rustom Mody rustompm...@gmail.com wrote:

 export as html is crashing with this (from *Messages* buffer)

 org-export-preprocess-string: Wrong number of arguments: (then all sorts
 of unprintable chars)



I should have added this information

The file I am exporting is just these 2 lines:

--
* head
some text
--

I am starting emacs with -Q, then just doing this
(add-to-list 'load-path (expand-file-name ~/pdsw/org-mode-8/lisp))

then exporting


Re: [O] Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]

2013-06-28 Thread Rustom Mody
Nick Dokos wrote:

 emacs version? org version? backtrace?
 I cannot reproduce with ...


 Ok I thought the org-submit-bug takes care of all this. Find it is partly
true -- dont see emacs version in my report. So

GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12) of 2012-09-22
on allspice, modified by Debian

Org-mode version 8.0.3 (release_8.0.3-295-g91a4c8.dirty @
~/pdsw/org-mode-8/lisp/)

$ git pull
Already up-to-date.

$ make autoloads
$ make all done

Now I find the crash occurs between
org-export-preprocess-string and org-footnote-normalize
edebug messages attached

However the 'dirty' in may subject line (created by org-submit-bug) makes
me suspicious
Saving file /home/rusi/courses/vertis/withdebug.txt...
Wrote /home/rusi/courses/vertis/withdebug.txt
Quit
Making completion list... [3 times]
Quit
Type C-x 1 to delete the help window.
org-export-preprocess-string
help-follow: No cross-reference here
call-interactively: Command attempted to use minibuffer while in minibuffer [3 
times]
Quit
org-footnote-normalize
Exporting...
progn: Wrong number of arguments: (lambda (optional sort-only) Collect the 
footnotes in various formats and normalize them.

This finds the different sorts of footnotes allowed in Org, and
normalizes them to the usual [N] format.

When SORT-ONLY is set, only sort the footnote definitions into the
referenced sequence. (let* ((limit-level (and (boundp (quote 
org-inlinetask-min-level)) org-inlinetask-min-level (1- 
org-inlinetask-min-level))) (nstars (and limit-level (if org-odd-levels-only 
(1- (* limit-level 2)) limit-level))) (org-outline-regexp (concat \\* (if 
nstars (format \\{1,%d\\}  nstars) + ))) (count 0) ins-point ref ref-table) 
(save-excursion (goto-char (point-min)) (while (setq ref 
(org-footnote-get-next-reference)) (let* ((lbl (car ref)) (pos (nth 1 ref)) (a 
(and lbl (assoc lbl ref-table))) (marker (or (nth 1 a) (incf count))) (inlinep 
(or (stringp (nth 3 ref)) (nth 3 a (if sort-only (goto-char (nth 2 ref)) 
(delete-region (nth 1 ref) (nth 2 ref)) (goto-char (nth 1 ref)) (insert (format 
[%d] marker)) (and inlinep org-footnote-fill-after-inline-note-extraction 
(org-fill-paragraph))) (unless a (let ((def (or ... ...))) (push (list lbl 
marker def inlinep (copy-marker pos)) ref-table) (cond ((and 
org-footnote-section (derived-mode-p (quote org-mode))) (goto-char (point-min)) 
(if (re-search-forward (concat ^\\*[]+ (regexp-quote 
org-footnote-section) [  ]*$) nil t) (delete-region (match-beginning 0) 
(org-end-of-subtree t t))) (goto-char (point-max)) (skip-chars-backward  

) (forward-line) (unless (bolp) (newline))) ((derived-mode-p (quote 
org-mode))) (t (when org-footnote-tag-for-non-org-mode-files (let ((tag (concat 
^ ... [ ]*$))) (goto-char (point-min)) (while (re-search-forward 
tag nil t) (replace-match ) (delete-region (point) (progn ... ...) (if 
(and (derived-mode-p (quote message-mode)) (goto-char (point-max)) 
(re-search-backward message-signature-separator nil t)) (beginning-of-line) 
(goto-char (point-max) (setq ins-point (point-marker)) (setq ref-table 
(delq nil (mapcar (lambda (x) (cond ((and sort-only ...) (set-marker ... nil) 
nil) ((not ...) (append ... ...)) (t x))) ref-table))) (setq ref-table 
(nreverse ref-table)) (mapc (lambda (x) (unless (nth 3 x) 
(org-footnote-delete-definitions (car x ref-table) (goto-char ins-point) 
(cond ((not ref-table)) ((or (not (derived-mode-p (quote org-mode))) 
org-footnote-section) (if (not (derived-mode-p (quote org-mode))) (progn 
(skip-chars-backward

) (delete-region (point) ins-point) (unless (bolp) (newline)) (when 
org-footnote-tag-for-non-org-mode-files (insert 
 org-footnote-tag-for-non-org-mode-files 
))) (when (and (cdr (assq ... org-blank-before-new-entry)) (zerop 
(save-excursion ...))) (insert 
)) (insert *  org-footnote-section 
)) (set-marker ins-point nil) (insert (mapconcat (lambda (x) (set-marker (nth 
4 x) nil) (format 
[%s] %s (nth ... x) (nth 2 x))) ref-table 
)) (unless (eobp) (insert 

))) (t (mapc (lambda (x) (let ((pos ...)) (goto-char pos) (set-marker pos 
nil)) (org-footnote-goto-local-insertion-point) (insert (format 
[%s] %s
 (if sort-only ... ...) (nth 2 x ref-table)), 2
Mark set


Re: [O] ox-html.el removal

2013-03-11 Thread Rustom Mody

 A child with Asperger’s syndrome may notice that a woman in the line at
 the supermarket checkout is obese, and remark, in his or her usual tone of
 voice and volume, that the lady is fat and needs to go on a diet. The
 child’s opinion is that she should be grateful for the observation and
 advice; the likelihood that his or her mother will be embarrassed or the
 woman offended at such a rude comment is not part of the child’s thinking
 process. Other children would normally inhibit such a response, based on
 the  understanding of the other person’s thoughts and feelings. Children
 and adults with Asperger’s syndrome appear to have a greater allegiance to
 honesty and the truth than to the thoughts and feelings of others.
 [From The complete guide to Aspergers by Tony Attwood]


When Samuel writes short context-less mails and someone (interestingly
Jambunathan) shows irritation, Carsten firmly and gently advocates
compassion considering his difficulties

Just putting forward the possibility that Jambunathan suffers from
Aspergers and be treated with the (some?) compassion

So when Jambunathan says:
- dont wear implementer hat, just wear user hat
- the table in footnote is not confusing
- etc etc,

he probably has no clue that he is hurting people's sentiments. And
scolding him for the same is similar to scolding a color-blind person for
breaking a traffic signal.  The central feature of Aspergers is inability
to have a 'theory-of-mind' the sense that others have consciousness
analogous to ourselves.  This comes across as ridiculous egoism ('being a
jerk') when in fact its a painful cerebral defect of being unable to put
oneself in another's shoes

Of course disabled persons should not be allowed to drive if it can be
dangerous to others/themselves.
Likewise what is decided about conduct/etiquette on this list and/or
contribution to org in the larger interest, is ok by me.
Just requesting some compassion in the decision-making

Jambunathan: Maybe you think that by violently wrenching yourself out of
the org community you can start again on a clean slate elsewhere? I would
bet the problems you are facing here are not the first such in your life
and if you dont learn from these they will hardly be the last.  On the
other hand if you do learn maybe you will find that the org community is as
warm, friendly and vibrant as any you can get.

Finally a personal note: I often feel the way you do. Sitting before a
computer makes it worse. Sunshine makes it better. In particular
surya-namaskar is quite a magic potion.

Hope you can do a few before making a response


Re: [O] org for blogger

2012-09-01 Thread Rustom Mody
On Sat, Sep 1, 2012 at 8:54 PM, Samuel Wales samolog...@gmail.com wrote:

 On 8/31/12, Rustom Mody rustompm...@gmail.com wrote:
  Great Samuel!
  Anything I can do to help?

 Dunno.  :)

 Here is the new code (with dependencies not included as
 mentioned).  Most of it, including the command you asked for,
 might work without them.  No guarantees.

 An old version is in the thread [O] exporting HTML
 - content only, with Tamas Papp and others.

 Alexandre, a few small things are needed to produce a blog
 to my standards: H level fix, diff with live, footnote CSS
 fix, exact and fast word count, emdash, section
 separator, jump page marker, colored boxes with padding and
 margin, Blogger editor settings, org-export-with-*, etc.

 If the defaults work for you, there is no need to use
 anything like this.

 It was written over years a few minutes
 at a time.  Again, it was written for me.

 FWIW, HTH.

 Samuel


Looks neat Samuel Thanks!

I needed to put a (require 'cl) [for the defun*] and then evaling the file
went through.
After that I get (from *messages* buffer)

byte-code: Invalid function: (interblock (start end) (mapcar (lambda (pair)
(funcall (second pair) start end)) org-export-interblocks))

when trying to call alpha-org-blog-subtree.
Is that what I should call?


Re: [O] org for blogger

2012-09-01 Thread Rustom Mody
On Sat, Sep 1, 2012 at 9:46 PM, Samuel Wales samolog...@gmail.com wrote:

 On 9/1/12, Samuel Wales samolog...@gmail.com wrote:
  byte-code: Invalid function: (interblock (start end) (mapcar (lambda
  (pair)
  (funcall (second pair) start end)) org-export-interblocks))

 Did you try in a minimal installation?

 Samuel

 --
 The Kafka Pandemic: http://thekafkapandemic.blogspot.com


Seems to be working now.
Not sure what was wrong but it appears that I needed to do a make (have not
done it for org for some years) after that the error disappeared.

It seems I can only export one subtree on which point is.
How to export the whole file?


Re: [O] org for blogger

2012-09-01 Thread Rustom Mody
On Sat, Sep 1, 2012 at 10:32 PM, Samuel Wales samolog...@gmail.com wrote:

 On 9/1/12, Rustom Mody rustompm...@gmail.com wrote:
  Seems to be working now.
  Not sure what was wrong but it appears that I needed to do a make (have
 not
  done it for org for some years) after that the error disappeared.

 Great.

  It seems I can only export one subtree on which point is.
  How to export the whole file?

 Create a top level headline, or activate the region on the whole buffer.

 I never do things at the file level in Org, because to me Org is
 fundamentally an outline.


Not sure how to interpret that operationally...
You keep all your blog-posts in one file with one top-level heading per
post?


[O] org for blogger

2012-08-31 Thread Rustom Mody
What is the best way to use orgmode to prepare posts for blogger?

Sorry if this is a FAQ; I did google around and best I get is
http://orgmode.org/worg/org-blog-wiki.html which does not seem to have
something specifically for blogger.

Note I am asking about preparing the html so that it is blogger-friendly.
It can then be manually posted into the html tab.
Automatically posting/uploading etc is a second question but that is not my
primary focus as of now.


Re: [O] org for blogger

2012-08-31 Thread Rustom Mody
On Sat, Sep 1, 2012 at 8:26 AM, Samuel Wales samolog...@gmail.com wrote:

 On 8/31/12, Rustom Mody rustompm...@gmail.com wrote:
  Note I am asking about preparing the html so that it is blogger-friendly.
  It can then be manually posted into the html tab.

 I have code for exactly this, but it is not packagized and not all of
 it will work for you without tweaking.  It comes with explanation of
 what Blogger needs.  I posted a working version long ago, and it has
 been updated since, but now requires a few odds and ends from my
 setup, so it is not self-contained.  It is slowly (years) being
 packagized.

 I will try to soon post the new code FWIW.  I run my blog with it.
 The neatest feature is that you can diff an updated entry with the
 live version.


Great Samuel!
Anything I can do to help?
[I am more comfortable with emacs and elisp than html/css and all that
jazz. But Ive been known to learn... somethings... sometimes...  :-) ]


[O] speeding up org (was How could I mix COMMENT and TODO?)

2012-04-06 Thread Rustom Mody
François wrote:


 In my very first tries with Org, a few months ago, I put all Org files
 into the agenda, to discover that Org was very, very slow.  So, I
 changed it all and collected all agenda and TODO into three files only,
 holding lots of links to all other Org files where the information
 really was.  Org recovered all its speed.  And besides, to repair the
 lost search capabilities, I kludged M-x rgrep so it could search all Org
 files and reveal contents when visiting hits.  Well, the reveal does
 not always work, but yet, the quicker search is constantly useful to me.

 Currently, having put TODOs back in their proper Org files and declaring
 them as agenda files, 38 agenda files are taken out from 360 Org files.
 Even if slightly less speedy than 3 agenda files, this is still very
 bearable: Org does not crawl.  The way Org handles org-agenda-files as
 a string naming a file is really convenient to me, it eases the writing
 of external programs acting on them all.  All in all, very satisfactory!



Hi François,

I made the suggestion that ragel should/could be part of emacs:
http://lists.gnu.org/archive/html/emacs-orgmode/2012-03/msg00864.html

Summarised by saying that if ragel is integrated into elisp, org code could
become both significantly faster and more readable.

That most sluggish elisp code may be so due to regular expression code, is
discussed here:
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01202.html

[In all fairness this is all a bit OT for an org list and should really be
on an emacs devel list]

Rusi


Re: [O] Python code block hangs with :session if python-mode is loaded

2012-04-01 Thread Rustom Mody
At some point I tried IPython under emacs in windows and had some problems.
From what Eric is saying they may be similar to this

http://lists.gnu.org/archive/html/help-gnu-emacs/2011-05/msg00291.html
https://bugs.launchpad.net/ipython/+bug/290228


Re: [O] GSoC 2012 -- Elisp backend for Ragel

2012-03-25 Thread Rustom Mody
Resending this because it seems to not have reached
---

I asked Adrian Thurston the author of ragel if he would support help this
project.
His reply to me is here:

Hi Rustom,

 I can certainly help with guidance. I'm about to relocate across much of
 canada and so I won't be able to crack open code very easily.

 Aurélien: my apologies I haven't responded. I certainly support your
 effort, just have had some big career/life changes going on.

 Regards,
 Adrian


As for Nicolas, he wrote:

FYI, there is already an elisp Org parser being worked on in development
 branch of Org mode. It isn't finished yet, but still advanced enough so
 a generic exporter could be built upon it.

 Is there any interest in ignoring it and restart all the work from
 scratch?


Yes I agree, no point redoing work unnecessarily.  Maybe the optimal
solution would be for Aurélien to work with Nicolas and Adrian to minimize
useless rework?

Aurélien you now need to say what are your preferences in this matter.

Rusi


  1   2   3   >