[O] Bug [minor]: ~~/blah~ displayed incorrectly [8.0 (8.0-dist @ /usr/local/share/emacs/site-lisp/org/)]

2013-04-22 Thread Aidan Gauland
I have a path in a list item like

  2. Open ~~/path/to/somewhere~

which is exported as expected (via C-c C-e t U):

  2. Open `~/path/to/somewhere'

So, to the exporter, the tilde in the path isn't closing the opening
verbatim snippet, but it is for org-mode's syntax-highlighting.

Emacs  : GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2013-04-03 on dimension8, modified by Debian
Package: Org-mode version 8.0 (8.0-dist @ /usr/local/share/emacs/site-lisp/org/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-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-confirm-shell-link-function 'yes-or-no-p
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-todo-keyword-faces '(("READY" :foreground "blue" :weight bold) ("FINISHED" 
:foreground "blue" :weight bold))
 org-agenda-include-diary 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-tags-column -40
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '((lambda nil (define-key org-mode-map (kbd "C-c a") (quote 
org-agenda))) undo-tree-mode
 #[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-outline-path-complete-in-steps nil
 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-hide-inline-tasks
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-completion-use-ido t
 org-completion-use-iswitchb t
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



Re: [O] Yes, I'm still alive

2012-11-06 Thread Aidan Gauland
John Hendy  writes:
> Thanks for sharing and you have my condolences. As others might say as
> well, I'd not sweat it if you drop org maintenance for a while. Just
> take care of yourself and any potential family. Stay safe and my best
> to you as you rebuild and recover in the time ahead.

Ditto.  Don't worry about us; worry about yourself and your sanity.
(That, of course, doesn't mean not to hack on Org if you're itching to.)

Best regards,
Aidan Gauland




Re: [O] TODO keyword completion bug

2012-08-21 Thread Aidan Gauland
Bastien  writes:
> Hi Aidan,
> Aidan Gauland  writes:
>> I have some (buffer-local) keywords defined that contain dashes to
>> separate words (because I couldn't think of a single word that would be
>> clear).  M- completion does not appear to work for these keywords.
>>
>> This has made me reconsider my choice of keywords, but since they're
>> valid keywords, shouldn't they be valid candidates for completion
>> (i.e. is this a bug)?
>
> "Keywords" is ambiguous here.
>
> TODO keywords like "MY-TODO" complete fine with M-TAB.
>
> #+MY_KEYWORD does not complete fine with M-TAB, but since this keyword
> appears in the buffer anyway, you can simply use M-/.

OK, so I'll just use M-/.

I have the keywords defined with #+TODO:.  I just tried playing around
with them a bit, and I have found that the "problem" is not exactly as I
thought: keywords with dashes, such as MY-TODO, do not complete with
M-TAB if I try to complete from after the dash, i.e. M-TAB on MY- does
not complete.  TODO keyword completion does not work at all if there is
already a headline, e.g. * TO[M-TAB here] Buy bread

So, if this is a bug, I now have a workaround; if it's not a bug, then I
now know how to properly use TODO completion.  I'll leave it to you (the
Org-mode devs) to decide whether to treat this as a bug.

Thanks,
Aidan Gauland




[O] TODO keyword completion bug

2012-08-20 Thread Aidan Gauland
I have some (buffer-local) keywords defined that contain dashes to
separate words (because I couldn't think of a single word that would be
clear).  M- completion does not appear to work for these keywords.

This has made me reconsider my choice of keywords, but since they're
valid keywords, shouldn't they be valid candidates for completion
(i.e. is this a bug)?

--Aidan




[O] Re: org-publish not publishing changed files

2011-04-01 Thread Aidan Gauland
Nick Dokos  hp.com> writes:
> Aidan Gauland  no8wireless.co.nz> wrote:
> > Yes it does.  Sorry, I should have worded that differently.  I meant
> > that I have been repeatedly wiping ~/.org-timestamps/ in hopes that it
> > will not get screwed up again and think none of my files have changed,
> > and never re-publishes changed files (after an initial org-publish
> > operation).  I think I have run into a bug in org-mode and I really
> > want to track it down, so I thought the best place to start would be
> > to look at what the timestamps are (in a human-readable format).
> > 
> 
> OK - thanks. I started taking a look at the code, but I'm not getting
> anywhere fast, so the more eyes we can have on it the better.

Actually, we can forget about the timestamps.  I finally figured out
what circumstances under which this bug happens: I am trying to export
from a system where some of the symlinks in the project are broken.

Here's my setup: I sync my home directory on my laptop and desktop
computers using Unison.  In my project, I have symlinks to files in
~/images/, but since my laptop hard drive has less capacity than the
one in my desktop, I only keep ~/images/ on my desktop.  As a result
of this setup, some symlinks in my org-mode project are broken on my
laptop.  When I publish my project on my desktop, where no symlinks
are broken, org-publish behaves as expected; when I publish the same
project on my laptop, where some symlinks are broken, org-publish
appears to succeed, but publishes no changes.

I am really sorry for such a delayed response, but my university
semester started up again, which has been really hectic because of the
Feburary Christchurch earthquake.

Kind regards,
Aidan Gauland





[O] Re: org-publish not publishing changed files

2011-03-22 Thread Aidan Gauland
Nick Dokos  hp.com> writes:
> > How can I get the timestamps in a more human-readable format?  I keep
> > having this problem (and no symlinks involved) and keep having to wipe
> > the timestamps directory (a royal nuisance).
> 
> Doesn't the prefix argument work? C-u C-c C-e followed by F or P or X or E
> should republish whatever you specified (file, current project, some project
> or all projects resp.), no matter what the cache says.

Yes it does.  Sorry, I should have worded that differently.  I meant
that I have been repeatedly wiping ~/.org-timestamps/ in hopes that it
will not get screwed up again and think none of my files have changed,
and never re-publishes changed files (after an initial org-publish
operation).  I think I have run into a bug in org-mode and I really
want to track it down, so I thought the best place to start would be
to look at what the timestamps are (in a human-readable format).

--Aidan





[O] Re: org-publish not publishing changed files

2011-03-21 Thread Aidan Gauland
Nick Dokos  hp.com> writes:
> org uses timestamps to figure out which files need publishing
> (see section 13.4 of the Org manual) and they may have gotten
> curdled somehow. You can force publication by giving a second
> argument to org-publish (if you called it interactively, you
> could do that by giving it a prefix arg):
> 
> (org-publish "aidalgolland" t)
> 
> Or you can try getting rid of the timestamps (they are stored
> in the directory named in the variable org-publish-timestamp-directory
> (by default "~/.org-timestamps/") and publish again.
> 
> If you can figure out *why* they got out of sync, that would be
> a bonus and worth a post here, particularly if you can identify
> a bug in the code.

How can I get the timestamps in a more human-readable format?  I keep
having this problem (and no symlinks involved) and keep having to wipe
the timestamps directory (a royal nuisance).

--Aidan





[O] org-publish not publishing changed files

2011-03-18 Thread Aidan Gauland
Hi,

I use org-mode for my website, and I've noticed that when I go to
publish the website, none of the files I have just edited are updated
in the publishing directory.  I have no idea why.  Here is the elisp I
evaluate to publish my website.

(setq 
 org-publish-project-alist
 '(("aidalgolland-orgfiles"
:base-directory "~/doc-aidan/aidalgolland/main/"
:publishing-directory "/ssh:ai...@nathan7.eu:public_html/aidalgolland/"
:publishing-function org-publish-org-to-html
:recursive t
:base-extension "org"
:section-numbers nil
:table-of-contents nil
:creator-info nil
:language "en"
:author "Aidan Gauland"
:style ""
:auto-preamble t
:auto-postamble t)

   ("aidalgolland-static"
:base-directory "~/doc-aidan/aidalgolland/main/"
:publishing-directory "/ssh:ai...@nathan7.eu:public_html/aidalgolland/"
:publishing-function org-publish-attachment
:recursive t
:base-extension "css\\|gz\\|bz2\\|lzma\\|jpg\\|gif\\|png\\|atom")

   ("aidalgolland" :components ("aidalgolland-orgfiles" 
"aidalgolland-static"

(org-babel-lob-ingest "~/doc-aidan/aidalgolland/babel-lib.org")
(org-publish "aidalgolland")

(makunbound 'org-publish-project-alist)

Can anyone help me with this?

Thanks,
Aidan Gauland


signature.asc
Description: Digital signature


[Orgmode] Bug: Invalid XHTML generated [7.4]

2011-01-08 Thread Aidan Gauland
The closing  tag in this Org file is placed *before* the closing
 and  items for the *** A third item heading.

-begin org file-
#+OPTIONS: H:2

#+HTML: 

* A heading
*** A heading that will be exported as a list item
*** ditto
*** A third item

#+HTML: 
-end org file-

Invalid XHTML at (around) line 116.




By the way, shouldn't this be one list instead of three one-item lists?

A heading that will be exported as a list item 



ditto 



A third item 

Kind regards,
Aidan Gauland

Emacs  : GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-12-12 on brahms, modified by Debian
Package: Org-mode version 7.4

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-files '("~/uc-files/uc-work.org")
 org-agenda-include-diary t
 org-completion-use-iswitchb t
 org-babel-load-languages '((emacs-lisp . t) (sh . t))
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("aidalgolland-orgfiles" :base-directory 
"~/doc-aidan/aidalgolland/main/"
  :publishing-directory 
"~/doc-aidan/aidalgolland/published/" :publishing-function
  org-publish-org-to-html :recursive t 
:base-extension "org" :section-numbers nil
  :table-of-contents nil :creator-info nil 
:language "en" :author "Aidan Gauland" :style
  "" :auto-preamble t :auto-postamble t)
 ("aidalgolland-static" :base-directory 
"~/doc-aidan/aidalgolland/main/"
  :publishing-directory 
"~/doc-aidan/aidalgolland/published/" :publishing-function
  org-publish-attachment :recursive t 
:base-extension
  "css\\|gz\\|bz2\\|lzma\\|jpg\\|gif\\|png\\|atom")
 ("aidalgolland" :components 
("aidalgolland-orgfiles" "aidalgolland-static")))
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil) (comment 
org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil) (dot 
org-export-blocks-format-dot nil))
 )


signature.asc
Description: Digital signature
___
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


Bug?: Re: [Orgmode] Problem publishing symbolic links

2010-12-19 Thread Aidan Gauland
On Sun, Dec 19, 2010 at 06:35:12PM +0100, David Maus wrote:
> Org checks the file modification time to determine whether to
> republish a file or not.  Due to the nature of /sym/links their
> modification date does not change if the directory entry they are
> pointing to changes.

Then shouldn't Org-mode check the modification time of the *target*?

> Maybe you could use hard links instead of symlinks if the files you
> are linking exist on the same hard disk partition.  If this is not the
> case maybe using a command line tool that syncs the directories
> (e.g. rsync) could be an option (Cf. Manual, 13.1.2 Sources and
> destinations for files).

That's what I'll have to do.  This seems to be more of a workaround
than a solution, though.

--Aidan


signature.asc
Description: Digital signature
___
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] Problem publishing symbolic links

2010-12-10 Thread Aidan Gauland
Hi,

I am using Org-mode to run my website, and I have symbolic links to
files elsewhere in my home directory (which are dereferenced when
published).  When I org-publish the project, it doesn't re-publish the
symbolic links even if the target has changed.

Any idea what I could do to avoid manually copying the files that
org-publish should be publishing?

Thanks,
Aidan


signature.asc
Description: Digital signature
___
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] Re: Override export filename

2010-11-04 Thread Aidan Gauland
Nick Dokos  hp.com> writes:
> If you just need a different extension, I think this works:
> 
> --8<---cut here---start->8---
> #+BIND: org-export-html-extension "goo"
> 
> * foo
> foo
> 
> * bar
> bar
> --8<---cut here---end--->8---

Yup, that works perfectly.  Thanks!

--Aidan



___
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] Override export filename

2010-11-02 Thread Aidan Gauland
On Tue, Nov 02, 2010 at 04:44:11PM +0100, Giovanni Ridolfi wrote:
> Aidan Gauland  writes:
> 
> > Is there an export option to specify the name of the file to which to
> > export the org file? 
> 
> for documents:
> #+TITLE:

This doesn't seem to allow me to specify the filename.  For example,
the file...

#+TITLE: bar.goo

* A heading
foo foo

...is exported (as HTML) to foo.html, not bar.goo.

--Aidan


signature.asc
Description: Digital signature
___
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] Override export filename

2010-11-02 Thread Aidan Gauland
Hi,

Is there an export option to specify the name of the file to which to
export the org file?  I use org-mode for my website and I need one
page to have a different extension from .html.

Thanks,
Aidan Gauland



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


Re: [Orgmode] org-export-string

2010-11-01 Thread Aidan Gauland
On Sun, Oct 31, 2010 at 08:14:27AM -0600, Eric Schulte wrote:
> It should be possible to use edebug to locate the source of this prompt.
>
> Evaluate the definition of `org-export-string' with a prefix argument
> (i.e. C-u C-M-x).  Then when you call `org-export-string' you can step
> through all S-expressions in the definition, until you reach the one
> which is generating the prompt.  Then evaluate *that* function with
> edebug and recurse.
>
> This should lead you to the prompt and from there we should be able to
> figure out how to avoid it.
>
> Best -- Eric
>
>> On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
>>  wrote:
>> Evaluating (org-export-string "plain plain *bold* plain" "html")
>> prompts me (in the minibuffer) with...
>>
>> File to save in: /tmp/

The prompt came up when evaluating
(run-hooks 'org-export-html-after-blockquotes-hook)
(which is in the function org-export-as-html).  I had the following
export hook that was a workaround for a problem with footnotes (which
I need to try and fix when I get a chance).  Removing this hook
restores sane behaviour (i.e. no prompt).

(add-hook 'org-export-html-final-hook  'gio/replace-square-brackets)
(add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets)
(defun gio/replace-square-brackets ()
  "Replace #91; with [ and #93; with ] "
  (interactive)
  (setq a "#91;")  ; use "\[" for LaTeX export
  (setq b "#93;")  ; use "\]" for LaTeX export
  (setq a1 "[")
  (setq b1 "]")

  (ignore-errors (goto-char 1) (setq p (point))
 (while (< p (point-max))
   (re-search-forward a nil nil) (replace-match a1)  (setq p 
(point)) )  )
  (ignore-errors (goto-char 1) (setq p (point))
 (while (< p (point-max))
   (re-search-forward b nil nil) (replace-match b1)  (setq p 
(point)) )  )
  (save-buffer))

--Aidan


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


Re: [Orgmode] org-export-string

2010-10-31 Thread Aidan Gauland
On Sun, Oct 31, 2010 at 12:34:18PM +0530, Puneeth wrote:
> On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
>  wrote:
> > Evaluating (org-export-string "plain plain *bold* plain" "html")
> > prompts me (in the minibuffer) with...
> >
> > File to save in: /tmp/
> 
> Which version of Org-mode and Emacs are you using? I'm unable to
> reproduce this with
> 
>  - GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
>  - Org-mode version 7.02trans (release_7.02.21.g598be)

Oh, sorry.  If I knew that this might be an issue, I would have
included this information in my first post.

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
of 2010-08-15 on raven, modified by Debian

7.02trans

--Aidan


signature.asc
Description: Digital signature
___
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] org-export-string

2010-10-30 Thread Aidan Gauland
Evaluating (org-export-string "plain plain *bold* plain" "html")
prompts me (in the minibuffer) with...

File to save in: /tmp/

I can't see any obvious s-exp in the definition of org-export-string
that would be bringing up the prompt.  Aside from the prompt, this
function does exactly what I need.  Any idea how I could get rid of
the prompt so I can run the function non-interactively?

--Aidan



___
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] Re: parsing formatted text

2010-10-29 Thread Aidan Gauland
Eric Schulte  gmail.com> writes:
> You could pass the text through the `org-export-string' function to
> generate a string of HTML from a string of Org markup.
> 
> e.g.
> 
>   (org-export-string "plain plain *bold* plain" "html")
> 
> returns the following string
> 
>   "plain plain bold plain"

