Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2011 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1073383 to your computer and use it in GitHub Desktop.
Save anonymous/1073383 to your computer and use it in GitHub Desktop.
some org mode bugs

Lp_SOLVE is in code and should be verbatim for html export!

{{{title}}} this should not have a subscript!

Clojure Problems

Functions should be respected

(in-ns 'user)
(ns-unmap *ns* '+)
(defn + [a b] 
  "corrupted +" )
#'user/+

Should be:

#'user/+
(+ 1 2)
corrupted

Should be:

corrupted +

as can be seen, the + here refers to whatever namespace we are currently in

Lists should be converted to tables

'(1 2 3 4 5)

Should be:

12345

Here, a clojure list should be converted into a table

Vectors should be converted to tables

[1 2 3 4 5]

Should be:

12345

here, a clojure vector should be converted into a table

Verbatim vectors should be left alone

[1 2 3 4 5]

Should be:

[1 2 3 4 5]

here, a clojure vector should remain as is

Verbatim lists should be left alone

'(1 2 3 4 5)

should be:

here, a clojure list should remain as is

clojure maps should be respected

{:water 1 :ground 2}
{:water 1, :ground 2}

Should be:

{:water 1, :ground 2}

clojure maps should be preserved verbatim

(:solution {:solution {:water 1 :ground 2}})
{:water 1, :ground 2}

Should be:

{:water 1, :ground 2}

even if they are the result of a function call!!!

(defn farmer-example []
 {:solution {"barley" 53.12499999999999, "wheat" 21.875}})

(:solution (farmer-example))
barley

Should be

{"barley" 53.12499999999999, "wheat" 21.875}

Output should be respected

(println "hi")
5

Should be:

hi

Shell Problems

Verbatim and Scalar should do the same thing!

echo "
 Value of objective function: 6315.62500000
 
 Actual values of the variables:
 wheat                      21.875
 barley                     53.125";
Valueofobjectivefunction:6315.625
Actualvaluesofthevariables:
wheat21.875
barley53.125

Should be the same as with “scalar”:

echo "
 Value of objective function: 6315.62500000
 
 Actual values of the variables:
 wheat                      21.875
 barley                     53.125";
 Value of objective function: 6315.62500000
 
 Actual values of the variables:
 wheat                      21.875
 barley                     53.125

links

In addition to verbatim stuff not working in the title for html-export, verbatim text does not work for links either.

Suggestions

I think that constructs like é should display only as the single character and not that character followed by {}, when using org-toggle-pretty-entities. I’d like to see

pokemon (with the acute e) instead of poke{}mon (with the braces) in this mode.

Here’s the example

pokémon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment