[BUG] commit 7048876f broke Figure link with caption [9.6 (release_9.6 @ /Users/powellb/src/org-mode/lisp/)]

2022-12-18 Thread Brian Powell

It seems that the following commit broke the ability to link to a figure
with a caption.

  commit 7048876f6fa519513763c83bc5baa791420cddab
  Author: Ihor Radchenko 
  Date:   Tue Dec 13 11:44:22 2022 +0300

  org-export-get-ordinal: Do not ignore ELEMENT type when TYPES is given

  * lisp/ox.el (org-export-get-ordinal): Append ELEMENT type to TYPES,
  when TYPES is non-nil.

I have a simple file with a figure and image link. The figure has a
#+name and #+caption. If I add a link to the figure name in the
document, then exporting to HTML fails. Prior commits did not have any issue.

Using `emacs -Q` with the following:

(add-to-list 'load-path "/Users/powellb/src/org-mode/lisp")
(require 'org)

With the following sample file:

#+TITLE:   test
#+AUTHOR:  Me
#+EMAIL:   email
#+DATE:


#+name: fig:parcel
#+caption: Illustration of joy
#+attr_html: :width 600px
#+attr_org: :width 50px
#+attr_latex: :width 3.5in
[[file:./test.png]]

Done!

So, Figure [[fig:parcel]] is an illustration of the stuff.

Executing C-c C-e h o : to export to html and open, results in the
attached trace dump.

Cheers,
Brian

Emacs  : GNU Emacs 29.0.60 (build 1, aarch64-apple-darwin22.2.0, NS 
appkit-2299.30 Version 13.1 (Build 22C65))
 of 2022-12-16
Package: Org mode version 9.6 (release_9.6 @ /Users/powellb/src/org-mode/lisp/)


Debugger entered--Lisp error: (wrong-type-argument listp (link . link))
  memq(section (link . link))
  (if (memq --type types) (progn (let ((result (funcall fun --data))) (cond 
((not result)) (first-match (throw :--map-first-match result)) (t (setq --acc 
(cons result --acc)))
  (cond ((not --data)) ((and info (memq --data --ignore-list))) ((not --type) 
(mapc --walk-tree --data)) ((eq --type 'org-data) (mapc --walk-tree 
(org-element-contents --data))) (t (if (memq --type types) (progn (let ((result 
(funcall fun --data))) (cond ((not result)) (first-match (throw 
:--map-first-match result)) (t (setq --acc ...)) (if (and (eq --category 
'objects) (not (stringp --data))) (progn (let ((tail (cdr ...))) (while tail 
(let (...) (funcall --walk-tree ...) (setq tail ...)) (if (and 
with-affiliated (eq --category 'objects) (eq (org-element-class --data) 
'element)) (progn (let ((tail org-element--parsed-properties-alist)) (while 
tail (let (...) (let ... ...) (setq tail ...)) (cond ((memq --type 
no-recursion)) ((not (org-element-contents --data))) ((and (eq --category 
'greater-elements) (not (memq --type org-element-greater-elements ((and (eq 
--category 'elements) (eq (org-element-class --data) 'object))) (t (mapc 
--walk-tree (org-element-contents --data))
  (let ((--type (org-element-type --data))) (cond ((not --data)) ((and info 
(memq --data --ignore-list))) ((not --type) (mapc --walk-tree --data)) ((eq 
--type 'org-data) (mapc --walk-tree (org-element-contents --data))) (t (if 
(memq --type types) (progn (let ((result ...)) (cond (...) (first-match ...) (t 
...) (if (and (eq --category 'objects) (not (stringp --data))) (progn (let 
((tail ...)) (while tail (let ... ... ...) (if (and with-affiliated (eq 
--category 'objects) (eq (org-element-class --data) 'element)) (progn (let 
((tail org-element--parsed-properties-alist)) (while tail (let ... ... ...) 
(cond ((memq --type no-recursion)) ((not (org-element-contents --data))) ((and 
(eq --category 'greater-elements) (not (memq --type 
org-element-greater-elements ((and (eq --category 'elements) (eq 
(org-element-class --data) 'object))) (t (mapc --walk-tree 
(org-element-contents --data)))
  (closure ((--walk-tree . #0) (--acc) (--ignore-list) (--category . objects) 
(no-recursion) (types link . link) (with-affiliated) (first-match . 
first-match) (info :export-options nil :back-end ... :translate-alist ... 
:exported-data # :input-buffer "newtest.org" 
:input-file "/Users/powellb/tmp/new..." :html-doctype "xhtml-strict" 
:html-container "div" :html-content-class "content" :description nil :keywords 
...) (fun closure ... ... ...)) (--data) (let (...) (cond ... ... ... ... 
...)))((section (:begin 1 :end 307 :contents-begin 1 :contents-end 307 
:robust-begin 1 :robust-end 305 :post-blank 0 :post-affiliated 1 :mode 
first-section :granularity nil :parent (org-data (:begin 1 :contents-begin 1 
:contents-end 307 :end 307 :robust-begin 3 :robust-end 305 :post-blank 0 
:post-affiliated 1 :path "/Users/powellb/tmp/newtest.org" :mode org-data 
:CATEGORY "newtest" :granularity nil) #1)) (keyword (:key "TITLE" :value "test" 
:begin 1 :end 21 :post-blank 0 :post-affiliated 1 :mode top-comment 
:granularity nil :parent #1)) (keyword (:key "AUTHOR" :value "Brian Powell" 
:begin 21 :end 49 :post-blank 0 :post-affiliated 21 :mode nil :granularity nil 
:parent #1)) (keyword (:key "EMAIL" :value

Re: [PATCH] Re: Inconsistent use of \ref and \eqref in ox-latex and ox-html

2020-04-20 Thread Brian Powell

Thanks again. Please find attached patch addressing issues below.

Cheers,
Brian


On Mon, Apr 20 2020, Nicolas Goaziou wrote:

>> Subject: [PATCH] add org-html-equation-reference-format to customize MathJax
>>  ref command
>
> The commit message should reference the file being modified. I suggest
> something along the lines:
>
> Add customizable format string for equations
>
> * lisp/ox-html.el (org-html-equation-reference-format): New variable.

updated

>> +(defcustom org-html-equation-reference-format "\\eqref{%s}"
>> +  "MathJax command to use when referencing equations. This is a
>> +format controls string, expecting a single argument, the equation
>> +being referenced that is generated on export.
>
> Small nit here. The first line of a docstring must contain complete
> sentences only. Therefore you need to move "This is a" part to the line
> below.
>
> Also : controls -> control
>
> Otherwise, it looks good! Could you provide an entry in ORG-NEWS about
> it? I think Version 9.4 > Miscellaneous is a fine place for it.

Done and done.

>From f3a8e7d99a390c6dd965f347d95f35780e7d3a77 Mon Sep 17 00:00:00 2001
From: Brian Powell 
Date: Mon, 20 Apr 2020 09:49:12 -1000
Subject: [PATCH] Add customizable format string for equations in HTML export

* lisp/ox-html.el (org-html-equation-reference-format): New variable.
* doc/org-manual.org update to reference new variable
---
 doc/org-manual.org |  1 +
 etc/ORG-NEWS   |  9 +
 lisp/ox-html.el| 25 ++---
 3 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 6d5a34e56..4b1a14ef4 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -15851,6 +15851,7 @@ Settings]]), however, override everything.
 | ~:html-link-use-abs-url~   | ~org-html-link-use-abs-url~   |
 | ~:html-mathjax-options~| ~org-html-mathjax-options~|
 | ~:html-mathjax-template~   | ~org-html-mathjax-template~   |
+| ~:html-equation-reference-format~  | ~org-html-equation-reference-format~  |
 | ~:html-metadata-timestamp-format~  | ~org-html-metadata-timestamp-format~  |
 | ~:html-postamble-format~   | ~org-html-postamble-format~   |
 | ~:html-postamble~  | ~org-html-postamble~  |
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index f6f806b8f..fbee0124d 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -384,6 +384,15 @@ now. E.g.,
 This bug [[https://lists.gnu.org/archive/html/emacs-orgmode/2013-08/msg00072.html][originally reported]] by Matt Lundin and investigated by Andrew
 Hyatt has been fixed.  Thanks to both of them.
 
+*** Format of equation reference in HTML export can be specified
+
+By default, HTML (via MathJax) and LaTeX export equation references
+using different commands. LaTeX must use \ref{%s} because it is used
+for all labels; however, HTML (via MathJax) uses \eqref{%s} for equations
+producing inconsistent output. New option
+~org-html-equation-reference-format~ sets the command used in
+HTML export.
+
 * Version 9.3
 
 ** Incompatible changes
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index e70b8279b..266467345 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -121,6 +121,7 @@
 (:html-link-home "HTML_LINK_HOME" nil org-html-link-home)
 (:html-link-up "HTML_LINK_UP" nil org-html-link-up)
 (:html-mathjax "HTML_MATHJAX" nil "" space)
+(:html-equation-reference-format "HTML_EQUATION_REFERENCE_FORMAT" nil org-html-equation-reference-format t)
 (:html-postamble nil "html-postamble" org-html-postamble)
 (:html-preamble nil "html-preamble" org-html-preamble)
 (:html-head "HTML_HEAD" nil org-html-head newline)
@@ -761,6 +762,24 @@ The function should return the string to be exported."
 
  LaTeX
 
+(defcustom org-html-equation-reference-format "\\eqref{%s}"
+  "The MathJax command to use when referencing equations.
+
+This is a format control string that expects a single string argument
+specifying the label that is being referenced. The argument is
+generated automatically on export.
+
+The default is to wrap equations in parentheses (using \"\\eqref{%s}\)\".
+
+Most common values are:
+
+  \"\\eqref{%s}\"Wrap the equation in parentheses
+  \"\\ref{%s}\"  Do not wrap the equation in parentheses"
+  :group 'org-export-html
+  :package-version '(Org . "9.4")
+  :type 'string
+  :safe t)
+
 (defcustom org-html-with-latex org-export-with-latex
   "Non-nil means process LaTeX math snippets.
 
@@ -3113,9 +3132,9 @@ I

[PATCH] Re: Inconsistent use of \ref and \eqref in ox-latex and ox-html

2020-04-19 Thread Brian Powell

Nicolas, thank you for the feedback, and I apologize for my errors.

On Sun, Apr 19 2020, Nicolas Goaziou wrote:
>
> You need to provide a commit message, using git format-patch
> mechanism.
>

Apologies while I learn the procedure. I have corrected the issues below and 
generated a commit patch attached. Please let me know if there are any problems.

> However, it would be nice to reference that variable in
>
>   Publishing > Configuration > Options for the exporters > HTML specific 
> properties
>

It is now listed in this section and removed from the others.

>
> It might be useful to explicitly state this is a format control string,
> expecting a single argument, the actual reference.
>
>
> It should be "9.4".
>

Both are corrected.

>
> Indentation problem?
>

The indentation problem is in the original org code.

Thank you for all of your help and efforts.

Cheers,
Brian

>From a7c078e4b5f3d97fa7db0e1df192e26e6953ef71 Mon Sep 17 00:00:00 2001
From: Brian Powell 
Date: Sun, 19 Apr 2020 12:59:53 -1000
Subject: [PATCH] add org-html-equation-reference-format to customize MathJax
 ref command

---
 doc/org-manual.org |  1 +
 lisp/ox-html.el| 23 ---
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 6d5a34e56..4b1a14ef4 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -15851,6 +15851,7 @@ Settings]]), however, override everything.
 | ~:html-link-use-abs-url~   | ~org-html-link-use-abs-url~   |
 | ~:html-mathjax-options~| ~org-html-mathjax-options~|
 | ~:html-mathjax-template~   | ~org-html-mathjax-template~   |
+| ~:html-equation-reference-format~  | ~org-html-equation-reference-format~  |
 | ~:html-metadata-timestamp-format~  | ~org-html-metadata-timestamp-format~  |
 | ~:html-postamble-format~   | ~org-html-postamble-format~   |
 | ~:html-postamble~  | ~org-html-postamble~  |
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index e70b8279b..0565d47f0 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -121,6 +121,7 @@
 (:html-link-home "HTML_LINK_HOME" nil org-html-link-home)
 (:html-link-up "HTML_LINK_UP" nil org-html-link-up)
 (:html-mathjax "HTML_MATHJAX" nil "" space)
+(:html-equation-reference-format "HTML_EQUATION_REFERENCE_FORMAT" nil org-html-equation-reference-format t)
 (:html-postamble nil "html-postamble" org-html-postamble)
 (:html-preamble nil "html-preamble" org-html-preamble)
 (:html-head "HTML_HEAD" nil org-html-head newline)
@@ -761,6 +762,22 @@ The function should return the string to be exported."
 
  LaTeX
 
+(defcustom org-html-equation-reference-format "\\eqref{%s}"
+  "MathJax command to use when referencing equations. This is a
+format controls string, expecting a single argument, the equation
+being referenced that is generated on export.
+
+Default is to wrap equations in parentheses (using \"\\eqref{%s}\)\".
+
+Most common values are:
+
+  \"\\eqref{%s}\"Wrap the equation in parentheses
+  \"\\ref{%s}\"  Do not wrap the equation in parentheses"
+  :group 'org-export-html
+  :package-version '(Org . "9.4")
+  :type 'string
+  :safe t)
+
 (defcustom org-html-with-latex org-export-with-latex
   "Non-nil means process LaTeX math snippets.
 
@@ -3113,9 +3130,9 @@ INFO is a plist holding contextual information.  See
 (eq 'latex-environment (org-element-type destination))
 (eq 'math (org-latex--environment-type destination)))
;; Caption and labels are introduced within LaTeX
-	   ;; environment.  Use "eqref" macro to refer to those in
-	   ;; the document.
-   (format "\\eqref{%s}"
+	   ;; environment.  Use "ref" or "eqref" macro, depending on user
+   ;; preference to refer to those in the document.
+   (format (plist-get info :html-equation-reference-format)
(org-export-get-reference destination info))
  (let* ((ref (org-export-get-reference destination info))
 (org-html-standalone-image-predicate
-- 
2.26.0



Re: Inconsistent use of \ref and \eqref in ox-latex and ox-html

2020-04-19 Thread Brian Powell
Nicolas,

Thank you for the message. I spent about 2 hours on it today learning more 
about lisp and the internals to explain your email to me. I learned a lot.

I have modified ox-html.el to include a local OPTION as well as a customizable 
setting. I tested with both as well as with an export option. All three worked 
correctly. I also updated the org-manual.org.

Please find my patch attached.

Cheers,
Brian


diff --git a/doc/org-manual.org b/doc/org-manual.org
index 6d5a34e56..69a36d6c7 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -12531,6 +12531,15 @@ settings described in [[*Export Settings]].
   to typeset LaTeX math in HTML documents.  See [[*Math formatting in
   HTML export]], for an example.
 
+- =HTML_EQUATION_REFERENCE_FORMAT= ::
+
+  #+cindex: @samp{HTML_EQUATION_REFERENCE_FORMAT}, keyword
+  #+vindex: org-html-equation-reference-format
+  Specify the MathJax command for referencing equations
+  (~org-html-equation-reference-format~). The default is to wrap in
+  parentheses using "\\eqref{%s}". Setting to "\\ref{%s}" is consistent
+  with LaTeX export.
+
 - =HTML_HEAD= ::
 
   #+cindex: @samp{HTML_HEAD}, keyword
@@ -12898,6 +12907,9 @@ files.  This method requires that the dvipng program, dvisvgm or
 ImageMagick suite is available on your system.  You can still get this
 processing with
 
+The command for formatting equation references can be configured via
+~org-html-equation-reference-format~.
+
 : #+OPTIONS: tex:dvipng
 
 : #+OPTIONS: tex:dvisvgm
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index e70b8279b..4848028a2 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -121,6 +121,7 @@
 (:html-link-home "HTML_LINK_HOME" nil org-html-link-home)
 (:html-link-up "HTML_LINK_UP" nil org-html-link-up)
 (:html-mathjax "HTML_MATHJAX" nil "" space)
+(:html-equation-reference-format "HTML_EQUATION_REFERENCE_FORMAT" nil org-html-equation-reference-format t)
 (:html-postamble nil "html-postamble" org-html-postamble)
 (:html-preamble nil "html-preamble" org-html-preamble)
 (:html-head "HTML_HEAD" nil org-html-head newline)
@@ -761,6 +762,20 @@ The function should return the string to be exported."
 
  LaTeX
 
+(defcustom org-html-equation-reference-format "\\eqref{%s}"
+  "MathJax command to use when referencing equations.
+
+Default is to wrap equations in parentheses (using \"\\eqref{%s}\)\".
+
+Most common values are:
+
+  \"\\eqref{%s}\"Wrap the equation in parentheses
+  \"\\ref{%s}\"  Do not wrap the equation in parentheses"
+  :group 'org-export-html
+  :package-version '(Org . "9.3")
+  :type 'string
+  :safe t)
+
 (defcustom org-html-with-latex org-export-with-latex
   "Non-nil means process LaTeX math snippets.
 
@@ -3113,9 +3128,9 @@ INFO is a plist holding contextual information.  See
 (eq 'latex-environment (org-element-type destination))
 (eq 'math (org-latex--environment-type destination)))
;; Caption and labels are introduced within LaTeX
-	   ;; environment.  Use "eqref" macro to refer to those in
-	   ;; the document.
-   (format "\\eqref{%s}"
+	   ;; environment.  Use "ref" or "eqref" macro, depending on user
+   ;; preference to refer to those in the document.
+   (format (plist-get info :html-equation-reference-format)
(org-export-get-reference destination info))
  (let* ((ref (org-export-get-reference destination info))
 (org-html-standalone-image-predicate



On Fri, Apr 17 2020, Nicolas Goaziou wrote:

> Hello,
>
> Brian Powell  writes:
>
>> The issue is that when exporting equation numbers with ox-html, it uses 
>> MathJax's \eqref that wraps the equation in parentheses, for example:
>>
>> "Refer to (3) for more."
>>
>> However, when exporting the same document with ox-latex, it uses Latex's 
>> \ref that does not wrap the equation in parentheses. Would it be possible to 
>> add an option or variable to ox-html for the user to select whether to use 
>> \ref or \eqref on export?
>>
>> For those of us that publish to HTML and PDF, it is very difficult because 
>> you end up with either double or no parentheses.
>>
>> My proposed fix would be a change to ox-html from:
>>
>>(format "\\eqref{%s}"
>>(org-export-get-reference destination info))
>>
>> to
>>
>>(format (if org-html-export-mathjax-ref "\\ref{%s}" 
>> "\\eqref{%s}")
>>(org-export-get-reference destination info))
>>
>&

Inconsistent use of \ref and \eqref in ox-latex and ox-html

2020-04-10 Thread Brian Powell
This topic was discussed in 2015:



However, it seems that it we are still stuck with inconsistent exports between 
latex and HTML.

The issue is that when exporting equation numbers with ox-html, it uses 
MathJax's \eqref that wraps the equation in parentheses, for example:

"Refer to (3) for more."

However, when exporting the same document with ox-latex, it uses Latex's \ref 
that does not wrap the equation in parentheses. Would it be possible to add an 
option or variable to ox-html for the user to select whether to use \ref or 
\eqref on export? 

For those of us that publish to HTML and PDF, it is very difficult because you 
end up with either double or no parentheses.

My proposed fix would be a change to ox-html from:

   (format "\\eqref{%s}"
   (org-export-get-reference destination info))

to

   (format (if org-html-export-mathjax-ref "\\ref{%s}" 
"\\eqref{%s}")
   (org-export-get-reference destination info))

The variable org-html-export-mathjax-ref is non-nil to use \ref vs. nil to be 
the default \eqref.

Cheers, 
Brian   



Re: [O] The statement on what is orgmode.

2012-12-06 Thread brian powell
 6. Org-mode: It's difficult to say what exactly Emacs' Org-mode will
 do for you; it's easier to list all things it doesn't do.

Wow! Great thread.

I was going to ask the question what @isn't@ Emacs OrgMode--and not in a
trite way at all; in a serious way.

Emacs is a mode-less (concurrent major modes and minor modes galore) and an
infinitely extensible software tool.

OrgMode is an amazing tool that enables Emacs users the ability to do a
huge number of things, very simply and easily.

(E)macs (M)akes (A)ll (C)omputing (S)imple.

I often think: What are the epistemological limits of Emacs? What can't
you do or find out in Emacs?

Emacs has the fastest regexp engine (in the NFA and first character
descrimination sense--p.197 MRE, Friedl, et. al) for some things.

OrgMode's table interfaces with EmacsCalc--an extremely high-quality
science and math tool.

Seriously, you can do anything in/with Emacs; and, OrgMode works well in
most all other major modes in Emacs.

Remember the old icon symbol of Emacs--it literally is a picture of
kitchen sink--because you can do everything except the kitchen sink in
Emacs--and therefore OrgMode.

So, again, seriously, this thread is misnamed.  What can't you do in
Emacs/OrgMode?  What can't it be used for?--this should be the thread!

I'd really like to know.  Every week or two, something comes off my very
tiny list, which is just about empty.

Of course we all have computing limits of cpu and hard-drive space etc. so
those hard limits will always be the bottleneck as to what Emacs and
OrgMode can really be used for--buffers can only be so big.

Theoretically there are no limits here except computing limits--P vs. NP
is unproven--but P(space) is a hard limit.

Like with so many other things in life; Emacs OrgMode is what you make of
it.

If I had to chose: I vote for #1 or something like: Its your life
[organized] in plain text.


[O] [OT] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-07 Thread brian powell
 I still wonder if org is the right medium for this. Most of the
 devices are going to give you a TON of data (the neurosky raw stream
 is ~500hz update, emotiv is ~128hz, etc...). Pedometers and blood
 pressure monitors that do one-time large dumps might be somewhat more
 feasible.



* EMACS OrgMode is one of the right mediums for this:

** can put massive amounts of data in a tiny icon on your screen (that you
can wave your mouse over to glimpse whats inside--which could be data or
notes, etc.

** can quickly fold and unfold the data in a tree-like structure.

* I used to work with brainwave data with EMACS and neuroscientists at NIH
would be amazed at what I could do with the data.

* EMACS is in MIT's top 20 of all-time developments in Artificial
Intelligence.

You can use EMACS to massage the data and EMACS OrgMode to study whats
interesting to you and/or present it to other researchers.


Re: [O] [OT] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-07 Thread brian powell
* If you're worried about a TON of data filling the emacs buffer then
expand the max buffer size or you might want to look into QEmacs by Fabrice
Bellard (of Pi calculation fame, and creator of QEMU)

** I've used QEmacs to edit gigabyte+ size files.

*** I'm not sure that's what you're worried about; but, whatever.

On Fri, Sep 7, 2012 at 7:19 AM, brian powell briangpowel...@gmail.comwrote:



 I still wonder if org is the right medium for this. Most of the
 devices are going to give you a TON of data (the neurosky raw stream
 is ~500hz update, emotiv is ~128hz, etc...). Pedometers and blood
 pressure monitors that do one-time large dumps might be somewhat more
 feasible.



 * EMACS OrgMode is one of the right mediums for this:

 ** can put massive amounts of data in a tiny icon on your screen (that you
 can wave your mouse over to glimpse whats inside--which could be data or
 notes, etc.

 ** can quickly fold and unfold the data in a tree-like structure.

 * I used to work with brainwave data with EMACS and neuroscientists at NIH
 would be amazed at what I could do with the data.

 * EMACS is in MIT's top 20 of all-time developments in Artificial
 Intelligence.

 You can use EMACS to massage the data and EMACS OrgMode to study whats
 interesting to you and/or present it to other researchers.






Re: [O] [OT] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread brian powell
I used to do brainwave research (using eeg's): Maybe make some software
(R?) to do some FFT (Fast Fourier Transforms) calcs on the brainwaves and
compute the power wave and have it report percentages or counts of
AlphaWaves, BetaWaves, ThetaWaves, etc?

Thanks Jonathan and Joakim (zen-mode) for the software!

On Wed, Sep 5, 2012 at 9:45 AM, joa...@verona.se wrote:

 Jonathan Arkell jonath...@criticalmass.com writes:

  Hi Orgers!
 
  I recently picked up a Neruosky Mindwave, a consumer level EEG device (it
  reads brainwaves).  Unfortunately, the software bundle doesn't include a
  way to log the EEG levels.  Since I am fairly decent at Elisp, I thought
 I
  would write a little library to interface with the mindwave, and store
 the
  results.  Naturally I thought of using an org-mode buffer for this.
 
  So I present, mindwave-emacs:
 
 https://raw.github.com/jonnay/emagicians-starter-kit/master/extra/mindwave-emacs.org
 
  Mindwave-emacs.el really is just a low-level interface for emacs.  Inside
  of the org file are 2 examples (actually, fully working programs) that
  show you how to work with it.
 
- gather-into-org.el :: allows you to write data into an org-mode file
- solarized-mind.el  :: uses the eSense Attention and Meditation
  measurements to provide feedback to the user on their brian state.
 
  I am also working on a lower-level serial/binary connection to retrieve
  data from the mindwave to help facilitate raw EEG logging.
 
  I don't know if this is going to be useful to anyone, but I figured some
  people may be interested.

 Cool!

 I did some Neurosky Mindset integration for my zen.el package:
 https://github.com/jave/zen-mode

 Maybe I can integrate your package and mine, I'll have a look!


 
  Cheers!
  __
 
 
  Jonathan Arkell
  Sr. Developer
  Inspired By Drum  Bass, Scheme, Kawaii
 
  p. 403.206.4377
  1011 9th Ave SE, Suite 300
 
  Calgary, AB, Canada T2G 0Y4
 
  jonath...@criticalmass.com
  criticalmass.com
 
 
 
 
 
 
  The information contained in this message is confidential. It is
 intended to be read only by the individual or entity named above or their
 designee. If the reader of this message is not the intended recipient, you
 are hereby notified that any distribution of this message, in any form, is
 strictly prohibited. If you have received this message in error, please
 immediately notify the sender and delete or destroy any copy of this
 message.
 
 

 --
 Joakim Verona





Re: [O] [OT] Current website not very attractive

2012-08-10 Thread brian powell
* The site looks great as it is.

** Its supposed to be simple and simple-looking:

*** Go to: http://orgmode.org =

Read the top line: Org: Your Life in Plain Text

*** Go to: http://doc.norang.ca/org-mode.html =

Read the top line: Org Mode - Organize Your Life In Plain Text!

* Simplicity and portability is a huge part of the point of OrgMode right!?

* EMACS and TeX and Texinfo, etc. are great (partially) because they have
been ported to all platforms.

** So, if you make any changes, you should be able to convert the end
webpages to Texinfo
so they are readable and printable on all computers and printers.

--I just hope that whoever wins the contest creates web pages that are
501 compliant and everyone can read on any computer using any operating
system and browser and those webpages are as printable as a Texinfo
document.



On Fri, Aug 10, 2012 at 12:43 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hey guys,

 Didn't mean to start any kind of flame.

 @Nick: I'm not a designer, more of a hybrid coder with some design
 foundations, but I'm definitely willing to help. I don't like the current
 layout because of it's overuse of shadows and its web1-style layout.
 Also, typography could use some improvement, and we could also use a better
 screenshot, to give a better first impression.

 - Marcelo.

 On Fri, Aug 10, 2012 at 1:30 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Nick Dokos nicholas.do...@hp.com wrote:

  Sankalp sankalpkh...@gmail.com wrote:
 
   --f46d044401de1e3ad604c6de28a7
   Content-Type: text/plain; charset=ISO-8859-1
  
   I'm inclined to agree with Marcelo.
   --
   Sankalp
  
   ***
   If humans could mate with software, I'd have org-mode's
   babies.
 --- Chris League on Twitter.
  http://orgmode.org/worg/org-quotes.html
   ***
  
  
   On 10 August 2012 04:44, Jude DaShiell jdash...@shellworld.net
 wrote:
  
Good, that probably means it's one of the more accessible and
 usable web
sites on the internet.
   
On Thu, 9 Aug 2012, Marcelo de Moraes Serpa wrote:
   
 Hey list,

 Don't want to be negative, but doesn't anyone else also think the
 current
 design is kind of amateurish and not very attractive? I also did
 not like
 the screenshot used, I preferred the previous one, it showed more
 org
 capabilities, and the colors and indentation looked better.

 My two cents and food for thought,

 
  Talk is cheap: how would you improve it? And I don't mean generalities:
 build
  a website as you think it should be and then invite us over to take a
 look.
  And  as Jude suggests, don't forget to keep accessibility/usability
 issues
  in mind as you design.
 
  Nick
 

 It has been pointed out to me that my comments might be taken as
 overbearing.  Not my intent, but I will take back the talk is
 cheap part (or repeat it to myself as the target this time) and
 apologize for it: I should have reread the mail before hitting send.

 But the larger point is still there: I don't like it is a legitimate
 response, but is not nearly as helpful as giving a list of reasons
 of *why* you don't like it. And providing something you *like* is even
 better. E.g. would the current design with the previous screen shot be
 OK? Or are there deeper problems?

 Nick





[O] [OT] ELNODE is soon to be released as version 1.0

2012-08-10 Thread brian powell
* Some people have expressed interest in Elnode in the past: ELNODE is soon
to be released as version 1.0

** Video mentions Emacs OrgMode (and includes an example) and Node.js:

http://www.youtube.com/embed/TR7DPvEi7Jg

** Elnode - the EmacsLisp Async Webserver @ version 0.9.9
Elnode is a webserver for Emacs 24, written in EmacsLisp. It turns your
Emacs into a web ...
nic.ferrier.me.uk/.../elnode-nears-1-point-0?...


Re: [O] The Quantified Shower

2012-08-07 Thread brian powell
* Lets not forget  Claude Shannon's Ultimate Machine:

http://www.youtube.com/watch?v=G5rJJgt_5mg

On Tue, Aug 7, 2012 at 1:27 PM, Bastien b...@gnu.org wrote:

 Nick Dokos nicholas.do...@hp.com writes:

  Actually, I meant this one:
 
 
 http://www.theatlantic.com/magazine/archive/2012/07/the-measured-man/9018/

 Nice read!  Yes, I'm somehow scared :)

 Mhh.. at least Claude Shannon had more funny stuff to play
 with than his body:

 http://www.youtube.com/watch?v=sBHGzRxfeJY

 --
  Bastien




Re: [O] Is there a way to selectively change the line spacing for visual line mode?

2012-08-04 Thread brian powell
* http://www.emacswiki.org/emacs/VisualLineMode --very intereting...

** This may explain why you found no help thru google:

Visual line mode is a new mode in Emacs 23 that is on by default.

* The following code convinces visual-line-mode to wrap at a given column
by expanding the right margin of the buffer’s window. It’s worked pretty
well for me, although it depends on being the only one that fiddles with
the margins. --JamesWright

(defvar visual-wrap-column nil)
(defun set-visual-wrap-column (new-wrap-column optional buffer)

etc.

** To use the original behavior put the following in your .emacs:

(setq line-move-visual nil)



On Sat, Aug 4, 2012 at 8:06 AM, Paul Whipp paul.wh...@gmail.com wrote:

 I can adjust the line-spacing variable but I'm looking for a way to
 separate paragraphs when writing large amounts of text in org-mode.
 Sticking in an extra carriage return works and has become my habit but it
 is annoying when the text is copy/pasted or exported to certain formats
 (such as libreoffice).

 I'd like to be able to set the line-spacing such that there is a nice
 visible vertical gap where I've actually hit the carriage return to create
 a new paragraph and a smaller vertical spacing where visual line mode has
 emulated a carriage return for readability. This would probably help in my
 elisp or python code too because it would make it easy to distinguish
 wrapped and new lines.

 I've tried google but I can't see any way to do this. Can anyone suggest
 where I should look for a solution?

 Regards,
 Paul Whipp

 Office: 07 3103 2894
 Mobile: 0410 545 357

 Do more business with your website!http://www.paulwhippconsulting.com.au

 Joomla, Python, PHP and MySQL web application 
 developerhttp://www.paulwhippconsulting.com.au/







Re: [O] Org - markdown

2012-05-29 Thread brian powell
* PanDoc!

http://johnmacfarlane.net/pandoc/


On Tue, May 29, 2012 at 10:45 PM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hey guys,

 Is there any tool out there that converts org to markdown? I'm sure it
 wouldn't be difficult to come up with something, but if there's something
 I'd rather use it. I'd like to write my blogposts in org and then automate
 exporting to markdown to my jekyll blogs.

 - Marcelo.



Re: [O] Mail composed using emacs --- saving a copy in an org file.

2012-03-16 Thread brian powell
* Wow! That looks like great software!  Looks like it very well might
do what Alan was looking for--and a whole lot more.

Just out of curiosity: Have you, Karl, looked into linking into doing
a mashup with GNOWSYS:

http://en.wikipedia.org/wiki/GNOWSYS

** Maybe GNOWSYS would be used after using/applying MEMACS.


 Drop me a line if it works for your requirements!

  1. https://github.com/novoid/Memacs
 --
 Karl Voit





[O] Capture the mouse-highlight help-text in a file?

2012-03-15 Thread brian powell
* I know that this will toggle the mouse-highlight messages that pop-up
when you move a mouse over a LINK:  in OrgMode:

(setq mouse-highlight (not mouse-highlight))

** Now, is there a simple way to send the messages that pop-up to a file?

*** Maybe to a FIFO?


Re: [O] Capture the mouse-highlight help-text in a file?

2012-03-15 Thread brian powell
* Thanks, Nick--I have been pursuing that idea--maybe just extract the
regexp, sed/grep etc.

** But I was just thinking maybe there is a simple way to capture the pop
up LINK: file:foo.txt balloon as you put it--into a file or fifo.

*** Then all sorts of things could be done with it--I'm thinking maybe
OrgMode could be used with the lights out/if your blind/screen blinks
out---well, OrgMode could be partially used...one could pipe it to a
text-to-speech program for example---and/or logging where the mouse has
been in an OrgMode document.


On Thu, Mar 15, 2012 at 1:06 PM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:

  * I know that this will toggle the mouse-highlight messages that
 pop-up when you move a mouse over
  a LINK:  in OrgMode:
 
  (setq mouse-highlight (not mouse-highlight))
 
  ** Now, is there a simple way to send the messages that pop-up to a
 file?
 

 They are already in a file: the org file that contains the link.
 A link like this  [[file:foo.txt][foo]] pops up a LINK: file:foo.txt
 balloon, so a suitable grep/sed combination suffices.

 But I suspect that this is not a satisfactory answer: what exactly are
 you trying to do?

 Nick

  *** Maybe to a FIFO?
 
 
  
  Alternatives:
 
  



Re: [O] Mail composed using emacs --- saving a copy in an org file.

2012-03-15 Thread brian powell
* Josh's answer seems great.

** I used to use VM in EMACS, worked great, highly recommend it--you could
then use EMACS hooks like:

vm-mail-hook
List of hook functions to be run after a Mail mode composition buffer has
been created to send a non specialized message, i.e. a message that is not
a reply, forward, digest, etc. VM runs this hook and then runs
vm-mail-mode-hook before leaving you in the Mail mode buffer.

--and hook those hooks (the list of hooks is 20+ long) up to creating an
OrgMode document---maybe somewhat in the way Josh suggested--e.g.:

(add-hook 'vm-summary-update-hook 'org-capture)

On Thu, Mar 15, 2012 at 1:24 PM, Alan E. Davis lngn...@gmail.com wrote:

 I am partial to just opening a mail buffer and writing email in Emacs.
 Just that.  However, it would be great to save a copy in an org file.

 An emacs FAQ suggests sending a BCC or FCC to oneself.  What I want is a
 copy stored in an org-mode subtree, with a convenient headline indicating
 the name of the recipient and the date.

 So far, I haven't gotten my head around the idea of using BABEL, and I
 still like text for email. My experiments with GNUS have not been very
 successful.  So far.

 I apologize for the naive level of this and some of my other questions.
 Though I may not be getting the maximum usefulness of all of org-mode's
 features, those features I do use are awesome.   Thank you.

 Alan Davis



Re: [O] Mail composed using emacs --- saving a copy in an org file.

2012-03-15 Thread brian powell
* This would probably be a better main hook to use if you
elaborate/implement my suggestion:

vm-visit-folder-hook
List of hook functions called just after VM visits a folder. It doesn't
matter if the folder buffer already exists, this hook is run each time vm
or vm-visit-folder is called interactively. It is not run after vm-mode is
called.

** Then you change the mail folder into an OrgMode doc?

*** I vaguely remember this, may be wrong; but, I believe VM when saved as
folders, it is saved as simple text document you can then easily change
into .org docs using SED/AWK/PERL/PANDOC whatever.

On Thu, Mar 15, 2012 at 1:55 PM, brian powell briangpowel...@gmail.comwrote:

 * Josh's answer seems great.

 ** I used to use VM in EMACS, worked great, highly recommend it--you could
 then use EMACS hooks like:

 vm-mail-hook
 List of hook functions to be run after a Mail mode composition buffer has
 been created to send a non specialized message, i.e. a message that is not
 a reply, forward, digest, etc. VM runs this hook and then runs
 vm-mail-mode-hook before leaving you in the Mail mode buffer.

 --and hook those hooks (the list of hooks is 20+ long) up to creating an
 OrgMode document---maybe somewhat in the way Josh suggested--e.g.:

 (add-hook 'vm-summary-update-hook 'org-capture)


 On Thu, Mar 15, 2012 at 1:24 PM, Alan E. Davis lngn...@gmail.com wrote:

 I am partial to just opening a mail buffer and writing email in Emacs.
 Just that.  However, it would be great to save a copy in an org file.

 An emacs FAQ suggests sending a BCC or FCC to oneself.  What I want is a
 copy stored in an org-mode subtree, with a convenient headline indicating
 the name of the recipient and the date.

 So far, I haven't gotten my head around the idea of using BABEL, and I
 still like text for email. My experiments with GNUS have not been very
 successful.  So far.

 I apologize for the naive level of this and some of my other questions.
 Though I may not be getting the maximum usefulness of all of org-mode's
 features, those features I do use are awesome.   Thank you.

 Alan Davis





Re: [O] Mail composed using emacs --- saving a copy in an org file.

2012-03-15 Thread brian powell
* Fully agree with nick--especially about the please be more specific
about the MUA-part--mh-e is another possibility--written by another
person I used to work with (mh)--vm was written by Kyle Jones--yet
another person I used to work with...

** Come to think of it; I used to use RMAIL too in EMACS--Kyle wrote
VM to include MIME/mail extensions, etc.

 You mentioned that you tried GNUS as a mail reader, etc.--and you
didn't get what you wanted:

= In a nutshell: MH/mh-e is the quintessential all-in-one extremely
customizable mail package and mh-e is the EMACS mode for
it--absolutely amazing and useful for email (written by
W3Org/consortium people I used to work with)--probably overkill for
you. RMAIL is old, slightly outdated--but very useful and simple, VM,
is better for you probably: This site/guru agrees with me--VM is your
best choice:

Emacs has three built-in mail reading and sending interfaces:
RMAIL
RMAIL is a basic (and the default) mail reading package.
MH-E
MH-E is a front-end for the MH mail tools.
Gnus
Gnus is mainly a Usenet reading package but has capabilities for
reading mail and doing other strange things.
Now that you know your options inherent in Emacs I'm going to tell you
about my favorite non-standard mail user agent (MUA): VM (View Mail)
written by Kyle Jones.

= http://linuxgazette.net/109/simpson.html

 Back to hooks (that one may use to hook to org-capture) VM has a
lot of them ready for you to play with!:

http://www.wonderworks.com/vm/user-manual/vm_21.html

On Thu, Mar 15, 2012 at 3:19 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Alan E. Davis lngn...@gmail.com wrote:

  I am partial to just opening a mail buffer and writing email in
  Emacs.  Just that.  However, it would be great to save a copy in an
  org file.
 

 Are you using an emacs package to send email? Or are you just composing
 your email in emacs, saving it as a file and sending it with some
 external MUA?

 If the former, you can probably find a hook that the emacs package uses
 (e.g. for mh-e, the appropriate hook would probably be
 mh-before-send-letter-hook), so that you can save the email in a file,
 possibly after transforming it suitably.

 In some sense this is similar, but in another sense opposite, to Jos'h
 Fuller's suggestion: in his scenario, you use org-capture to compose the
 message and use an org-capture hook to transform it suitably and
 actually send it; in this scenario, you compose the mail in some mail
 package (there are several) and you use a hook that the mail package
 provides to transform it suitably and save it in some org file.

 OTOH, if you use an external MUA, Jos'h 's approach might still work
 whereas this one has no hope. But if you can live in emacs, why live
 anywhere else? :-)

 Nick

  An emacs FAQ suggests sending a BCC or FCC to oneself.  What I want is
  a copy stored in an org-mode subtree, with a convenient headline
  indicating the name of the recipient and the date.
 


  So far, I haven't gotten my head around the idea of using BABEL, and I 
  still like text for email.
    My experiments with GNUS have not been very successful.  So far.
 
  I apologize for the naive level of this and some of my other questions.  
  Though I may not be getting
  the maximum usefulness of all of org-mode's features, those features I do 
  use are awesome.   Thank
  you.
 





Re: [O] setting default pdf viewer

2012-03-11 Thread brian powell
I much prefer OKULAR over EVINCE

On Sun, Mar 11, 2012 at 1:15 PM, prad p...@towardsfreedom.com wrote:

 Puneeth Chaganti puncha...@gmail.com writes:

  On Sun, Mar 11, 2012 at 1:31 PM, prad p...@towardsfreedom.com wrote:
  how do i set evince as the default.
 
  right now xpdf is, but if i remove it, following a link to a pdf file
  produces nothing.
 
  i'm using gnome and evince is the default there (eg through nautilus),
  so somehow it seems that orgmode has decided to make xpdf the default
  instead.
 
  Customize the variable `org-file-apps'.  Look at documentation of the
  variable, for an example and options available.
 
 thx Puneeth! that's what i was looking for!
 strange thing is that it was already set to default so i thought evince
 would come up. then i changed it to system and xpdf still opened it.

 anyway, i altered it to
 evince -p %1 %s

 and all is well.

 --
 in friendship,
 prad





[O] [OT] Pipe mouse-highlight to FestivalLite/flite

2012-03-09 Thread brian powell
* Does anyone know how to pipe Link: http://orgmode.org; highlighted text
to flite

** Maybe a hook?

(add-hook 'org-occur-highlights 'etc...

** I mean: I'm trying to get the mouse-highlight text that pops-up sent to
flite--FestivalLite---then text-to-speech would be done---emacs could
literally tell me what the OrgMode LINK:... is.

*** To me, this could be used when the lights go out/turned screen off; for
others, say if you're blind, it may be useful as a simple way to announce a
link in an OrgMode buffer--before running it/going to the link.

 I'm familiar with emacspeak and speechd-el (
http://devel.freebsoft.org/speechd-el and http://emacspeak.sourceforge.net)
but both of these have many dependencies etc.--flite is quick and
easy to install:

apt-get install flite


[O] Pipe mouse-highlight to FestivalLite/flite

2012-03-09 Thread brian powell
* Does anyone know how to pipe Link: http://orgmode.org; highlighted text
to flite

** Maybe a hook?

(add-hook 'org-occur-highlights 'etc...

** Trying to get the mouse-highlight text that pops-up sent to
flite--FestivalLite---then text-to-speech would be done---emacs could
literally tell me what the OrgMode LINK:... is.

*** This could be used when the lights go out/turned screen off; for
others, say if you're blind, it may be useful as a simple way to announce a
link in an OrgMode buffer--before running it/going to the link.

 Familiar with emacspeak and speechd-el
http://devel.freebsoft.org/speechd-el
and
http://emacspeak.sourceforge.net

* Both of these have many dependencies etc.--'flite is quick and easy
to install:

apt-get install flite


Re: [O] multilingual presentation with org

2012-02-15 Thread brian powell
* Quoting the original query:

I will be teaching singing to a mixed group using a projector.  Those who
can read sanskrit would be put off by the roman (English) and those who
cant of course need the roman.
The attached screenshot shows two emacs buffers side-by-side with the two
versions.

I am now exploring the possibilities of how to make a 'presentation'
putting the two together.
I am not too comfortable using emacs for the final show because emacs
occasionally crashes -- due to non-standard fonts, input methods or what I
dont know -- and I dont want this to happen in front of 50 people!

Any thoughts/suggestions?

** Ideas: I strongly suggest EMACS and learn how to use EDIFF in EMACS--its
the best envirionment for translations and what you want to do--don't toss
out EMACS because it crashed once: suggest you test it before the
demo/presentation sing-along.
*** How to stop it from crashing: Use only what is necessary to show your
SANSKRIT and ENGLISH buffer: Do something like:
Make 2 files with line numbers at the begin of each line:
nl sanskrit-song.txt  sanskrit-song_line-numbers-at-front.txt
nl english-song.txt  english-song_line-numbers-at-front.txt
emacs -q -l
sanskit-blah-mule-multilingual-emacs-programs-needed-to-show-sanskrit.el
 sanskrit-song_line-numbers-at-front.txt english-song_line-numbers-at-front.txt
Mx ediff-buffers
Emacs will pop-up an ediff window--put your mouse cursor on it and tap
?--it will show you the ediff keys--n for next different line will be
most helpful
(ediff will ask for the 1st and 2nd buffer you want to compare--type
in sanskrit-song_line-numbers-at-front.txt
and english-song_line-numbers-at-front.txt

--then tapping n (with your cursor on the popped up ediff window) goes
line-by-songline in both buffers--highlighting the text for a sanskrit
sing-along!

** EDIFF has a slight learning curve; but, a huge pay off.


Re: [O] multilingual presentation with org

2012-02-15 Thread brian powell
* That'd be cool if it worked, but at least in my case, it doesn't --It
works if you put line numbers at the beginning of each line--then it
highlights the diff per line in both buffers/in both files--you do Mx
ediff-buffers on--I know it works if you do--I tested it before I posted.
I usually use nl (UNIX) to do this (quoting myself):
...
nl sanskrit-song.txt  sanskrit-song_line-numbers-at-front.txt
...

* Also, Thanks Nick for the pointing to notes on how to translate the
english/roman script etc. and the updating of views related to this thread:

updated a thread on gnu.emacs.help with those
suggestions: http://thread.gmane.org/gmane.emacs.help/83724

On Wed, Feb 15, 2012 at 2:49 PM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:


  Make 2 files with line numbers at the begin of each line:
  nl sanskrit-song.txt  sanskrit-song_line-numbers-at-front.txt
  nl english-song.txt  english-song_line-numbers-at-front.txt
  emacs -q -l
 sanskit-blah-mule-multilingual-emacs-programs-needed-to-show-sanskrit.el
 
  sanskrit-song_line-numbers-at-front.txt 
 english-song_line-numbers-at-front.txt
  Mx ediff-buffers
  Emacs will pop-up an ediff window--put your mouse cursor on it and tap
 ?--it will show you the
  ediff keys--n for next different line will be most helpful
  (ediff will ask for the 1st and 2nd buffer you want to compare--type
  in sanskrit-song_line-numbers-at-front.txt
 and english-song_line-numbers-at-front.txt
 
  --then tapping n (with your cursor on the popped up ediff window) goes
 line-by-songline in both
  buffers--highlighting the text for a sanskrit sing-along!
 

 That'd be cool if it worked, but at least in my case, it doesn't:
 diff decides there is one big diff that covers the whole file,
 and ediff does not find a better refinement: no n
 to follow the bouncing ball...

 Nick





Re: [O] multilingual presentation with org

2012-02-15 Thread brian powell
* Nick mentioned no n to follow the bouncing ball...--in jest I
believe; but, seriously, you can do that too with EMACS and XAUTOMATION do:

apt-get install xautomation

(this will install xte I believe)

** well, if you wanted a bouncing ball to follow the music, in a say, 1
line per 3 seconds for a presentation/sing-along:

xterm -e watch -p -n3 xte \key n\  

*** Again, you put the cursor on the EDIFF help window --n will go line
per line

*** Which will work too; I do something like this everyday (use xte calling
out of EMACS/OrgMode several times a day at least).


On Wed, Feb 15, 2012 at 3:01 PM, brian powell briangpowel...@gmail.comwrote:

 * That'd be cool if it worked, but at least in my case, it doesn't --It
 works if you put line numbers at the beginning of each line--then it
 highlights the diff per line in both buffers/in both files--you do Mx
 ediff-buffers on--I know it works if you do--I tested it before I posted.
 I usually use nl (UNIX) to do this (quoting myself):
 ...
 nl sanskrit-song.txt  sanskrit-song_line-numbers-at-front.txt
 ...

 * Also, Thanks Nick for the pointing to notes on how to translate the
 english/roman script etc. and the updating of views related to this thread:


 updated a thread on gnu.emacs.help with those
 suggestions: http://thread.gmane.org/gmane.emacs.help/83724

 On Wed, Feb 15, 2012 at 2:49 PM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:


  Make 2 files with line numbers at the begin of each line:
  nl sanskrit-song.txt  sanskrit-song_line-numbers-at-front.txt
  nl english-song.txt  english-song_line-numbers-at-front.txt
  emacs -q -l
 sanskit-blah-mule-multilingual-emacs-programs-needed-to-show-sanskrit.el
 
  sanskrit-song_line-numbers-at-front.txt 
 english-song_line-numbers-at-front.txt
  Mx ediff-buffers
  Emacs will pop-up an ediff window--put your mouse cursor on it and tap
 ?--it will show you the
  ediff keys--n for next different line will be most helpful
  (ediff will ask for the 1st and 2nd buffer you want to compare--type
  in sanskrit-song_line-numbers-at-front.txt
 and english-song_line-numbers-at-front.txt
 
  --then tapping n (with your cursor on the popped up ediff window)
 goes line-by-songline in both
  buffers--highlighting the text for a sanskrit sing-along!
 

 That'd be cool if it worked, but at least in my case, it doesn't:
 diff decides there is one big diff that covers the whole file,
 and ediff does not find a better refinement: no n
 to follow the bouncing ball...

 Nick






Re: [O] Images in Tables?

2012-02-08 Thread brian powell
* Some ideas/workarounds--each of which I've tried and they work--but some
very computer intensive:

http://lists.gnu.org/archive/html/emacs-orgmode/2011-10/msg01233.html

** Also, more specific to your question:

http://www.emacswiki.org/emacs/thumbs.el

* What I like to do is make the images 16x16 pixels!

** Why 16x16!? Because favicons (WWW website icons) are 16x16Strongly
suggest you make thumbs 16x16 and use thumbs.el and/or ImageMagick (free
software) to make your table icons/thumbs all the same size:

apt-get install imagemagick
mogrify -format gif -path thumbs -thumbnail 16x16 *.jpg

On Wed, Feb 8, 2012 at 5:08 AM, Yu yu_...@gmx.at wrote:

 Hello!

 I was wondering if there is any useful way, to organize images in
 tables. This would be useful e.g. if one needs to organize some images
 on a regular grid, but the images aren't equally sized, such that a
 simple line break doesn't do the trick.

 Creating just a table with the image links inside will work
 /basically/, assuming that the images have an appropriate size, but if
 resizing is needed, I can't see how to do this in a table (because
 inside no e.g.  #+ATTR_LATEX line is possible).

 The same problem also occurs when I want to preview images side-by-side,
 e.g.

  :  [[./img1.png]] [[./img2.png]]

 though here actually newlines from fill-paragraph/auto-fill add to the
 problem - as will be the size of some high-resolution images.

 My only current solution is to use explicit LaTeX and then preview the
 LaTeX, but that slows down operation considerably.

 Is anything currently implemented to allow such usage?




[O] [OT] Babel user queries like SH read CONFIRM

2012-02-08 Thread brian powell
* Is there a simple way in BABEL to interact/query a user--something like
this won't work:

#+begin_src sh
cat blah-install.sh
echo -n  Sure you want to run this install script code to install
BlahSoftware? (y/n): 
read CONFIRM
  case $CONFIRM in
y|Y) sh blah-software-install.sh;;
n|N)
  echo 
ERROR 5: User declined the agreement.

  exit
  ;;
*) echo 
That is not vaild input and/or user declined to run install script.

  esac
#+end_src


Re: [O] How do teachers use org-mode

2012-02-02 Thread brian powell
* Dear Venkatesh Choppella: Thanks for the notes on teaching OrgMode etc.:
While reviewing your class notes and emails to your class about OrgMode and
TeX/LaTeX I came across your suggestion to students to play with:

http://detexify.kirelabs.org/classify.html

** Detexify can be useful; but, this may give your students more
traction/uses:

http://webdemo.visionobjects.com/equation.html

---which not only suggests an equivalent TeX/LaTeX; it provides a MathML
suggestion as well.

*** Disclaimer: I have no relations to visionobjects.com that I know of
(but the example site looks free to play with at least).

On Thu, Feb 2, 2012 at 12:17 PM, Scott Randby sran...@gmail.com wrote:

 I use org-mode to keep track of grades and all other information I
 collect on students. I make great use of tables, table formulas, tags,
 headlines, and lists. I can compute a grade in milliseconds. Entering
 data is a snap. Since everything is plain text, I can add comments with
 ease and use git to keep track of everything.

 Scott Randby

 On 01/31/2012 11:10 PM, Venkatesh Choppella wrote:
  Dear Org-mode users:
 
  I am using  org-mode this semester  to host my course notes.   For me


...


Re: [O] Rsquared for reproductible research

2012-01-12 Thread brian powell
Wow! http://rsquared.stat.uni-muenchen.de/index.rhtml looks great--very
interesting--thanks for the heads-up on that link.

Worked with R/S/S-PLUS in grad school--easily my favorite
language/system--especially like its ease of extensibility--reminds me of
EMACS LISP!

I recognized your name, Stephen, as the long-time maintainer of the Emacs
Lisp List--thanks for that too.
Are you envisioning a repository beyond Emacs Lisp List for OrgMode
implementations and/or Babel examples.
Or maybe optional extensions to OrgMode itself? Both?

Also, I very much agree that a near exact replica of the
http://rsquared.stat.uni-muenchen.de/index.rhtml for OrgMode would be great.

Read the 3 papers on the site and came across this reference that may be
interesting to OrgMode/R/Literate Programming persons:

http://cran.r-project.org/web/packages/roxygen/index.html

Maybe that could be a focus of such a site if it were made?: OrgMode =
LiterateProgramming = R/Bable/whatever other languages.

--where such topics intersect.

On Thu, Jan 12, 2012 at 7:38 AM, Stephen Eglen sj...@cam.ac.uk wrote:

 Following on from an old thread about self-configuring org files for
 reproducible research, R users might be interested to see the following
 web site
 which is exactly what I was thinking of for org mode (but of course, works
 only for R packages.)

  http://rsquared.stat.uni-muenchen.de/index.rhtml

 Stephen






Re: [O] Rsquared for reproductible research

2012-01-12 Thread brian powell
 Also, I very much agree that a near exact replica of the http://
 rsquared.stat.uni-muenchen.de/index.rhtml for OrgMode would be great.
 Yes!  Any takers?!?

...
Eric questioned:
From looking at the fairly terse web site for R^2 it is not clear to me
exactly what the system includes (I'm sure I'm missing something
obvious).  It seems to be the addition of a packaging system over-top of
R source files.  What would a potential Org-mode based system provide
which is not already possible with Org-mode text files, Org-mode
publishing and a version control repository.
...

* I mostly agree with your statements. Good challenges. I did more
investigation: This link to the paper that  Friedrich Leischa, , Manuel
Eugsterb, Torsten Hothornb put together may make things clearer--this
paper really seems to be the justification/impetus for the R^2 website--it
has made things clearer and more exciting for me:

http://www.sciencedirect.com/science/article/pii/S1877050911001232

= Executable Papers for the R Community: The R2 Platform for
Reproducible Research

** So papers in R (and maybe other languages--maybe languages run thru
Babel in OrgMode) could be executed by people in the community--one could
verify research studies and papers interactively, ad hoc.

*** They mention in the paper that they use several key tools:

R: the lingua franca of statistics and data analysis
Sweave: the most popular format for executable papers in the R community
CRAN: package building and checking system has been developed for more then
a decade and copes successfully
with the exponential growth of the number of packages

 Weave/CWEB/CWEAVE/CTANGLE=NOWEB (Knuth) comes to mind here--i.e.
Literate Programming

* http://www-cs-staff.stanford.edu/~uno/cweb.html =

CTANGLE
converts a source file foo.w to a compilable program file foo.c;
CWEAVE
converts a source file foo.w to a prettily-printable and cross-indexed
document file foo.tex.

* Exactly the paper can be found at:

http://www.sciencedirect.com/science\
?_ob=MiamiImageURL_cid=280203_user=10_pii=S1877050911001232\
_check=y_origin=article_zone=toolbar_coverDate=\
31-Dec-2011view=coriginContentFamily=serialwchp=\
dGLbVlS-zSkWbmd5=4681e5babd7822f321d2a0dd3a9f11cf/\
1-s2.0-S1877050911001232-main.pdf

* I agree Eric that the website is a bit terse; but, for the most part I
was excited about (and I think Stephen is interested in--he suggested it is
something the community might do) the general ideas, the structure of the
website's process OrgMode=TeX paper
in--...process...--Executable/verifiable code interaction a user might
experience/stored on-line for researchers (one thing I always enjoy a lot
when working with e.g. R/S-PLUS and PYTHON's interactive CLI, etc.)

** They even publish the minute details of the settings on the
machines--the local environment variables, etc.--the devil is in the
details!

* Thanks for the link Eric to your OrgMode scraps--they could be very
useful:

http://eschulte.me/org-scraps/

* Lastly, most importantly I'll repeat the link and query to the community:
...
 Also, I very much agree that a near exact replica of the
http://rsquared.stat.uni-muenchen.de/index.rhtml
for OrgMode would be great.
 Yes!  Any takers?!?---(Stephen Eglen)


Re: [O] Org mode, minted, and non-ASCII

2012-01-05 Thread brian powell
* Firstly, thanks for sending this issue to the group: pygments  minted
are very interesting tools for OrgMode/LaTeX persons.

** Read this
http://ctan.mackichan.com/macros/latex/contrib/minted/minted.pdf

** And this: http://pygments.org/docs/unicode/

*** Seems that running the pygmetize from the command line has some
provisos.

*** Also, noticed this in bold type at
http://pygments.org/docs/unicodethat might help you:

Since Pygments 0.6, all lexers use unicode strings internally. Because of
that you might encounter the occasional UnicodeDecodeError if you pass
strings with the wrong encoding.
...
The formatters now send Unicode objects to the stream if you don't set the
output encoding. You can do so by passing the formatters an encoding option:
from pygments.formatters import HtmlFormatter
f = HtmlFormatter(encoding='utf-8')
You will have to set this option if you have non-ASCII characters in the
source and the output stream does not accept Unicode written to it! This is
the case for all regular files and for terminals.

-- Forwarded message --
From: François Pinard pin...@iro.umontreal.ca
Date: 2012/1/4
Subject: [O] Org mode, minted, and non-ASCII
To: emacs-orgmode@gnu.org

Hi, Org people.

Still experimenting around for this report, I installed *minted* so one
of the appendices might nicely display a bulky bit of Python code.

It works satisfactorily (and speedily enough) if I squash out all
diacriticized and other Unicode special symbols in the file.  However,
no output is produced if I leave the tiniest non-ASCII character in the
file.  OK, OK, don't kill me :-).  Agreed that all non-ASCII characters
are neither tinier or bigger than one another in this context.

The Org document, the Python sources, and the default charset for this
machine are all UTF-8.  I saw no Unicode problem between Unicode and
LaTeX when minted is not in the picture.  pygmentize also appears to do
well with Unicode input.

So the problem likely lies either between Org mode and minted LaTex, or
within minted.  Is that a known problem or limitation?

This problem is bit more hurtful here, as the Python code really uses
Unicode, and mangling out Unicode characters really changes the semantic
of the code as displayed in the report.  If it was not for this problem,
the minted output is attractive, at least more than what I saw with the
listings package.  On last resort and of course, I may still include an
unfontified Python source in the appendix, or produce it by other means;
not such a big deal, it's just that I would have liked to impress my
coworkers a bit more with Org mode integration and capabilities.  :-).

To confuse me a little more, I'm getting random (I mean, unpredictable
by me) org-mode fontification error diagnostics while creating the PDF
output.  Perusing org.el tells me that this is likely a mere
coincidence, as those fontification errors seem wholly unrelated to
LaTeX processing.

François

P.S. Who is a bit tired right now, and maybe missing something trivial?
Tomorrow, I'll surely revisit most of today's experiments.


[O] [OT] TeX/LaTex and OrgMode

2011-11-18 Thread brian powell
* [OT] TeX/LaTex and OrgMode is the off topic--since OrgMode spits
out TeX and so many OrgMode users use TeX; I hope you'll get a kick
out of this:

http://detexify.kirelabs.org/classify.html?



Re: [O] OT: collage of scripts [was: Re: table alignment failed for Asian char

2011-10-28 Thread brian powell
* One of my favorite Hofstadter books is: Le Ton beau de Marot: In
Praise of the Music of Language (ISBN 0-465-08645-4), published by
Basic Books in 1997, is a book by Douglas Hofstadter in which he
explores the meaning, strengths, failings, and beauty of translation.

** Translation between frames of reference — languages, cultures,
modes of expression, or indeed between one person's thoughts and
another — becomes an element in many of the same concepts Hofstadter
has addressed in prior works, such as reference and self-reference,
structure and function, and artificial intelligence.

** This topic correctly has been labeled OT; but, on the subject of
translation and modes of expression (in the OrgMode table); this is
related to the original thread/topic: table alignment failed for
Asian chars.--getting back there for a moment:

*** Are there any Asian/Chinese/Tamil character sets that have fixed
widths?  Chinese writing is picture writing, where characters
actually represent, to varying degrees, a picture or an abstract
concept of the thing they represent.

 I remember many years ago, suggesting to fellow software
engineers, that they do just that: Make fixed-width Tamil character
sets that will work well in EMACS.

* One possibly simple work-around (not sure this is what you seek):
Put all your non-fixed width Asian characters into cells like:
[[blahAsianCharactersOrPNGofAsianChars][A]]

** All you'd see is an A and then the table will look covered down
(in an OrgMode buffer)--but you may have to manually adjust the
OrgMode table.

*** Another idea: you just put something like A555 (simple
PlainText--maybe the unicode string equivalent like: U+024B62) in
the table and have a program that replace the PlainText  U+024B62 with
the AsianChars and/or a .PNG picture file link when you click an
icon/run the program.  There are ELISP programs which help with
inserting glyphs that you could use and/or extend this hash array:

 Excerptions from unichars.el:
(defvar unicode-character-list
  '(
;Codept   Unicode nameISO Name
(#x00 NULL   nil )
...
   (#x00fb92 ARABIC LETTER GAF ISOLATED FORMnil )
(#x00fb93 ARABIC LETTER GAF FINAL FORM   nil )
(#x00fb94 ARABIC LETTER GAF INITIAL FORM nil )
(#x00fb95 ARABIC LETTER GAF MEDIAL FORM  nil )
(#x00fb96 ARABIC LETTER GUEH ISOLATED FORM   nil )
...
* See this wonderful extension/new take on this too:
http://proofgeneral.inf.ed.ac.uk/releases/ProofGeneral-3.7/x-symbol/lisp/x-symbol-unichars.el
--so suggest looking at x-symbol-unichars.el, unichars.el and maybe
x-symbol.el and maybe then input UNICODE glyphs into your table.
Can you extend it to Asian/Chinese/Tamil chars?
(I don't see any in the files x-symbol-unichars.el, unichars.el, x-symbol.el)

*** Last idea: I've put ticker-tape .GIF files in EMACS OrgMode
buffers--you could put an infinite scrolling ticker tape of AsianChars
in fixed-width .GIF files with say a 16x16 pixel window (or wider) and
then know a priori that the table would remain covered down--when you
view it in an EMACS OrgMode buffer--regardless of what text you put in
it (This is probably not what you want though--but if you are doing a
presentation or tutorial of some sort and you want to show your table
with scrolling notes in table cells, then it can work for you--I've
done it.)  You can use ImageMagick to create the .GIF files--of the
scrolling Asian text.


_ ElBaradei,  3 minutes ago:
  ١٠ شهور قبل إحالة قضية الشهيد سيد بلال
  للجنايات المتهم فيها ٥ من ضباط أمن الدولة هرب
  معظمهم الى الخارج. شئ مخزى // from Twitter for
  iPad [Cairo, Egypt]


On Fri, Oct 28, 2011 at 10:25 AM, Rustom Mody rustompm...@gmail.com wrote:
 Jambunathan wrote:

 Book seems like an interesting read. For me to go from frame message -

 The wikipedia page:
 http://en.wikipedia.org/wiki/Talk:Douglas_Hofstadter#Inspirational




Re: [O] Ways to make org feasible for huge files

2011-10-12 Thread brian powell
* Maybe EMACS  narrowing could be used:
http://www.gnu.org/s/libtool/manual/emacs/Narrowing.html
...
Narrowing can make it easier to concentrate on a single subroutine or
paragraph by eliminating clutter. It can also be used to limit the
range of operation of a replace command or repeating keyboard macro.
...
C-x n n
Narrow down to between point and mark (narrow-to-region).
C-x n w
Widen to make the entire buffer accessible again (widen).
C-x n p
Narrow down to the current page (narrow-to-page).
C-x n d
Narrow down to the current defun (narrow-to-defun).

** I mean: Maybe an OrgMode user could do narrow-to-region (and then
just render on the new smaller region) and/or an implementation
something like org-narrow-to-region could be coded.

*** Just an idea--your mileage may vary--it may not work at all--I
hope you try it out and tell how it works for you.

* I ran into similar problems: I made the file into 2 separate
files--one very large and the other very small that I render a
lot--when it gets big, I just prune out older and less important now
(backburner) subjects, paste them at the bottom of the small file and
then cut and paste the less important * sections into the big file.
** Works great, its really the best way to do it--for backing up and
encrypting reasons and hard drive space reasons etc.
** Could call them blahfile_now.org and blahfile_later.org (for the
small and large files respectively).
*** Since OrgMode files are plain text files, this works great.

On Wed, Oct 12, 2011 at 8:54 PM, Marcelo de Moraes Serpa
celose...@gmail.com wrote:
 Hi list,

 I love org and I think there's nothing like it out there, but I'm
 considering using Evernote for reference notes, because my reference.org
 file has grown too big (4234k + lines). This makes the rendering of the file
 way too slow, and 2 times out of 10 emacs crashes because of that.



Re: [O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management

2011-10-03 Thread brian powell
* Also, there are these commands which may be what is sought (to save state):
** Click mouse-2 on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
desktop-change-dir  desktop-clear
desktop-readdesktop-remove
desktop-revert  desktop-save
desktop-save-in-desktop-dir desktop-save-mode



 On Mon, Oct 3, 2011 at 5:13 AM, Rainer M Krug r.m.k...@gmail.com wrote:
 Hi

 this is slightly off-topic, but I rather try it here first: I would like to
 save my window and frame layout and restore it after re-starting emacs. I
 have the buffers auto saved, and that is working. But I don't get my head
 around the session management. I found the website
 http://www.emacswiki.org/emacs/SessionManagement  but each time I look at
 it, I get more confused and lost.

 So - does somebody use session management (I am at the moment only
 interested to getting back the layout of the different frames in a window,
 and all open windows restored) and could share some insight and code
 snippets for a confused org-user to achieve this?

 Thanks,

 Rainer

 --
 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
 UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Stellenbosch University
 South Africa

 Tel :       +33 - (0)9 53 10 27 44
 Cell:       +33 - (0)6 85 62 59 98
 Fax (F):       +33 - (0)9 58 10 27 44

 Fax (D):    +49 - (0)3 21 21 25 22 44

 email:      rai...@krugs.de

 Skype:      RMkrug






Re: [O] TABLES: Remove/add cell

2011-09-30 Thread brian powell
* May want to turn org-mode/table off temporarily (or maybe it will
just make it easier) then you can do the rectangle edits michael was
referring to:
** Go to the point just to the right of the 4.
** C@ ---marks the point.
** Go to the 3.
** Cxrk
** Go to @2$2--i.e. where the 4 used to be.
** Cxry
* Emacs OrgMode makes all of this easier since it lines everything up
for you by covering down the columns (org-table-align)---making all
the cells easily edited by the usual rectangle-killing and
rectangle-yanking methods.
** The method above can be generalized for editing OrgMode tables
regardless of the number of symbols in the cells--since OrgMode aligns
them for you; and, EMACS is restricted only by the amount of RAM in
your computer.
*** Also, if you want to edit gygabyte size files, using similar
methods, I highly recommend QEMACS.



Re: [O] Lisp nesting exceeds `max-lisp-eval-depth'

2011-09-15 Thread brian powell
*Variable: max-lisp-eval-depth
This variable defines the maximum depth allowed in calls to eval,
apply, and funcall before an error is signaled (with error message
Lisp nesting exceeds max-lisp-eval-depth). This limit, with the
associated error when it is exceeded, is one way that Lisp avoids
infinite recursion on an ill-defined function.
The depth limit counts internal uses of eval, apply, and funcall, such
as for calling the functions mentioned in Lisp expressions, and
recursive evaluation of function call arguments and function body
forms, as well as explicit calls in Lisp code.

The default value of this variable is 300. If you set it to a value
less than 100, Lisp will reset it to 100 if the given value is
reached. Entry to the Lisp debugger increases the value, if there is
little room left, to make sure the debugger itself has room to
execute.

max-specpdl-size provides another limit on nesting. See section 11.3
Local Variables.

**I think this is one weakness of ELISP vs. CommonLISP--but this is
by design; EMACS has always been focused on editing, so some
trade-offs are used, objects such as buffers, windows, etc. are a
paramount part of the language--and recursion is handled slightly
differently, I believe this is done on purpose.

**Maybe try to set the max-lisp-eval-depth variable higher?

***Maybe something like (setq max-lisp-eval-depth 3000)

**Maybe load the common lisp module; which is always a good idea--but
this probably won't help, just an idea.


On Thu, Sep 15, 2011 at 4:48 AM, Martin Butz b...@sym.net wrote:
 Hello all,

 I get the following error message while using org-mode during the last weeks
 quite frequently (unfortunately I am not able to link it to an update of the
 installation of some lisp file); I can reproduce the behaviour by opening
 the agenda buffer (C-c a a) and trying to quit with q; this will open a
 new frame with the backtrace buffer and leave the agenda buffer in the other
 frame open.

 There are loads of other events, which trigger the same behaviour; can
 anybody give a hint how I can solve this rather annoying problem?

 Thanks in advance
 Martin

  Backtrace --8

 Debugger entered--Lisp error: (error Lisp nesting exceeds
 `max-lisp-eval-depth')
  (- (nth 2 edges) (nth 0 edges))
  (let ((edges ...)) (- (nth 2 edges) (nth 0 edges)))
  sr-speedbar-current-window-take-width()
  (let ((win-width ...)) (if (and ... ... ...) (setq sr-speedbar-width
 win-width)))
  sr-speedbar-remember-window-width()
  old-delete-window(#window 20 on *Org Agenda*)

  following lines are repeated several times--8

  (if (one-window-p t) (delete-frame) (old-delete-window (selected-window)))
  (save-current-buffer (setq window (or window ...)) (select-window window)
 (if (one-window-p t) (delete-frame) (old-delete-window ...)))
  ad-Orig-delete-window(#window 20 on *Org Agenda*)
  old-delete-window(#window 20 on *Org Agenda*)

  /following lines are repeated several times--8---

  (if (one-window-p t) (delete-frame) (old-delete-window (selected-window)))
  (save-current-buffer (setq window (or window ...)) (select-window window)
 (if (one-window-p t) (delete-frame) (old-delete-window ...)))
  ad-Orig-delete-window(nil)
  delete-window()
  (and (not (eq org-agenda-window-setup ...)) (not (one-window-p))
 (delete-window))
  (if (eq org-agenda-window-setup (quote other-frame)) (progn (kill-buffer
 buf) (org-agenda-reset-markers) (org-columns-remove-overlays) (setq
 org-agenda-archives-mode nil) (delete-frame)) (and (not ...) (not ...)
 (delete-window)) (kill-buffer buf) (org-agenda-reset-markers)
 (org-columns-remove-overlays) (setq org-agenda-archives-mode nil))
  (let ((buf ...)) (if (eq org-agenda-window-setup ...) (progn ... ... ...
 ... ...) (and ... ... ...) (kill-buffer buf) (org-agenda-reset-markers)
 (org-columns-remove-overlays) (setq org-agenda-archives-mode nil)))
  (if org-agenda-columns-active (org-columns-quit) (let (...) (if ... ... ...
 ... ... ... ...)) (and org-agenda-restore-windows-after-quit (not ...)
 org-pre-agenda-window-conf (set-window-configuration
 org-pre-agenda-window-conf)))
  org-agenda-quit()
  call-interactively(org-agenda-quit nil nil)

  /Backtrace --8---

 --
 ~
 sym.net  ||  butz  siefer gbr  ||  50670 koeln  ||  hansaring 78
 phone +49(0)221/3762591 -  twitter.com/symnet  - mail b...@sym.net
 ~~ www.sym.net | www.moodalis.de 





Re: [O] Error in post-command-hook: (void-variable org-ans1)

2011-09-15 Thread brian powell
*Could do this work-around:

nl file_you_will_edit.org | cut -f 1  line_numbers

*Open the file_you_will_edit.org and do:

Mx split-window-horizontally

*Put the line_numbers in the left-hand-side buffer!

;-)


P.S. I put the line number and column number on the modeline:
http://www.gnu.org/s/libtool/manual/emacs/Mode-Line.html



On Thu, Sep 15, 2011 at 8:37 AM, Diep Pham Van i...@favadi.com wrote:
 On Thu, 15 Sep 2011 14:07:57 +0200
 Olaf Dietsche olaf+list.orgm...@olafdietsche.de wrote:

 Diep Pham Van i...@favadi.com writes:

  On Thu, 15 Sep 2011 12:04:30 +0200
  Olaf Dietsche olaf+list.orgm...@olafdietsche.de wrote:
 
  Have you tried disabling or reducing these modes? One of them or a
  combination is responsible for the error you get.
 
  Regards, Olaf
 
  Got it.
  Disable linum-mode solve this problem.
  Update to the latest version of linum-mode, the error is still
  appear.
 
  How this can be? I think linum-mode is very popular.

 I don't know, since I don't use it myself. It could be a combination
 of linum-mode and some other.

 Regards, Olaf

 So install linum-off.el solve this problem.
 Anyone else use linum-mode with org-mode?

 --

 PHẠM Văn Điệp

 h  : http://favadi.com
 e  : i...@favadi.com
 e2 : favadi.a...@gmail.com
 m  : +84 339 841

 p  : Information system and communication technology
 u  : Hanoi University of Science and Technology (PFIEV - Programme de
 Formation d’Ingénieurs d’Excellence au Vietnam)

 k  : h = home, e = email, e2 = second_email, m = mobile, p =
 professional, u = university, k = key





Re: [O] Reminders with alarms

2011-09-08 Thread brian powell
*Recommend using flite (FestivalLite) for text-to-speech: cat
blah.reminder | flite

** Could get really over-the-top and do something like this:

http://gizmodo.com/5522802/twitter-chumby-and-a-cuckoo-bird-walk-into-a-clock?tag=chumby

--you could use the Twitter API and send OrgMode Tweets (complete with
reminders) to your personalized Chumby Cuckoo Clock!!

;-)

P.S. I've used calendar/*Fancy Diary Entries* and appt.el for many
years--works great--I just have it pop up a big blank emacs screen
with the alarm reminder--I usually set it for 15 minutes ahead of the
important reminder:
;;; appt.el --- appointment notification functions.
;; Copyright (C) 1989, 1990, 1994 Free Software Foundation, Inc.
;; Author: Neil Mager ne...@juliet.ll.mit.edu
...
(setq appt-message-warning-time 15)
(setq appt-display-interval 5)

On Wed, Sep 7, 2011 at 11:10 PM, Jude DaShiell jdash...@shellworld.net wrote:
 In debian, there's a cowsay package you can use to make the computer
 speak.  Also packages that produce different types of beeps are
 available.   So far as I now know, they would need to be run as part of
 a bash script or the equivalent within emacs in order to work though.

 On Wed, 7 Sep 2011, Martyn Jago wrote:

 Hi

 Stephen Nelson-Smith sanel...@gmail.com writes:

  Hi there,
 
  I'm just starting to explore orgmode.  I'm an experienced GTD-er (6
  yrs) and have looked with interest at a few articles on using orgmode
  for this.  The one area I can't seem to work out is how to set a
  reminder with an alarm and attach it to an entry.
 
  Suppose I have an entry like:
 
  ** My project
  *** My action 1 :home:
  *** My action 2 :follow up:
 
  I would like to be able to set a reminder that makes a visible (and
  maybe audible) alert - in say 4 hrs, 2 days, at 1530 next wednesday
  etc.  I see that I can set schedules for when to start work, but I've
  been unable to get it to remind me at all.
 
  Any suggestions?
 
  S.

 I use the growl notification system (on MAC) along with todochiku.el for
 simple timer notification out of Emacs. Growl can be set to 'speak' the
 notification (not sure about other sounds).

 todochiku also works with (snarl/libnotify) on other OSs.

 The command todochiku-message allows you to add a notification to a hook
 such as org-timer-done-hook (in your init file)...

 --8---cut here---start-8---
  (defun mj-notify-timer-done ()
   (todochiku-message Title here Further text here
  (todochiku-icon 'bell)))
  (add-hook 'org-timer-done-hook  'mj-notify-timer-done))
 --8---cut here---end---8---

 Regards

 Martyn




 Jude jdash...@shellworld.net
 I love the Pope, I love seeing him in his Pope-Mobile, his three feet
 of bullet proof plexi-glass. That's faith in action folks! You know he's
 got God on his side.
 ~ Bill Hicks





Re: [O] convert html file into orgmode .org file?

2011-07-22 Thread brian powell
* This worked for me:
** apt-get install pandoc
* Booted up an EMACS that has the menus enabled.
** Install pandoc-mode.el (see
http://wwwuser.gwdg.de/~jkremer/pandoc-mode.html )
** Goto buffer with .html doc in it.
*** Get OrgMode and PanDocMode running simultaneously in the same buffer.
** Click on the PanDoc menus in EMACS:
*** Chose PanDoc-Files-OutputFile-SetOutputFile (and I typed /tmp/test.org)
*** Chose PanDoc-OutputFormat-OrgMode
*** Chose PanDoc-RunPanDoc
* /tmp/test.org was created--looked pretty good; but, your mileage
may vary--depends on the structure of the HTML file.
** PanDoc has a lot of filetype conversions!
** I often use html2csv --by Author: Sébastien SAUVAGE sebsauvage
at sebsauvage dot net http://sebsauvage.net
*** And/or use PERL or EMACS to go the rest of the way.

Thanks Puneeth for the link to PanDoc (and the sublink to PanDocMode for EMACS)!

* PanDoc also has interesting file inclusion and elisp “double-at
directives”: See
http://wwwuser.gwdg.de/~jkremer/pandoc-mode-manual.pdf
** Someone sought to include the markdown in their doc I believe.
** Can do things like this (when using PanDoc/PanDoc-mode.el

@@include{blah.txt}

@@lisp{(format-time-string %d %b %Y)}


On Thu, Jul 21, 2011 at 3:34 PM, Charles Philip Chan cpc...@bell.net wrote:
 #secure method=pgpmime mode=sign
 Puneeth Chaganti puncha...@gmail.com writes:

 Org-mode cannot import html files.  But, you could try using Pandoc[1]
 for this.

 [1] - http://johnmacfarlane.net/pandoc/

 There is also an Emacs mode for pandoc:

 http://user.uni-frankfurt.de/~kremers/pandoc-mode.html

 Charles

 --
 Why use Windows, since there is a door?
 (By fac...@galileo.rhein-neckar.de, Andre Fachat)





Re: [O] ThoughtBack

2011-07-15 Thread brian powell
On Fri, Jul 15, 2011 at 9:00 AM, Memnon Anon
gegendosenflei...@googlemail.com wrote:
 John Hendy jw.he...@gmail.com writes:
 On Wed, Jul 13, 2011 at 11:11 AM, Bastien b...@altern.org wrote:
 [...]
 Or did I miss something?

 Don't think so. Googling produces little, either.
 [...]
 So... looks like notes + some other feature set that's unexplained?

 I found some stuff, e.g.:
 http://vimeo.com/16594128 [which I did not check]
 http://www.youtube.com/watch?v=5k4CXVFcgDg [which I just watched]
 http://www.facebook.com/thoughtback

 But I wholeheartedly do *not* recommend it:

 ,[ https://thoughtback.com/ ]
 | Put Something In
 |
 | Enter something in that you find important. Do it through your iPhone, Mac, 
 or Browser.
 |
 | Get Something Back
 |
 ! We store it and then randomly send you back something from the past. 
 Keeping your brain flowing.
 | ^^^
 `

 Who would want to keep his data, especially when it is easily and
 quickly captured (to use org terminology) - i.e. probably some very
 personal stuff - to be saved in the cloud?

 I did no serious investigation on this, please correct me if I am
 wrong, I don't want to spread FUD about a new project!

 Memnon






* I agree with your concerns Memnon and Bastien; but, I'll play
Devil's Advocate with you:

** Completely agree with the lack of help and documentation--major
reason I started the thread--fishin' for info!

** BTW: https://thoughtback.com/about/terms?/privacy

*** Your email address is one of the most public things you own.  I
worry about giving out any information too nowadays.  But hacking into
someone's email can land you in jail--even if they previously gave you
their password and temporary permission at some point.

** I believe the idea is you put things like Need to get a new ladder
#HomeDepot. or Work on #OrgMode software.

*** Don't believe the idea is that you put in any private information.

* To me I see a free online service that is searchable and one can jot
notes, reminders and/or URL's in--it could be used as a NotePad app
for copy and paste, it is indexable and searchable--and (most
important to me) as a remote SMS messaging service:

** The Future of Thoughtback:
http://blog.thoughtback.com/post/7630178945/the-future-of-thoughtback

Our goal is to help people choose and organize the thoughts they want
to remember. Programming your mind to think and act the way you want
is not only powerful, but exciting. By constantly getting these
“thoughts back”, your mind begins to shape itself differently. These
form your actions, ideas, habits, and choices.

* So what’s the near-future roadmap look like?

An API for developers
SMS (texting) to send/receive thoughts
New settings for getting your thoughts back
Improved iPhone and Mac apps
Beta opt-in program to test new ideas

* What does this have to do with OrgMode!?:

** ThoughtBack sends you random reminders from the thoughts you put in
(I'm thinking GTD)--I'm thinking maybe a mashup with MindMaps and
maybe OrgMode.

* At this point, to me: Its another (minor) tool in the toolbox--its
free, and always-on and available--as long as I have an Internet
connection.

** Its like Twitter I guess; but, it sends thoughts back to you rather
than the millions of Tweeters that probably don't care about how your
cat seems to feel or that you ought to get a new ladder--but to you,
these things may be important.

** This sort of thing, writing down things to do and/or thoughts or
ideas that may be useful in the future is a good thing to do--you can
stop dwelling on it, its often a worthless or obsessive thought but
the act of writing it down somewhere allows the mind to relax on the
subject and get back to what is more important at the time: I learned
this from a book by Tony Buzan: Make the Most of Your Mind (February,
1984) ISBN 0-671-49519-4 

*** http://en.wikipedia.org/wiki/Tony_Buzan : Anthony Tony Peter
Buzan ( /ˈbuːzən/; born 2 June 1942) is an author and educational
consultant. He is a proponent of the techniques of Mind Mapping[1] and
mental literacy.

** In OrgMode I guess most people put in deadlines and schedules etc.;
maybe https://thoughtback.com could become a site one can use to put
thoughts that don't fit any structured category, time-lined project or
pressing to-do list.



[O] ThoughtBack

2011-07-13 Thread brian powell
https://thoughtback.com

Any thoughts? Useful to OrgMode users?

(MindMapping and remember.el (or whatever) are often linked to
GTD/OrgMode activities--by some users)

I'm in no way connected to https://thoughtback.com--nor do I know much
about it at all.



Re: [O] Audio/video file playback in org mode

2011-06-10 Thread brian powell
* Something like this; respectively!?:

[[shell:mplayer -ss 00:03:21 -endpos 00:06:54 ~/some_podcast.mp3 ]]

[[shell:mplayer -ss 00:03:21 ~/some_podcast.mp3 ]]

[[shell:mplayer ~/some_podcast.mp3 ]]

VLC works great for this too.

[[file:...] works too of course, but you have to make a file association
(or like mentioned: 'org-file-apps') to mplayer or emacs OrgMode will just
open the file in a buffer.

Unclear about statement about earlier posts: I would like to explicitly not
allow...

P.S. Thanks for the link to BONGO--the EMACS buffer media player.
I made my own buffer media player and have used it for many years; but,
BONGO.el is wayly kuul too!


On Fri, Jun 10, 2011 at 4:28 AM, Michael Brand
michael.ch.br...@gmail.comwrote:

 Hi Paul

 Thank you very much for sharing this, I will benefit a lot and the
 interactivity from within Emacs seems extremely useful. My recent
 searches for how to play an Org link to an audio file didn't find any
 result and I was about to work out something with mpg123. I planned to
 define a new link type for this but your solution with file: looks
 to me more like it should be and is also backwards compatible with
 links already made with file:.

 And even better if file: could also cover my requirement to have an
 optional link search part that lets the player start and stop at a
 specified time. Let me define the format like this:
 - start to play in file at 00:03:21, stop at 00:06:54:
  [[file:some_podcast.mp3::00:03:21-00:06:54]]
 - start to play in file at 00:03:21, play until end of file:
  [[file:some_podcast.mp3::00:03:21]]
 - play the whole file:
  [[file:some_podcast.mp3]]

 I would like to explicitly not allow [[file:some_podcast.mp3::03:21]]
 as a shorter option with MM:SS because I would like to see XX:XX being
 reserved for HH:MM without exception in Org. There was a recent
 discussion covering this in the context of time calculation:
 http://thread.gmane.org/gmane.emacs.orgmode/39487/focus=39840

 Michael

 On Thu, Jun 9, 2011 at 23:55, Paul Sexton psex...@xnet.co.nz wrote:
  I have spent a few hours figuring this out so I thought I would post it
 for
  the benefit of others.
 
  I am learning a language, and wanted to include hyperlinks to audio files
  within my org document, and be able to play each file by clicking on the
  link.
 
  I eventually discovered the variable 'org-file-apps' which allows you to
  associate particular applications with particular file types.
 
  I am using Bongo (https://github.com/dbrock/bongo) as the media player.
  EMMS is another actively developed media player, but setup looked too
  complicated at first glance.



Re: [O] Clocktable question

2011-05-05 Thread brian powell
* I hope you can learn how to do this using EMACS OrgMode--best thing
for what you seek to do.

** In the meantime, I suggest using timeclock.el

*** Some functions: (believe me, its really easy to use--puts a log
into ~/.timelog or something like that)

Click mouse-2 on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
timeclock-changetimeclock-in
timeclock-modeline-display  timeclock-out
timeclock-reread-logtimeclock-status-string
timeclock-when-to-leave-string  timeclock-workday-elapsed-string
timeclock-workday-remaining-string

* I used to use it all the time; its quick and easy, you easily keep
track of each task you are working on--down to the second.

** As you are exiting emacs, it will automagically query you as to
whether or not to clock out, etc.



Re: [O] Request for suggestions including source code

2011-05-04 Thread brian powell
* Literate Programming and CWEB/NOWEB work great.

** Could use \scriptsize and/or \tiny and set the margins to 0--this
is what I do:

\documentclass[10pt]{report}
\pagestyle{empty}
\usepackage{anysize}
\marginsize{0cm}{0cm}{0cm}{0cm}
\begin{document}
\tiny
\begin{verbatim}

BlahSourceCode

\end{verbatim}
\scriptsize
\begin{verbatim}

BlahSourceCode


\end{verbatim}



Re: [O] insert picture feature request.

2011-05-02 Thread brian powell
* This is what I use (thanks to whomever wrote the original):

(defun org-screenshot ()
   Take a screenshot into a time stamped
unique-named file in the same directory as the org-buffer and insert a
link to this file.
   (interactive)
   (setq filename
 (concat
  (make-temp-name
   (concat (buffer-file-name)
   _
   (format-time-string
%Y%m%d_%H%M%S_)) ) .png))
   (call-process import nil nil nil filename)
   (insert (concat [[ filename ]])))

** Works great for me, puts a timestamp on it and the filename.

** Also, notice the .png:

*** The link above suggests .jpg (as the default)--which is great
for most things; except, JPG is a lossy compression format, but it
does load faster.

 http://www.turnkeylinux.org/blog/png-vs-jpg



[O] Fwd: Kedit-like ALL command for emacs

2011-04-08 Thread brian powell
Well, if that is what he wanted; then, suggest one of these:

Mx query-replace

and/or

Mx query-replace-regexp

--EMACS has the best/fastest regexp engine available for doing an

Mx query-replace-regexp

Because ELISP has a lot of functions optimized for editing files,
using multiple buffers, windows, etc.

The regexp engine is optimized for first-character-matching; i.e.
quickly finding and highlighting and replacing characters in a
buffer--faster than anything else, last time I checked.

Suggest using QEMACS if you want to edit multigigabyte files.

Also, to use an occur buffer (which you seem to refer to below) all
you would do there would be:

Mx occur

Then go to the *Occur* buffer where it shows the matching regexp in
highlighted text and then LeftMouse on the line (anywhere on the line)
and the line will pop up in the other window.

Also, there is a way to edit every file in the set of a regexp in a
directory tree (a
top-level directory and all of its subdirectories) that contains a
regexp--one replacement at a time:


** Occur mode changes:

*** The new command `multi-occur' is just like `occur', except it can
search multiple buffers.  There is also a new command
`multi-occur-in-matching-buffers' which allows you to specify the
buffers to search by their filenames or buffer names.  Internally,
Occur mode has been rewritten, and now uses font-lock, among other
changes.

So you could do something like emacs blahfiles* and then:

Mx multi-occur

and/or

Mx multi-occur-in-matching-buffers








On Fri, Apr 8, 2011 at 2:06 PM, Jambunathan K kjambunat...@gmail.com wrote:
 brian powell briangpowel...@gmail.com writes:

 After reviewing what KEDIT ALL is; it seems to me all you want to do
 is--in an EMACS buffer--regardless of the version or type of EMACS:


 Mx list-matching-lines


 I haven't used KEDIT.

 I did try out all.el. Within the occur-like buffer that all.el pops up,
 one can edit the matches and have the replacements propagated to the
 searched buffers.

 But list-matching-lines pops up a read-only buffer. Also the last line
 of the docstring says `In any case the searched buffers are not
 modified'.

 I think OP wanted something where the searched buffers are modified from
 within the occur buffer.

 Jambunathan K.

 On Mar 30, 7:53 am, Tom adatgyu...@gmail.com wrote:
 Marc Mientki no at no.com writes:



  Am 29.03.2011 17:42, schrieb Tom:
   Do you know a package which implements the KEDIT ALL command for Emacs?

  http://www.kedit.com/hint_all.html

 ftp://ftp.dina.kvl.dk/pub/Staff/Per.Abrahamsen/auctex/all.el
  Maybe?

 Looks good. Thanks.

 I wonder why it is not part of the Emacs distribution. Seems like a
 useful package.



 --




Re: [O] Re: org-add-note not working with winner-mode

2011-04-04 Thread brian powell
* http://www.emacswiki.org/emacs/WinnerMode gives:

The problem with (windmove-default-keybindings) is that they clash
with the more common use on modern systems of S-right etc for
selecting text. In Emacs this is turned on by CuaMode for example.
Therefore it might be better to go with the alternative

(windmove-default-keybindings 'meta)

--ie suggest trying: (windmove-default-keybindings 'meta) rather than
(windmove-default-keybindings)

(I don't believe this will help; maybe though)



Re: [O] zotero (or mendeley) integration with org

2011-03-28 Thread brian powell
It uses SQLite--Stephen: I'd consider myself a
plaintext-whenever-possible sort of dude too; but,
SQLite (used in ZOTERO) is a simple/short C program and its (last time
I checked) extremely simple--for example there is only left outer
join.

SQLite databases are very easy to work with and are often 1 simple,
small, very portable file.

I was reading some article yesterday: SQLite was ranked #1 in the top
ten best/most useful software of all time.

I understand your concern; and, often an SQL database is overkill and
NOSQL seems in vogue right now--but SQLite is something you might
really like--you can manipulate SQLite databases easily, like
plaintext.

I just tried ZOTERO too--very impressive.  I'm a lot more used to
using BibTeX though--which is purely plaintext; but, BibTeX can be a
typing chore!

On Mon, Mar 28, 2011 at 5:14 AM, Stephen Eglen
s.j.eg...@damtp.cam.ac.uk wrote:
 Dear all,

 Thanks for the informative replies.  I gave zotero a short-test
 yesterday,and in general liked what I found, although as it uses sql
 databases, it is moves away from my preference for plain text files to
 see everything in.   I appreciate that sql may scale better, but I don't
 have huge databases.  I think I'll continue to watch how the zotero
 standalone develops.



Re: [O] Using org-mode for recipes (i.e. cooking)

2011-03-25 Thread brian powell
* Could do a link like this in an OrgMode buffer:

[[shell:google-chrome --enable-plugins ~/CountDownTimer.html ]]

** Where ~/CountDownTimer.html contains the below code and/or only
contains the below code/markup:

embed width=800 height=600 quality=high wmode=opaque
name=virtualchumby type=application/x-shockwave-flash
src=http://www.chumby.com/virtualchumby_noskin.swf;
FlashVars=_chumby_profile_url=http%3A%2F%2Fwww.chumby.com%2Fxml%2Fvirtualprofiles%2FC3BB9562-5713-11E0-8D7D-0021288E6F90amp;baseURL=http%3A%2F%2Fwww.chumby.com
pluginspage=http://www.macromedia.com/go/getflashplayer;/embed

** Tested this; worked for me.

** You may have to make a VirtualChumby which I believe is free from
Chumby Industries.

*** FWIW I am in no way connected to Chumby Industries--no way that
I know of...

;-)

On Thu, Mar 24, 2011 at 5:56 PM, Christian Moe m...@christianmoe.com wrote:
 PS. Using Eric Schulte's new with-time macro
 (http://orgmode.org/worg/org-hacks.html#sec-1_2_6), part of the table
 formula in my above example can be written more compactly:

 $5 = '(if (string-match org-timer-re $3) (org-timer-secs-to-hms (-
 (org-timer-hms-to-secs $2) (org-timer-hms-to-secs $4))) )

 becomes:

 $5='(if (string-match org-timer-re $3) (with-time t (- $2 $4)) )





Re: [O] gnowsys-mode update?

2011-03-19 Thread brian powell
I too am interested in gnowsys-mode and have been meaning to look more
deeply into it.

I remember reviewing gnowsys-mode and it looked very interesting and related
to the semantic web and there was a semantic web workshop in Reston, VA
recently--gnowsys-mode was on the agenda.

THere may be some exciting apps one could make with a mashup with org-mode
and gnowsys-mode (with one or the other as an emacs sub/minor-mode).



On Sat, Mar 19, 2011 at 6:33 PM, Martin Weigele mar...@weigele.de wrote:

 Thank you very much Nagarjuna G -

 Am Samstag, 19. März 2011, 12:19:46 schrieb Nagarjuna G:
  On Fri, Mar 18, 2011 at 8:25 PM, Martin Weigele mar...@weigele.de
 wrote:
   Hi all,
  
   I've run into some texts about gnowsys as a major mode extending org,
  
 ...
 ...
  Yes.  We use the gnowsys-mode interface for sites running using
  gnowsys.  So far this is the only complete interface for gnowsys.
  Mostly used by the developers and those who maintain the sites, such
  as atlas.gnowledge.org
 

 OK I understand now the starting point to understand gnowsys, and, hence,
 for gnowsys on top of orgmode is
 http://www.gnu.org/software/gnowsys .

 This is so great.

  I am glad that somewhere some one is interested in this project.  It
  is very encouraging.  Let me know what kind of usecase you have
  thought about for using gnowsys-mode.
 
 The project is even in pre-infancy state, but it is about using such
 modelling to understand and learn structures in humanities (for me coming
 from
 a CS background).

 Martin




Re: [O] Elisp Primer?

2011-03-11 Thread brian powell
*I strongly agree with John Hendy: Robert Chassel's An Introduction
to Programming in Emacs Lisp:

http://www.gnu.org/software/emacs/emacs-lisp-intro/

--should be mastered first (it should be the first book @everyone@ reads.)

*O'Reilly's Safari has online books for $20/month you can put 10
books on your online bookshelf--you can put Learning EMACS and/or
EMACS Extensions on your bookshelf and then download the .pdf and use
DOCVIEW to read in EMACS and/or use the TEXINFO file and read it in
EMACS and/or put your cursor on something you don't understand and
type Mx man and/or do pdf2txt on the .pdf and put that into emacs:

http://oreilly.com/catalog/9781565922617/

**Could do wget -m -np
http://www.gnu.org/software/emacs/manual/html_node/elisp/index.html;
and put the reference manual on you're hard-drive--then use Mx dired
or a browser to browse it.

*Remember also, you can extend ELISP with COMMON LISP using the cl package:

Notably, the cl package implements a fairly large subset of Common Lisp.
(see http://en.wikipedia.org/wiki/Emacs_Lisp)

--then use some COMMOM LISP:
http://cl-cookbook.sourceforge.net/emacs-ide.html

*In grad school I downloaded the reference at:
http://www.lispworks.com/documentation/HyperSpec/Front/index.htm

---made a mirror of the entire doc tree on my hard-drive---it worked
as a great reference in alpha order (for common lisp--but you can
always extend elisp if you see something you like):
http://www.lispworks.com/documentation/HyperSpec/Front/X_Master.htm


On Fri, Mar 11, 2011 at 2:26 PM, Matthew Sauer
improv.philoso...@gmail.com wrote:

 I am wanting to learn about/have a reference guide for elisp.  I am a huge 
 fan of the O'Reilly books for the other languages I have worked with but I 
 was wondering if someone knew of an online repository (possibly like Worg) 
 that might be available to pull onto my system that I could read right in 
 emacs.

 Thanks,

 Matt



Re: [O] org google weather

2011-03-05 Thread brian powell
The sunrise and sunset strings have been available in the diary
functions for EMACS for a long time; and, the new code above you've
made for inserting them into the weather strings in OrgMode agendas is
great too.  Thanks and I look forward to using it.

Now, is there any simple way, maybe with the (require 'google-weather)
that one can get the twilight times too--the 6 degrees of earth
rotation before sunrise and after sunset when there is still sunlight
outside but no sun to be seen? (I like to play soccer at that time
sometimes.)

(I think twilight depends on lat-lon location too though)



Re: [O] org google weather

2011-03-04 Thread brian powell
FWIW/YMMV I use RUBY: I like the twilight info too--not sure emacs does
twilight info too--maybe you can reuse some of the code and put into
OrgMode: I do:

emacs -l .bja-sunrise-sunset-twilight.el

--where .bja-sunrise-sunset-twilight.el is:

(defun bja-sunrise ()
  Display sunrise, sunset amp; twilight information.
  (interactive)
  (shell-command ~/sunrise_http_post.rb))

--excerption of sunrise_http_post.rb (available somewhere on the web)
...
require 'net/http'

YOUR_ID = 'BGPOWELL' # A unique ID per comment above
YOUR_CITY = 'Fairfax' # The name of your city
YOUR_STATE = 'VA' # Two letter state abbreviation

now = Time.now
month = now.month
day = now.day + 1 # Tomorrow
year = now.year

Net::HTTP.start('aa.usno.navy.mil') do |query|
  response = query.post('/cgi-bin/aa_pap.pl',
FFX=1ID=#{YOUR_ID}xxy=#{year}xxm=#{month}xxd=#{day}st=#{YOUR_STATE}place=#{YOUR_CITY}ZZZ=END)
  if response.body =~ /Begin civil twilight[^0-9]*(\d+:\d{2}
[ap].m.).*Sunrise[^0-9]*(\d+:\d{2} [ap].m.).*Sunset[^0-9]*(\d+:\d{2}
[ap].m.).*End civil twilight[^0-9]*(\d+:\d{2} [ap].m.)/m
puts #{month}/#{day}/#{year}
puts Begin Twilight: #{$1}
puts Sunrise : #{$2}
puts Sunset : #{$3}
puts End Twilight : #{$4}
  end
end



On Fri, Mar 4, 2011 at 6:27 AM, Ian Barton li...@manor-farm.org wrote:


  Hi Ian,

 Ian Barton wrote:

 Has anybody tried adding the functionality of %%(diary-sunrise-sunset)
 (sunrise, sunset time and daylight hours) to the google weather code?


 I just have something like:

 #+CATEGORY: Day/Year
 %%(diary-day-of-year)
 #+CATEGORY: Sunrise
 %%(diary-sunrise-sunset)

 in one of my Agenda files. Sunrise then appears at sunrise time in my
 Agenda
 like:

Sunrise: 6:53.. Sunrise (GMT), sunset 5:52pm (GMT) at
 Wilkesley (10:58 hours daylight)


 Do you have a way to get the sunset located on a line on its own
 (different
 line from the sunrise one)?  That'd be even much nicer...

  No, but I would like one:) If there were separate diary functions for
 sunrise and sunset it would be easy. Maybe I need to look at the diary elisp
 and write my own separate functions.

 Ian.




Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-18 Thread brian powell
I haven't sent any HTMl that I know of--I fully embrace the plain text
KISS methods.

I've changed my fonts (all fonts--fixed and otherwise) to a font using the
string  Mono  somewhere in its name, and things seem better reading and
copying-and-pasting into an email buffer like this one--it should take care
of all problems with reading and writing @aligned tables@.

Thanks for pointing that out Bastien (about the fonts)--the FreeMono and
Courier fonts in GOOGLE CHROME are ugly--I tried them all after your
email--I settled on DejaVu Sans Mono Book; but, again, I have never posted
HTML to this list that I remember--I used to work with IETF members on XML
protocols and I'm very familiar with GML, SGML, HTML, XML, etc--I know HTML
when I see it.  The only markup that I inserted was [[file: --but thats
not HTML--its OrgMode?

If I paste text and set its font to XYZ @and@ you allow your browser to view
the XYZ font and character set @and@ you have the XYZ font software
installed and/or your email software has it, then you'll see it the way the
writer intended you to see it.  If you ever see anything from me with
uncovered down/aligned table columns again, please tell me, sorry about
that, it shouldn't happen again.  I strongly believe that problem has been
solved.

(I'll look into turning off HTML sending in my GOOGLE CHROME browser
options--like you suggested Bastien)

As for OrgMode and my idea, my plan: I will be setting ^H as an
end-of-line $ marker in my own code--when I am in a buffer running
OrgMode--and I'll see if I can make multivariate stat. tables like the
example table Wang gave--EMACS has the only regexp engine that is easily
tweaked that way--that I know of (see Regular Expressions, O'Reilly, 1st
edition)

Now, should OrgMode table mode support the creation of tables like the one
Wang gave as an example? I think it should.

--But I'm so giddy about OrgMode as it is right now, I almost don't care!

;-)


On Fri, Feb 18, 2011 at 4:47 AM, Bastien bastien.gue...@wikimedia.frwrote:

 brian powell briangpowel...@gmail.com writes:

  Forget all previous emails from me on this thread;

 Done :)

 The font you use might causes problems for fixed-font emails you *read*
 but problems for emails you send are caused by using HTML.  Go to gmail
 parameters and deactivate HTML when sending, it's generally better, at
 least for this list...

 Thanks!

 --
  Bastien

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-18 Thread brian powell
On Fri, Feb 18, 2011 at 10:31 AM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:

  I haven't sent any HTMl that I know of--I fully embrace the plain text
 KISS methods.
 

 This very email contained alternatives: an HTML one and a plain-text one.

 Nick


I have no idea what you mean here--maybe earlier emails? (which I requested
we disregard earlier)

I didn't find the option Bastien was refering to--to turn off the sending of
HTML.

I have been experimenting with sending images in GOOGLE CHROME--maybe that
setting is what you complain about/suffer from?  I do want to continue to do
that; but, what exactly you are complaining about, I don't know?

I sent a very complex set of tables (2 emails ago) and all the tables were
covered down/aligned?

Lastly, please remember this thread purposefully contained markup to
pictures and/or [[file: and other probelematic text like multiline
text (this thread) in OrgMode tables--its all experimental what if
stuff--I purposely tried to insert strange things into the OrgMode table?

It was fun and interesting; and, I learned a few things.  Now, please feel
free to delete or disregard anything I've sent to the list.  Anyway, I'm
done with this thread.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-18 Thread brian powell
I'm not offended; I'm looking into the turning off of html from my GOOGLE
CHROME browser.  I have been experimenting with the new features like
inserting images, etc.

And yes, as you point out that very email has markup (on your side--if you
accept it)--and that very email apologized for the problem and explained
that I would look into it--its still a problem--for you.

Everything looks fine to me now--even when I browse the postings.

I know a lot about MIME and browsers believe me, and email systems and
software and the internet...

you can go and learn something about MIME and what mailers do behind your
back.

--much agreed; this will always be an issue when using GMAIL or other
proprietary mail systems.

Thanks for the help Nick.




On Fri, Feb 18, 2011 at 11:20 AM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:


  It was fun and interesting; and, I learned a few things.  Now, please
 feel free to delete or
  disregard anything I've sent to the list.  Anyway, I'm done with this
 thread.
 

 I'm not trying to insult/upbraid/shut you up. And I was not
 offended/insulted/angry or anything like that. You made a statement. I
 pointed out that the statement was wrong. That's all.

 You learnt something from earlier emails.  That's good. Maybe you can
 learn something from this as well: e.g. you can go and learn something
 about MIME and what mailers do behind your back.

 Please do not misunderstand my terseness as anything other than it is:
 the minimal text possible to explain the problem.

 Nick

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-17 Thread brian powell
Your welcome Wang, my pleasure--I learned a few things too.

I used to make tables like the one you seem to be trying to put into and use
in an OrgMode Table.

Your table:

|---+---+|
|   | HEAD2 | Item 1 |
|   +---+|
| HEAD1 |   | Item 2 |
|   + HEAD3 ||
|   |   | Item 3 |
|---+---+|

* Reminds me of SAS multivariate statistics output and the PROC TABULATE
method:
** See these:
http://www2.sas.com/proceedings/forum2007/230-2007.pdf
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473736.htm
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473751.htm
** Program example is in:
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473751.htm
** Program example output:
  Energy Expenditures for Each Region
   1
 (millions of dollars)

  ---
  |   |  Type   |
  |   |-|
  |   |Residential |  Business  |
  |   | Customers  | Customers  |
  |   |+|
  |   |Expenditures|Expenditures|
  |   |+|
  |   |Sum |Sum |
  |---++|
  |Region |Division   |||
  |---+---|||
  |Northeast  |New England|  $7,477|  $5,129|
  |   |---++|
  |   |Middle |||
  |   |Atlantic   | $19,379| $15,078|
  |---+---++|
  |West   |Mountain   |  $5,476|  $4,729|
  |   |---++|
  |   |Pacific| $13,959| $12,619|
  ---
** Shows how to put .xls files into SAS, etc.:
http://www2.sas.com/proceedings/forum2007/230-2007.pdf
** You may be able to go from .txt/csv = EXCEL = SAS = .pdf/.ps

*Also, not sure you know about this extremely useful method that may help
you get fancy graphics:
Use ditaa!

** From http://doc.norang.ca/org-mode.html :
...
#+begin_src ditaa :file communication.png :cmdline -r -s 0.8
+---++-+
|PLC|| |
|  Network  +--+   PLC   +---=-+
|cRED   ||  c707   |  |
+---++++  |
  ^   |
  |   |
  |  +|-+
  |  || |
  v  vv v
  +--+   ++--+--+  +---+---+
 +-+-+   Windows clients
  |  |   |  |  |   |  |
  |  ++  ++
  | Database +-+  Shared  ++ Executive +-=--+ Operator
 +|cYEL| . . .|cYEL|
  |   c707   |   |  Memory  |  |   c707|  | Server
 |  ||  ||
  +--++--+   |{d} cGRE  |  +--++  |   c707
 |  ++  ++
 ^^  +--+ ^
+---+---+
 ||   |

 |+=--+
 v
+++

| |

| Millwide System | Data -

| cBLU|--=- Signals ---=--

+-+

#+end_src

** Make a DITAA diagram of the table and use the methods shown at:
http://doc.norang.ca/org-mode.html

* Maybe make two or three separate tables--and maybe separate with
whitespace--with only one real OrgMode table that you do spreadsheet
formula calcs, etc. in:

** Example:

|+-| ---+---+
| Item 1 |   4 || TAIL2 |
|+-||---+
| Item 2 | 555 |  TAIL1 |   |
|+-|| TAIL3 |
| Item 3 | 559 ||   |
|+-| ---+---+
#+TBLFM: @3$2=@1$2+@2$2
** But when I recalculate OrgTable pushes the tables back together.
** Maybe make two tables and use the UNIX paste command to paste them
together.
*** Maybe then use the TeX \verbatim.


Re: [Orgmode] Can I input multiline in a cell?

2011-02-16 Thread brian powell
These intersting work-around-hacks worked for me:

[[file:/blahfilewithyourmultilinetextinit.txt]] ---put this in a org-table
cell

and/or

put a string like:

/blahjpegabsolutepath/blah.jpeg  ---where the jpeg contains a jpeg of your
text then do Mx iimage-mode

--just wild ideas--that I want @you@ to try!

--I like it: when I click Tab it quickly evens up the columns
--could have extremely short filenames--with the multiline strings in
them--these worked fine for me--YMMV:

|---+-+-+-+-+-+-+-+-+-+---|
|   | | | | | | | | | |
  |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 11B | 21W | 31B | 41W | 51B | 61W | 71B | 81W | 91B |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 12W | /u/0802.jpg |   0 |   0 | [[file:/u/d.j]] |   0 |   0 |   0 |
* |   |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 19B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 12W |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
| * | 11B |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |
* |
|---+-+-+-+-+-+-+-+-+-+---|
#+TBLFM:


---I was playing around with making an OrgModeChess game BTW.

--so the file /u/d.j has the multiline text in it; and, /u/0802.jpg has the
multiline text in it--the jpeg is then toggle-viewed with Mx iimage-mode
---inline-image-mode

On Tue, Feb 15, 2011 at 4:10 PM, Wang Coeus wangco...@gmail.com wrote:

 Hi all,
 I am using org-mode for some note, there is a table and I need to input
 a lot text in one cell, is there possible that I input multiline and
 output also show as multiline?
 --
 Coeus
 In the middle of every difficulty lies opportunity.
-- Albert Einstein


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

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
This worked too:
...
|---+-+-+-+-+-+-+---+-+-+---|
| * | 11B | 21W | 31B | 41W | 51B | 61W |   71B | 81W | 91B
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 12W | /u/0802.jpg |   0 |   0 | [[file:/u/d.j]] |   0 | multi |   0 |
  * |   |
|   | | | | | | |  line | |
|   |
|   | | | | | | |  text | |
|   |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
...

---to do this: I put dummy rows around the 12W row--dummy rows have
all the cells empty--and then just deleted the separator rows---took less
than a minute.

A little Ck Cy magic---and good old Tab key.

As far as the TeX ideas; making it display as a multiline cell in
export--thats a great idea too, I've made o-ton-o LaTeX tables--once you do
this process Bastien suggests, you could probably write a simple program to
munge the .tex file and then reuse the same method over and over.  TeX is
great at displaying multiline text---its the best for that---regardless of
the font.


On Wed, Feb 16, 2011 at 4:42 AM, Bastien bastien.gue...@wikimedia.frwrote:

 Hi Wang,

 Wang Coeus wangco...@gmail.com writes:

  Will org consider to support this in future?

 There is no plan for this right now.

 But what about cheating a bit and play with the _display_ of the table?

 | Header  | Header |
 |-+|
 | I want to   ||
 | write stuff ||
 | on several  ||
 | lines   ||

 You should be able to export this table to HTML or LaTeX and simulate a
 multiline cell on the first column.  Just a workaround, but could do in
 some situations.

 Also, note that you can shrink the cell length by adding length:

 |---+--|   |---+|
 |   |  |   |   | 6|
 | 1 | one  |   | 1 | one|
 | 2 | two  | \ | 2 | two|
 | 3 | This is a long chunk of text | / | 3 | This= |
 | 4 | four |   | 4 | four   |
 |---+--|   |---+|

 which helps having long text in a single-line cell.

 HTH,

 --
  Bastien

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

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
Howsabout some code to put in a dummy row in an OrgMode Table--this would
facilitate inputting multi-line-text--i.e. a key in
OrgMode/TableMode/CalcMode
would insert exactly a line like this in the table below:
|   | | | | | | |   | | |
|
---and thats it--you're done---then you just type in the text in the column
cells you want the multiline text.

On Wed, Feb 16, 2011 at 12:48 PM, brian powell briangpowel...@gmail.comwrote:

 This worked too:
 ...

 |---+-+-+-+-+-+-+---+-+-+---|
 | * | 11B | 21W | 31B | 41W | 51B | 61W |   71B | 81W | 91B
 | * |

 |---+-+-+-+-+-+-+---+-+-+---|
 | * | 12W | /u/0802.jpg |   0 |   0 | [[file:/u/d.j]] |   0 | multi |   0 |
   * |   |
 |   | | | | | | |  line | |
 |   |
 |   | | | | | | |  text | |
 |   |

 |---+-+-+-+-+-+-+---+-+-+---|
 | * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
 | * |

 |---+-+-+-+-+-+-+---+-+-+---|
 ...

 ---to do this: I put dummy rows around the 12W row--dummy rows have
 all the cells empty--and then just deleted the separator rows---took less
 than a minute.

 A little Ck Cy magic---and good old Tab key.

 As far as the TeX ideas; making it display as a multiline cell in
 export--thats a great idea too, I've made o-ton-o LaTeX tables--once you do
 this process Bastien suggests, you could probably write a simple program to
 munge the .tex file and then reuse the same method over and over.  TeX is
 great at displaying multiline text---its the best for that---regardless of
 the font.


 On Wed, Feb 16, 2011 at 4:42 AM, Bastien bastien.gue...@wikimedia.frwrote:

 Hi Wang,

 Wang Coeus wangco...@gmail.com writes:

  Will org consider to support this in future?

 There is no plan for this right now.

 But what about cheating a bit and play with the _display_ of the table?

 | Header  | Header |
 |-+|
 | I want to   ||
 | write stuff ||
 | on several  ||
 | lines   ||

 You should be able to export this table to HTML or LaTeX and simulate a
 multiline cell on the first column.  Just a workaround, but could do in
 some situations.

 Also, note that you can shrink the cell length by adding length:

 |---+--|   |---+|
 |   |  |   |   | 6|
 | 1 | one  |   | 1 | one|
 | 2 | two  | \ | 2 | two|
 | 3 | This is a long chunk of text | / | 3 | This= |
 | 4 | four |   | 4 | four   |
 |---+--|   |---+|

 which helps having long text in a single-line cell.

 HTH,

 --
  Bastien

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



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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
They were plain text emails?

(Believe me, I understand what you mean/the problems people cause when they
paste things in the buffer that aren't plain text--that is one reason to use
OrgMode.)

In any case, sorry about that--I just copied-and-pasted my tests--right from
the OrgTable/file?

My suggestion then (after all that brainstorming crap) boils down to this
alone:

Maybe put in 1 key in table mode that puts a dummy line in, maybe something
like this:

|

--it puts in the same number of cell separators and empty cells on empty
line as are on the previous line---or you could just do:

Cu 8 | Enter Tab

And then it spreads it out/covers-down the columns--or the user then just
taps Tab

(OrgMode will then format the table for them)

And then the OrgMode user would type in the multi-line-text column in the
respective column-cells.

Or I suggest a keyboard-macro (to put in the dummy rows) for this too;
thats what I'll do--I'll put it in my .emacs.


Thanks Bastien and Wang.



On Wed, Feb 16, 2011 at 1:43 PM, Bastien bastien.gue...@wikimedia.frwrote:

 Hi Brian,

 brian powell briangpowel...@gmail.com writes:

  Howsabout some code to put in a dummy row in an OrgMode Table--this
  would facilitate inputting multi-line-text--i.e. a key in OrgMode/
  TableMode/CalcMode
  would insert exactly a line like this in the table below:

 Please use plain text emails...  those emails are completely unreadable
 for me.  Especially crucial when talking about tables and formats.

 Thanks!

 --
  Bastien

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
Bastien: I agree with you, every time I get emails from other users, they
are jagged and unclear--and; like you typed they are unreadable/unclear
(the columns aren't covered down)---maybe its the font that I use?

I'll research the different fonts--I think Courier font may keep things
clearer.

Here is a test:

|---+-+-+-+-+-+-+---+-+-+---|
| * | 11B | 21W | 31B | 41W | 51B | 61W |   71B | 81W | 91B
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 12W | /u/0802.jpg |   0 |   0 | [[file:j]]  |   0 | multi |
0 |   * |   |
|   | | | | | | |  line | |
|   |
|   | | | | | | |  text | |
|   |
|   | | | | | | |  text | |
|   |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 19B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 18W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 14W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 13B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 12W |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
| * | 11B |   0 |   0 |   0 |   0 |   0 | 0 |   0 |   0
| * |
|---+-+-+-+-+-+-+---+-+-+---|
#+TBLFM:

---yes, courier font is what I used to use--it aligns tables better.

I'll use courier font; and, I suggest others use it--when dealing
with/expressing table problems to others--many fonts don't cover down
columns.

Thanks again Bastien.




On Wed, Feb 16, 2011 at 1:43 PM, Bastien bastien.gue...@wikimedia.frwrote:

 Hi Brian,

 brian powell briangpowel...@gmail.com writes:

  Howsabout some code to put in a dummy row in an OrgMode Table--this
  would facilitate inputting multi-line-text--i.e. a key in OrgMode/
  TableMode/CalcMode
  would insert exactly a line like this in the table below:

 Please use plain text emails...  those emails are completely unreadable
 for me.  Especially crucial when talking about tables and formats.

 Thanks!

 --
  Bastien

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-16 Thread brian powell
Forget all previous emails from me on this thread; I thought there was a
simple way to do this in OrgMode--will this work for you Wang?:

All you have to do is this I believe (not sure about the Org publish/TeX
output though--tell me if it works out for you):

Ca Enter | Tab

and then type in your multi-line text--and maybe Tab a few times--this
took about 15 seconds:

|---+-+-+-+-+-+-+---|
| * | 15B |   0 |   0 |   0 |   0 |   0 | 0 |
|---+-+-+-+-+-+-+---|
| * | 16W |   0 |   0 |   0 |   0 |   0 | 0 |
|   | | | | | | | multi |
|   | | | | | | | line  |
|   | | | | | | | text  |
|---+-+-+-+-+-+-+---|
| * | 17B |   0 |   0 |   0 |   0 |   0 | 0 |
|---+-+-+-+-+-+-+---|
#+TBLFM:
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mode without stars

2011-01-26 Thread brian powell
The original outline-mode in EMACS which predates org-mode used stars.

Using stars * is the best way to do it; the reasons are many--OrgMode
files are flat text files and this is great too--but keep this in mind
here--think about searches, etc.

PYTHON uses indentation (and thats great); LISP silly/wonderful parens,
etc.--for EMACS use stars!  They look great!  They are the best thing to use
here:

Stars * are also used as the symbol for regular-expressions--based on
neurology/neurons/dendrites/trees/outline-trees/etc. and the Kleene
Closure (i.e. the mathematician Kleene)--the study of neurology and
regular-expressions and the stars * are intertwined--the history dates at
least back to the 1930s--and LISP/lambda calculus/Alonso Church/Kleene--the
1950s.

A star * @is@ a Kleene Closure--math.

A star * is easily recognized as a symbol for a note: From
http://Wiktionary.com:   *== Used at the beginning of a footnote ,
especially if it is the only one on the page, and after a word, phrase, or
sentence that this ...

So, why should I care!? (you might have been thinking)

Well, howsabout this: Say you are searching for a string and/or regular
expression in a flat text file--you wouldn't search for *--you would
usually be search for a string (maybe an indentation level of stars *)
using EMACS--which is by the way the fastest way to find such things --if
you are typing in real-time--emacs will highlight a search as you type
it--this function is very fast--Suggest you try these 2 examples: Cs
blah-search-string ***--and maybe Mx search-for-regexp ***---they have
different uses/meanings--when searching in EMACS) since emacs is the fastest
regular expression engine (for 1st-character(s)-recoginition (the engine is
optimized for this) so for this case/this type of search there is @nothing
faster@ (BTW check out QEMACS if you're working with a huge/gigabyte size
files--its fun to edit huge files with QEMACS--written by the same guy that
calculated PI with a desktop computer--to the longest # he also wrote QEMU
(Fabrice Bellard: http://bellard.org) for this type of regular-expression
search (many other engines are faster and use different algorithms--for the
purposes they were built for--and so they should be used then--each regexp
engine seems to have a niche.)

Use EMACS OrgMode and use stars *, they really are the best for this case;
my brain is overheating thinking of the many good reasons.  But, How do
they look when you print them out!?, etc.; well, I suggest you tailor that
with PERL, thats what I use--I quickly change doc formats to TeX--TeX is the
only thing that @really@ looks pretty!

Please leave well enough alone! That said, I hope you do whatever you want
and don't listen to me or anyone else on such matters--EMACS is infinitely
extensible, have fun!

;-)

On Wed, Jan 26, 2011 at 11:57 AM, Samuel Wales samolog...@gmail.com wrote:

 Hi Bayle,

 On 2011-01-22, Bayle Shanks bshan...@gmail.com wrote:
  get new laptop
 
  organize interstellar dust meeting
   book the meeting room
   organize LOC
   Invited speakers
- Draine
- Tielens
- Hollenbach
   1st announcement
 
  fix the bell in the hall

 I indent by spaces by 2 a lot to save typing.  c-c - and c-c * will
 convert.  They do not handle indentation, but that might be a very
 useful feature (I would use it too).

 This does handle indentation.  I wrote it a very long time ago for a
 different, 8-space indentation.

 (defun alpha-orgify ()
  quick hack.  create org format from my indented outline
 format, which consists of 8-space indentation.  operate on the
 region.  assume a certain number of stars and odd levels.
  (interactive)
  (let ((b (region-beginning))
(e (region-end))
;;manually mod for now.  headline vs. bullet.
(bulletp nil))
(loop
   while
 (progn
   (save-excursion
 ;;use (re-)search-forward and replace-match when no query?  i'd
 ;;prefer without the pattern (i.e. just ^) but you might be
 ;;re-orgifying an already-orgified region.  btw match-string is
 ;;how you get the string.
 (perform-replace ^\\([^*]\\)
  (if bulletp
\\1
*** \\1)
  t ;interactive
  t nil nil nil
  b
  e))
   (save-excursion
 (perform-replace 
  (if bulletp

**)
  t ;interactive
  t nil nil nil
  b
  e))
   (when bulletp
 (progn
   ;;how to make it greedy?
   (perform-replace ^\\( +\\)\\([^ ]\\) \\1- \\2
t 

Re: [Orgmode] Re: Introducing gnugol - an org-mode-output web search client

2011-01-07 Thread brian powell
I know--the *eshell* is not necessary too--its illustrative--its just an
example--showing that you could (using your new module) create
multiple asynchronous/coprocesses (in their own dedicated buffers) uniquely
named shells and maybe make calls out to goosh and use surfraw and/or gnugol
somehow.

And, many thanks to you too Konrad for your new org-eshell.el
module--hopefully more people will realize the possibilities of these great
tools.

Eshell has some unique properties that ought to be explored more.

On Thu, Jan 6, 2011 at 3:11 PM, Konrad Hinsen konrad.hin...@fastmail.netwrote:

 On 6 Jan 2011, at 19:19, brian powell wrote:

  ** Example/possibilities:
 apt-get install surfraw
 ...
 [[eshell:*eshell*:(rename-buffer vvv)]]
 [[eshell:*eshell*:(rename-buffer ttt)]]


 There's no need for those two lines, because...

  [[eshell:vvv:date]]


 ... this one will create the eshell buffer vvv if it doesn't exist already.


  [[eshell:ttt:sr wikipedia goosh]]


 Same here.

 Konrad.

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


Re: [Orgmode] Sorting table columns (*not* content)

2010-11-01 Thread brian powell
Jeff Horn seems to be explaining specifics of how to do some nitty-gritty
manipulations--he mentions (quoting the manual) methods for yanking, Ccxy

The methods Jeff expressed are useful for the question posed.

I recommend rectangle-kill and rectangle-yank--Cxrk and Cxry to solve this
(in a very simple albeit possibly faster or slower way--depending on how
many columns you want to move/sort---moving column/rectangle 3 to the 3rd
position in this case--took a few seconds)

I tested Juan's method/defun---works great!!
Thanks Juan

P.S. I did lose the hlines like you reported; but, to put the line back was
3 key strokes: |-Tab

On Mon, Nov 1, 2010 at 10:43 AM, Juan Pechiar j...@pechiar.com wrote:

 If you don't mind losing h-lines, you can transpose the table, sort
 rows, and transpose back.

 This code (which I previously posted to the list) transposes a table:

 #+begin_src: emacs-lisp

 (defun org-transpose-table-at-point ()
  Transpose orgmode table at point, eliminate hlines
  (interactive)
  (let ((contents (apply #'mapcar* #'list
 (remove-if-not 'listp  ;; remove 'hline from list
(org-table-to-lisp  ;; signals
 error if not table
)
(delete-region (org-table-begin) (org-table-end))
(insert (mapconcat (lambda(x) (concat |  (mapconcat 'identity x  | 
 )   |\n ))
   contents
   ))
(org-table-align)
)
 )

 #+end_src

 Regards,
 .j.

 On Mon, Nov 01, 2010 at 02:42:55PM +0100, Gary wrote:
  Is there any way to sort the columns of a table, such that for example
 
  | Col 3 | Col 1 | Col 2 |
 
  can be converted to
 
  | Col 1 | Col 2 | Col 3 |
  |---+---+---|
  | ...   | ...   | ...   |
 
  ?

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

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


Re: [Orgmode] how to reverse a region of outline items

2010-10-12 Thread brian powell
* A macro would definitely do this--a keyboard macro solution is simple:

To create a keyboard macro do something like this:
Cx ( etc. Cx ) ;  Mx name-last-keyboard-macroetc.

To me, Cx (.Cx )...--creating a keyboard macro seems to be the most
useful thing one can use Editor MACroS/Emacs for!

;-)

** The solution is simple because of the features of OrgMode--the function
of folding tree-nodes, makes it more simple than you might think:

*** Have the macro do something like this:
1. Fold everything up to just the major headings.
2. Go to just below * A and put a string like jjj--and/or Mx
set-mark--on its own line
3. Go down one row and do Ck.
4. MS  ==  EscapeShiftLessThanSign  ---i.e. have macro repeatedly go to the
top.
5. Cy
6. Cs jjj
7. Repeat 3-7.

(Make 2 macros: The first does steps 1 and 2 and then does Cu 1
macro-that-you-make-that-does-Ck-on-next-line-and-go-to-the-top ---i.e.
steps 3-6.
This way you have 1 macro call the other macro 1 times or until you run
out of lines/major sections whichever happens first.)

You can make a macro that does the above--or just the second part and do:
 Cu 1 Mx blah-new-macro-that-reverses-the-section-headings
--then it would process a 10k major-headings-long-document or halt and ring
the bell when you run out of major headings to process--DownArrow will hit
the EndOfFile.  Then you have a reusable macro that does what you want--with
all the subtrees/subsections just where they started--untouched.

I agree with Nicolas below, and his solution is generally what one might
seek; but, a keyboard macro here allows you to do what you described
without sorting or alphabetizing, etc.---the last major heading becomes the
first and the first major heading becomes the last, regardless of the
contents.  Once keyboard macros are named and placed in .emacs, they are
reusable.

Good luck.



On Sat, Oct 9, 2010 at 1:14 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hello,

 C-c ^ A will sort the list alphabetically, in reversed order.

 If you do not really have A, B, etc. you can, well, add marks
 (numbers) to items with the help of `org-apply-on-list', sort the list
 numerically (in reversed order, with C-c ^ N), then remove the marks.

 Here is an example sexp to mark list:

 (org-apply-on-list
  '(lambda (c)
(org-get-bullet)
(goto-char (match-end 0))
(insert (format  %s c))
(1+ c))
  0)

 Regards,

 -- Nicolas

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

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


Re: [Orgmode] table, moving cells

2010-09-30 Thread brian powell
Theres a very simple way to do this; its been available in EMACS as long as
I can remember--which is back to the late 80's--and OrgMode makes it even
easier since it  evens-up/covers-down/aligns columns in real-time: All you
have to do is:

Go to the bottom right corner of the cell or column you would like to move
and set a mark CS@, then go the the top right corner of the square cell or
rectangular region of cells you intend to move and do Cxk ==
cut-rectangle--then go to where you want to move the cell or rectangle and
do Cxry to do the yank-rectangle where you'd like to put it.

I just tested it--works fine!

;-)

On Thu, Sep 30, 2010 at 3:51 AM, Martin G. Skjæveland
mart...@ifi.uio.nowrote:

 On 29/09/10 17:58, Carsten Dominik wrote:

 Hi Martin,

 On Sep 25, 2010, at 6:02 PM, Martin G. Skjæveland wrote:

  Hi,

 is there a quick way for moving a cell about in a table? I enjoy
 swapping the order of rows and columns in a table using Meta +
 [arrow], but I have not found a ways of doing the same for a single
 cell. Is it possible?

 Example, with the cursor on '2' in the following table

 | A | B | C |
 | 1 | 2 | 3 |
 | x | y | z |

 and pressing [move cell left] would give me

 | A | B | C |
 | 2 | 1 | 3 |
 | x | y | z |

 Thanks!


 Hi Carsten

  I fail to see the use case for this.


 I have come across two use cases lately where I have been missing this
 feature: 1) in a timetable, swapping a cell or two, e.g., the title of a
 talk and the speaker, with next week's values; and 2) making a seating plan
 for a social event. In the latter, moving people about quick and easy is
 nice.

  Yes, this can
 be useful sometimes, and you can use `C-c C-x C-w' and
 `C-c C-x C-y' to cut and paste individual fields or
 even rectangular regions.


 Ok, thanks, I did not know about these.

  But for pushing a cell value
 to a neighboring cell, I don't see a frequent use that
 would call for a special command beyond what I listed above.
 Do you?


 I agree that it is not a frequent operation.

 For the seating plan, I ended up with lots of post-it notes on a wall,
 which worked just fine! :)

 Thanks again!
 Martin

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

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


Re: [Orgmode] Sidewaystable in org?

2010-09-29 Thread brian powell
* The Crush Tools may be of help. See pivot for example:

http://code.google.com/p/crush-tools/wiki/PivotUserDocs

** Maybe this would do it for an OrgTable: pivot -d| table.org

On Wed, Sep 29, 2010 at 6:45 AM, Rainer M Krug r.m.k...@gmail.com wrote:

 Hi

 I would like to have a table exported to LaTeX in landscape formate. I
 tried
 \begin{sidewaystable}
 THE TABLE
 \end{sidewaystable}

 but I did not succeed.

 Is there a way to produce a sideways table from org? OK - one approach
 would be to use a radio table in a LaTeX block, but I am struggling with
 those as well.

 Cheers,

 Rainer

 --
 NEW GERMAN FAX NUMBER!!!

 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
 UCT), Dipl. Phys. (Germany)

 Centre of Excellence for Invasion Biology
 Natural Sciences Building
 Office Suite 2039
 Stellenbosch University
 Main Campus, Merriman Avenue
 Stellenbosch
 South Africa

 Cell:   +27 - (0)83 9479 042
 Fax:+27 - (0)86 516 2782
 Fax:+49 - (0)321 2125 2244
 email:  rai...@krugs.de

 Skype:  RMkrug
 Google: r.m.k...@gmail.com


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


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


Re: [Orgmode] Re: simultaneous clocks?

2010-06-09 Thread brian powell
To punch in and punch out I use:

timeclock.el

--in addition to a mix of OrgMode and PlannerMode

But to be very precise on each task I do: timeclock.el works great for me.

;-)

On Wed, Jun 9, 2010 at 2:53 PM, Erik L. Arneson dyb...@lnouv.com wrote:

 Erik Iverson er...@ccbr.umn.edu writes:
  Hello,

 Hi, Erik!

  Is there any concept of being able to run multiple, simultaneous
  clocks in org-mode.  For example, I want one clock to track my total
  hours during the week at work, i.e., punch in and punch out.
 
  Then, while that clock is running, I would use the normal clocking
  functionality to keep track of time on specific projects.
 
  As it is, clocking into a new task clocks out of the current task.
 
  There may not be a way, but thought I'd ask!

 I do this by using a special clocktable block that reads an entire
 agenda.  Try this on for size:

 #+BEGIN: clocktable :maxlevel 3 :scope agenda :block thisweek
 #+END

 It adds up all time spent on various tasks and gives me a total.  I
 suppose you can't really have two clocks running at once, but this works
 great for me.

 --
 Erik Arneson dyb...@lnouv.com
  GPG Key ID: 1024D/62DA1D25
  Office: +1.541.291.9776
  Skype: pymander


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

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