[O] sed tests

2018-01-23 Thread Skip Collins
Recently (last two or three weeks), when I run make test on the latest
git source (currently release_9.1.6-395-g8ecc4c) on my mac with Emacs
26.0.90 (compiled with brew on my Mac), I get the following results:

Ran 775 tests, 771 results as expected, 4 unexpected (2018-01-23 11:37:59-0500)
11 expected failures

4 unexpected results:
   FAILED  ob-sed-test/cmd-line-header-argument
   FAILED  ob-sed-test/in-file-header-argument
   FAILED  ob-sed-test/simple-execution-of-script
   FAILED  test-ob-python/session-multiline

I would appreciate any suggestions for how to address the problem.
This is not urgent, as I don't use ob-sed and org seems to be
functioning normally otherwise. But OSX command line tools sometimes
have quirks that show up as failed tests. Of course it is possible
that I broke my emacs/org in some way.

The backtrace from the first failed test is:
executing Sed code block...
executing sed source code block
Babel evaluation exited with code 1
Code block produced no output.
Test ob-sed-test/cmd-line-header-argument backtrace:
  signal(ert-test-failed (((should (string= "A tested again file.\n" (
  ert-fail(((should (string= "A tested again file.\n" (with-temp-buffe
  (if (unwind-protect (setq value-1104 (apply fn-1102 args-1103)) (set
  (let (form-description-1106) (if (unwind-protect (setq value-1104 (a
  (let ((value-1104 'ert-form-evaluation-aborted-1105)) (let (form-des
  (let* ((fn-1102 (function string=)) (args-1103 (condition-case err (
  (let ((default-directory temporary-file-directory)) (let ((temp-buff
  (save-restriction (let ((default-directory temporary-file-directory)
  (progn (org-id-goto "E3C6A8BA-39FF-4840-BA8E-90D5C4365AB1") (setq to
  (unwind-protect (progn (org-id-goto "E3C6A8BA-39FF-4840-BA8E-90D5C43
  (let ((save-match-data-internal (match-data))) (unwind-protect (prog
  (progn (let ((save-match-data-internal (match-data))) (unwind-protec
  (unwind-protect (progn (let ((save-match-data-internal (match-data))
  (let ((wconfig (current-window-configuration))) (unwind-protect (pro
  (unwind-protect (let ((wconfig (current-window-configuration))) (unw
  (let* ((id-location (org-id-find "E3C6A8BA-39FF-4840-BA8E-90D5C4365A
  (lambda nil (let* ((id-location (org-id-find "E3C6A8BA-39FF-4840-BA8
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name ob-sed-test/cmd-line-header-argument
  ert-run-or-rerun-test(#s(ert--stats :selector "\\(org\\|ob\\)" :test
  ert-run-tests("\\(org\\|ob\\)" #f(compiled-function (event-type 
  ert-run-tests-batch("\\(org\\|ob\\)")
  ert-run-tests-batch-and-exit("\\(org\\|ob\\)")
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests("\\(org\\|ob\\)")
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test ob-sed-test/cmd-line-header-argument condition:
(ert-test-failed
 ((should
   (string= "A tested again file.
"
(with-temp-buffer ... ...)))
  :form
  (string= "A tested again file.
" "A test file.
")
  :value nil))
   FAILED  109/775  ob-sed-test/cmd-line-header-argument



Re: [O] running tests on macOS: 4 unexpected results

2017-09-19 Thread Skip Collins
On Tue, Sep 19, 2017 at 6:53 PM, Stig Brautaset  wrote:
> |FAILED  ob-shell/bash-uses-assoc-arrays

Using homebrew to install a newer bash should help fix this one.



[O] test fails: resolve-external-link

2017-09-19 Thread Skip Collins
When compiling Org with
make up2
a failed test prevents successful completion:
   FAILED  555/746  test-org-publish/resolve-external-link

I am running GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, Carbon
Version 157 AppKit 1504.83) of 2017-09-12 with Org mode version 9.1.1
(release_9.1.1-54-gff6b38. I am working in MacOS 10.12.6, with bash
4.4.12.

Output from the failed test is:

Publishing file /Users/Shared/git/org-mode/testing/examples/pub/b.org
using ‘(closure ((backend . [cl-struct-org-export-backend nil nil
((headline lambda (h c i) (concat (org-export-get-reference h i)   c))
(paragraph lambda (p c i) c) (section lambda (s c i) c) (link lambda
(l c i) (let ((option (org-element-property :search-option l)) (path
(org-element-property :path l))) (and option
(org-publish-resolve-external-link option path) nil nil nil nil])
(ids) t) (plist filename pub-dir) (org-publish-org-to backend filename
.test plist pub-dir))’
Publishing file /Users/Shared/git/org-mode/testing/examples/pub/a.org
using ‘(closure ((backend . [cl-struct-org-export-backend nil nil
((headline lambda (h c i) (concat (org-export-get-reference h i)   c))
(paragraph lambda (p c i) c) (section lambda (s c i) c) (link lambda
(l c i) (let ((option (org-element-property :search-option l)) (path
(org-element-property :path l))) (and option
(org-publish-resolve-external-link option path) nil nil nil nil])
(ids) t) (plist filename pub-dir) (org-publish-org-to backend filename
.test plist pub-dir))’
Publishing file /Users/Shared/git/org-mode/testing/examples/pub/b.org
using ‘(closure ((backend . [cl-struct-org-export-backend nil nil
((headline lambda (h c i) c) (paragraph lambda (p c i) c) (section
lambda (s c i) c) (link lambda (l c i) (let ((option
(org-element-property :search-option l)) (path (org-element-property
:path l))) (when option (throw :exit
(org-publish-resolve-external-link option path t)) nil nil nil
nil]) (ids) t) (plist filename pub-dir) (setq ids (cons (catch :exit
(org-publish-org-to backend filename .test plist pub-dir)) ids)))’
Publishing file /Users/Shared/git/org-mode/testing/examples/pub/a.org
using ‘(closure ((backend . [cl-struct-org-export-backend nil nil
((headline lambda (h c i) c) (paragraph lambda (p c i) c) (section
lambda (s c i) c) (link lambda (l c i) (let ((option
(org-element-property :search-option l)) (path (org-element-property
:path l))) (when option (throw :exit
(org-publish-resolve-external-link option path t)) nil nil nil
nil]) (ids a1) t) (plist filename pub-dir) (setq ids (cons (catch
:exit (org-publish-org-to backend filename .test plist pub-dir))
ids)))’
Test test-org-publish/resolve-external-link backtrace:
  (if (unwind-protect (setq value-14360 (apply fn-14358 args-14359)) (
  (let (form-description-14362) (if (unwind-protect (setq value-14360
  (let ((value-14360 (quote ert-form-evaluation-aborted-14361))) (let
  (let ((fn-14358 (function equal)) (args-14359 (list "a1" (let* ((ids
  (closure (t) nil (let ((fn-14353 (function apply)) (args-14354 (list
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  ert-run-test([cl-struct-ert-test test-org-publish/resolve-external-l
  ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st
  ert-run-tests("\\(org\\|ob\\)" #[385 "\306\307\"\203G\211\211G\310
  ert-run-tests-batch("\\(org\\|ob\\)")
  ert-run-tests-batch-and-exit("\\(org\\|ob\\)")
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests("\\(org\\|ob\\)")
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test test-org-publish/resolve-external-link condition:
(ert-test-failed
 ((should
   (equal "a1"
  (let* ... ... ...)))
  :form
  (equal "a1" "orgbb5a65b")
  :value nil :explanation
  (arrays-of-different-length 2 10 "a1" "orgbb5a65b" first-mismatch-at 0)))
   FAILED  555/746  test-org-publish/resolve-external-link



[O] [PATCH] Ensure test files are opened in Emacs in test-org/fuzzy-links

2017-04-10 Thread Skip Collins
On Fri, Apr 7, 2017 at 11:47 AM, Skip Collins <skip.coll...@gmail.com> wrote:
> On Thu, Mar 30, 2017 at 6:50 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> 
> wrote:
>> Thank you. Unfortunately, there is not much to do with this. Could you
>> do some debugging when running the faulty test? It may come from
>> something in your configuration.
>
> I think I figured it out. During the fuzzy-links test,
> org-open-at-point is invoked to open a file that was created with
> org-test-with-temp-text-in-file. The temp file does not have a .org
> extension. As a result, my mac attempts to open the file outside of
> emacs, which produces an unexpected result. The solution is to pass an
> argument to org-open-at-point, which ensures that the file is opened
> in emacs. A patch is attached.


0001-Ensure-test-files-are-opened-in-Emacs-in-test-org-fu.patch
Description: Binary data


Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-04-07 Thread Skip Collins
On Thu, Mar 30, 2017 at 6:50 AM, Nicolas Goaziou  wrote:
> Thank you. Unfortunately, there is not much to do with this. Could you
> do some debugging when running the faulty test? It may come from
> something in your configuration.

I think I figured it out. During the fuzzy-links test,
org-open-at-point is invoked to open a file that was created with
org-test-with-temp-text-in-file. The temp file does not have a .org
extension. As a result, my mac attempts to open the file outside of
emacs, which produces an unexpected result. The solution is to pass an
argument to org-open-at-point, which ensures that the file is opened
in emacs. A patch is attached.


0001-Ensure-test-files-are-opened-in-Emacs-in-test-org-fu.patch
Description: Binary data


Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-29 Thread Skip Collins
Test test-org/fuzzy-links backtrace:
  (if (unwind-protect (setq value-10839 (let ((file (make-temp-file "o
  (let (form-description-10840) (if (unwind-protect (setq value-10839
  (let ((value-10839 (cl-gensym "ert-form-evaluation-aborted-"))) (let
  (lambda nil (let ((value-10802 (cl-gensym "ert-form-evaluation-abort
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  ert-run-test([cl-struct-ert-test test-org/fuzzy-links "Test fuzzy li
  ert-run-or-rerun-test([cl-struct-ert--stats "\\(org\\|ob\\)" [[cl-st
  ert-run-tests("\\(org\\|ob\\)" #[385 "\306\307\"\203G\211\211G\310
  ert-run-tests-batch("\\(org\\|ob\\)")
  ert-run-tests-batch-and-exit("\\(org\\|ob\\)")
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests("\\(org\\|ob\\)")
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1(("--eval" "(setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test test-org/fuzzy-links condition:
(ert-test-failed
 ((should
   (org-test-with-temp-text-in-file "Paragraph

line1
line2

"
(let ... ... ... ... ... ...)))
  :form
  (let
 ((file ...)
  (kill-buffer-query-functions nil)
  (inside-text ...)
  G10838)
(with-temp-file file
 (insert inside-text))
(find-file file)
(org-mode)
(setq G10838
 (progn ...))
(save-buffer)
(kill-buffer
(current-buffer))
(delete-file file)
G10838)
  :value nil))
   FAILED  656/718  test-org/fuzzy-links



Re: [O] [BUG] org-link-search fails if search string contains new lines

2017-03-28 Thread Skip Collins
On Mon, Mar 27, 2017 at 7:37 AM, Nicolas Goaziou  wrote:
> Fixed, hopefully.

Ran 718 tests, 717 results as expected, 1 unexpected (2017-03-28 17:27:55-0400)

9 expected failures


1 unexpected results:

   FAILED  test-org/fuzzy-links



Re: [O] source block name contains "call"

2017-03-18 Thread Skip Collins
I actually thought of the same xkcd comic when I finally figured out
what was going on. The original name was "full_precision_recall_test".
It took some time to isolate the problem.

> This reminds me of https://www.xkcd.com/327/



[O] source block name contains "call"

2017-03-17 Thread Skip Collins
I am editing some Perl. When I export any source block that includes
the word "call" in the name, it causes the verbatim formatting to be
dropped. This happens with both html and latex exports. The problem
does not seem to be limited to Perl. A minimal example:

* foo
#+name: call_foo
#+begin_src perl
##  This is a comment
#+end_src

* bar
#+name: bar
#+begin_src perl
##  This is a comment
#+end_src

The code under the first heading is exported as normal org text,
omitting the #+name and #+begin_src lines, but including the #+end_src
line. The second heading is exported as expected, with the source
block properly formatted verbatim. The word "call" seems to be the
trigger for the bad behavior.



[O] verse html export

2017-03-07 Thread Skip Collins
The following block exports to LaTeX/PDF as expected, with a break
between the first and second line:
#+BEGIN_VERSE
First line
Second line
#+END_VERSE

The HTML export does not have a line break, so the text runs together
on the same line when shown in the browser:

First line
Second line


I expect that there should be a  tag at the end of the first line.



Re: [O] Question about running the tests

2017-02-10 Thread Skip Collins
Perhaps the bundled org in stock emacs interfered with a newer
downloaded version because load-path is not configured properly. If a
mixed-version installation happened to Carsten, it is probably
happening to lots of people. I also use a Mac and it's happened to me
before. What else can be done to prevent this from affecting normal
users? Would it be possible for org to do a quick self-consistency
check on startup?



Re: [O] Ignore pattern when syncing Org-mode files between hosts

2016-12-28 Thread Skip Collins
On Wed, Dec 28, 2016 at 10:42 AM, Karl Voit  wrote:
> I wonder how others are handling synchronization ignore patterns
> between different hosts.

Perhaps you should consider git annex. It is extremely flexible about
choosing which file to sync. It works cross-platform and is highly
configurable. It allows manual syncing or automatic syncing (via 'git
annex assistant'). It uses all the power of git to ensure the safety
and availability of your files, including the ability to use strong
encryption if desired.



Re: [O] streamlined capture on iphone

2016-02-29 Thread Skip Collins
Ken Mankoff  wrote:
> I use only MobileOrg and can capture to my desktop by tapping only
> a 5 buttons:
> 1) The app icon, 2) enter text (or tap the mic button and speak),
> 3) Done 4) Outline Mode 5) Sync.
>
> My Desktop then automatically updates w/o 5 minute delay.
> Captured notes are tagged as REFILE and show up in a section of the
> Agenda that only shows up if there are things that need to be refiled.
> There are no need for external scripts and the only 3rd party service
> is DropBox.

My system requires 3 steps:
1) Open Drafts, 2) enter text, 3) tap one button on the screen

My desktop automatically updates. Captured notes are tagged as REFILE,
just like yours. No Dropbox required, only a Google account. The
script runs on Google's servers.

> Alternatively, I have a workflow that lets me do the hands-free
> "Hey Siri..." and just speak at my phone,

Drafts can automatically sync with iOS Reminders, so I can get close
to the same functionality. In order for Siri-captured reminders to
appear in Org, I do have to open Drafts and tap the button to trigger
the email.



Re: [O] streamlined capture on iphone

2016-02-29 Thread Skip Collins
This describes a system to efficiently capture Org input on a smart phone,
with an emphasis on iOS. The nice thing about this approach is that it only
requires things that you likely already have: your smart phone, your Google
account, and Org. While not required, a text editing app on your
iOS/Android phone that streamlines the email process is very nice to have
too. However, any email app that supports templates might be another way to
make the process very quick. Note that this is a one-way path from phone to
Org. It does not enable two-way syncing or editing existing Org content.
The process is lightly tested and quite fragile. On the positive side, it
can be customized in many ways to better fit your needs.

If using Drafts 4 on iOS, import the Org Email
 action by opening this
link on your device. Tap the button to install the action. Open the list of
actions in Drafts (top right), swipe right on the Org Email action, and tap
on the Edit (pen) icon. Replace my.address+capt...@gmail.com with your
actual gmail address, appending “+capture” to the username as shown in the
original. The action sends the current note in the background to your gmail
account using Mail.app and then deletes the note from Drafts. Mail.app must
be connected to your email account for this to work.

The fastest way to trigger this action is via a keyboard shortcut
 which can be installed by
opening the link on your iOS device. Again, tap the install button. It
places a small button labeled “O” (for Org) on the far left of the row of
shortcuts displayed between the keyboard and the text editing area.

>From your desktop browser, Add “capture” to the list of available labels in
gmail. On the same computer, create a new file called
org-capture-gmail-filter.xml with the following content, replacing the
email address with your actual gmail address, with “+capture” appended as
above:


Mail Filters
tag:mail.google.com,2008:filters:1455750924353
2016-02-25T22:55:06Z

  
  Mail Filter
  tag:mail.google.com,2008:filter:1455750924353
  2016-02-25T22:55:06Z
  
  
  
  
  
  
  



Open the gmail filter settings page in your browser. Using the button at
the bottom of the page, upload org-capture-gmail-filter.xml. Now, when
gmail receives a message sent to the special address that includes
“+capture”, it triggers a filter that applies the “capture” label and moves
the message out of the Inbox.

Once messages are appropriately labeled, the The Google Apps script Gmail
Capture for Org

generates
a plain text Atom feed from the subject lines and bodies of the messages.
Click the link to open the script in your desktop browser. Follow these
steps to set up the script for your Google account:

   1. File > Make a copy of this script.
   2. Run > setup IMPORTANT: when authenticating use the gmail account you
   want to create feeds for.
   3. File > Manage versions… and create an initial name and ’Save New
   Version’.
   4. Publish > Deploy as web app… and select ’Execute the app as: me’ and
   allow anyone access even anonymously.
   5. Open (and bookmark) the ’current web app url’ to create an atom feed
   for the capture gmail label.
   6. Select the “capture” label from the drop-down menu. Click Preview.
   Click Add.
   7. Copy the resulting RSS (really Atom) feed link under Feed Library in
   the web app page

The feed link needs to be added to org-feed to complete the setup. Add the
following lines near the top of .emacs:

(require 'org-feed);; Uncomment the following line if you want to
check your feeds ;; every 10 minutes when Emacs is running.;;
(run-at-time 10 600 'org-feed-update-all)
(defadvice org-feed-parse-atom-entry (after
org-feed-parse-atom-entry-summary activate)
  ;; Add  as :summary.
  (let* ((entry (ad-get-arg 0))
 (xml (car (read-from-string
(plist-get entry :item-full-text)
(setq entry (plist-put entry :summary
   (xml-substitute-special
(car (xml-node-children
  (car (xml-get-children xml
'summary))) entry))

The customize interface for Org Feed can be used to add the feed
information, resulting in something that looks like:

  '(org-feed-alist
 (quote
 (("Gmail Capture"
   
"https://script.google.com/macros/s/Tr5GHsidf8gjslTsdY69SDFjgslierjg73swnvFslkjYhUR69KdhjI8k/exec?feedId=35f1c893-ba1d-6108-bc8d-19e09017fe8a;
   "capture.org"
   "Gmail Capture"
   :parse-entry org-feed-parse-atom-entry
   :parse-feed org-feed-parse-atom-feed
  '(org-feed-default-template "* %h %U %summary")

Replace the long URL with the RSS link copied from the web app. Replace
capture.org with whatever file you wish to receive new items. Replace the
final “Gmail Capture” with whatever 

Re: [O] non-standard link errors

2016-02-28 Thread Skip Collins
Nicolas Goaziou  wrote:
> Not that I'm against the idea, but wouldn't it be a poor way to properly
> fix the issue, i.e., add new link types?

I have come up with a better solution than globally passing "broken"
links. I defined a new "raw" link type. So now if I want to put a
non-standard link in my export, I can do something like:
Here is a [[raw:foo:/\bar, baz][bad link]].
which is exported in html as:
Here is a bad link.

Now I can have non-standard links included in the output without
disabling link checking for all standard link types. This is how it is
defined in my .emacs:
(org-add-link-type "raw" 'org-raw-follow 'org-raw-export)
(defun org-raw-follow (path))
(defun org-raw-export (path desc format)
  "Export a raw link.
See `org-add-link-type' for details about PATH, DESC and FORMAT."
  (cond
   ((eq format 'html) (format "%s" path desc))
   ((eq format 'latex) (format "\\href{%s}{%s}" path desc))
   ((eq format 'ascii) (format "%s (%s)" desc path))
   (t path)))

Perhaps this could be included in the standard Org distribution as a
fallback option for exporting non-standard link types. Emacs/Org does
nothing with the link. The user is responsible for ensuring the output
is correct.



Re: [O] non-standard link errors

2016-02-27 Thread Skip Collins
Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
> Skip Collins <skip.coll...@gmail.com> writes:
> > Org throws an error when I export html with a link type that it does
> > not know about. I would like it to simply add the link to the exported
> > document without checking its validity. For example, I have a link
> > that, when tapped on an iPhone, will open a particular app. I would
> > like the html to look something like:
> > Connect using FaceTime
> >
> > The link works on an iPhone. But Org won't generate the html. Other
> > apps uses x-callback-url links formatted like this:
> > x-appname://x-callback-url/import?=Open%20Mail.app.
> >
> > These also do not work. Short of adding every type I might want to use
> > with org-add-link-type, is it possible to disable the export error and
> > just pass links through as written?
>
> It is possible in development version, where a variable controlling how
> link errors should be handled was introduced.

I added this line to the top of my org file:
#+OPTIONS: broken-links:t

But that eliminates both the link and its description from the export.
Changing it from 't' to 'mark' puts a BROKEN LINK message in the
output. I suggest adding a new option 'pass' that would simply pass
"broken" links verbatim into the output.



[O] non-standard link errors

2016-02-26 Thread Skip Collins
Org throws an error when I export html with a link type that it does
not know about. I would like it to simply add the link to the exported
document without checking its validity. For example, I have a link
that, when tapped on an iPhone, will open a particular app. I would
like the html to look something like:
Connect using FaceTime

The link works on an iPhone. But Org won't generate the html. Other
apps uses x-callback-url links formatted like this:
x-appname://x-callback-url/import?=Open%20Mail.app.

These also do not work. Short of adding every type I might want to use
with org-add-link-type, is it possible to disable the export error and
just pass links through as written?



[O] streamlined capture on iphone

2016-02-24 Thread Skip Collins
MobileOrg on the iPhone is not very useful to me. As many people do, I
use my iPhone as a way to capture input on the go, usually in the form
of short text snippets or notes. One thing that has made this work
better for me is a streamlined process for getting the text into Org
via org-feed. My preferred iOS text editor is Drafts 4 ($10) because
it allows custom actions to be performed in a single tap. I have one
action in Drafts that emails the current note to my gmail account. Any
iOS editor that can share notes via email will work. But Drafts is
particularly convenient because the customized action takes care of
addressing and sending the message with one tap.

Using a filter, gmail applies the label "capture" to each note sent
from Drafts. The magic happens through a Google script that I found,
modified, and adapted that takes all messages with a specific label in
Gmail and turns them into an Atom feed. The script runs on Google's
servers, constantly scanning for new messages with the "capture"
label. The resulting Atom feed is served up by Google via a URL
(non-secure, but quite obscure) that I use with org-feed. My Org is
set up to check the feed for new posts every 5 minutes or so, grab
them and put them as headlines into capture.org. When I start up Org,
I tag and refile new items from capture.org into an appropriate file
such as actions.org or projects.org. This workflow automates the whole
capture process as much as possible.

If anyone is interested in the Drafts action, Gmail filter, Google
script, and org-feed configuration that make this work, I would be
happy to share. This setup can easily be adapted for Android phones.



Re: [O] export subtree

2015-12-11 Thread Skip Collins
John Hendy wrote:
> Thinking about it more, using select_tags as a potential solution to
> your export of a subtree without navigating to it, problems could
> arise if more than one were tagged. If multiple same-level headlines
> were tagged with the select_tag, which one should Org use as the
> "master" for the document title/level structure?

Nevertheless, I like the idea of a special tag to designate the top
level export. Call it :master:. The first headline with the tag
:master: would cause export actions to default to that subtree. That
way one would be able to edit deep inside the master subtree or
outside of it and still easily and consistently generate the correct
document. It would also help with exporting from emacs/org in batch
mode without a user to put point at the correct subtree location.

> It sounds like the C-u option did work for you, correct?

Correct. C-u works and I have what I need for now. What I ended up
doing is placing the contents of the export tree into an INCLUDE file.
I duplicate all of the export header options in that file. So my
workflow is simply to edit that document and process it for export
without using the subtree option from the parent. It does break the
convenience of keeping everything together in one file.



Re: [O] export subtree

2015-12-10 Thread Skip Collins
Andreas Leha  wrote:
>> The export dispatcher allows me to export only the current subtree.
>> This is nice, but I would like to avoid having to put point in just
>> the right place before invoking the dispatcher. I have a document with
>> lots of things in it. One of the top-level headlines contains the
>> content of what I want to export. Is there a way to flag this heading
>> and its contents as the main export document so that wherever my
>> cursor is, when I export the document it only processes the correct
>> heading, treating its text as the title of the document?
>
> Try to run `org-export-dispatch' with a prefix from the second time
> onwards (so, do C-u C-c C-e).

Good try, but it does not do what I want. It selects the subtree
currently at point, just as if I ran the dispatcher again and selected
the same options. It might be a nice enhancement if the dispatcher
remembered which subtree it used last time so that it really could
repeat a subtree export with the same options and from the same
subtree.



Re: [O] export subtree

2015-12-10 Thread Skip Collins
Andreas Leha <andreas.l...@med.uni-goettingen.de> wrote:
> Skip Collins <skip.coll...@gmail.com> writes:
>>> Try to run `org-export-dispatch' with a prefix from the second time
>>> onwards (so, do C-u C-c C-e).
>>
>> Good try, but it does not do what I want. It selects the subtree
>> currently at point, just as if I ran the dispatcher again and selected
>> the same options. It might be a nice enhancement if the dispatcher
>> remembered which subtree it used last time so that it really could
>> repeat a subtree export with the same options and from the same
>> subtree.
>
> That is what it does for me.  As I said, you have to do the first export
> the normal way.

Okay, it works now. I had confused org by trying to get it to work
from an INCLUDEd file. When that did not work, I had gone back to the
parent file and it did not work there. If I stick within a single
buffer and do not try to export from another buffer, it works as you
describe.
Thanks.



[O] export subtree

2015-12-10 Thread Skip Collins
The export dispatcher allows me to export only the current subtree.
This is nice, but I would like to avoid having to put point in just
the right place before invoking the dispatcher. I have a document with
lots of things in it. One of the top-level headlines contains the
content of what I want to export. Is there a way to flag this heading
and its contents as the main export document so that wherever my
cursor is, when I export the document it only processes the correct
heading, treating its text as the title of the document?



Re: [O] export subtree

2015-12-10 Thread Skip Collins
Herbert Sitz  wrote:
> * Main tree :myexporttree:
> fkjaldfk
> ** subhead
> ** subhead
> * anoher heading 1
> * another heading level 1
> ** subhead
> ** subhead

I did try using the default SELECT_TAG :export: on my main document
subtree. The problem is that the subtree is not "promoted" to the main
level. In your example, the title would not become "Main tree" as it
would if I selected subtree export in the dispatcher.



Re: [O] What to use for tables with lengthy text in cells?

2015-03-06 Thread Skip Collins
One more crazy idea. What if there were a choice of two vertical
separators? Currently '|' is the only character used for this purpose.
If, however, something like '\' were used to signal a multi-line cell,
then it would be possible to control this feature on a row-by-row
basis. As soon as the user replaces one of the '|' characters with
'\', all vertical separators in that row also change, converting all
of its cells to multi-line text. This has the advantage of being
backward compatible and not overloading the horizontal line separator.



Re: [O] What to use for tables with lengthy text in cells?

2015-03-06 Thread Skip Collins
It might even be desirable to mix single and multi line cells in the
same row. That would introduce some restrictions on how single-line
cells are edited when they are in a row that contains multi-line
cells. I suppose they could be collapsed onto the first line in the
cell by replacing newlines with spaces. That would also have to be
handled carefully when converting a multi-line cell back to single
line.

On Fri, Mar 6, 2015 at 11:48 AM, Tory S. Anderson
torys.ander...@gmail.com wrote:
 I think \ is overloaded for export purposes, but maybe / is clear? I think 
 that's a good idea.

 Skip Collins skip.coll...@gmail.com writes:

 One more crazy idea. What if there were a choice of two vertical
 separators? Currently '|' is the only character used for this purpose.
 If, however, something like '\' were used to signal a multi-line cell,
 then it would be possible to control this feature on a row-by-row
 basis. As soon as the user replaces one of the '|' characters with
 '\', all vertical separators in that row also change, converting all
 of its cells to multi-line text. This has the advantage of being
 backward compatible and not overloading the horizontal line separator.



Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Skip Collins
Here's another suggestion. There could be an optional org table mode in
which horizontal lines are used to separate rows:

| Lorem ipsum dolor sit amet, | foo |
| consectetur adipiscing elit. Sed| |
| sit amet luctus sapien. Phasellus   | |
| malesuada, ipsum et hendrerit   | |
| mattis, neque neque sodales risus,  | |
| hendrerit consectetur enim ipsum eu | |
| felis.  | |
|-+-|
| Vestibulum ante ipsum primis in | bar |
| faucibus orci luctus et ultrices| |
| posuere cubilia Curae; Nulla dictum | |
| iaculis sodales. Sed elementum  | |
| semper leo, venenatis lacinia odio  | |
| eleifend vitae. Aliquam lectus  | |
| felis, tempor nec lacus ut, | |
| consequat tincidunt nisl.   | |
|-+-|
| Fusce eu nunc sit amet orci | baz |
| lobortis accumsan. Vivamus laoreet  | |
| ante pellentesque, scelerisque  | |
| tellus nec, ultrices nibh. Etiam| |
| scelerisque lobortis erat, in   | |
| consectetur nisi tincidunt a. Duis  | |
| eu est elit. Pellentesque fringilla | |
| gravida ligula, non convallis   | |
| ligula viverra sollicitudin.| |

Perhaps adding the required machinery to allow in-cell paragraph filling
would not be too difficult?


Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Skip Collins
Yes, it would be incompatible. But there could be a mechanism to enable the
multi-line mode on a per-table basis. For display and grouping purposes,
horizontal lines could still be allowed by adding two consecutive lines:
|-+-|
|-+-|

Or another character could be used for the line separator:
|=+=|


2015-03-05 11:56 GMT-05:00 Tory S. Anderson torys.ander...@gmail.com:

 Not a bad idea, but this would be incompatible with the existing useof
horizontal lines to separate sections and export to visual lines, right?

 Skip Collins skip.coll...@gmail.com writes:

  Here's another suggestion. There could be an optional org table mode
  in which horizontal lines are used to separate rows:
 
  | Lorem ipsum dolor sit amet, | foo |
  | consectetur adipiscing elit. Sed| |
  | sit amet luctus sapien. Phasellus   | |
  | malesuada, ipsum et hendrerit   | |
  | mattis, neque neque sodales risus,  | |
  | hendrerit consectetur enim ipsum eu | |
  | felis.  | |
  |-+-|
  | Vestibulum ante ipsum primis in | bar |
  | faucibus orci luctus et ultrices| |
  | posuere cubilia Curae; Nulla dictum | |
  | iaculis sodales. Sed elementum  | |
  | semper leo, venenatis lacinia odio  | |
  | eleifend vitae. Aliquam lectus  | |
  | felis, tempor nec lacus ut, | |
  | consequat tincidunt nisl.   | |
  |-+-|
  | Fusce eu nunc sit amet orci | baz |
  | lobortis accumsan. Vivamus laoreet  | |
  | ante pellentesque, scelerisque  | |
  | tellus nec, ultrices nibh. Etiam| |
  | scelerisque lobortis erat, in   | |
  | consectetur nisi tincidunt a. Duis  | |
  | eu est elit. Pellentesque fringilla | |
  | gravida ligula, non convallis   | |
  | ligula viverra sollicitudin.| |
 
  Perhaps adding the required machinery to allow in-cell paragraph
  filling would not be too difficult?


Re: [O] [question/patch] How detailed may org.texi be?

2014-10-31 Thread Skip Collins
Rasmus ras...@gmx.us writes:
 I would like to push the following patch to org.texi on export

As long as you are tweaking the manual, please fix the typesetting of
LaTeX-verbatim-environments in the Variable Index. It should appear as
a simple string, not as a fancy logo. As a point of style, I would
prefer that all index entries stick with TeX and LaTeX rather than
\TeX and \LaTeX.



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Skip Collins
On Tue, Apr 22, 2014 at 5:22 PM, Bastien b...@gnu.org wrote:
 Mhh... okay then, thanks for mentioning it.

The stackoverflow link contains what appears to be a good workaround
that functions in old and new versions of bash. Perhaps Pascal Fleury
could modify the org code to avoid using 'declare -A' when bash
version  4.



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Skip Collins
On Wed, Apr 23, 2014 at 10:13 AM, Pascal Fleury fle...@google.com wrote:
 (have not used bash3 in quite a long time :-)

Even OS X Mavericks uses bash 3. So it will be around for quite a long time.



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-22 Thread Skip Collins
Test 80/480 fails when I use make up2 with Mac OS X GNU Emacs 24.3.1
(x86_64-apple-darwin12.5.0, Carbon Version 1.6.0 AppKit 1187.4) of
2014-03-05:
executing Bash code block...
Wrote 
/var/folders/dt/9hkw2mj50dd566y5qs2s4b8sq962bh/T/tmp-orgtest/ob-input-32986Ogm
Code block evaluation complete.
Test ob-shell/bash-uses-assoc-arrays backtrace:
  signal(ert-test-failed (((should (equal 20 cm (org-babel-execute-s
  ert-fail(((should (equal 20 cm (org-babel-execute-src-block))) :fo
  (if (unwind-protect (setq value-984 (apply fn-982 args-983)) (setq f
  (let (form-description-986) (if (unwind-protect (setq value-984 (app
  (let ((value-984 (quote ert-form-evaluation-aborted-985))) (let (for
  (let ((fn-982 (function equal)) (args-983 (list 20 cm (org-babel-e
  (save-restriction (org-babel-next-src-block 2) (let ((fn-982 (functi
  (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d3ff87) (setq to
  (unwind-protect (progn (org-id-goto 82320a48-3409-49d7-85c9-5de1c6d
  (let ((save-match-data-internal (match-data))) (unwind-protect (prog
  (progn (let ((save-match-data-internal (match-data))) (unwind-protec
  (unwind-protect (progn (let ((save-match-data-internal (match-data))
  (let ((wconfig (current-window-configuration))) (unwind-protect (pro
  (unwind-protect (let ((wconfig (current-window-configuration))) (unw
  (let* ((id-location (org-id-find 82320a48-3409-49d7-85c9-5de1c6d3ff
  (lambda nil (let* ((id-location (org-id-find 82320a48-3409-49d7-85c
  byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  byte-code(\306\307!\211\211r\310\311!q\210\312 d\313\223)L\210)\3
  ert-run-test([cl-struct-ert-test ob-shell/bash-uses-assoc-arrays Ba
  ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st
  ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \306
  ert-run-tests-batch(\\(org\\|ob\\))
  ert-run-tests-batch-and-exit(\\(org\\|ob\\))
  (let ((org-id-track-globally t) (org-test-selector (if org-test-sele
  org-test-run-batch-tests(\\(org\\|ob\\))
  eval((org-test-run-batch-tests org-test-select-re))
  command-line-1((--eval (setq vc-handled-backends nil org-startup-
  command-line()
  normal-top-level()
Test ob-shell/bash-uses-assoc-arrays condition:
(ert-test-failed
 ((should
   (equal 20 cm
 (org-babel-execute-src-block)))
  :form
  (equal 20 cm 50 dl)
  :value nil :explanation
  (array-elt 0
(different-atoms
 (50 #x32 ?2)
 (53 #x35 ?5)
   FAILED   80/480  ob-shell/bash-uses-assoc-arrays



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-22 Thread Skip Collins
As I wrote at the top of the report, the test fails when running make
up2. I am using the unmodified master branch.

-- 
skip collins
240 687 7802


On Tue, Apr 22, 2014 at 11:37 AM, Bastien b...@gnu.org wrote:
 Skip Collins skip.coll...@gmail.com writes:

 Test 80/480 fails when I use make up2 with Mac OS X GNU Emacs 24.3.1
 (x86_64-apple-darwin12.5.0, Carbon Version 1.6.0 AppKit 1187.4) of
 2014-03-05:
 executing Bash code block...
 Wrote 
 /var/folders/dt/9hkw2mj50dd566y5qs2s4b8sq962bh/T/tmp-orgtest/ob-input-32986Ogm
 Code block evaluation complete.
 Test ob-shell/bash-uses-assoc-arrays backtrace:
^^^

 I'm not aware of such a test -- where did you get it from?

 --
  Bastien



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-22 Thread Skip Collins
On Tue, Apr 22, 2014 at 4:59 PM, Bastien b...@gnu.org wrote:
 You should probably check for sh in this local.mk line:

Nope. I suspect this is a Mac-related thing. Here are the contents of
my local.mk:
ORG_ADD_CONTRIB = org-download.el*
EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs
prefix = /usr/local/share



Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-22 Thread Skip Collins
On Tue, Apr 22, 2014 at 5:04 PM, Skip Collins skip.coll...@gmail.com wrote:
 I suspect this is a Mac-related thing.

OS X 10.8.5 ships with bash version 3 which seems to have some issues
with declaring arrays:
http://stackoverflow.com/questions/6047648/bash-4-associative-arrays-error-declare-a-invalid-option



Re: [O] Embedding an image in base64; exporting to ascii, html, and latex?

2014-04-18 Thread Skip Collins
On Thu, Apr 17, 2014 at 2:49 PM, Bastien b...@gnu.org wrote:
 How would that be different that zipping org files along with pictures
 and related needed content?

Not different at all. Integrating the zipping into org-mode itself
could standardize the process and make it more
repeatable, portable, and convenient. Microsoft Word .docx files have
something like this structure inside:
.
├── [Content_Types].xml
├── _rels
├── docProps
│   ├── app.xml
│   ├── core.xml
│   └── thumbnail.jpeg
└── word
├── _rels
│   └── document.xml.rels
├── document.xml
├── fontTable.xml
├── media
│   └── image1.png
├── settings.xml
├── styles.xml
├── stylesWithEffects.xml
├── theme
│   └── theme1.xml
└── webSettings.xml

An analogous structure inside a filename.orgz container might be
useful. Perhaps something like:
.
├── orgmain.org
├── config.org
├── media
│   └── image1.png
├── elisp
│   ├── init.el
│   └── myorgmacros.el
├── babel
└── export
├── styles
└── output
├── orgmain.pdf
└── orgmain.html

A little elisp wizardry could ensure that invoking
emacs filename.orgz
would actually open and edit orgmain.org inside filename.orgz.

Much of the tree structure could be optional, only included when
certain features are used. Obviously, it would be necessary to put
exported files outside of the .orgz file. But optionally including a
copy inside could be useful. More important would be the inclusion of
all non-standard input files needed to generate the output, things
like images, elisp files, latex and html style files, etc. Maybe even
a copy of the Emacs initialization file used when saving the container
file. Finally, a standardized format for config.org would include
things like Emacs version, Org version, creation date, modification
date, a list of manually included files, etc.



Re: [O] Embedding an image in base64; exporting to ascii, html, and latex?

2014-04-17 Thread Skip Collins
 I see how base64 images can be used for HTML, but I don't know
 how to use them for LaTeX -- and I doubt it makes sense.  But for
 HTML, yes, we can explore this feature... on my MAYBE list!

I would vote against inclusion of ascii-encoded binary files in org.
This violates the it's just text spirit of org.

On the other hand, it would be very nice for org-mode to support the
inclusion of org files in a zipped container. Developing a standard
folder structure to include images and other files in a single .orgz
that could be directly edited in emacs would be wonderful. This could
be very useful for doing reproducible research. It would allow easy
file exchange. Inclusion of specific export formats could also be
easily supported.

A quick test show that Emacs Archive mode already allows editing of
org files contained in zip files. Using external programs such as
latex almost works. An exported pdf file is generated correctly, but
it ends up not inside the zip file, but in the same folder that
contains the zip file. It has a name that starts with the zip
filename, but it has / and the intended name of the pdf file
appended.

It might not be that much work to fix export code and image import
macros to fully support a standard org archive format.



Re: [O] Embedding an image in base64; exporting to ascii, html, and latex?

2014-04-07 Thread Skip Collins
On Mon, Apr 7, 2014 at 4:01 PM, Grant Rettke g...@wisdomandwonder.com wrote:
 Goal is to keep the document all-in-one

Maybe have a look at this proposal for a zipped up org format, sort of
like docx for MS Word:
http://comments.gmane.org/gmane.emacs.orgmode/75454
It looks like there was some an attempt to implement the proposal.

Using a zip file with a more-or-less standardized structure might help
make org files, images, and configurations more portable.



Re: [O] How to signal end of a section or subsection

2014-01-20 Thread Skip Collins
Several requests have been made over the years for a way to end a
subsection without starting a new new higher level section. This is
possible with plain lists: a blank line ends the list. Some other
syntax would have to be added to org to allow this for sections. I
would love to see something like this implemented:

--- begin org example ---

* First top-level section
A bunch of text.

Blah blah.

Yada yada.

** TODO Something I need to do
** :END:

Resuming first top-level section.

** Here is a small subsection
When this sub-section ends, the top-level section will resume.
** :END:

Resuming first top-level section.

--- end org example ---

Such a fundamental change to org syntax might be difficult to
implement without extensive changes to how files are parsed. But,
IMHO, it would add to its elegance and flexibility. As things stand
now, inline tasks and lists are used as workarounds.



Re: [O] [Bug] commit 39070b7fc7 breaks babel test

2013-12-06 Thread Skip Collins
On Fri, Dec 6, 2013 at 2:05 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Skip Collins skip.coll...@gmail.com writes:
 Would it make sense to automatically enforce passing all tests before
 git accepts a change?

 I for one would strongly oppose this change.  This would only make it
 take longer and thus make it less likely that new code is committed.
 This is the master branch where development should be fast and
 experimentation should take place, not the maintenance branch.

Designating something as an expected failure seems to be a good way to
track minor issues that need eventually to be resolved. As a user, I
frequently update with make up2 just to avoid getting bitten by stupid
errors that might sneak into master. Is it really that much extra work
for a developer to run the same command before committing and either
fix the error or mark it as a known failure?



Re: [O] [Bug] commit 39070b7fc7 breaks babel test

2013-12-03 Thread Skip Collins
It's been a week and this test still fails.

Would it make sense to automatically enforce passing all tests before
git accepts a change?

On Wed, Nov 27, 2013 at 2:58 AM, Achim Gratz strom...@nexgo.de wrote:

 Hi Eric,

 this change seems to introduce additional line breaks in the following
 test:

 --8---cut here---start-8---
 Test test-ob/catches-all-references condition:
 (ert-test-failed
  ((should
(string=
 (org-babel-execute-src-block)
 A literal example\non two lines for me.))
   :form
   (string= A literal example\non two lines\n for me. A literal 
 example\non two lines for me.)
   :value nil))
FAILED  1/1  test-ob/catches-all-references
 --8---cut here---end---8---

 This seems to happen because the final \n from the babel result is not
 stripped anymore, pointing to the change in ob-core.  IIRC we
 flip-flopped a few times already with including or not including this
 final newline, so I don't know whether the code or the test should
 change.



Re: [O] Create sub-directories and files from within org

2013-10-22 Thread Skip Collins
On Mon, Oct 21, 2013 at 9:10 PM, John Kitchin jkitc...@andrew.cmu.edu wrote:
 You can do something like this:

Neat! I will give it a shot. I might also try to incorporate it into a
capture template.



Re: [O] Create sub-directories and files from within org

2013-10-21 Thread Skip Collins
On Sun, Oct 20, 2013 at 12:58 PM, John Kitchin jkitc...@andrew.cmu.edu wrote:

 I don't understand what you are trying to do here. you could write a lisp
 function that you run in the ** project name heading that creates a directory
 by that name. But what would the txt files in that directory be?

I requested something like this functionality some time ago but never
found an answer. I create new projects in projects.org, via capture or
direct editing. Each project is a top-level heading that may sometimes
contain sub-headings, todos, etc. Most often it remains a simple
top-level heading containing a drawer but no body or subheadings. It
takes one of the following states: PROJ, DONE, CANCELED, or DORMANT. I
have several agenda views that track active projects (i.e. not done,
not canceled, and not dormant), and other tag attributes (personal,
professional, ...). I use a set of optional tags to track where
project data is kept: :org:, :computer:, :email:, :file:, :binder:,
etc. Many projects have the :computer: tag and a corresponding folder
on my hard drive with various file types stored there including txt,
docx, org, pdf, jpeg, etc. I would very much like a way to quickly
create that folder with the unique project name that I assign in the
top-level heading. It would be super nice if this automagic folder
creation feature also creates a link to the folder inside my
projects.org file.



Re: [O] ``make test'' failures

2013-10-01 Thread Skip Collins
On Tue, Oct 1, 2013 at 8:27 AM, Eric Schulte schulte.e...@gmail.com wrote:
 I just pushed up a fix, thanks for reporting.

I confirm that this fixes the problem. Thanks!



Re: [O] build errors on os x

2013-09-30 Thread Skip Collins
Build test failures are still happening.

On Thu, Sep 26, 2013 at 10:38 AM, Rick Frankel r...@rickster.com wrote:
 On 2013-09-25 20:44, Skip Collins wrote:

 The problem persists. Can anyone else confirm? Perhaps this should be
 added to the bug tracker file. For the record, my local.mk file is:


 FWIW, on solaris i get the following on th latest master branch, commit
 ec28c33062b3468abc2fa2458118df11165b096d:

 Ran 453 tests, 443 results as expected, 10 unexpected (2013-09-26
 10:36:04-0400)
 6 expected failures

 10 unexpected results:
 FAILED  ob-exp/use-case-of-reading-entry-properties

 FAILED  test-ob/org-babel-remove-result--results-code
 FAILED  test-ob/org-babel-remove-result--results-default
 FAILED  test-ob/org-babel-remove-result--results-html
 FAILED  test-ob/org-babel-remove-result--results-latex
 FAILED  test-ob/org-babel-remove-result--results-list
 FAILED  test-ob/org-babel-remove-result--results-org
 FAILED  test-ob/org-babel-remove-result--results-pp
 FAILED  test-ob/org-babel-remove-result--results-wrap
 FAILED  test-ob/specific-colnames


 So, this is not a mac specific problem.

 rick




Re: [O] build errors on os x

2013-09-25 Thread Skip Collins
The problem persists. Can anyone else confirm? Perhaps this should be
added to the bug tracker file. For the record, my local.mk file is:
EMACS = /Applications/Emacs.app/Contents/MacOS/Emacs
prefix = /usr/local/share

On Tue, Sep 24, 2013 at 11:11 AM, Skip Collins skip.coll...@gmail.com wrote:

 For the last few days, building org with make up2 results in the
 following failed tests with Emacs for Mac OS X 24.3.1:

 Ran 456 tests, 448 results as expected, 8 unexpected (2013-09-24 
 10:59:21-0400)
 5 expected failures

 8 unexpected results:
FAILED  test-ob/org-babel-remove-result--results-code
FAILED  test-ob/org-babel-remove-result--results-default
FAILED  test-ob/org-babel-remove-result--results-html
FAILED  test-ob/org-babel-remove-result--results-latex
FAILED  test-ob/org-babel-remove-result--results-list
FAILED  test-ob/org-babel-remove-result--results-org
FAILED  test-ob/org-babel-remove-result--results-pp
FAILED  test-ob/org-babel-remove-result--results-wrap



[O] build errors on os x

2013-09-24 Thread Skip Collins
For the last few days, building org with make up2 results in the
following failed tests with Emacs for Mac OS X 24.3.1:

Ran 456 tests, 448 results as expected, 8 unexpected (2013-09-24 10:59:21-0400)
5 expected failures

8 unexpected results:
   FAILED  test-ob/org-babel-remove-result--results-code
   FAILED  test-ob/org-babel-remove-result--results-default
   FAILED  test-ob/org-babel-remove-result--results-html
   FAILED  test-ob/org-babel-remove-result--results-latex
   FAILED  test-ob/org-babel-remove-result--results-list
   FAILED  test-ob/org-babel-remove-result--results-org
   FAILED  test-ob/org-babel-remove-result--results-pp
   FAILED  test-ob/org-babel-remove-result--results-wrap



Re: [O] odt export version conflict on emacs for mac os x

2013-08-20 Thread Skip Collins
Thanks Christian. That this behavior shows up in homebrew leads me to
suspect it might be happening on all platforms with recent Emacs,
unless steps are taken to eradicate the bundled org-mode. Exactly what
those steps should be is not clear to me. I suppose I could just
delete files inside Emacs.app. But this seems undesirable for many
reasons. Are there any suggestions for handling this more elegantly?


On Tue, Aug 20, 2013 at 3:53 AM, Christian Moe m...@christianmoe.com wrote:

 Hi,

 I confirm that I see the same behavior, i.e. after ODT export old
 variable names show up in the customize group, similar to what you show
 below.

 This is on GNU Emacs 24.3.1 on a Mac, installed with homebrew, with
 Org-mode 8.0.7 installed via `make update2'.

 This probably accounts for my problems with using a styles file. I had
 thought it a problem with my installation or setup that I never got to
 the bottom of.

 Yours,
 Christian



 Skip Collins writes:

 I think this is a bug. Can someone confirm? After I do an ODT export,
 many ox-odt variables are duplicated with old variable names:
 | [-]-\ Group Org Export ODT
 |  |  |--- Option Org Odt Prettify Xml
 |  |  |--- Option Org Odt Schema Dir
 |  |  |--- Option Org Odt Content Template File
 |  |  |--- Option Org Odt Styles File
 |  |  |--- Option Org Odt Display Outline Level
 |  |  |--- Option Org Odt Convert Processes
 |  |  |--- Option Org Odt Convert Process
 |  |  |--- Option Org Odt Convert Capabilities
 |  |  |--- Option Org Odt Preferred Output Format
 |  |  |--- Option Org Odt Format Drawer Function
 |  |  |--- Option Org Odt Format Headline Function
 |  |  |--- Option Org Odt Format Inlinetask Function
 |  |  |--- Option Org Odt With Latex
 |  |  |--- Option Org Odt Inline Formula Rules
 |  |  |--- Option Org Odt Inline Image Rules
 |  |  |--- Option Org Odt Pixels Per Inch
 |  |  |--- Option Org Odt Create Custom Styles For Srcblocks
 |  |  |--- Option Org Odt Fontify Srcblocks
 |  |  |--- Option Org Odt Table Styles
 |  |  |--- Option Org Odt Use Date Fields
 |  |  |--- Option Org Export Odt Schema Dir
 |  |  |--- Option Org Export Odt Content Template File
 |  |  |--- Option Org Export Odt Styles File
 |  |  |--- Option Org Export Odt Inline Image Extensions
 |  |  |--- Option Org Export Odt Pixels Per Inch
 |  |  |--- Option Org Export Odt Create Custom Styles For Srcblocks
 |  |  |--- Option Org Export Odt Preferred Output Format
 |  |  |--- Option Org Export Odt Table Styles
 |  |  |--- Option Org Export Odt Fontify Srcblocks
 |  |  |--- Option Org Export Odt Category Strings
 |  |  |--- Option Org Export Odt Prettify Xml
 |  |  |--- Option Org Export Odt Convert Processes
 |  |  |--- Option Org Export Odt Convert Process
 |  |  `--- Option Org Export Odt Convert Capabilities

 This is apparently caused by interference from an old version of
 org-mode that is bundled inside my OS X Emacs.app. How can I
 completely disable the old version?




Re: [O] odt export version conflict on emacs for mac os x

2013-08-19 Thread Skip Collins
I think this is a bug. Can someone confirm? After I do an ODT export,
many ox-odt variables are duplicated with old variable names:
| [-]-\ Group Org Export ODT
|  |  |--- Option Org Odt Prettify Xml
|  |  |--- Option Org Odt Schema Dir
|  |  |--- Option Org Odt Content Template File
|  |  |--- Option Org Odt Styles File
|  |  |--- Option Org Odt Display Outline Level
|  |  |--- Option Org Odt Convert Processes
|  |  |--- Option Org Odt Convert Process
|  |  |--- Option Org Odt Convert Capabilities
|  |  |--- Option Org Odt Preferred Output Format
|  |  |--- Option Org Odt Format Drawer Function
|  |  |--- Option Org Odt Format Headline Function
|  |  |--- Option Org Odt Format Inlinetask Function
|  |  |--- Option Org Odt With Latex
|  |  |--- Option Org Odt Inline Formula Rules
|  |  |--- Option Org Odt Inline Image Rules
|  |  |--- Option Org Odt Pixels Per Inch
|  |  |--- Option Org Odt Create Custom Styles For Srcblocks
|  |  |--- Option Org Odt Fontify Srcblocks
|  |  |--- Option Org Odt Table Styles
|  |  |--- Option Org Odt Use Date Fields
|  |  |--- Option Org Export Odt Schema Dir
|  |  |--- Option Org Export Odt Content Template File
|  |  |--- Option Org Export Odt Styles File
|  |  |--- Option Org Export Odt Inline Image Extensions
|  |  |--- Option Org Export Odt Pixels Per Inch
|  |  |--- Option Org Export Odt Create Custom Styles For Srcblocks
|  |  |--- Option Org Export Odt Preferred Output Format
|  |  |--- Option Org Export Odt Table Styles
|  |  |--- Option Org Export Odt Fontify Srcblocks
|  |  |--- Option Org Export Odt Category Strings
|  |  |--- Option Org Export Odt Prettify Xml
|  |  |--- Option Org Export Odt Convert Processes
|  |  |--- Option Org Export Odt Convert Process
|  |  `--- Option Org Export Odt Convert Capabilities

This is apparently caused by interference from an old version of
org-mode that is bundled inside my OS X Emacs.app. How can I
completely disable the old version?


-- 
skip collins
240 687 7802


On Sun, Aug 11, 2013 at 9:50 AM, Skip Collins skip.coll...@gmail.com wrote:
 The version of org that comes with my stock Emacs on OS X (from
 emacsformacosx.org) seems to conflict with my git installation of org.
 This is particularly evident when trying to use ODT export. Emacs.app
 is located in the usual /Applications folder. The newer org, which I
 intend to completely supplant the version that comes with Emacs, was
 installed with prefix /usr/local/share using the 'make up2' command.
 My minimal init file is:
 (setq load-path (cons /usr/local/share/emacs/site-lisp/org load-path))

 I start Emacs from the command line:
 /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l
 ~/.emacs.d/minimalinit.el ~/test.org

 Doing M-x org-version yields:
 Org-mode version 8.0.7 (release_8.0.7-369-g9154c7 @
 /usr/local/share/emacs/site-lisp/org/)

 I immediately browse the ODT customization options showing that all
 variables are prefixed with org-export-odt-. In order to be able to
 select ODT in the export dispatcher, I have to add odt to
 org-export-backends. Curiously, it shows that it is changed outside of
 customize before I make any changes. So I have to unselect odt and
 reselect it and then Save for Current Session for ODT export to be
 enabled. When I finally use the dispatcher to generate an ODT file,
 the following happens:

 1) an odt file is generated (good)

 2) These Emacs messages appear (bad):
 Debug (ox-odt): Searching for OpenDocument styles files...
 Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
 Debug (ox-odt): Trying /usr/local/share/emacs/etc/styles/...
 Debug (ox-odt): Trying /usr/local/share/emacs/site-lisp/org/etc/styles/...
 Debug (ox-odt): Trying /Applications/Emacs.app/Contents/Resources/etc/org/...
 Debug (ox-odt): Using styles under
 /Applications/Emacs.app/Contents/Resources/etc/org/
 Debug (ox-odt): Searching for OpenDocument schema files...
 Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
 Debug (ox-odt): No OpenDocument schema files installed

 3) I find that there are new variables with the org-odt- prefix. Many
 of them seem like duplicates of the org-export-odt set (bad).

 It appears that the old version of ODT export (the one bundled inside
 Emacs.app) is getting loaded and ox-odt is looking in the wrong
 directories for schemas and styles. Explicitly setting
 org-export-backends, org-export-odt-schema-dir, and
 org-export-odt-styles-file in minimalinit.el has no effect. These
 variables seem to be superseded when ox-odt is invoked.

 I started digging into this when I noticed some odd behavior while
 using ODT export. I think I am stuck using the older, buggier ox-odt
 and my setup is mixing two versions of org.

 I have installed the latest release of Emacs for Mac OS X:
 GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
 2013-03-13

[O] odt export version conflict on emacs for mac os x

2013-08-11 Thread Skip Collins
The version of org that comes with my stock Emacs on OS X (from
emacsformacosx.org) seems to conflict with my git installation of org.
This is particularly evident when trying to use ODT export. Emacs.app
is located in the usual /Applications folder. The newer org, which I
intend to completely supplant the version that comes with Emacs, was
installed with prefix /usr/local/share using the 'make up2' command.
My minimal init file is:
(setq load-path (cons /usr/local/share/emacs/site-lisp/org load-path))

I start Emacs from the command line:
/Applications/Emacs.app/Contents/MacOS/Emacs -Q -l
~/.emacs.d/minimalinit.el ~/test.org

Doing M-x org-version yields:
Org-mode version 8.0.7 (release_8.0.7-369-g9154c7 @
/usr/local/share/emacs/site-lisp/org/)

I immediately browse the ODT customization options showing that all
variables are prefixed with org-export-odt-. In order to be able to
select ODT in the export dispatcher, I have to add odt to
org-export-backends. Curiously, it shows that it is changed outside of
customize before I make any changes. So I have to unselect odt and
reselect it and then Save for Current Session for ODT export to be
enabled. When I finally use the dispatcher to generate an ODT file,
the following happens:

1) an odt file is generated (good)

2) These Emacs messages appear (bad):
Debug (ox-odt): Searching for OpenDocument styles files...
Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
Debug (ox-odt): Trying /usr/local/share/emacs/etc/styles/...
Debug (ox-odt): Trying /usr/local/share/emacs/site-lisp/org/etc/styles/...
Debug (ox-odt): Trying /Applications/Emacs.app/Contents/Resources/etc/org/...
Debug (ox-odt): Using styles under
/Applications/Emacs.app/Contents/Resources/etc/org/
Debug (ox-odt): Searching for OpenDocument schema files...
Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
Debug (ox-odt): No OpenDocument schema files installed

3) I find that there are new variables with the org-odt- prefix. Many
of them seem like duplicates of the org-export-odt set (bad).

It appears that the old version of ODT export (the one bundled inside
Emacs.app) is getting loaded and ox-odt is looking in the wrong
directories for schemas and styles. Explicitly setting
org-export-backends, org-export-odt-schema-dir, and
org-export-odt-styles-file in minimalinit.el has no effect. These
variables seem to be superseded when ox-odt is invoked.

I started digging into this when I noticed some odd behavior while
using ODT export. I think I am stuck using the older, buggier ox-odt
and my setup is mixing two versions of org.

I have installed the latest release of Emacs for Mac OS X:
GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
2013-03-13 on bob.porkrind.org



Re: [O] new export dispatcher window

2013-02-16 Thread Skip Collins
On Sat, Feb 16, 2013 at 2:09 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Use SPC, DEL, C-n or C-p to scroll.

That works.

Any reason scroll bars could not be enabled too? I see one, but any
mouse clicks just generate spurious minibuffer messages. Thanks.



[O] new export dispatcher window

2013-02-15 Thread Skip Collins
The new export dispatcher confused me when it displayed an incomplete
list of backend options. At first I thought my configuration must not
be loading LaTeX and HTML properly. Then I discovered that the *Org
Export Dispatcher* window does not behave well when the frame is too
small. I am using the GUI version of GNU Emacs for Mac OS X. I
verified that the same problem exists when running in a terminal.

I have the LaTeX, Beamer, HTML, and iCal backends enabled. I open a
new terminal (80x24) and type
emacs test.org
When I invoke the dispatcher with C-c C-e, a new dispatch window opens
at the bottom. The terminal screen looks like this (I truncated a
couple of lines to avoid line wrapping in this email):

---start screen---
File Edit Options Tools Buffers Services Help



-UUU:F1  test.org   All L1 (Org) -
[L] As Latin1 buffer  [l] As Latin1 file
[U] As UTF-8 buffer   [u] As UTF-8 file

[P] Publish
[f] Current file  [p] Current project
[x] Choose project[a] All projects

[] Export stack
[q] Exit








-UUU:**--F1  *Org Export Dispatcher*   Bot L33(Fundamental) --
Export command:
---end screen---

The dispatcher does not properly display all available options and
does not use all available space. I cannot get it to scroll. If I make
my terminal window larger (80x40) and do the same thing, I get better
results:

---start screen---
File Edit Options Tools Buffers Services Help



-UUU:F1  test.org   All L1 (Org) -
Options
[C-b] Body only:Off   [C-v] Visible only: Off
[C-s] Export scope: Buffer[C-f] Force publishing: Off
[C-a] Async export: Off

[c] Export to iCalendar
[f] Current file  [a] All agenda files
[c] Combine all agenda files

[h] Export to HTML
[H] As HTML buffer[h] As HTML file
[o] As HTML file and open

[l] Export to LaTeX
[L] As LaTeX buffer   [l] As LaTeX file
[p] As PDF file   [o] As PDF file and open
[B] As LaTeX buffer (Beamer)  [b] As LaTeX file (Beamer)
[P] As PDF file (Beamer)  [O] As PDF file and open (Beamer)

[o] Export to ODT
[o] As ODT file   [O] As ODT file and open

[t] Export to Plain Text
[A] As ASCII buffer   [a] As ASCII file
[L] As Latin1 buffer  [l] As Latin1 file
[U] As UTF-8 buffer   [u] As UTF-8 file

[P] Publish
[f] Current file  [p] Current project
[x] Choose project[a] All projects

[] Export stack
[q] Exit
-UUU:**--F1  *Org Export Dispatcher*   All L33(Fundamental) --
Export command:
--- end screen---



Re: [O] new export dispatcher window

2013-02-15 Thread Skip Collins
On Fri, Feb 15, 2013 at 2:47 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 I added vertical scrolling to the menu a few hours ago. Could you
 upgrade Org and report the results?

Seems to be an improvement. Now the dispatch window uses all available
space. The top of the buffer (Options) is displayed at the top of the
window, as expected.

But for short windows, the bottom of the buffer gets cut off. There is
no way to scroll the window that I can find, either in the gui or
terminal emacs. Also, in the gui I get a lot of repeated down-mouse-1
messages in the minibuffer when I click around on the scroll bar and
in the dispatch window.



Re: [O] end-of-line test fails

2012-11-05 Thread Skip Collins
 When compiling the latest git version with make up2, the end-of-line
 test fails, giving the following output:

 This should be fixed on master (and even maint). Could you confirm this?

Confirmed. Thanks.


[O] end-of-line test fails

2012-11-02 Thread Skip Collins
When compiling the latest git version with make up2, the end-of-line
test fails, giving the following output:

 begin output 
Test test-org/end-of-line backtrace:
  signal(ert-test-failed (((should-not (org-test-with-temp-text #+BEG
  ert-fail(((should-not (org-test-with-temp-text #+BEGIN_CENTER\nCont
  (if (not (unwind-protect (setq value-4771 (let ((temp-buffer (genera
  (unless (not (unwind-protect (setq value-4771 (let ((temp-buffer (ge
  (let (form-description-4772) (unless (not (unwind-protect (setq valu
  (let ((value-4771 (ert--gensym ert-form-evaluation-aborted-))) (le
  (should-not (org-test-with-temp-text #+BEGIN_CENTER\nContents\n#+EN
  (lambda nil (should (org-test-with-temp-text Some text\nSome other
  byte-code(\306\307!q\210\310\216\311 \312\216\313\314\315\316\3
  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
  byte-code(\306\307!\211r\310\311!q\210\312 d\313\223)L\210\314\216
  ert-run-test([cl-struct-ert-test test-org/end-of-line Test `org-end
  ert-run-or-rerun-test([cl-struct-ert--stats \\(org\\|ob\\) [[cl-st
  ert-run-tests(\\(org\\|ob\\) #[(event-type rest event-args) \30
  ert-run-tests-batch(\\(org\\|ob\\))
  ert-run-tests-batch-and-exit(\\(org\\|ob\\))
  (let ((org-id-track-globally t) (org-id-locations-file (convert-stan
  org-test-run-batch-tests()
  call-interactively(org-test-run-batch-tests nil nil)
  command-execute(org-test-run-batch-tests)
  command-line-1((--eval (add-to-list 'load-path \./lisp\) --ev
  command-line()
  normal-top-level()
Test test-org/end-of-line condition:
(ert-test-failed
 ((should-not
   (org-test-with-temp-text #+BEGIN_CENTER\nContents\n#+END_CENTER
(progn ... ... ...)))
  :form
  (let
 ((temp-buffer ...))
(with-current-buffer temp-buffer
 (unwind-protect ... ...)))
  :value t))
   FAILED  295/312  test-org/end-of-line
 end output 

Emacs  : GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-08-27 on bob.porkrind.org
Package: Org-mode version 7.9.2 (release_7.9.2-499-ga29de0 @
/usr/local/share/emacs/site-lisp/org/)



[O] unintended strike-through in table

2012-04-20 Thread Skip Collins
When I open the following table in org, the characters from the first
+ symbol in +bar to the last + symbol on the next line are struck out,
i.e. drawn with a line through the text.

#+STARTUP: showall
* foo
| C | D    |
| E | +bar |
|---+--|

I do not believe this is intended behavior for +strike-through+ text.
The + symbol serves triple duty in org syntax as a an indicator for
+stricken words+, a line drawing symbol in tables, and a #+keyword
prefix.

I see little reason to continue to support +strike-through+ text.
Perhaps the simplest solution would be to deprecate stricken text and
disable it by default, allowing for an option to turn it on for
backward compatibility.



[O] bulk action mark persistence

2012-03-06 Thread Skip Collins
When I perform a bulk action on items in the agenda, the marked items
get unmarked after the action is completed. This is a problem if I
want to perform multiple actions on the marked entries. Here is a use
case. I use capture.org to collect actionable items throughout the
day. Occasionally I view a special refile agenda in which I perform
bulk actions on selected entries such as tagging them, turning them
into TODO items, and filing them into appropriate targets in other
files. It would be far more convenient if the bulk action mark
persisted after each action.



Re: [O] How to include pre-existing pdf files/pages into orgmode pdf or other export output

2012-03-02 Thread Skip Collins
On Fri, Mar 2, 2012 at 10:57 AM, Martin Weigele mar...@weigele.de wrote:
 Hi, is there an easy way to do this (rather than to fiddle around with
 resulting pdfs)?

I think the LaTeX package pdfpages is what you are looking for.



[O] links in tables

2012-02-19 Thread Skip Collins
Links with descriptions do not always display properly in tables. If I
execute org-toggle-link-display, the full link text gets displayed, but
table alignment is messed up. Executing org-table-align makes things
look pretty again. I think it should happen automatically.

Emacs  : GNU Emacs 24.0.93.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-02-15 on bob.porkrind.org
Package: Org-mode version 7.8.03 (release_7.8.03.421.ge7072)



Re: [O] refile and link

2012-02-01 Thread Skip Collins
On Wed, Feb 1, 2012 at 10:25 AM, John Hendy jw.he...@gmail.com wrote:
 | - A wiki of hyperlinked files that grows and adapts to meet your needs.

After I sent my request, it occurred to me that the envisioned refile
command could create two links, one in the original file pointing to
the destination, the other in the destination file pointing to the
original.



[O] refile and link

2012-01-31 Thread Skip Collins
I would like to have a quick way to refile subtrees in another file
while creating a link to the new location. In my use case, I keep a
comprehensive list of projects in Projects.org. Each top level
headline is the title of a project. Some projects details (TODOs,
notes, etc.) may be included under the headline. A project may grow to
the point that I want to manage it within a separate org file. In this
case it would be fantastic to have a quick refile command that leaves
behind the original headline and a link to the new location. Does this
make sense? Maybe I should be using agendas to accomplish what I want.
But keeping a canonical list of projects in a single file seems like
the right thing to do.

--
skip collins



Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-11 Thread Skip Collins
On Wed, Jan 11, 2012 at 12:50 AM, Jambunathan K kjambunat...@gmail.com wrote:
 You and Jambunathan K. should form a club.

 Since I am being dragged in to the conversaion,

Of course I intend no disrespect for you or François. I have noticed
that org, perhaps not surprisingly, attracts people with a certain
detail-oriented aesthetic, similar in some ways to Knuth's obsessive
perfectionism. While Francois fancies himself an artist who works in
the medium of code, I suspect that most of those afflicted with OCD
(Org Compulsive Disorder) are closer in spirit to the artisan or
craftsman than to the artist.



Re: [O] [Orgmode] Automatic screenshot insertion

2012-01-10 Thread Skip Collins
2012/1/10 François Pinard pin...@iro.umontreal.ca:
 Some sad people think of me as a programmer.  While deep down, I am
 fundamentally an artist.  Programming is mere mean of expression :-).

You and Jambunathan K. should form a club.



Re: [O] Recurring events with exceptions

2011-10-21 Thread Skip Collins
On Wed, Oct 19, 2011 at 6:02 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Yes, I have been informed that we are moving to Outlook/exchange in the
 new year, something I am dreading...  Matthieu Lemerre, on this list
 back in late June (Message-ID: 871uygg1fs@free.fr), posted a
 (partial?) solution that helped in this regard.  I've not tried that
 solution as I don't have to use Outlook yet.  Search the mailing list.

Lemerre's approach only syncs with the Outlook client, not the
Exchange server. He suggests using RFC-2446 (iCalendar) as a basis for
a more general solution. I think that trying to establish a smoothly
syncing connection between org and exchange by using iCalendar is a
recipe for frustration. This is mostly because Exchange's
implementation of the standard is lacking.

It might be more fruitful to pursue an org interface to Exchange Web
Services, which is favored and privileged by microsoft. A hypothetical
org-ews.el would pass xml messages that look something like:

?xml version=1.0 encoding=utf-8?
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   
xmlns:m=http://schemas.microsoft.com/exchange/services/2006/messages;
   
xmlns:t=http://schemas.microsoft.com/exchange/services/2006/types;
   xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Header
  t:RequestServerVersion Version=Exchange2010 /
   /soap:Header
   soap:Body
  m:CreateItem SendMeetingInvitations=SendToNone
 m:Items
t:CalendarItem
   t:SubjectDentist Appointment/t:Subject
   t:Body BodyType=TextThe appointment is with Dr.
Smith./t:Body
   t:Start2009-03-02T17:00:00Z/t:Start
   t:End2009-03-02T19:00:00Z/t:End
/t:CalendarItem
 /m:Items
  /m:CreateItem
   /soap:Body
/soap:Envelope

Perhaps we could entice Jambunathan to take this on ;-)
His experience getting org to speak xml as a way to interact with
other systems would be invaluable.



Re: [O] Recurring events with exceptions

2011-10-18 Thread Skip Collins
 (and (your-sexp-here) (not (except-dates-here)))

Pardon a slightly off-topic rant. I have yet to find calendar software
(org included) that handles repeating appointments with the kind of
flexibility that would make them really useful. First, typical
real-world repeating appointments do not follow a rigid pattern such
as visit the gym every monday from 7pm to 9pm. I know that I will
not be following that pattern 50 years from now. But the default
repeat pattern in most software does not include an end date.
Infinitely repeating appointments are just stupid. Second, the whole
concept of an exception to a repeating appointment is broken. It
presumes that the pattern is the norm and the exception is, well,
exceptional. None of my weekly meetings actually meets every week in a
given year. The code above illustrates the problem. What if I just
want to move one instance by a half-hour? The difference between
deleting an instance and changing or adding an instance is hard to
capture when basing everything off of a rigid pattern.

In my opinion, a better framework for dealing with repeating
appointments would be to view them as a list of individual instances
that can be managed as a collection. When creating a repeating
appointment, the user should be able to generate a list that follows
some pattern (e.g. every monday at 7pm), with a mandatory end date.
The user should also be able to easily add or subtract arbitrary
instances to or from the list. Actions can be performed on all
instances in a collection or on individual instances. The collection
of instances could be defined by a shared UID or tag. But each
instance should be flexible enough to have its own title, date, time,
duration, invitee list, location, etc. It should also be possible to
separate (or copy) individual instances from the repeat collection.
Using arbitrarily complex sexp functions to achieve reasonably
flexible repeating appointments seems like overkill when a properly
structured and managed list can accomplish the desired effect.

Of course the devil is in the implementation details.



Re: [O] Recurring events with exceptions

2011-10-18 Thread Skip Collins
 ,[ C-h f org-clone-subtree-with-time-shift RET ]

 I find that this exactly what you are describing: I define an entry,
 clone it (with weekly shift, for instance) and then delete the
 exceptions and maybe add a few extras.  If any weekly instance has to
 change, I simply change it!  Works pretty well and handles all the cases
 you mentioned.

There is one important feature lacking in the use of time-shifted
clones as a way to generate repeating events: there is nothing to bind
individual instances into a collection. A common EVENTID property
would allow for the development of tools for handling a whole series
as a group to do things like deleting, shifting, and making other
changes en masse. It seems like a simple thing to add.

Flexibility like this is why I like working in org. I would move my
calendar to org if I were not stuck with outlook/exchange at work. I'm
still waiting for someone to create the ultimate org/exchange sync
solution.



Re: [O] property values and timestamps

2011-10-14 Thread Skip Collins
 org-time-stamp-inactive uses the minibuffer, and calling
 a function that uses the minibuffer *from* the minibuffer (as
 org-set-property would do) make emacs unhappy.

Elisp does seem to allow recursive minibuffers:
http://www.gnu.org/software/emacs/elisp/html_node/Recursive-Mini.html

Would the implementation of this for org-set-property be straightforward?



Re: [O] property values and timestamps

2011-10-14 Thread Skip Collins
 Still a proof-of-concept, but better than the first attempt - set
 recursive minibuffers locally and use the standard keybinding:

That was easy. I'm looking forward to this making its way into the
main repository. Where else would a recursive minibuffer make sense?
How about putting links into properties. Or timestamps into links. Or
timestamps into capture fields. The possibilities are endless :-)

Thanks.



[O] property values and timestamps

2011-10-13 Thread Skip Collins
I store a timestamp in a property. I create the property by
typing
C-c C-x p
and then entering the property name, say BIRTHDAY. Then I
have to enter the date manually.

It would be nice if
C-c !
and other timestamp creation commands were available in
the minibuffer when entering property values.



Re: [O] Bug: aquamacs hangs when scrolling column view [7.7 (release_7.7.104.g8425)]

2011-08-15 Thread Skip Collins
On Mon, Aug 15, 2011 at 4:26 AM, Bastien b...@altern.org wrote:
 Skip Collins skip.coll...@gmail.com writes:
 I tested emacs 24.0.50.1 and stock org 7.7 on windows xp the with the
 same minimal.emacs and minimal orgbug.org files. This crashes emacs.

 Please insist on reporting these kind of bugs to Emacs developers.

Already done. Eli Zaretskii fixed the problem in revision 105432 on
the Emacs trunk on August 11. I have not verified the fix.



Re: [O] Column view arrow keys issue

2011-08-15 Thread Skip Collins
On Mon, Aug 15, 2011 at 9:01 AM, Noorul Islam noo...@noorul.com wrote:
 In column view mode, my arrow keys are not working properly.

I believe that column view suffers from some emacs 24 bugs involving
overlays. You may want to see if the latest git version of emacs
helps.



[O] Bug: emacs crashes when scrolling column view [7.7]

2011-08-09 Thread Skip Collins
I am reposting an earlier bug report with a slightly different subject
because this appears to be a serious problem not confined to aquamacs
on macos. I have triggered the crash on both windows and mac emacs and
provided a minimal, complete example to reproduce the problem. It
seems likely to be a more general problem with handling overlays in
Emacs 24. I am happy to provide any more details required to debug.

Originally posted with subject:
Bug: aquamacs hangs when scrolling column view [7.7 (release_7.7.104.g8425)]
http://thread.gmane.org/gmane.emacs.orgmode/45327

On Sat, Aug 6, 2011 at 5:50 PM, Skip Collins skip.coll...@gmail.com wrote:
 On Fri, Aug 5, 2011 at 11:09 PM, Skip Collins skip.coll...@gmail.com wrote:
 When I move the scroll bar down in column view, Aquamacs typically
 hangs. This is repeatable with the following minimal.emacs file:

 I tested emacs 24.0.50.1 and stock org 7.7 on windows xp the with the
 same minimal.emacs and minimal orgbug.org files. This crashes emacs.
 To trigger the crash, I open the file and ensure that the cursor is at
 the top. Then I go into column view with C-c C-x C-c. Then I use the
 scroll wheel on my mouse to scroll down. Immediately, the emacs abort
 dialog appears. I have not generated a backtrace.



On Fri, Aug 5, 2011 at 11:09 PM, Skip Collins skip.coll...@gmail.com wrote:
 When I move the scroll bar down in column view, Aquamacs typically
 hangs. This is repeatable with the following minimal.emacs file:

 --8---cut here---start-8---
 (add-to-list 'load-path (expand-file-name ~/Documents/elisp/org-mode/lisp))
 (add-to-list 'auto-mode-alist '(\\.\\(org\\  |org_archive\\|txt\\)$
 . org-mode))
 (setq org-agenda-files '(/tmp/test.org))
 (require 'org-install)
 (require 'org-habit)

 (global-set-key \C-cl 'org-store-link)
 (global-set-key \C-ca 'org-agenda)
 (global-set-key \C-cb 'org-iswitchb)
 --8---cut here---end---8---

 orgbug.org:

 --8---cut here---start-8---
 #
 * foo
 * bar
 * baz
 * qux
 * foo
 * bar
 * baz
 * qux
 * foo
 * bar
 * baz
 * qux
 * foo
 * bar
 * baz
 * qux
 --8---cut here---end---8---

 /Applications/Aquamacs.app/Contents/MacOS/Aquamacs -Q -l
 ~/minimal.emacs ~/orgbug.org

 Emacs  : GNU Emacs 24.0.50.3 (i386-apple-darwin10.8.0, NS 
 apple-appkit-1038.36)
  of 2011-08-02 on colli
 Package: Org-mode version 7.7 (release_7.7.104.g8425)

 current state:
 ==
 (setq
  org-export-preprocess-before-selecting-backend-code-hook
 '(org-beamer-select-beamer-code)
  org-tab-first-hook '(org-hide-block-toggle-maybe
                      org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe)
  org-speed-command-hook '(org-speed-command-default-hook
                          org-babel-speed-command-hook)
  org-occur-hook '(org-first-headline-recenter)
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-export-preprocess-before-normalizing-links-hook
 '(org-remove-file-link-modifiers)
  org-confirm-shell-link-function 'yes-or-no-p
  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                               org-beamer-auto-fragile-frames
                               org-beamer-place-default-actions-for-lists)
  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
  org-support-shift-select t
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-babel-pre-tangle-hook '(save-buffer)
  org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
  org-mode-hook '(#[nil \300\301\302\303\304$\207
                   [org-add-hook change-major-mode-hook org-show-block-all
                    append local]
                   5]
                 #[nil \300\301\302\303\304$\207
                   [org-add-hook change-major-mode-hook
                    org-babel-show-result-all append local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
                          org-babel-execute-safely-maybe)
  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
  org-export-blocks '((src org-babel-exp-src-block nil)
                     (comment org-export-blocks-format-comment t)
                     (ditaa org-export-blocks-format-ditaa nil)
                     (dot org-export-blocks-format-dot nil))
  org-export-first-hook '(org-beamer-initialize-open-trackers)
  org-export-interblocks '((lob org-babel-exp-lob-one-liners

Re: [O] Bug: aquamacs hangs when scrolling column view [7.7 (release_7.7.104.g8425)]

2011-08-06 Thread Skip Collins
On Fri, Aug 5, 2011 at 11:09 PM, Skip Collins skip.coll...@gmail.com wrote:
 When I move the scroll bar down in column view, Aquamacs typically
 hangs. This is repeatable with the following minimal.emacs file:

I tested emacs 24.0.50.1 and stock org 7.7 on windows xp the with the
same minimal.emacs and minimal orgbug.org files. This crashes emacs.
To trigger the crash, I open the file and ensure that the cursor is at
the top. Then I go into column view with C-c C-x C-c. Then I use the
scroll wheel on my mouse to scroll down. Immediately, the emacs abort
dialog appears. I have not generated a backtrace.



[O] Bug: aquamacs hangs when scrolling column view [7.7 (release_7.7.104.g8425)]

2011-08-05 Thread Skip Collins
When I move the scroll bar down in column view, Aquamacs typically
hangs. This is repeatable with the following minimal.emacs file:

--8---cut here---start-8---
(add-to-list 'load-path (expand-file-name ~/Documents/elisp/org-mode/lisp))
(add-to-list 'auto-mode-alist '(\\.\\(org\\  |org_archive\\|txt\\)$
. org-mode))
(setq org-agenda-files '(/tmp/test.org))
(require 'org-install)
(require 'org-habit)

(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
--8---cut here---end---8---

orgbug.org:

--8---cut here---start-8---
#
* foo
* bar
* baz
* qux
* foo
* bar
* baz
* qux
* foo
* bar
* baz
* qux
* foo
* bar
* baz
* qux
--8---cut here---end---8---

/Applications/Aquamacs.app/Contents/MacOS/Aquamacs -Q -l
~/minimal.emacs ~/orgbug.org

Emacs  : GNU Emacs 24.0.50.3 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
 of 2011-08-02 on colli
Package: Org-mode version 7.7 (release_7.7.104.g8425)

current state:
==
(setq
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-support-shift-select t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-blocks '((src org-babel-exp-src-block nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-agenda-files '(/tmp/test.org)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



Re: [O] Problem with autoloads

2011-07-14 Thread Skip Collins
On Tue, Jun 28, 2011 at 3:09 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 diff --git a/Makefile b/Makefile
 index 239ab2e..2d1d324 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -230,12 +230,11 @@ autoloads: lisp/org-install.el

  lisp/org-install.el: $(LISPFILES0) Makefile
       $(BATCH) --eval (require 'autoload) \
 -             --eval '(find-file org-install.el)'  \
 +             --eval '(find-file lisp/org-install.el)'  \
               --eval '(erase-buffer)' \
 -             --eval '(mapc (lambda (x) (generate-file-autoloads
 (symbol-name x))) (quote ($(LISPFILES0' \
 +             --eval '(mapc (lambda (x) (generate-file-autoloads
 (symbol-name x))) (quote ($(LISPF' \ --eval '(insert \n(provide
 (quote org-install))\n)' \ --eval '(save-buffer)'
 -     mv org-install.el lisp

  doc/org: doc/org.texi
       (cd doc  $(MAKEINFO) --no-split org.texi -o org)

 This patch to the Makefile generates the autoloads without the lisp/
 prefix for me and works without errors. However as Nick says, maybe its
 worthwhile to understand why this was happening in the first place. My
 lisp knowledge is very little, but please let me know if I can help
 track this down.

Is there any more progress on finding and fixing this problem with org
and emacs24? I just built the development version of Aquamacs (GNU
Emacs 24.0.50.3). The problem with the way org autoloads lisp files is
present. Should this patch be applied to org sources?



Re: [O] org and microsoft exchange

2011-06-20 Thread Skip Collins
On Mon, Jun 20, 2011 at 7:53 AM, Holger Wenzel
drholgerwen...@googlemail.com wrote:
 Unfortunately I cannot use this, and your proposed solution, since my
 Exchange server is behind an RSA-Token-secured gateway.

 I'm planning to use the org-outlook protocol

Both outlook and org will require dealing with secured gateways.



Re: [O] latex checkboxes

2011-06-17 Thread Skip Collins
 Then, what about setting :cbtrans to \\texttt{[-]} and
 `org-export-latex-list-parameters' to nil, instead of $\\boxminus$ and
 '(:cbon $\\boxtimes$ :cboff $\\Box$), respectively?


 I'm fine with that - Skip? Tom? Others? If this does end up being the case,
 then Skip's \parbox method can be integrated into Tom's LaTeX tutorial
 or as a separate hack on Worg.

Adding configurability for cbon, cboff, and cbtrans is the most important thing.

Philosophically, the whole point of exporting to LaTeX or HTML is to
take a plain text representation of lists, checkboxes, etc., and turn
it into a nice presentation format. So I don't quite agree that the
LaTeX output should mirror the appearance of the org file with a
monospaced font. If so, then logically list bullets should be exported
as hyphens. My preference would be that the default LaTeX (and html)
outputs should use the features of those formats to make the output
look nice. Within reason, of course.



[O] org and microsoft exchange

2011-06-17 Thread Skip Collins
I was thinking of trying to get org and microsoft exchange talking to
each other via soap-client.el and exchange web services (ews).
Ultimately it would be nice to have a route into the corporate world
of exchange, outlook, entourage, and blackberry where so many of us
are forced to live.

My first goal is to link org TODOs to exchange tasks in some
simplistic way that allows two-way syncing.

If that proves feasible, perhaps calendar items could be next.

Does this sound useful? If anyone with elisp or web services
programming experience is interested in lending a hand, I am sure to
need some help.



[O] latex checkboxes

2011-06-16 Thread Skip Collins
There is a couple of problems with the way checkboxes are typeset in LaTeX.

- [ ] a
- [X] b
- [-] c

is translated to the LaTeX

\begin{itemize}
\item $\Box$ a
\item $\boxtimes$ b
\item $\boxminus$ c
\end{itemize}

The first problem is that \Box is not the same size as \boxtimes or \boxminus .
The correct symbol to use from the amssymb package is \square which
matches the other two symbols.

Another problem is that these symbols were intended to be mathematical
binary operators, and are therefore rather small for the purposes of a
checkbox. I suggest that LaTeX output could be modified to something
like:

\setbox0=\hbox{\LARGE$\square$}
\begin{itemize}
\item {\parbox[][][c]{\wd0}{\LARGE$\square$}} a
\item {\parbox[][][c]{\wd0}{\LARGE$\boxtimes$}} b
\item {\parbox[][][c]{\wd0}{\LARGE$\boxminus$}} c
\end{itemize}

The parbox ensures that the checkbox is nicely centered with the first
line of text.

Another nice-to-have feature would be to use the checkbox as a label
for list items in non-enumerated lists. Currently, the list bullet
appears as visual clutter next to the checkbox.



Re: [O] latex checkboxes

2011-06-16 Thread Skip Collins
On Thu, Jun 16, 2011 at 6:52 PM, Nick Dokos nicholas.do...@hp.com wrote:
 I like it! Well, almost all of it: I'd vote for \large, rather than \LARGE,
 but otherwise it looks good to me.

Can we compromise on \Large ? :-)

 ,
 | \item [{\parbox[][][c]{\wd0}{\LARGE$\square$}}] a
 `

I tried the optional preamble for \item in a very naive fashion. LaTeX
threw an error. Maybe I did it wrong. Or maybe the preamble is
fragile. Regardless, there is probably a simple solution. Even for
enumerated lists, it makes sense to place the checkbox with the list
number rather than with the item text.

Regarding the extra square brackets after \parbox, I was just using
the documentation I found at
http://www.tug.org/tutorials/latex2e/$5cparbox.html :

\parbox[position][height][inner-pos]{width}{text}

A parbox is a box whose contents are created in paragraph mode. The
\parbox has two mandatory arguments:

width - specifies the width of the parbox, and
text - the text that goes inside the parbox.
LaTeX will position a parbox so its centre lines up with the centre of
the text line. The optional position argument allows you to line up
either the top or bottom line in the parbox (default is top).

If the height argument is not given, the box will have the natural
height of the text.

The inner-pos argument controls the placement of the text inside the
box. If it is not specified, position is used.

t --- text is placed at the top of the box.
c --- text is centred in the box.
b --- text is placed at the bottom of the box.
s --- stretch vertically. The text must contain vertically stretchable
space for this to work.
A \parbox command is used for a parbox containing a small piece of
text, with nothing fancy inside. In particular, you shouldn't use any
of the paragraph-making environments inside a \parbox argument. For
larger pieces of text, including ones containing a paragraph-making
environment, you should use a minipage environment See minipage.



Re: [O] outline formatting in html

2011-05-06 Thread Skip Collins
Thanks, this is nice. It is fairly easy to add indentation using the
padding-left css property.

The interaction between org OPTIONS, html export, and css styles has
the virtue of allowing a lot of flexibility. On the other hand, it
sure can be confusing. It is not entirely clear what the right
approach is for someone like myself who only knows enough css to be
dangerous.

The file simple-outline.css might make a good addition to worg.

On Fri, May 6, 2011 at 5:32 AM, Christian Moe m...@christianmoe.com wrote:
 Hi,

 That would be a good feature to have. While waiting for someone to patch it
 in, a workaround for HTML output would be to turn off section numbering and
 then fake it with CSS. I enclose a four-level example I happen to have lying
 around. You can extend if needed (note that the title becomes h1, so the
 top-level heading is h2).

 Yours,
 Christian



 On 5/6/11 5:59 AM, Skip Collins wrote:

 I thought this would be easy. But I cannot find a way to get html
 formatted the way I want. I would like to view org content in
 traditional outline format, with indentation, Roman numerals for
 the top level heading, etc:

  I. This is a top level heading
 II. Here is another level-1 heading
     A. Here is a level 2 heading
         1. This is a level-3 heading
         2. Another level-3
             a. Level-4
             b. Another level-4
                 (1) Level-5
                     (a) Level-6
     B. Another level 2

 When I customize org-export-section-number-format, I do not get
 exactly what I want in html output. All heading numbers include
 higher level numbers, e.g. II.A.2.b. I am looking for a less cluttered
 output in which a heading only includes the single counter for its level.



[O] outline formatting in html

2011-05-05 Thread Skip Collins
I thought this would be easy. But I cannot find a way to get html
formatted the way I want. I would like to view org content in
traditional outline format, with indentation, Roman numerals for
the top level heading, etc:

 I. This is a top level heading
II. Here is another level-1 heading
A. Here is a level 2 heading
1. This is a level-3 heading
2. Another level-3
a. Level-4
b. Another level-4
(1) Level-5
(a) Level-6
B. Another level 2

When I customize org-export-section-number-format, I do not get
exactly what I want in html output. All heading numbers include
higher level numbers, e.g. II.A.2.b. I am looking for a less cluttered
output in which a heading only includes the single counter for its level.



Re: [O] headings with begin/end markers

2011-05-03 Thread Skip Collins
On Sun, May 1, 2011 at 5:03 PM, bertie ber...@mailinator.com wrote:
 Or any other suggestion for getting this fact - I realize this is starting to
 look more like XML than an outline - but would really like to get this 
 behavior
 without having to leave orgmode.

I made a suggestion for a natural org sytax to encompass this
functionality here:
http://permalink.gmane.org/gmane.emacs.orgmode/41203
Basically, use a termination string consisting of a number of
asterisks preceded or followed by a '/' character. E.g. ***/ or /*** .

But it seems that no one is working to implement anything like it. It
would probably require some major surgery on the way org deals with
sections.



Re: [O] Continuation of main section text after subsections

2011-04-25 Thread Skip Collins
Marcel van der Boom marcel at hsdev.com writes:
 My personal conclusion was, given proper outlining and no or very few
 assumptions about indentation preferences, it would be very difficult or
 confusing to implement.

 The amount of alternatives given in the thread gave me enough food for
 a while to try out if those would be sufficient. So far, the inline
 tasks (see below) seem to fit my need the best, although their use
 feels a bit like a hack to me.

It seems like a hack to me as well. I would very much like to see this
feature implemented but am not very happy with the inline task
workaround. The reason inline tasks work for this purpose is that they
allow for a termination string. This is also true for plain lists
which terminate with two blank lines by default. It would be useful
and logical to allow for a section terminator as well. This could be
done very simply with a '/' character after (or before?) the
appropriate number of asterisks, similar to the way html tags are
terminated:

* Here is a top-level heading
This text follows the top level heading.

** This is a sub-section heading
Here is some text within the sub-section.

*** The sub-section contains an even lower level
This text is part of the sub-sub-section.

**/

Now we resume the top-level section. The string **/ terminates both
the 2nd and 3rd level sections. If a section terminates in this way,
the next highest level continues where it left off. Section
terminators would be strictly optional, sort of like /p in html.
Would this be a sensible, feasible thing to implement? I understand
that it may cause difficulty for some exporters. But I don't think
that org features should be limited by what other formats can easily
handle, especially since there are some obvious workarounds for latex
and html.



[Orgmode] http git clone

2010-09-24 Thread Skip Collins
Doing git clone http://repo.or.cz/w/org-mode.git gives the warning:
remote HEAD refers to nonexistent ref, unable to checkout.
Perhaps someone needs to run git update-server-info in the repo.
Is the post-update hook not executable?

___
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] properties in agenda prefix

2010-08-24 Thread Skip Collins
On Thu, Aug 19, 2010 at 2:46 AM, Jan Böcker jan.boec...@jboecker.de wrote:
 Look at 7.5.3 Capturing column view in the manual, it provides a
 solution to the column view is not printable problem.

I can use column mode in the agenda, which is very useful because it
can display properties. I know I can capture columns in a dynamic
block within my org file. But is it possible to similarly capture
columns for a filtered agenda? If so, I don't know how. This would
solve my problem.

 If you do not need the agenda's sophisticated filtering abilities, this
 may already work for you.

I would prefer an agenda mode that allowed both filtering on
properties and display of those properties, just as tags work. If I
have a list that has a color property, I can make an agenda that only
displays red and green items. But nowhere in the list (apart from
column mode) can I display which items are red and which are green.

___
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] properties in agenda prefix

2010-08-18 Thread Skip Collins
 What property would you find useful to have and why?

CUSTOM_ID could be handy right away. If arbitrary properties were
accessible in agenda prefix, it would enable very flexible agenda
constructs. Consider a setup in which headlines are given a tracking
number that can be used as a reference number outside of org. The
reference number would naturally be a property, not a tag. To get a
nice list that includes the reference number, it must be assigned to
CATEGORY.

Consider also a group agenda in which items are flagged in the prefix
with the names of their owners. Again, the names must now be assigned
to CATEGORY.

As a design goal, I think would it make sense for agenda and column
modes to have some overlapping features and syntax, including the
ability to access properties.

___
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] properties in agenda prefix

2010-08-18 Thread Skip Collins
On Wed, Aug 18, 2010 at 10:43 AM, Bastien bastien.gue...@wikimedia.fr wrote:
 I grasp the general idea but a more concrete use-case would help here
 again...  thanks!

Perhaps I am trying to use agenda in a way that was never intended, to
export printable lists in tabular form. Using agenda mode, I can
generate an html list that has one line per item, albeit with limited
formatting and without property information. This does not work easily
with column mode, which is not printable, or org-mode export, which is
not tabular.

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


[Orgmode] properties in agenda prefix

2010-08-17 Thread Skip Collins
Why is CATEGORY the only property that can be included in
org-agenda-prefix-format?
___
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