Actually, now that I've tried that, I'm getting prompted for a
filename when I evaluate that.

Evaluating (org-export-string "plain plain *bold* plain" "html")
prompts me (in the minibuffer) with...

File to save in: /tmp/

I can't see any obvious s-exp in the definition of org-export-string
that would be bringing up the prompt.  Aside from the prompt, this
function is exactly what I want.  Any idea how I could get rid of the
prompt so I can run the function non-interactively?

--Aidan



___
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] Re: parsing formatted text

2010-10-29 Thread Aidan Gauland
Eric Schulte  gmail.com> writes:
> You could pass the text through the `org-export-string' function to
> generate a string of HTML from a string of Org markup.
> 
> e.g.
> 
>   (org-export-string "plain plain *bold* plain" "html")
> 
> returns the following string
> 
>   "plain plain bold plain"

Thanks!  That's just what I was looking for!

--Aidan



___
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] parsing formatted text

2010-10-29 Thread Aidan Gauland
Hello,

I have written an elisp program to generate an ATOM feed from an
org-mode file.  I want to generate appropiate HTML from fromatted text
(such as *bold* and /italic/).  Since it does not use org's export
module (for which this isn't really appropriate anyway), I have no
idea if there is any way I can use existing org functions to parse a
paragraph to recognise formatted text so I can process it
appropriately, or if I must write my own parsing code.  Can any of the
more experienced org-mode hackers offer any advice?

Thanks,
Aidan Gauland



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


Re: [Orgmode] Re: How can I get document metadata?

2010-09-19 Thread Aidan Gauland
On Mon, Sep 20, 2010 at 12:34:22AM +0200, Sebastian Rose wrote:
> (let ((opt-plist
>(org-export-process-option-filters
> (org-combine-plists (org-default-export-plist)
>  (org-publish-get-project-from-filename buffer-file-name)
>  (org-infile-export-plist)
> 
>   ;; the calculated style:
>   (message "%s" (plist-get opt-plist :style))
> 
>   ;; or show the entire content of the property list:
>   (message "%S" opt-plist))

Thanks a ton!  That works well for me.

--Aidan


signature.asc
Description: Digital signature
___
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] Re: How can I get document metadata?

2010-09-19 Thread Aidan Gauland
Sebastian Rose  gmx.de> writes:
> This is awkward to use:
> 
> (org-parse-local-options
>   (org-get-local-options)
>   'org-export-headline-levels) 
> 
> Is that function still in use? 
> 
> `grep -Fr org-parse-local-options'  reveals nothing.

Not only is it awkward, it (org-get-local-options) doesn't seem to get
me everything.  For example, the title isn't in the list returned by
org-get-local-options.

Isn't there a function to get the value from a
#+KEY: VALUE
line, or has that not been factored out of the Org code that needs to
do that?

--Aidan



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


[Orgmode] Bug? org-babel-lob-ingest problem

2010-09-19 Thread Aidan Gauland
Calling org-babel-lob-ingest on a file with code blocks seems to work
only for the current Emacs session, and doesn't seem to affect the
variable org-babel-lob-files.  If I quit and restart Emacs, it's as if
I never loaded a file with org-babel-lob-ingest.  Also I see
"(mismatch)" next to the "State" button for org-babel-lob-files in
Customize.

Like this...
   State: STANDARD. (mismatch)

Have I found a bug, or am I doing something wrong?

--Aidan


signature.asc
Description: Digital signature
___
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] How can I get document metadata?

2010-09-18 Thread Aidan Gauland
Is there an org function to get the title, author, etc. of an org document?

--Aidan


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


[Orgmode] Bug: INVISIBLE-OK arg of org-forward-same-level not documented [7.01trans]

2010-09-17 Thread Aidan Gauland
The optional argument, INVISIBLE-OK, of org-forward-same-level is not
mentioned in the documentation for that function.

--Aidan

Emacs  : GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-09-17 on dimension8
Package: Org-mode version 7.01trans


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


Re: [Orgmode] Re: [Patch] Bug: Inconsistency with org-publish-attachment

2010-09-17 Thread Aidan Gauland
On Sat, Sep 18, 2010 at 12:18:42AM +0200, Sebastian Rose wrote:
> That commit already includes the (obviously wrong) first patch...
> 
> Here's the patch that reverts the first attempt and applies the new
> one.   Hope this works :)

Yup, this one works!  Bug squashed.  Go ahead and commit it.

Thanks again,
Aidan


signature.asc
Description: Digital signature
___
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] Re: [Patch] Bug: Inconsistency with org-publish-attachment

2010-09-17 Thread Aidan Gauland
Sebastian Rose  gmx.de> writes:
> did you revert the previous patch?  The second patch was against master
> again.

I ran git reset --hard then applied the second patch.

> I changed to a subdirectory of my :base-directory (here $BASE):
>
> $ cd ${BASE}/subdirectory
> $ cp ~/images/first.jpg .# a simple image
> $ ln -s ~/images/second.jpg  # a link to an image
> $ ln -s ~/images/screenshots/# a link to a directory
>
> When exporting, I get this tree in :publishing-directory ($PUB):
>
> $PUB/
>  |-- subdirectory/
>  |   |-- first.jpg
>  |   |-- second.jpg
>  |   `-- screenshots/
>  |   |-- some.png
>  |   `-- other.png
>
> which is what you expected, is that right?

Yes, that's what I expected.  What I'm getting is a little different.

$PUB/
`-- subdirectory/
|-- screenshots/
| `-- subdirectory/
| `-- screenshots/
| |-- other.png
| `-- some.png
`-- subdirectory/
|-- first.jpg
|-- second.jpg

This is how the project is defined...
(setq 
 org-publish-project-alist
 '(("static"
:base-directory "~/org-bug/"
:publishing-directory "~/org-bug-pub/"
:publishing-function org-publish-attachment
:recursive t
:base-extension "css\\|gz\\|bz\\|lzma\\|jpg\\|gif\\|png")))

And published with this sexp.
(org-publish "static")

Perhaps the discrepancy between our setups is git commit (not sure if
I'm using the right terms there)?  git log shows
878d94b47225729bfffaca9c57a5bdeb344a8ffb at the top of its output.

Thanks for your help!
--Aidan



___
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] Re: [Patch] Re: Bug? Inconsistency with org-publish-attachment

2010-09-16 Thread Aidan Gauland
Sebastian Rose  gmx.de> writes:
> This here works for both --- here it does.

Uh, not quite.  Now what should be in techy/programs/ is in
techy/programs/techy/programs/ (non-org files, that is).  At least now
all files are treated consistently. :P

--Aidan



___
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] Re: [Patch] Re: Bug? Inconsistency with org-publish-attachment

2010-09-16 Thread Aidan Gauland
Sebastian Rose  gmx.de> writes:
> `org-publish-attachment' is wrong or called with wrong arguments.
> 
> This patch fixes it.
> 
> As always, there might be a better way to fix it,
> but this way the function `org-publish-attachment' will work regardless
> of parameters.  Someone will always call this function with the wrong
> `PUB-DIR' parameter...
> 
> Aidan, would like to apply the patch and verify it works for you?

That fixes the problem, but introduces/reveals another:

All symlinks in artsy/photography/images/ are dereferenced and copied
to published/artsy/photography/images/, but all regular files in
artsy/photography/images/ are copied to
published/artsy/photography/images/artsy/photography/images/.

So the patch works only if there are only symlinks.  (Not sure about
only regular files.  It may have broken something.)

--Aidan



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


Re: [Orgmode] Re: Bug? Inconsistency with org-publish-attachment

2010-09-15 Thread Aidan Gauland
On Thu, Sep 16, 2010 at 12:40:34AM +0200, Sebastian Rose wrote:
> Aidan Gauland  writes:
> > Sebastian Rose  gmx.de> writes:
> >> It would be a bug.
> >> 
> >> But I cannot reproduce it (current Org mode from git, emacs24).
> >
> > I just figured out why: I store all my images in ~/images/ and just
> > have symbolic links to them in my Org website directory.
> >
> > Can you reproduce it now that you have this piece of information?
> 
> 
> Ah, OK.  That might be because of some call to 
> 
>   (file-truename file...)
> 
> or similar.  `file-truename' removes symbolic links in filenames.
> 
> Functions like this are called to make sure, the file is published only
> if needed (i.e. the file has changed since last export).
> 
> I'm not sure currently if it's clever to remove such calls (see
> lisp/org-publish.el and search `file-truename').

What if `file-truename' was used only to get the path of the actual
file to copy, but the (relative) path of the link is used as the
destination?

--Aidan


signature.asc
Description: Digital signature
___
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] Re: Bug? Inconsistency with org-publish-attachment

2010-09-15 Thread Aidan Gauland
Sebastian Rose  gmx.de> writes:
> It would be a bug.
> 
> But I cannot reproduce it (current Org mode from git, emacs24).

I just figured out why: I store all my images in ~/images/ and just
have symbolic links to them in my Org website directory.

Can you reproduce it now that you have this piece of information?

--Aidan



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


[Orgmode] Bug? Inconsistency with org-publish-attachment

2010-09-15 Thread Aidan Gauland
I have a (sub)project for publishing a website.  It uses
org-publish-attachment with the recursive option.

("static"
 :base-directory "~/doc-aidan/windmill-hill/main/"
 :publishing-directory "~/doc-aidan/windmill-hill/published/"
 :publishing-function org-publish-attachment
 :recursive t
 :base-extension "css\\|gz\\|bz\\|lzma\\|jpg\\|gif\\|png")

I have all the files scattered throughout the source directory's
hierarchy.  Their location is preserved when copied to the publishing
directory /except/ for the images (I only have png images right now),
which are just dumped in the root of the publishing directory.

Is this a bug, or am I doing something wrong?

--Aidan


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


[Orgmode] Bug? Inconsistency with org-publish-attachment

2010-09-15 Thread Aidan Gauland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have a (sub)project for publishing a website.  It uses
org-publish-attachment with the recursive option.

("static"
 :base-directory "~/doc-aidan/foo/main/"
 :publishing-directory "~/doc-aidan/foo/published/"
 :publishing-function org-publish-attachment
 :recursive t
 :base-extension "css\\|gz\\|bz\\|lzma\\|jpg\\|gif\\|png")

I have all the files scattered throughout the source directory's
hierarchy.  Their location is preserved when copied to the publishing
directory /except/ for the images (I only have png images right now),
which are just dumped in the root of the publishing directory.

Is this a bug, or am I doing something wrong?

- --Aidan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyQd9gACgkQjyzTRvYJmaV9ZwCeMvLOI9r2oPMnqRSFZsMTQaBg
HcQAniaaYRetDC6MxUW7vKEtvt5ij2F+
=HmtP
-END PGP SIGNATURE-



___
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] Re: image alt text for HTML export

2010-09-14 Thread Aidan Gauland
Christian Moe  christianmoe.com> writes:
> Yes, like so:
> 
> : #+attr_html: alt="Picture of a foo"
> : [[./foo.png]]
> 
> See the manual section on exporting to HTML.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

That's exactly what I was looking for.  Thank you!  I never would have
thought to look under "Links in HTML export" for how to set HTML
attributes. :P

Thanks,
Aidan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyPORAACgkQjyzTRvYJmaUq2wCggZ1/iNnbnlva25pAKFm4knb2
j2AAn3wUM9uK6CGSNHo3ApPloyi4UZrM
=dG3w
-END PGP SIGNATURE-



___
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] image alt text for HTML export

2010-09-14 Thread Aidan Gauland
Is it possible to set the alt attribute of an image for HTML export?
If I insert an inline image into an Org buffer like so...

[[./foo.png]]

...and export it to HTML, I get something like this...



But I want the alt attribute to be "foo" (or something else), not the
filename.

I know this is an HTML-specific setting, but I still want the image be
exported to other formats, so inserting literal HTML (see below) isn't
really suitable.

#+HTML: 

If there is no way to do this, should I file a feature request?

--Aidan


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


[Orgmode] Bug: Problem with section 12.5.7 of the Org manual [7.01trans]

2010-09-11 Thread Aidan Gauland
Section 12.5.7 CSS support of the Org-mode manual says...
#+BEGIN_QUOTE
You could also directly write a `' `' section in this
way, without referring to an external file.
#+END_QUOTE

The problem with that is that putting...
#+BEGIN_HTML

  [some CSS]

#+END_HTML
...anywhere in a buffer results in that code being placed in within
 element of the HTML export, but the 

[Orgmode] Re: Bug: Relative file links exported to HTML as links to another site [7.01trans]

2010-09-11 Thread Aidan Gauland
Aidan Gauland  no8wireless.co.nz> writes:
> Relative file links such as...
> [[file:foo.org][Another file]]
> ...are exported to HTML as...
> Another file

Oops!  I forgot to say what I /expected/ it to be exported as.
I expected to get...
Another file
...which would be a relative hyperlink to the file foo.html.



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


[Orgmode] Bug: Relative file links exported to HTML as links to another site [7.01trans]

2010-09-11 Thread Aidan Gauland
Relative file links such as...
[[file:foo.org][Another file]]
...are exported to HTML as...
Another file

Attached is an example.

Emacs  : GNU Emacs 24.0.50.14 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-09-10 on dimension8
Package: Org-mode version 7.01trans

current state:
==
(setq
 org-export-html-final-hook '(gio/replace-square-brackets)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/uc-files/uc-work.org")
 org-agenda-include-diary t
 org-completion-use-iswitchb t
 org-export-ascii-final-hook '(gio/replace-square-brackets)
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
  org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-show-block-all append local]
   5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append
local]
   5]
 org-babel-result-hide-spec
 org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob
   org-babel-exp-lob-one-liners)
  (src
   org-babel-exp-inline-src-blocks)
  )
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-export-preprocess-after-include-files-hook '(org-export-blocks-preprocess)
 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 gio/replace-square-brackets)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
 (comment
  org-export-blocks-format-comment
  t)
 (ditaa
  org-export-blocks-format-ditaa
  nil)
 (dot org-export-blocks-format-dot
  nil)
 )
 )


org-bug-example.tar.gz
Description: Binary data


signature.asc
Description: Digital signature
___
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] Problem with brackets in LaTeX exports

2010-09-07 Thread Aidan Gauland
First off, I'm using a workaround for the problem with closing brackets
terminating a footnote, even if they're supposed to be *within* the
footnote.  Here is the relevant part of my init file...

;; Workaround for the bracket-in-footnote bug.
(add-hook 'org-export-html-final-hook  'gio/replace-square-brackets)
(add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets)
(add-hook 'org-export-latex-final-hook 'gio/replace-square-brackets)
(defun gio/replace-square-brackets ()
"Replace #91; with [ and #93; with ] "
(interactive)
(setq a "#91;")  ; use "\[" for LaTeX export
(setq b "#93;")  ; use "\]" for LaTeX export
(setq a1 "[")
(setq b1 "]")

(ignore-errors (goto-char 1) (setq p (point)) 
 (while (< p 
(point-max)) 
 
(re-search-forward a nil nil) (replace-match a1)  (setq p (point)) )  )
(ignore-errors (goto-char 1) (setq p (point)) 
 (while (< p 
(point-max)) 
 
(re-search-forward b nil nil) (replace-match b1)  (setq p (point)) )  )
(save-buffer))

Now here is my problem, illustrated by an example Org file...

* A heading
This footnote will export to LaTeX improperly.[fn:: Some book at #91;42-24#93;.]
A second footnote to make the visual problem more obvious in a PDF export.[fn::
Another book at #91;13-37#93;.]

It will export to...
#+BEGIN_SRC latex
This footnote will export to \LaTeX{} improperly.\footnote{Some book at 
\[42-24\]. }
#+END_SRC
...but should be...
#+BEGIN_SRC latex
This footnote will export to \LaTeX{} improperly.\footnote{Some book at 
[42-24]. }
#+END_SRC
You will see why this is if you look at a PDF export.

If I don't set the function gio/replace-square-brackets as a
org-export-latex-final-hook, then #91; and #93; are exported literally.
I can't explain the comments...
; use "\[" for LaTeX export
; use "\]" for LaTeX export
are in that function, as I did not write it.

Can anyone with more experience with Org and LaTeX help me out here?
It is very annoying having to manually correct each set of brackets manually for
every LaTeX export.

Thanks,
Aidan


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


Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]

2010-08-31 Thread Aidan Gauland
Alan L Tyree wrote:
> Disable footnotes like [2010], but keep footnotes like [fn:2010]
> 
> The reason is that I write legal texts that have references to case law
> that look like: Marreco v Richardson [1908] 2 KB 584. The dates in
> square brackets are an essential part of the reference.

Perhaps it would be best to determine for what type of writing the current way
Org handles footnotes is lacking.  Is it just academic writing in general, of
mostly only certain fields?  Both Alan and I have needed to use a workaround
for legal writing (I'm a first-year student; don't know about Alan).  What
have other people had trouble footnoting/citing in Org?

--Aidan



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


Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]

2010-08-31 Thread Aidan Gauland
Thanks!  That works fine.  I suppose I should point out that I only used =
an
ASCII export for the example situation, but I ran into this problem expor=
ting
to HTML.

--Aidan Gauland



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


[Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]

2010-08-31 Thread Aidan Gauland
It is impossible to have closing brackets in a footnote, because they
are treated as the closing bracket for the foot note.  Example...

* A heading
This is a broken footnote.[fn:: Some book at [42-24].]

This will export to (as ASCII, for example)...
  org-fn-bug-example
  ==

Author: Aidan Gauland
Date: 2010-08-31 20:33:14 NZST


Table of Contents
=
1 A heading


1 A heading

This is a broken footnote.[1].]

This will export to (as ASCII, for example)...

[1] Some book at [42-24

This is how I am required to cite books for my academic essays, so this
is a pretty serious bug for me (and no doubt other students, as well).

Regards,
Aidan Gauland

Emacs  : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-08-29 on dimension8
Package: Org-mode version 7.01trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/uc-files/uc-work.org")
 org-agenda-include-diary t
 org-completion-use-iswitchb t
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
 
[org-add-hook change-major-mode-hook org-show-block-all append local] 5]
 #[nil 
"\300\301\302\303\304$\207"
 
[org-add-hook change-major-mode-hook org-babel-show-result-all
append local] 5]
 
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil) (comment
org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
 )



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


[Orgmode] Bug: escaping a star in a heading [7.01trans]

2010-08-28 Thread Aidan Gauland
Escaping a star ('*') in a heading with a backslash works (i.e. exports
to a literal '*') when exporting to PDF (via LaTeX; probably because
LaTeX then processes it), but not when exporting to HTML.

My situation is that I have a heading which refers to a (C) pointer
variable, *x, "* A note on the variable *x".  When I exported this to
HTML, everything under the heading appeared as part of the heading.  I
then tried to escape the star with a backslash ("\*"), which eliminated
the confusion with the heading and its body, but the backslash showed up
in the heading: "* A note on the variable \*x".  This is obviously not
what I want, I wanted the backslash to prevent the star from being
treated by Org as rich-text markup (i.e. *bold*), and to be removed from
the final product.

Regards,
Aidan Gauland

Emacs  : GNU Emacs 24.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-08-26 on dimension8
Package: Org-mode version 7.01trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/uc-files/uc-work.org")
 org-agenda-include-diary t
 org-completion-use-iswitchb t
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
 
[org-add-hook change-major-mode-hook org-show-block-all append local] 5]
 #[nil 
"\300\301\302\303\304$\207"
 
[org-add-hook change-major-mode-hook org-babel-show-result-all
append local] 5]
 
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil) (comment
org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
 )



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


[Orgmode] Bug: org-insert-link path promt lacks tab-completion [7.01trans]

2010-08-09 Thread Aidan Gauland
If I enter or edit a link with org-insert-link, I only get
tab-completion for the URL prefix (e.g. fi  puts "file"), but not for
the path name for "file:" links.  So, if I type C-c C-l file:~/.ema
, I expect to get file:~/.emacs (the possibilities are .emacs and
.emacs.d/), but all I get is the message "[No prefix completions]" in
the minibuffer juxtaposed to what's already there (the message
disappears after about a second).


Emacs  : GNU Emacs 24.0.50.10 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-08-09 on neko
Package: Org-mode version 7.01trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe

org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-reveal-start-hook '(org-decrypt-entry)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '((lambda nil
(setq 
org-mouse-context-menu-function
 (quote 
org-mouse-context-menu))
(when
 (memq 
(quote context-menu) org-mouse-features)
 
(org-defkey org-mouse-map [mouse-3] nil)
 
(org-defkey org-mode-map [mouse-3]

(quote org-mouse-show-context-menu))
 )

(org-defkey org-mode-map [down-mouse-1]
 (quote 
org-mouse-down-mouse))
(when
 (memq 
(quote context-menu) org-mouse-features)
 
(org-defkey org-mouse-map [C-drag-mouse-1]

(quote org-mouse-move-tree))
 
(org-defkey org-mouse-map [C-down-mouse-1]

(quote org-mouse-move-tree-start))
 )
(when 
(memq (quote yank-link) org-mouse-features)
 
(org-defkey org-mode-map [S-mouse-2]

(quote org-mouse-yank-link))
 
(org-defkey org-mode-map [drag-mouse-3]

(quote org-mouse-yank-link))
 )
(when 
(memq (quote move-tree) org-mouse-features)
 
(org-defkey org-mouse-map [drag-mouse-3]

(quote org-mouse-move-tree))
 
(org-defkey org-mouse-map [down-mouse-3]

(quote org-mouse-move-tree-start))
 )
(when

[Orgmode] Bug: Attempt to export buffer with invalid #+BEGIN_SRC fails with cryptic message [6.36trans]

2010-07-13 Thread Aidan Gauland
Attempting to export a buffer with a #+BEGIN_SRC block with no language
specified (i.e. an argumentless #+BEGIN_SRC block) fails with the
message "apply: Wrong type argument: consp, nil".  This is rather
cryptic; it would be nice if Org-publish could say where it failed even
if not why it failed.

Emacs  : GNU Emacs 24.0.50.6 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-10 on neko
Package: Org-mode version 6.36trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 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-lob-execute-maybe org-babel-hash-at-point

org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)

(src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)

 (comment org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil)

 (dot org-export-blocks-format-dot nil))
 )



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


[Orgmode] Bug: Relative paths in file: links are expanded [6.36trans]

2010-07-13 Thread Aidan Gauland
If I create a link with C-c C-l and give it a relative "file:" link, a
link is created with an absolute path.  For example, C-c C-l
file:../foo.org  foo puts
[[file:~/path/to/working-directory/foo.org][foo]] in the buffer.  I was
expecting [[file:../foo.org][foo]].

Emacs  : GNU Emacs 24.0.50.6 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-10 on neko
Package: Org-mode version 6.36trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 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-lob-execute-maybe org-babel-hash-at-point

org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)

(src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)

 (comment org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil)

 (dot org-export-blocks-format-dot nil))
 )



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


[Orgmode] Bug: Org-publish needs to catch error [6.36trans]

2010-07-08 Thread Aidan Gauland
I am trying to use Org-mode and publish to create a website and forgot
to specify the publishing directory for a project (in
org-publish-project-alist).  I thought I had encountered a severe bug in
Org-publish when I was dumped into the debugger when I tried to publish
my project.  I suppose this is not so much a bug as it is an error that
should be detected and handled more elegantly (i.e. by Org-publish,
instead of the Emacs debugger) ;-).

Regards,
Aidan Gauland

Emacs  : GNU Emacs 24.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-05 on dimension8
Package: Org-mode version 6.36trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 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-lob-execute-maybe org-babel-hash-at-point
org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil) (comment
org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
 )



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


[Orgmode] Bug: longlines-mode [6.36trans]

2010-07-08 Thread Aidan Gauland
Normally, when I save an Org buffer with no trailing newline, a newline will
be placed at the end of the buffer (so that the file ends with a newline).
But when I enable longlines-mode, a newline is no longer added automatically,
and I must add one manually.  If I turn longlines-mode off, Emacs does not go
back to adding a newline automatically.  I'm not sure if this a bug with
Org-mode or longlines-mode or Emacs or what, but I have only noticed this when
using Org-mode.  If this is not a bug in Org-mode, I apologise and hope that
it's not any trouble for you to pass this on to the Emacs developers.

Emacs  : GNU Emacs 24.0.50.4 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-05 on neko
Package: Org-mode version 6.36trans

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 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-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 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-lob-execute-maybe org-babel-hash-at-point

org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)

(src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp "\\"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)

 (comment org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil)

 (dot org-export-blocks-format-dot nil))
 )



signature.asc
Description: OpenPGP digital signature
___
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