Re: [O] [Org-contacts] 3 2 1 go?
On Tue, Mar 08 2011, Michael Käufl wrote: Q1) links to contacts Is there a common way to create links to contacts? I'd say just the same way as for any Org entry. F1) csv export When writing bulk letters with LaTeX, all I need is a file with the recipients addresses in some predefined order. So it would be nice to have some export option where I can choose the properties and contacts I'd like to export and get a csv file. I think it's more an Org problem than an org-contacts one. :) F2) pgp keys I just started using gnus so I'm not quite familiar with it. According to [1] BBDB can be used to map recipients to pgp keys. So it would be great if org-contacts can support this in any way. I have no plans to use this at the moment, so no need to hurry. I'm not sure that's something you really need: Gnus GPG support just pick the key one address is for. You do not need to do a manual mapping. Unless you really want to, but that'd be weird. -- Julien Danjou ❱ http://julien.danjou.info pgp7BytCUqHWd.pgp Description: PGP signature
Re: [O] Version 7.5: C-c C-t anything fails with args out of range
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com writes: (defmacro org-with-wide-buffer (rest body) Execute body while temporarily widening the buffer. `(save-excursion (save-restriction (widen) ,@body))) Err... of course. Stupid me. Thanks for looking into this and for the fix -- applied now. Best, -- Bastien
Re: [O] Version 7.5: C-c C-t anything fails with args out of range
Hi David, David Maus dm...@ictsoc.de writes: What if BODY inserts or deletes characters inside the narrowed region? In this case the upper boundary of the region is no longer (point-max) before executing body. Thus the buffer might be narrowed to the wrong region after executing body. No, wait: If BODY inserts or deletes something inside OR above the region the boundaries of the originally narrowed region change, don't they? This would explain the error: Buffer is narrowed to a region that happens to end at eob. BODY deletes something inside the region, eob is decreased by the number of characters deleted. The call to `narrow-to-region' tries to narrow to a region with an upper boundary greater than eob -- and that's not possible. Solution? Not sure. The function must take into account that BODY modifies buffer in a way that changes buffer in a way that requires adjustment of the region boundaries OR even in a way that removes the part of buffer that contained the region. So something like this would fix it: Store markers of beginning and end of region. IIRC they will move with inserts and deletes. After executing body narrow to position of these markers if they exist. If marker for point-max is gone, use eob. If both are gone... Don't narrow at all? Thanks for the analysis -- now I guess everyone better understand the role of `save-restriction' and `save-excursion'. :) -- Bastien
[O] [Accepted] [Orgmode] Preserve trailing blank lines
Patch 617 (http://patchwork.newartisans.com/patch/617/) is now Accepted. Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C878vxhgsyy.fsf%40riotblast.dunsmor.com%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] Preserve trailing blank lines Date: Tue, 15 Feb 2011 21:31:17 - From: Jason Dunsmore emacs-orgm...@deathroller.dunsmor.com X-Patchwork-Id: 617 Message-Id: 878vxhgsyy@riotblast.dunsmor.com To: Bastien bastien.gue...@wikimedia.fr Cc: emacs-orgmode@gnu.org, Carsten Dominik carsten.domi...@gmail.com Bastien bastien.gue...@wikimedia.fr writes: However, with your patch, I get a weird behavior. Config: , | (setq org-blank-before-new-entry '((heading . nil) |(plain-list-item . nil))) ` Test file: , | * Section | | ** Subsection 1 | Body | | ** Subsection 2 | Body ` Trying to move Subsection 1 down (with org-metadown): , | * Section | Body ?? | | ** Subsection 2 | | ** Subsection 1 | Body ` Are you able to reproduce this? I finally had a chance to test this out with the latest Org from git and a vanilla Emacs config, and I was unable to reproduce the behavior you saw. Here is what I did: $ git clone git://orgmode.org/org-mode.git $ emacs23 -Q (Edit org.el to re-introduce patch.) $ cd org-mode/ $ git diff Then I evaluated the following in Emacs: (delete /usr/share/emacs/23.2/lisp/org/ load-path) (add-to-list 'load-path ~/tmp/org-mode/lisp) (require 'org-install) (setq org-blank-before-new-entry '((heading . nil) (plain-list-item . nil))) You can see what happened on my screen with the following: wget http://98.129.169.48/tmp/emacs-testing.time wget http://98.129.169.48/tmp/emacs-testing.script scriptreplay emacs-testing.time emacs-testing.script Would you mind testing it out again? Regards, Jason diff --git a/lisp/org.el b/lisp/org.el index 164081c..4329def 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -18507,10 +18507,10 @@ Taken from `count' in cl-seq.el with all keyword argum Move backwards over whitespace, to the beginning of the first empty line. Returns the number of empty lines passed. (let ((pos (point))) -(skip-chars-backward \t\n\r) -;; (if (cdr (assoc 'heading org-blank-before-new-entry)) -;;(skip-chars-backward \t\n\r) -;; (forward-line -1)) +;;(skip-chars-backward \t\n\r) +(if (cdr (assoc 'heading org-blank-before-new-entry)) + (skip-chars-backward \t\n\r) + (forward-line -1)) (beginning-of-line 2) (goto-char (min (point) pos)) (count-lines (point) pos)))
[O] Re: [Orgmode] [PATCH] Preserve trailing blank lines
Hi Jason, I finally had a chance to better understand what your patch does and fix. I've applied it now -- thanks for it and for your patience! -- Bastien
Re: [O] [PATCH] Adding known properties
Hi Sébastien, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I found out about (at least) 2 missing known properties. This patch adds them to the list. Thanks for catching this -- I've applied a modified patch, yours add EXPORT_DATE twice :) Best, -- Bastien
[O] [Accepted] [O, Bug] body-only Export Option Adds Extra html Tags.
Patch 662 (http://patchwork.newartisans.com/patch/662/) is now Accepted. Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C87fwqx3csc.fsf%40univ-nantes.fr%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [O,Bug] body-only Export Option Adds Extra html Tags. Date: Tue, 08 Mar 2011 19:30:27 - From: Manuel Giraud manuel.gir...@univ-nantes.fr X-Patchwork-Id: 662 Message-Id: 87fwqx3csc@univ-nantes.fr To: li...@manor-farm.org Cc: emacs-orgmode@gnu.org Manuel Giraud manuel.gir...@univ-nantes.fr writes: Ian Barton li...@manor-farm.org writes: So it looks like SHA: da8dc7bba72613131f97a28f1c4a912b8d85d7cc Rewrite the handling of HTML preamble/postamble caused the problem. I'll have a look at that. Is the /div and /body with no opening a normal behaviour for the :body-only option ? Ok this one was easy. Here's a patch that correct the body-only behaviour. From 82f25397a156e34d21339a5499c9a52c1b46f333 Mon Sep 17 00:00:00 2001 From: Manuel Giraud manuel.gir...@univ-nantes.fr Date: Tue, 8 Mar 2011 15:22:30 +0100 Subject: [PATCH 3/3] correct tag closing for body-only --- lisp/org-html.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 54cbf36..c60c90d 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1715,7 +1715,7 @@ lang=\%s\ xml:lang=\%s\ (if org-export-html-with-timestamp (insert org-export-html-html-helper-timestamp)) - (insert \n/div\n/body\n/html\n) + (unless body-only (insert \n/div\n/body\n/html\n)) (unless (plist-get opt-plist :buffer-will-be-killed) (normal-mode) -- 1.7.1
Re: [O] [Bug] body-only Export Option Adds Extra html Tags.
Manuel Giraud manuel.gir...@univ-nantes.fr writes: Ok this one was easy. Here's a patch that correct the body-only behaviour. Thanks for this! -- Bastien
Re: [O] Re: [REGRESSION] org-html.el (targets)
Hi Aankhen, Aankhen aank...@gmail.com writes: This one seemed easy to fix, so I thought I’d butt in. :-) Hope the format of the patch is right (I’m using hg-git). The patch was caught by patchwork, but wrongly wrapped. Thanks for it anyway! -- Bastien
Re: [O] Re: [REGRESSION] org-html.el (targets)
Hi Manuel, Manuel Giraud manuel.gir...@univ-nantes.fr writes: Thanks. Modulo line breakage this patch applies and Jambunathan's test file now validates XHTML 1.0 Here's the 2 patch that solve this: Thanks for the patches -- patchwork can only catch *one* patch per mail. I guess that's because people are encouraged to use git send-mail when they have several patches... May I ask you to rewrite these patches into a single one? Also, having a ChangeLog entry will help a lot. Thanks! -- Bastien
Re: [O] Re: [REGRESSION] org-html.el (targets)
Bastien b...@gnu.org writes: May I ask you to rewrite these patches into a single one? PS: I mean: merge all patches in this thread relevant to the problem, possibly including Aankhen patch. Thanks! -- Bastien
[Accepted] [O] Re: Footnote sorting bug
Patch 658 (http://patchwork.newartisans.com/patch/658/) is now Accepted. Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C8762rul8xr.fsf%40fastmail.fm%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [O] Re: Footnote sorting bug Date: Tue, 08 Mar 2011 06:04:00 - From: Matt Lundin m...@imapmail.org X-Patchwork-Id: 658 Message-Id: 8762rul8xr@fastmail.fm To: Org Mode emacs-orgmode@gnu.org Matt Lundin m...@imapmail.org writes: Matt Lundin m...@imapmail.org writes: I traced the problem to an extra forward-line added to org-footnote-goto-local-insertion-point with commit 145109dc4a6f161e4ad826bea9cc970363649280. The following patch fixes the sorting problem in org buffers. AFAICT, it has no effect on footnote insertion in message mode buffers with signatures. (Unfortunately, footnote sorting in message buffers with signatures is broken both before and after this patch.) My apologies. Please disregard this patch. It does not fix the issue and cause problems when creating footnotes. I'll take a closer look at the code when I get a chance. The following patch fixes the sorting bug. It also inserts a blank line above a new footnote definition, which is consistent with the spacing that results when sorting footnotes. --8---cut here---start-8--- --8---cut here---end---8--- Best, Matt diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index b6a9bca..f2b3489 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -314,7 +314,7 @@ or new, let the user edit the definition of the footnote. ;; Skip existing footnotes (while (re-search-forward ^[[:space:]]*\\[[^]]+\\] nil t) (forward-line)) -(insert [ label ] \n) +(insert \n[ label ] \n) (goto-char (1- (point))) (message Edit definition and go back with `C-c ' or, if unique, with `C-c C-c'.))) @@ -500,7 +500,7 @@ ENTRY is (fn-label num-mark definition). (when (re-search-forward (format .\\[%s[]:] (regexp-quote (car entry))) nil t) (org-footnote-goto-local-insertion-point) - (insert (format \n\n[%s] %s (car entry) (nth 2 entry)) + (insert (format \n[%s] %s\n (car entry) (nth 2 entry)) (defun org-footnote-goto-local-insertion-point () Find insertion point for footnote, just before next outline heading.
Re: [O] Re: Footnote sorting bug
Matt Lundin m...@imapmail.org writes: The following patch fixes the sorting bug. It also inserts a blank line above a new footnote definition, which is consistent with the spacing that results when sorting footnotes. Applied, thanks. -- Bastien
Re: [O] org-contacts from bbdb: a starting solution
Wes Hardaker wjhns...@hardakers.net writes: I finally decided to take a wack at a bbdb to org-contacts converter. I'm attaching the file below. It should prompt for a file and insert all your existing bbdb records into the file using the formats and fields that I decided was appropriate ;-) Thanks. This seems to work well. I convert 400 records and they seem to come through fine; well, for the fields you thought appropriate, of course... Are you intending to extend your code for not-so-appropriate fields? If so, I definitely would like to see the addresses converted and it would be quite useful to have the notes converted entry text for the org entry (i.e. not a property). Thanks again, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.645.g3887.dirty)
Re: [O] [PATCH] Adding known properties
Hi Bastien, Bastien wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I found out about (at least) 2 missing known properties. This patch adds them to the list. Thanks for catching this -- I've applied a modified patch, yours add EXPORT_DATE twice :) Hein? Not sure what you're talking about... diff --git a/lisp/org.el b/lisp/org.el index 92f2406..9205719 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13402,7 +13402,8 @@ but in some other way.) '(ARCHIVE CATEGORY SUMMARY DESCRIPTION CUSTOM_ID LOCATION LOGGING COLUMNS VISIBILITY TABLE_EXPORT_FORMAT TABLE_EXPORT_FILE -EXPORT_FILE_NAME EXPORT_TITLE EXPORT_AUTHOR EXPORT_DATE +EXPORT_FILE_NAME EXPORT_TITLE EXPORT_TEXT EXPORT_AUTHOR +EXPORT_DATE EXPORT_OPTIONS ORDERED NOBLOCKING COOKIE_DATA LOG_INTO_DRAWER REPEAT_TO_STATE CLOCK_MODELINE_TOTAL STYLE HTML_CONTAINER_CLASS) Some properties that are used by Org-mode for various purposes. Best regards, Seb -- Sébastien Vauban
[O] Org minor mode in mail-mode
Here is the the configuration I run (defun turn-on-full-org-mailing () (turn-on-orgstruct++) (turn-on-orgtbl) (load org-html-mail)) (add-hook 'mail-mode-hook 'turn-on-full-org-mailing) in order make use of Org minor mode (struct, tbl) within mail-mode. Unfortunately with this, calling M-q (fill-paragraph) right after the header separator (--text follows this line--) leads to filling the header along with the first paragraph of my mail. It turns out that the org minor mode rebinds M-q to `orgstruct-hijacker-command-22' : , | M-q runs the command orgstruct-hijacker-command-22, which is an | interactive Lisp function. | | It is bound to M-q. | | (orgstruct-hijacker-command-22 arg) | | In Structure, run `fill-paragraph'. | Outside of structure, run the binding of `\361'. ` Any idea on how to make use of org minor mode in mail-mode and still be able to fill-paragraph without impacting mail headers? -- René
Re: [O] [PATCH] Adding known properties
Bastien b...@altern.org writes: Hi Sébastien, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I found out about (at least) 2 missing known properties. This patch adds them to the list. Thanks for catching this -- I've applied a modified patch, yours add EXPORT_DATE twice :) Best, Hi Bastien, I don't think your version is correct. The original patch added EXPORT_TEXT and EXPORT_DATE (not EXPORT_DATE twice) and your version is missing EXPORT_TEXT. Regards, -- Bernt
Re: [O] [PATCH] Adding known properties
Hi Bernt, Bernt Hansen be...@norang.ca writes: I don't think your version is correct. The original patch added EXPORT_TEXT and EXPORT_DATE (not EXPORT_DATE twice) and your version is missing EXPORT_TEXT. Right, I just fixed this... -- Bastien, who gets a bit of a post-release hang-over
Re: [O] [PATCH] Adding known properties
Hi Sébastien, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Thanks for catching this -- I've applied a modified patch, yours add EXPORT_DATE twice :) Hein? Not sure what you're talking about... I'm talking about _nothing_ -- just misread your patch. Sorry for that! -- Bastien
Re: [O] Re: [REGRESSION] org-html.el (targets)
Bastien b...@altern.org writes: Bastien b...@gnu.org writes: May I ask you to rewrite these patches into a single one? PS: I mean: merge all patches in this thread relevant to the problem, possibly including Aankhen patch. Thanks! Ok, here it is. Hopes this one's ok. From a9e692243b37be9947db9a7220ea561d261deaba Mon Sep 17 00:00:00 2001 From: Manuel Giraud manuel.gir...@univ-nantes.fr Date: Wed, 9 Mar 2011 16:03:43 +0100 Subject: [PATCH] Correct HTML export of dedicated target. * org-html.el (org-format-org-table-html): fix anchors in HTML export (thanks to aank...@gmail.com) (org-html-protect): fix a bug that prevents some target to be rendered correctly. * org-exp.el (org-solidify-link-text): a single - to avoid a ndash rewrite in HTML export later. --- lisp/org-exp.el |2 +- lisp/org-html.el | 14 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 709317a..dff86b6 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2062,7 +2062,7 @@ can work correctly. (let* ((rtn (mapconcat 'identity - (org-split-string s [^a-zA-Z0-9_\\.-]+) --)) + (org-split-string s [^a-zA-Z0-9_\\.-]+) -)) (a (assoc rtn alist))) (or (cdr a) rtn diff --git a/lisp/org-html.el b/lisp/org-html.el index 333cf4d..54cbf36 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1996,8 +1996,8 @@ for formatting. This is required for the DocBook exporter. ;; DocBook document, we want to always include the caption to make ;; DocBook XML file valid. (push (format caption%s/caption (or caption )) html) - (when label (push (format a name=\%s\ id=\%s\/a (org-solidify-link-text label) (org-solidify-link-text label)) - html)) + (when label + (setq html-table-tag (org-export-splice-attributes html-table-tag (format id=\%s\ (org-solidify-link-text label) (push html-table-tag html)) (setq html (mapcar (lambda (x) @@ -2181,12 +2181,12 @@ that uses these same face definitions. (defun org-html-protect (s) Convert characters to HTML equivalent. Possible conversions are set in `org-export-html-protect-char-alist'. - (let ((start 0) - (cl org-export-html-protect-char-alist) c) + (let ((cl org-export-html-protect-char-alist) c) (while (setq c (pop cl)) - (while (string-match (car c) s start) - (setq s (replace-match (cdr c) t t s) - start (1+ (match-beginning 0) + (let ((start 0)) + (while (string-match (car c) s start) + (setq s (replace-match (cdr c) t t s) + start (match-beginning 0) s)) (defun org-html-expand (string) -- 1.7.1 -- Manuel Giraud
Re: [O] org-contacts from bbdb: a starting solution
On Wed, 09 Mar 2011 11:46:50 +, Eric S Fraga e.fr...@ucl.ac.uk said: ESF Are you intending to extend your code for not-so-appropriate fields? If ESF so, I definitely would like to see the addresses converted and it would ESF be quite useful to have the notes converted entry text for the org entry ESF (i.e. not a property). I thought about trying to create a generic 'list' of matching 'this' to 'that' but hadn't gotten to it yet. I'd be happy to change the notes so it went under the properties, if that's what you want? I think you want what is attached. -- Wes Hardaker My Pictures: http://capturedonearth.com/ My Thoughts: http://pontifications.hardakers.net/ (require 'bbdb) (require 'bbdb-com) (defvar bbdb-to-org-contacts-record-prefix ***) (defvar bbdb-to-org-contacts-record-blanks) (defun bbdb-to-org-contacts (to-file) outputs a org-contacts file (interactive (list (read-file-name Save in file: ))) (let* ((filename (expand-file-name to-file)) (records (bbdb-records))) (find-file filename) (while records (bbdb-record-to-org-record (car records)) (setq records (cdr records))) )) (defun bbdb-record-to-org-record (record) converts a single record (let* ( (name(bbdb-record-name record)) (company (bbdb-record-company record)) (net (bbdb-record-net record)) (aka (bbdb-record-aka record)) (phone (bbdb-record-phones record)) (address (bbdb-record-addresses record)) (notes (bbdb-record-notes record)) ) (insert (format %s %s\n bbdb-to-org-contacts-record-prefix name)) (insert (format %s :PROPERTIES:\n bbdb-to-org-contacts-record-blanks)) (when aka (insert (format %s :AKA:\t%s\n bbdb-to-org-contacts-record-blanks (mapconcat (function (lambda(str) str)) aka , (when net (insert (format %s :EMAIL:\t%s\n bbdb-to-org-contacts-record-blanks (mapconcat (function (lambda(str) str)) net (when company (insert (format %s :COMPANY:\t%s\n bbdb-to-org-contacts-record-blanks company))) (when phone (insert (mapconcat (function (lambda(rec) (if (stringp (elt rec 1)) (format %s :PHONE_%s:\t%s bbdb-to-org-contacts-record-blanks (upcase (elt rec 0)) (elt rec 1)) (let ((len (length rec)) (count 2) (output (format %d (elt rec 1 (while ( count (1- len)) (setq output (concat output (format -%d (elt rec count (setq count (1+ count))) (format %s :PHONE_%s:\t%s bbdb-to-org-contacts-record-blanks (upcase (elt rec 0)) output) phone \n)) (insert \n)) (insert (format %s :END:\n bbdb-to-org-contacts-record-blanks)) (when notes (insert (format %s - %s\n bbdb-to-org-contacts-record-blanks notes))) )) (provide 'bbdb-to-org-contacts)
[Accepted] [O] Re: [REGRESSION] org-html.el (targets)
Patch 664 (http://patchwork.newartisans.com/patch/664/) is now Accepted. Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C87fwqwnxj6.fsf%40univ-nantes.fr%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [O] Re: [REGRESSION] org-html.el (targets) Date: Wed, 09 Mar 2011 20:06:37 - From: Manuel Giraud manuel.gir...@univ-nantes.fr X-Patchwork-Id: 664 Message-Id: 87fwqwnxj6@univ-nantes.fr To: Bastien b...@altern.org Cc: Bernt Hansen be...@norang.ca, Aankhen aank...@gmail.com, Org-mode ml emacs-orgmode@gnu.org Bastien b...@altern.org writes: Bastien b...@gnu.org writes: May I ask you to rewrite these patches into a single one? PS: I mean: merge all patches in this thread relevant to the problem, possibly including Aankhen patch. Thanks! Ok, here it is. Hopes this one's ok. From a9e692243b37be9947db9a7220ea561d261deaba Mon Sep 17 00:00:00 2001 From: Manuel Giraud manuel.gir...@univ-nantes.fr Date: Wed, 9 Mar 2011 16:03:43 +0100 Subject: [PATCH] Correct HTML export of dedicated target. * org-html.el (org-format-org-table-html): fix anchors in HTML export (thanks to aank...@gmail.com) (org-html-protect): fix a bug that prevents some target to be rendered correctly. * org-exp.el (org-solidify-link-text): a single - to avoid a ndash rewrite in HTML export later. --- lisp/org-exp.el |2 +- lisp/org-html.el | 14 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 709317a..dff86b6 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -2062,7 +2062,7 @@ can work correctly. (let* ((rtn (mapconcat 'identity - (org-split-string s [^a-zA-Z0-9_\\.-]+) --)) + (org-split-string s [^a-zA-Z0-9_\\.-]+) -)) (a (assoc rtn alist))) (or (cdr a) rtn diff --git a/lisp/org-html.el b/lisp/org-html.el index 333cf4d..54cbf36 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1996,8 +1996,8 @@ for formatting. This is required for the DocBook exporter. ;; DocBook document, we want to always include the caption to make ;; DocBook XML file valid. (push (format caption%s/caption (or caption )) html) - (when label (push (format a name=\%s\ id=\%s\/a (org-solidify-link-text label) (org-solidify-link-text label)) - html)) + (when label + (setq html-table-tag (org-export-splice-attributes html-table-tag (format id=\%s\ (org-solidify-link-text label) (push html-table-tag html)) (setq html (mapcar (lambda (x) @@ -2181,12 +2181,12 @@ that uses these same face definitions. (defun org-html-protect (s) Convert characters to HTML equivalent. Possible conversions are set in `org-export-html-protect-char-alist'. - (let ((start 0) - (cl org-export-html-protect-char-alist) c) + (let ((cl org-export-html-protect-char-alist) c) (while (setq c (pop cl)) - (while (string-match (car c) s start) - (setq s (replace-match (cdr c) t t s) - start (1+ (match-beginning 0) + (let ((start 0)) + (while (string-match (car c) s start) + (setq s (replace-match (cdr c) t t s) + start (match-beginning 0) s)) (defun org-html-expand (string) -- 1.7.1
Re: [O] Re: [REGRESSION] org-html.el (targets)
Hi Manuel, Manuel Giraud manuel.gir...@univ-nantes.fr writes: Bastien b...@altern.org writes: Bastien b...@gnu.org writes: May I ask you to rewrite these patches into a single one? PS: I mean: merge all patches in this thread relevant to the problem, possibly including Aankhen patch. Thanks! Ok, here it is. Hopes this one's ok. It is! Thanks a lot :) Next step is to use git send-mail :) -- Bastien
Re: [O] org-mode with pyblosxom or blosxom?
I use org-mode with pyBlosxom, though I haven't posted anything for a month of Sundays. I don't use org-mode to maintain the blog, only to compose. Generally, I just export a subtree to HTML and save that in a folder that pyBlosxom knows about. The only catch is the need to strip the id attributes that org-mode adds (because they will be duplicated between entries). Smarter things to do would be to either add a Markdown exporter to org-mode, or to add an org-markup interpreter to pyBlosxom, but I haven't been sufficiently motivated to do either of those. I also do all this manually, because it's just not very much work to do so. On Sat, Mar 5, 2011 at 12:42 PM, Vinh Nguyen vinhdi...@gmail.com wrote: Dear list, Is anyone currently using org-mode in conjunction with pyblosxom or blosxom for their blogs? I think there might be a few out there doing so because I found [[http://comments.gmane.org/gmane.emacs.orgmode/18069][this]] thread referring to it. If so, do you have any notes to share? I'm exploring the idea of migrating from wordpress to it. Thanks. -- Vinh -- Jason F. McBrayer http://jfm.carcosa.net/
Re: [O] latex fragments, dvipng and mathjax
Aankhen aank...@gmail.com wrote: FWIW, same here. Firefox 3.6.15 on Windows 7. Given that both pages specify the MathJax_Math font yet only mathjax.org actually looks like it uses it, you’re probably right about MathJax having trouble finding the fonts on yours. I tried a couple other browsers. IE8 aborts the script after an error on “Line 1, char 6” (I think that’s because of the nest of CDATA, HTML comments and JS comments), while Chrome seems to be using the right font. So I guess this is a Firefox thing. The FAQ mentions Firefox’s same-origin policy in the context of image fonts being used instead of web fonts.[1] Seems unlikely to be the culprit in this case though. *shrugs* Hope this helps narrow it down a little. Aankhen [1]: http://www.mathjax.org/resources/faqs/#image-fonts Thanks for this! I probably won't be able to try anything out in the next few days, but I'll probably spend some time during the weekend on this. Thanks, Nick
Re: [O] Re: [Orgmode] HTML export options are being ignored
Bastien b...@altern.org writes: Also, I have no title when I set the title with #+TITLE: on the first line. I'm not sure if this has to do with org-export-html-title-format being removed. Mhh.. I cannot reproduce this. Can you check again? I was mistaken. It was exporting a title. However, it wasn't exporting the h1 header with the title. I needed to append the following to my :html-preamble for it to have the old behavior: h1 class=\title\%t/h1 So when :html-preamble isn't defined, #+TITLE: affects both title and h1. But when :html-preamble is defined, #+TITLE: only affects title. Is this a bug? It makes sense to me that #TITLE: would add an h1 page heading with or without :html-preamble being defined. Regards, Jason
Re: [O] Release 7.5
I'm a little late, but thanks to Bastien and everyone involved, and congratulations on the release! Best, At Mon, 07 Mar 2011 15:42:19 +0100, Bastien wrote: Dear all, here it is, release 7.5, my first release as Org's new maintainer. This release comes with lots of new features, bug fixes, and fun. -- Cássio Koshikumo
Re: [O] Re: [Orgmode] HTML export options are being ignored
Hi Jason, Jason Dunsmore emacs-orgm...@dunsmor.com writes: Is this a bug? It makes sense to me that #TITLE: would add an h1 page heading with or without :html-preamble being defined. Yes, there are still problems in this area -- see my last patch and tell me if this does things right for you. Best, -- Bastien
Re: [O] Version 7.5: org-export-html-preamble no longer supports function
Hi Bill, Bill Jackson w...@jacksonhost.com writes: In version 7.4, org-export-html-preamble and org-export-html-postamble could be set to the name of a function that was passed an option plist. See my last patch. It allows to set org-export-html-pre/postamble to a function that will return a string. The function take opt-plist as its only argument -- as org-export-html-preamble used to do. Let me know if it works for you! Thanks, -- Bastien
[O] Rework org-export-html-preamble/postamble (again)
Hopefully this patch will solve a few issues that have just been raised about the new behavior of org-export-html-preamble/postamble. `org-export-html-preamble' defaults back to `t', to reproduce the previous default behavior. `org-export-html-postamble' default to 'auto -- which mean that org-export-email/author/creator-info will be honored by default. When this is set to `t', the postamble will be inserted from the formatting string in `org-export-html-postamble-format'. When set to a string, this formatting string will be replaced by this string. Both variables also support functions, as org-export-html-preamble and org-export-html-postamble used to (but that wasn't documented). Please test carefully and tell me if this is okay to apply. Thanks! From 990063c31f1f365667017b4780a347ff9dbdeb1c Mon Sep 17 00:00:00 2001 From: Bastien Guerry b...@altern.org Date: Wed, 9 Mar 2011 17:13:40 +0100 Subject: [PATCH] Rework org-export-html-preamble/postamble (again). * org-html.el (org-export-html-insert-plist-item): Remove. (org-export-html-preamble): Default to `t'. Accept functions. (org-export-html-postamble): Default to `auto'. Accept functions and distinguish between 'auto (no formatting string) and `t' (default formatting string). (org-export-as-html): Handle org-export-html-preamble and org-export-html-postamble new defaults/allowed values. --- lisp/org-html.el | 158 -- 1 files changed, 93 insertions(+), 65 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index c60c90d..d5ea1a3 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -343,13 +343,22 @@ CSS classes, then this prefix can be very useful. :group 'org-export-html :type 'string) -(defcustom org-export-html-preamble nil +(defcustom org-export-html-preamble t Non-nil means insert a preamble in HTML export. -If this is a string, use it as a formatting string it instead of -`org-export-html-preamble-format'. Setting :html-preamble in -publishing projects will override this. +When `t', insert a string as defined by +`org-export-html-preamble-format'. When set to a string, this +string overrides `org-export-html-preamble-format'. When set to +a function, apply this function and insert the returned string. +The function takes the property list of export options as its +only argument. + +Setting :html-preamble in publishing projects will take +precedence over this variable. :group 'org-export-html - :type 'boolean) + :type '(choice (const :tag No preamble nil) + (const :tag Default preamble t) + (string :tag Custom formatting string) + (function :tag Function (must return a string (defcustom org-export-html-preamble-format '((en h1 class=\title\%t/h1)) @@ -362,13 +371,26 @@ like that: \%%\. :group 'org-export-html :type 'string) -(defcustom org-export-html-postamble nil +(defcustom org-export-html-postamble 'auto Non-nil means insert a postamble in HTML export. -If this is a string, use it as a formatting string it instead of -`org-export-html-postamble-format'. Setting :html-postamble in -publishing projects will override this. + +When `t', insert a string as defined by +`org-export-html-postamble-format'. When set to a string, this +string overrides `org-export-html-postamble-format'. When set to +'auto, discard `org-export-html-postamble-format' and honor +`org-export-author/email/creator-info' variables. When set to a +function, apply this function and insert the returned string. +The function takes the property list of export options as its +only argument. + +Setting :html-postamble in publishing projects will take +precedence over this variable. :group 'org-export-html - :type 'boolean) + :type '(choice (const :tag No postamble nil) + (const :tag Auto preamble 'auto) + (const :tag Default formatting string t) + (string :tag Custom formatting string) + (function :tag Function (must return a string (defcustom org-export-html-postamble-format '((en p class=\author\Author: %a (%e)/p @@ -1277,19 +1299,23 @@ lang=\%s\ xml:lang=\%s\ ))) ;; insert html preamble - (if (plist-get opt-plist :html-preamble) - (let* ((html-preamble (plist-get opt-plist :html-preamble)) - (html-preamble-format - (if (stringp html-preamble) - html-preamble - (cadr (or (assoc (nth 0 lang-words) - org-export-html-preamble-format) -(assoc en org-export-html-preamble-format)) - (insert (format-spec html-preamble-format - `((?t . ,title) - (?a . ,author) (?d . ,date) (?e . ,email) - (insert h1 class=\title\ title /h1))) - + (when (plist-get opt-plist :html-preamble) + (let ((html-pre (plist-get opt-plist :html-preamble))) + (cond ((stringp html-pre) + (insert + (format-spec html-pre `((?t . ,title) (?a . ,author) + (?d . ,date) (?e . ,email) + ((functionp html-pre) + (funcall html-pre opt-plist)) + (t + (insert
[O] [PATCH] Make tangling work in an indirect buffer
The attached patch makes tangling (org-babel-tangle) work in indirect buffers. Previously it would fail before running org-babel-post-tangle-hook because indirect have a buffer-file-name of nil whereas the code was expecting a string in the following fragment: (message tangled %d code block%s from %s block-counter (if (= block-counter 1) s) (file-name-nondirectory (buffer-file-name (or (buffer-base-buffer) (current-buffer) I hope the patch is in the correct format. Shaun. From d11bae118dcc1e69fd148002a55e4ae29551c319 Mon Sep 17 00:00:00 2001 From: Shaun Johnson sh...@slugfest.demon.co.uk Date: Wed, 9 Mar 2011 15:32:40 + Subject: [PATCH] Babel: Stop tangling failing in an indirect buffer * ob-tangle.el (org-babel-tangle): Make it work in an indirect buffer. The problem was that the message generated after tangling included the file name of the current buffer which was nil in an indirect buffer. TINYCHANGE --- lisp/ob-tangle.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index 4e203be..f7f7047 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -243,7 +243,7 @@ exported source code blocks by language. (org-babel-tangle-collect-blocks lang)) (message tangled %d code block%s from %s block-counter (if (= block-counter 1) s) - (file-name-nondirectory (buffer-file-name (current-buffer + (file-name-nondirectory (buffer-file-name (or (buffer-base-buffer) (current-buffer) ;; run `org-babel-post-tangle-hook' in all tangled files (when org-babel-post-tangle-hook (mapc -- 1.7.4.msysgit.0
[O] org-nil error in LaTeX export
I am having a problem with exporting to LaTeX from org-mode. I am running org-mode 7.5 in Emacs 23.1.1 on 64-bit Ubuntu 10.10. (I am using the stable version, but the same error occurs when I use the development version from git.) When I run C-c C-e d, I receive the error message Cannot open load file: org-nil. The file I am using and the backtrace output are pasted below. Best wishes, Brenton Kenkel --- begin file: --- +TITLE: Test #+AUTHOR: test author * hello export me end file begin backtrace: Debugger entered--Lisp error: (file-error Cannot open load file org-nil) require(org-nil nil) (let* ((backend-name ...) (f ...)) (require (intern ...) nil) (funcall f parameters)) (save-current-buffer (set-buffer (get-buffer-create org-mode-tmp)) (erase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (org-clone-local-variables source-buffer ^\\(org-\\|orgtbl-\\)) (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files-recurse) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-mark-list-end) (org-export-blocks-preprocess) (org-export-mark-list-properties) (org-export-replace-src-segments-and-examples) (org-export-protect-colon-examples) (org-export-convert-protected-spaces) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (run-hooks (quote org-export-preprocess-after-headline-targets-hook)) (org-export-remember-html-container-classes) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... \n)) (org-export-remove-headline-metadata parameters) (setq target-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) (org-export-select-backend-specific-text) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-attributes target-alist)) (org-export-mark-radio-links) (run-hooks (quote org-export-preprocess-after-radio-targets-hook)) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) (org-export-normalize-links) ...) (with-current-buffer (get-buffer-create org-mode-tmp) (erase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (setq case-fold-search t) (org-clone-local-variables source-buffer ^\\(org-\\|orgtbl-\\)) (org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify (point-min) (point-max)) (org-export-handle-include-files-recurse) (run-hooks (quote org-export-preprocess-after-include-files-hook)) (org-export-remove-archived-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags (plist-get parameters :select-tags) (plist-get parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hook)) (org-export-mark-list-end) (org-export-blocks-preprocess) (org-export-mark-list-properties) (org-export-replace-src-segments-and-examples) (org-export-protect-colon-examples) (org-export-convert-protected-spaces) (when (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-export-define-heading-targets target-alist)) (run-hooks (quote org-export-preprocess-after-headline-targets-hook)) (org-export-remember-html-container-classes) (org-export-remove-or-extract-drawers drawers (plist-get parameters :drawers)) (when (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (insert ... \n)) (org-export-remove-headline-metadata parameters) (setq target-alist
Re: [O] org-nil error in LaTeX export
Hi Brenton, Brenton Kenkel brenton.ken...@gmail.com writes: I am having a problem with exporting to LaTeX from org-mode. I am running org-mode 7.5 in Emacs 23.1.1 on 64-bit Ubuntu 10.10. I cannot reproduce it -- can you test with a bare emacs -q ? Also, please make sure to remove any previous Org installation. Best, -- Bastien
Re: [O] Release 7.5
Indeed, congrats to Bastien and all! One question: I'm using the new export stuff from org-jambu (git master branch); any idea when Jambunathan will rebase or merge with this?
Re: [O] org-nil error in LaTeX export
Bastien b...@altern.org wrote: Hi Brenton, Brenton Kenkel brenton.ken...@gmail.com writes: I am having a problem with exporting to LaTeX from org-mode. I am running org-mode 7.5 in Emacs 23.1.1 on 64-bit Ubuntu 10.10. I cannot reproduce it -- can you test with a bare emacs -q ? Also, please make sure to remove any previous Org installation. I cannot reproduce it either: the only way that this could happen is if the :for-backend property is missing when org-export-preprocess-string is called. But org-export-latex-first-lines sets that explicitly - *if* you have a consistent version of org. But Brenton seems indeed to be using remnants of an old installation. His backtrace shows: , | org-export-preprocess-string(#(#+TITLE: Test\n#+AUTHOR: test | author\n\n 0 8 (fontified nil font-lock-fontified t) 8 9 (fontified | nil) 9 13 (fontified nil font-lock-fontified t) 13 14 (fontified nil) | 14 23 (fontified nil font-lock-fontified t) 23 24 (fontified nil) 24 | 35 (fontified nil font-lock-fontified t) 35 37 (fontified nil)) | :for-LaTeX t :emph-multiline t :add-text nil :comments nil | :skip-before-1st-heading nil :LaTeX-fragments nil :timestamps t | :footnotes t) | org-export-latex-first-lines((:latex-image-options width=10em | :exclude-tags (noexport) :select-tags (export) | :publishing-directory nil :timestamp nil :expand-quoted-html t | :html-table-tag table border=\2\ cellspacing=\0\ | cellpadding=\6\ rules=\groups\ frame=\hsides\ :xml-declaration | ((html . ?xml version=\1.0\ encoding=\%s\?) (php . ?php | echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ ?\; ?)) | :html-postamble nil :html-preamble nil :html-extension html | :inline-images maybe :convert-org-links t :agenda-style | :style-extra :style :style-include-scripts t | :style-include-default t :table-auto-headline t :tables t | :time-stamp-file t :creator-info t :email-info nil :author-info t | :email brenton@veblen ...) nil) ` The :for-LaTeX t stuff on the marked line seems to indicate left-overs that have gone stale. Nick
Re: [O] Release 7.5
Hi Gary, Gary Oberbrunner ga...@oberbrunner.com writes: One question: I'm using the new export stuff from org-jambu (git master branch); any idea when Jambunathan will rebase or merge with this? The plan is to work together on this and try to have something merged for the next release. But devil is in the details -- we don't really know what something stands for now. But in any case, this is absolutely not forgotten, and high in the todo list. Best, -- Bastien
[O] Re: [Orgmode] Feature Request: attach link type
At Sat, 05 Mar 2011 10:14:17 +0100, Bastien b...@altern.org wrote: Hello Bastien, Sorry for the late reply. For some reason (path related) Emacs was loading an older version of org instead of the one from git and I wasn't seeing your changes. Hi Darlan, Darlan Cavalcante Moreira darc...@gmail.com writes: I knew there was some variable to control this for all elisp links. I would prefer not to set this to nil, since I like the confirmation for other elisp links and since links for attached files are common for me I thought it could be a built-in link. But that's OK. I just introduced `org-confirm-elisp-link-not-regexp' which allows the user to avoid confirmation step for elisp code matching a regexp. Hope that helps in your case. I tested this and it works perfectly. Thanks! My common use scenario for org-attach is to store files associated to a sub-tree. For instance, when I receive a file by E-mail that I need to read I create a task for it and attach the file. I usually need to change the file name, since I don't like spaces and If would be practical if I could attach the file as it is and know that org-attach would store it the way I like. Is there a hook I could use to do this myself then? (I'm not a lisp programmer, but think I can google tips about how to do this). I've been working a bit on your idea, it's possible to create a function and to use it to rename a file when the user is attaching it - but there are problems: for example, if this function changes, then there will be *several* attachements for the same file... we don't want that. So, renaming the file belongs elsewhere IMHO. I understand. I may be using org-attach in a way a little different from what it was originally intended to. - When a file is attached a link to it could be stored in the kill ring, in case the user want to insert it in the current text. Alternatively, an interactive function to insert a link to an attached file (using the same completions we already get for opening attached files) would also be very handy. Yes, good idea. From latest git, set `org-attach-store-link-p' to `t' if you want a link to be stored in `org-stored-links' when attaching a file. This is even better then storing it in the kill ring. I noticed that the link points to the location of the original file and not to the location where it was attached (which is what thought it would do). Is this what you intended? Yes. Since the file is now also available as an attachment, a link to the source file might be useful, while a link to the attached file is a bit redundant with what org-attach allows you to do (get the file). Does that make sense? Thanks, -- Bastien I think yes and no, depending on what the user wants to do. I my case I use org-attach as a way to store files related to org that *I don't need to access outside org-mode*. For files that I access outside org-mode I don't attach it at all. I just use links to the file when I need to. Therefore I almost always delete the original file after attaching it and that's why IMHO the stored link should point to the location where the file was attached to. Again, maybe I'm just using org-attach in a way a little different from what it was originally intended to. That's why for me It makes sense to create an attach link type. -- Darlan Cavalcante
Re: [O] Release 7.5
Thanks -- you guys rock! -- Gary
[O] Question about org-beamer overlays
I use beamer for presentations and appreciate the fine-grained control over effects that it provides. For instance, I can combine overlay specifications with includegraphics to mix and match different text and images on the same frame. --8---cut here---start-8--- \begin{frame} \frametitle{A Title} \begin{columns}[c] \column{2in} \begin{itemize} \item \emph{Text on first and second slides} \begin{itemize} \item2- Text on second slide \item2- \textbf3{Text on second slide, bold on third slide} \end{itemize} \end{itemize} \column{3in} \includegraphics1[height=3in]{image1.jpg} % first slide only \includegraphics2[height=3in]{image2.jpg} % second slide only \includegraphics3[height=3in]{image3.jpg} % third slide only \end{columns} \end{frame} --8---cut here---end---8--- Any ideas how I might accomplish similar effects in org-beamer (without having too hack up the org file with too much LaTeX code)? More generally, I'd be curious to learn how others use org beamer. Is its primary purpose to create quick and dirty bullet-point presentations? I generally find that I have to insert so much LaTeX code into the org outline that it defeats the purpose of using org for drafting the presentation. So perhaps I'm too fussy. :) Any insights and/or advice would be greatly appreciated. Best, Matt
Re: [O] Version 7.5: org-export-html-preamble no longer supports function
Bastien wrote, On 3/9/2011 8:19 AM: Bill Jacksonw...@jacksonhost.com writes: In version 7.4, org-export-html-preamble and org-export-html-postamble could be set to the name of a function that was passed an option plist. See my last patch. It allows to set org-export-html-pre/postamble to a function that will return a string. The function take opt-plist as its only argument -- as org-export-html-preamble used to do. Let me know if it works for you! This works for me. I have not tested it _carefully_, but I did apply your patch and my setup now works as it did before. (Of course :preamble and :postamble needed to be changed to :html-preamble :html-postamble for org-publish.) I must say that I am impressed by the work of everyone involved with org-mode. I have been using the package for over a year and I love the simplicity, power, and flexibility. To receive responses so quickly, and to questions regarding undocumented features no less, is amazing. Many thanks!
Re: [O] Version 7.5: org-export-html-preamble no longer supports function
I had read this discussion thread (more than once!), but have not been able to figure out how to accomplish what I was doing under 7.4 without support for passing a function in org-export-html-preamble. I know how to generate a preamble, but not how to generate one customized for each .org source file. Am I missing something? Jeff Horn wrote, On 3/8/2011 7:35 PM: See http://article.gmane.org/gmane.emacs.orgmode/37360/match=preamble On Tue, Mar 8, 2011 at 9:12 PM, Bill Jacksonw...@jacksonhost.com wrote: In version 7.4, org-export-html-preamble and org-export-html-postamble could be set to the name of a function that was passed an option plist. This appears to no longer be supported in 7.5. I used this functionality when publishing to generate a preamble and postamble to integrate the generated pages into my website, which included a common page layout, header bar, and footer. I was able to define options in org-export-inbuffer-options-extra, define values for these options in a .org file, and incorporate them into the preamble via the option plist passed to the org-export-html-preamble function. Is there another way in version 7.5 that I can generate custom preambles and postambles incorporating variables from each file at the time of publishing? With much thanks, Bill
[O] Bug: capture template target file+datetree+prompt not valid. [7.4]
I set up my capture template as follows: (setq org-capture-templates '((t Todo entry (file+headline ~/repo/org/refile.org Task) * TODO %?\n %i%T\n %i%U\n %a\n :clock-in t :clock-resume t) (n Note entry (file ~/repo/org/refile.org) * %?\n %U\n %a\n :CLOCK:\n :END: :clock-in t :clock-resume t) (r Routine entry (file+datetree+prompt ~/repo/org/x.org) * Content ommited) )) and I expect it prompt out an inbox for me to select date after I recall org-capture and choose r. But it turns out file+datetree+prompt is not a valid value for target. Emacs simple returns an error message: Invalid time specification. Did I miss something? Or did I just found a bug? Thank you guys in advance :) Emacs : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.22.1) of 2011-03-06 on zzz-laptop Package: Org-mode version 7.4 -- Best Regards, Zhang Zhizhong Department of Computer Science Sun Yat-sen University
[O] How to change column view background color ?
hi, I'm using color-theme-charcoal-black with org-mode on ntemacs-23.2.1. When I turn on column-view the view display in white background. Which make it very difficult to read. http://26.media.tumblr.com/tumblr_lhsnjosKkt1qhjuqco1_400.png How can I change the background color of column view ? Or, even better, how can I teach column-view to aware of dark-theme ? Thanks
[O] lists and fill-region
Hi all, after upgrading to the current git head (from a version around 6.36), fill-region produces wrong indentation for my lists. Starting with - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short and marking the second item via mark-paragraph followed by fill-region results in - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short I have tried different settings for org-list-ending-method but this doesn't change the result. Has anybody seen this or know a fix? Thank you, Michael
Re: [O] Re: [REGRESSION] org-html.el (targets)
Hi Bastien, On Wed, Mar 9, 2011 at 16:06, Bastien b...@altern.org wrote: Aankhen aank...@gmail.com writes: This one seemed easy to fix, so I thought I’d butt in. :-) Hope the format of the patch is right (I’m using hg-git). The patch was caught by patchwork, but wrongly wrapped. Thanks for it anyway! Glad I could help. :-) I guess I messed up the line endings, going by what Manuel and you said. Not sure how that happened. I’ll see if I can figure out how to prevent it in future. Aankhen
[O] Re: lists and fill-region
michael hohn mhh...@gmail.com writes: Hi all, after upgrading to the current git head (from a version around 6.36), fill-region produces wrong indentation for my lists. Starting with - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short and marking the second item via mark-paragraph followed by fill-region results in - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short I can reproduce this. It occurs only when marking a region, not when calling fill paragraph directly on the item. A related bug: - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short If one calls unfill-paragraph on the very, very line above, nothing happens. In the past, unfill paragraph would turn the item into a single line, which is very convenient for fixing improperly indented multi-line items. Best, Matt
Re: [O] How to change column view background color ?
Hi, On Wed, Mar 9, 2011 at 19:52, sakesun roykiattisak sake...@gmail.com wrote: hi, I'm using color-theme-charcoal-black with org-mode on ntemacs-23.2.1. When I turn on column-view the view display in white background. Which make it very difficult to read. http://26.media.tumblr.com/tumblr_lhsnjosKkt1qhjuqco1_400.png How can I change the background color of column view ? I believe you should be able to do this by changing the ‘org-column’ face. Try ‘M-x customize-face RET org-column’. Aankhen
Re: [O] Bug: capture template target file+datetree+prompt not valid. [7.4]
Zhang Zhizhong i...@zzzcn.info wrote: I set up my capture template as follows: (setq org-capture-templates '((t Todo entry (file+headline ~/repo/org/refile.org Task) * TODO %?\n %i%T\n %i%U\n %a\n :clock-in t :clock-resume t) (n Note entry (file ~/repo/org/refile.org) * %?\n %U\n %a\n :CLOCK:\n :END: :clock-in t :clock-resume t) (r Routine entry (file+datetree+prompt ~/repo/org/x.org) * Content ommited) )) and I expect it prompt out an inbox for me to select date after I recall org-capture and choose r. But it turns out file+datetree+prompt is not a valid value for target. Emacs simple returns an error message: Invalid time specification. Did I miss something? Or did I just found a bug? Thank you guys in advance :) Emacs : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.22.1) of 2011-03-06 on zzz-laptop Package: Org-mode version 7.4 Works fine for me. Org-mode version 7.5 (release_7.5.7.g4090.dirty) GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2010-11-17 on alphaville Nick
Re: [O] lists and fill-region
Bernt Hansen be...@norang.ca wrote: michael hohn mhh...@gmail.com writes: Hi all, after upgrading to the current git head (from a version around 6.36), fill-region produces wrong indentation for my lists. Starting with - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short and marking the second item via mark-paragraph followed by fill-region results in - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short I have tried different settings for org-list-ending-method but this doesn't change the result. Has anybody seen this or know a fix? Hi Michael, This wraps okay for me. I get the following: - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short Have you tried it with a minimal emacs setup? Maybe it's something in your customizations that affects this. With fill-paragraph, I get what Bernt gets. With mark-paragraph/fill-region, I get what Michael gets. This is with emacs -q -l minimal.emacs. In both cases, I start with point at the beginning of the very, very long line. Org-mode version 7.5 (release_7.5.7.g4090.dirty) GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2010-11-17 on alphaville Nick
Re: [O] Rework org-export-html-preamble/postamble (again)
Bastien b...@altern.org writes: Hopefully this patch will solve a few issues that have just been raised about the new behavior of org-export-html-preamble/postamble. With this patch, I get the following error when exporting to HTML: list: Symbol's value as variable is void: creator-info
Re: [O] lists and fill-region
Nick Dokos nicholas.do...@hp.com writes: Bernt Hansen be...@norang.ca wrote: michael hohn mhh...@gmail.com writes: Hi all, after upgrading to the current git head (from a version around 6.36), fill-region produces wrong indentation for my lists. Starting with - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short and marking the second item via mark-paragraph followed by fill-region results in - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short I have tried different settings for org-list-ending-method but this doesn't change the result. Has anybody seen this or know a fix? Hi Michael, This wraps okay for me. I get the following: - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short Have you tried it with a minimal emacs setup? Maybe it's something in your customizations that affects this. With fill-paragraph, I get what Bernt gets. With mark-paragraph/fill-region, I get what Michael gets. This is with emacs -q -l minimal.emacs. In both cases, I start with point at the beginning of the very, very long line. Org-mode version 7.5 (release_7.5.7.g4090.dirty) GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2010-11-17 on alphaville Thanks Nick, I can also reproduce this. I was incorrectly using fill-paragraph the first time. Regards, -- Bernt
[O] latex export issue
With the following minimal org buffer: Simple test here here here here here here here here here here here here here here 2010. here here here here here here here here here here here here here here here here here here here here here here here here here here when I export this to latex, I get: -- \title{Simple test} \author{Stephen Eglen} \date{09 March 2011} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} here here here here here here here here here here here here here here \begin{enumerate} \item here here here here here here here here here here here here \end{enumerate} here here here here here here here here here here here here here here \end{document} -- This is modified from a real case; is there any way that the 2010. can be interpreted as the end of the sentence rather than the start of a enumerate list? (I have fixed it for now by reformatting my paragraph so that 2010 does not begin the line.) I get similar behaviour with html export. Thanks, Stephen
[O] if: Wrong type argument: stringp, \.\.\.
Hello group, I'm stumped. When I try to bring up the agenda with C-c a, I get the error message mentioned in the subject line. I'm using 23.2.1 on Windoze 7 64 bit, and the orgmode from today: M-x org-version: 7.5 Here's my entire org-mode related part of my .emacs: , | ;; | ;; Org Mode | ;; | | ;; save all org buffers at 1 minute before the hour | (run-at-time 00:59 3600 'org-save-all-org-buffers) | | ;; no need to compile the sources | (add-to-list 'load-path ~/.emacs.d/org-mode/lisp/) | (add-to-list 'load-path ~/.emacs.d/org-mode/contrib/lisp/) | (setq org-directory h:/org/) | (require 'org-install) | | ;; Custom Key Bindings | (global-set-key \C-cl 'org-store-link) | (global-set-key \C-ca 'org-agenda) | (global-set-key \C-cb 'org-iswitchb) | (global-set-key (kbd f6) 'bh/clock-in-600-install-default-task) | (global-set-key (kbd f8) 'org-cycle-agenda-files) | (global-set-key (kbd f9 b) 'bh/clock-in-NMR-booking-task) | (global-set-key (kbd f9 g) 'gnus) | (global-set-key (kbd f9 m) 'bh/clock-in-email-task) | (global-set-key (kbd f9 o) 'bh/clock-in-organization-task) | (global-set-key (kbd f9 p) 'bh/clock-in-phone-task) | (global-set-key (kbd f9 r) 'bh/clock-in-read-task) | (global-set-key (kbd f9 R) 'bh/clock-in-repair-task) | (global-set-key (kbd f9 SPC) 'bh/clock-in-last-task) | (global-set-key (kbd f10) 'hist-org-clock-in-select) | (global-set-key (kbd f11) 'org-clock-goto) | (global-set-key (kbd f12) 'org-agenda) ` Any hints are highly appreciated. Thanks Markus
[O] Re: latex export issue
Hello, Stephen Eglen s.j.eg...@damtp.cam.ac.uk writes: With the following minimal org buffer: Simple test here here here here here here here here here here here here here here 2010. here here here here here here here here here here here here here here here here here here here here here here here here here here This is modified from a real case; is there any way that the 2010. can be interpreted as the end of the sentence rather than the start of a enumerate list? (I have fixed it for now by reformatting my paragraph so that 2010 does not begin the line.) I get similar behaviour with html export. I usually suggest to insert a non-breakable space just after the dot. Thus, the pattern doesn't match definition of a numbered list item anymore. Regards, -- Nicolas
Re: [O] if: Wrong type argument: stringp, \.\.\.
Markus Heller helle...@gmail.com wrote: Hello group, I'm stumped. When I try to bring up the agenda with C-c a, I get the error message mentioned in the subject line. I'm using 23.2.1 on Windoze 7 64 bit, and the orgmode from today: M-x org-version: 7.5 Here's my entire org-mode related part of my .emacs: , | ;; | ;; Org Mode | ;; | | ;; save all org buffers at 1 minute before the hour | (run-at-time 00:59 3600 'org-save-all-org-buffers) | | ;; no need to compile the sources | (add-to-list 'load-path ~/.emacs.d/org-mode/lisp/) | (add-to-list 'load-path ~/.emacs.d/org-mode/contrib/lisp/) | (setq org-directory h:/org/) | (require 'org-install) | | ;; Custom Key Bindings | (global-set-key \C-cl 'org-store-link) | (global-set-key \C-ca 'org-agenda) | (global-set-key \C-cb 'org-iswitchb) | (global-set-key (kbd f6) 'bh/clock-in-600-install-default-task) | (global-set-key (kbd f8) 'org-cycle-agenda-files) | (global-set-key (kbd f9 b) 'bh/clock-in-NMR-booking-task) | (global-set-key (kbd f9 g) 'gnus) | (global-set-key (kbd f9 m) 'bh/clock-in-email-task) | (global-set-key (kbd f9 o) 'bh/clock-in-organization-task) | (global-set-key (kbd f9 p) 'bh/clock-in-phone-task) | (global-set-key (kbd f9 r) 'bh/clock-in-read-task) | (global-set-key (kbd f9 R) 'bh/clock-in-repair-task) | (global-set-key (kbd f9 SPC) 'bh/clock-in-last-task) | (global-set-key (kbd f10) 'hist-org-clock-in-select) | (global-set-key (kbd f11) 'org-clock-goto) | (global-set-key (kbd f12) 'org-agenda) ` Any hints are highly appreciated. We need a backtrace: see section 1.4, Feedback, of the Org manual on how to get one. Nick
Re: [O] if: Wrong type argument: stringp, \.\.\.
Nick Dokos nicholas.do...@hp.com writes: Markus Heller helle...@gmail.com wrote: Hello group, I'm stumped. When I try to bring up the agenda with C-c a, I get the error message mentioned in the subject line. I'm using 23.2.1 on Windoze 7 64 bit, and the orgmode from today: M-x org-version: 7.5 Here's my entire org-mode related part of my .emacs: , | ;; | ;; Org Mode | ;; | | ;; save all org buffers at 1 minute before the hour | (run-at-time 00:59 3600 'org-save-all-org-buffers) | | ;; no need to compile the sources | (add-to-list 'load-path ~/.emacs.d/org-mode/lisp/) | (add-to-list 'load-path ~/.emacs.d/org-mode/contrib/lisp/) | (setq org-directory h:/org/) | (require 'org-install) | | ;; Custom Key Bindings | (global-set-key \C-cl 'org-store-link) | (global-set-key \C-ca 'org-agenda) | (global-set-key \C-cb 'org-iswitchb) | (global-set-key (kbd f6) 'bh/clock-in-600-install-default-task) | (global-set-key (kbd f8) 'org-cycle-agenda-files) | (global-set-key (kbd f9 b) 'bh/clock-in-NMR-booking-task) | (global-set-key (kbd f9 g) 'gnus) | (global-set-key (kbd f9 m) 'bh/clock-in-email-task) | (global-set-key (kbd f9 o) 'bh/clock-in-organization-task) | (global-set-key (kbd f9 p) 'bh/clock-in-phone-task) | (global-set-key (kbd f9 r) 'bh/clock-in-read-task) | (global-set-key (kbd f9 R) 'bh/clock-in-repair-task) | (global-set-key (kbd f9 SPC) 'bh/clock-in-last-task) | (global-set-key (kbd f10) 'hist-org-clock-in-select) | (global-set-key (kbd f11) 'org-clock-goto) | (global-set-key (kbd f12) 'org-agenda) ` Any hints are highly appreciated. We need a backtrace: see section 1.4, Feedback, of the Org manual on how to get one. Nick Ok, below is the backtrace. Geez, how can one read anything useful out of this? ;-) Cheers Markus Debugger entered--Lisp error: (error :END: line missing at position 15207) signal(error (:END: line missing at position 15207)) error(:END: line missing at position %s 15207) (if (re-search-forward ^[]*:END: (save-excursion ... ...) t) (outline-flag-region b (point-at-eol) flag) (error :END: line missing at position %s b)) (let ((b ...) (outline-regexp org-outline-regexp)) (if (re-search-forward ^[ ]*:END: ... t) (outline-flag-region b ... flag) (error :END: line missing at position %s b))) (progn (let (... ...) (if ... ... ...))) (if (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (progn (let ... ...))) (when (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (let (... ...) (if ... ... ...))) (save-excursion (beginning-of-line 1) (when (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (let ... ...))) org-flag-drawer(t) (while (re-search-forward org-drawer-regexp end t) (org-flag-drawer t)) (let* ((globalp ...) (beg ...) (end ...)) (goto-char beg) (while (re-search-forward org-drawer-regexp end t) (org-flag-drawer t))) (save-excursion (let* (... ... ...) (goto-char beg) (while ... ...))) (progn (save-excursion (let* ... ... ...))) (if (and (org-mode-p) (not ...)) (progn (save-excursion ...))) (when (and (org-mode-p) (not ...)) (save-excursion (let* ... ... ...))) org-cycle-hide-drawers(all) (if (eq org-startup-folded (quote showeverything)) nil (if org-hide-block-startup (org-hide-block-all)) (org-set-visibility-according-to-property (quote no-cleanup)) (org-cycle-hide-archived-subtrees (quote all)) (org-cycle-hide-drawers (quote all)) (org-cycle-show-empty-lines t)) (unless (eq org-startup-folded (quote showeverything)) (if org-hide-block-startup (org-hide-block-all)) (org-set-visibility-according-to-property (quote no-cleanup)) (org-cycle-hide-archived-subtrees (quote all)) (org-cycle-hide-drawers (quote all)) (org-cycle-show-empty-lines t)) org-set-startup-visibility() (if org-inhibit-startup-visibility-stuff nil (org-set-startup-visibility)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility)) (if org-inhibit-startup nil (when org-startup-align-all-tables (let ... ... ...)) (when org-startup-with-inline-images (org-display-inline-images)) (when org-startup-indented (require ...) (org-indent-mode 1)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility))) (unless org-inhibit-startup (when org-startup-align-all-tables (let ... ... ...)) (when org-startup-with-inline-images (org-display-inline-images)) (when org-startup-indented (require ...) (org-indent-mode 1)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility))) (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode (quote org-mode)) (setq mode-name Org) (progn (if ... ...) (unless ... ...) (let ... ...)) (use-local-map org-mode-map) (set-syntax-table org-mode-syntax-table) (setq local-abbrev-table org-mode-abbrev-table) (if (featurep ...) (when ... ... ... ...) (define-key org-mode-map [menu-bar headings] ...) (define-key org-mode-map [menu-bar hide] ...) (define-key org-mode-map [menu-bar show] ...))
[O] Re: lists and fill-region
Hello, michael hohn mhh...@gmail.com writes: after upgrading to the current git head (from a version around 6.36), fill-region produces wrong indentation for my lists. Starting with - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short and marking the second item via mark-paragraph followed by fill-region results in - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short I have pushed a fix for this case. Thanks for your report, it reminds me filling in lists is still a bit fragile, and needs some care. Regards, -- Nicolas
[O] Re: lists and fill-region
Hello, Matt Lundin m...@imapmail.org writes: A related bug: - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short If one calls unfill-paragraph on the very, very line above, nothing happens. In the past, unfill paragraph would turn the item into a single line, which is very convenient for fixing improperly indented multi-line items. Could you tell me if the problem with unfill-paragraph persists? If it does, as there is no unfill-paragraph in standard Emacs, could you provide the definition you gave it? Thanks. Regards, -- Nicolas
[O] Re: lists and fill-region
Nicolas n.goaz...@gmail.com writes: Hello, Matt Lundin m...@imapmail.org writes: A related bug: - one - very, very, very, very, very, very, very, very, very, very, very, very, long - short If one calls unfill-paragraph on the very, very line above, nothing happens. In the past, unfill paragraph would turn the item into a single line, which is very convenient for fixing improperly indented multi-line items. Could you tell me if the problem with unfill-paragraph persists? The problem is solved in the most recent git. Thanks! If it does, as there is no unfill-paragraph in standard Emacs, could you provide the definition you gave it? You are right. Sometimes it is difficult to remember where Emacs begins and one's own customizations end. :) Here is unfill-paragraph (grabbed from the emacswiki, I believe): --8---cut here---start-8--- (defun unfill-paragraph () (interactive) (let ((fill-column (point-max))) (fill-paragraph nil))) --8---cut here---end---8--- Thanks again, Matt
Re: [O] if: Wrong type argument: stringp, \.\.\.
Hi Markus, It looks like you have a drawer in your org files that is missing a closing :END: tag. Possibly in file h:/org/600_install.org HTH, Bernt Markus Heller helle...@gmail.com writes: Nick Dokos nicholas.do...@hp.com writes: Markus Heller helle...@gmail.com wrote: Hello group, I'm stumped. When I try to bring up the agenda with C-c a, I get the error message mentioned in the subject line. I'm using 23.2.1 on Windoze 7 64 bit, and the orgmode from today: M-x org-version: 7.5 Here's my entire org-mode related part of my .emacs: , | ;; | ;; Org Mode | ;; | | ;; save all org buffers at 1 minute before the hour | (run-at-time 00:59 3600 'org-save-all-org-buffers) | | ;; no need to compile the sources | (add-to-list 'load-path ~/.emacs.d/org-mode/lisp/) | (add-to-list 'load-path ~/.emacs.d/org-mode/contrib/lisp/) | (setq org-directory h:/org/) | (require 'org-install) | | ;; Custom Key Bindings | (global-set-key \C-cl 'org-store-link) | (global-set-key \C-ca 'org-agenda) | (global-set-key \C-cb 'org-iswitchb) | (global-set-key (kbd f6) 'bh/clock-in-600-install-default-task) | (global-set-key (kbd f8) 'org-cycle-agenda-files) | (global-set-key (kbd f9 b) 'bh/clock-in-NMR-booking-task) | (global-set-key (kbd f9 g) 'gnus) | (global-set-key (kbd f9 m) 'bh/clock-in-email-task) | (global-set-key (kbd f9 o) 'bh/clock-in-organization-task) | (global-set-key (kbd f9 p) 'bh/clock-in-phone-task) | (global-set-key (kbd f9 r) 'bh/clock-in-read-task) | (global-set-key (kbd f9 R) 'bh/clock-in-repair-task) | (global-set-key (kbd f9 SPC) 'bh/clock-in-last-task) | (global-set-key (kbd f10) 'hist-org-clock-in-select) | (global-set-key (kbd f11) 'org-clock-goto) | (global-set-key (kbd f12) 'org-agenda) ` Any hints are highly appreciated. We need a backtrace: see section 1.4, Feedback, of the Org manual on how to get one. Nick Ok, below is the backtrace. Geez, how can one read anything useful out of this? ;-) Cheers Markus Debugger entered--Lisp error: (error :END: line missing at position 15207) signal(error (:END: line missing at position 15207)) error(:END: line missing at position %s 15207) (if (re-search-forward ^[ ]*:END: (save-excursion ... ...) t) (outline-flag-region b (point-at-eol) flag) (error :END: line missing at position %s b)) (let ((b ...) (outline-regexp org-outline-regexp)) (if (re-search-forward ^[ ]*:END: ... t) (outline-flag-region b ... flag) (error :END: line missing at position %s b))) (progn (let (... ...) (if ... ... ...))) (if (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (progn (let ... ...))) (when (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (let (... ...) (if ... ... ...))) (save-excursion (beginning-of-line 1) (when (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (let ... ...))) org-flag-drawer(t) (while (re-search-forward org-drawer-regexp end t) (org-flag-drawer t)) (let* ((globalp ...) (beg ...) (end ...)) (goto-char beg) (while (re-search-forward org-drawer-regexp end t) (org-flag-drawer t))) (save-excursion (let* (... ... ...) (goto-char beg) (while ... ...))) (progn (save-excursion (let* ... ... ...))) (if (and (org-mode-p) (not ...)) (progn (save-excursion ...))) (when (and (org-mode-p) (not ...)) (save-excursion (let* ... ... ...))) org-cycle-hide-drawers(all) (if (eq org-startup-folded (quote showeverything)) nil (if org-hide-block-startup (org-hide-block-all)) (org-set-visibility-according-to-property (quote no-cleanup)) (org-cycle-hide-archived-subtrees (quote all)) (org-cycle-hide-drawers (quote all)) (org-cycle-show-empty-lines t)) (unless (eq org-startup-folded (quote showeverything)) (if org-hide-block-startup (org-hide-block-all)) (org-set-visibility-according-to-property (quote no-cleanup)) (org-cycle-hide-archived-subtrees (quote all)) (org-cycle-hide-drawers (quote all)) (org-cycle-show-empty-lines t)) org-set-startup-visibility() (if org-inhibit-startup-visibility-stuff nil (org-set-startup-visibility)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility)) (if org-inhibit-startup nil (when org-startup-align-all-tables (let ... ... ...)) (when org-startup-with-inline-images (org-display-inline-images)) (when org-startup-indented (require ...) (org-indent-mode 1)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility))) (unless org-inhibit-startup (when org-startup-align-all-tables (let ... ... ...)) (when org-startup-with-inline-images (org-display-inline-images)) (when org-startup-indented (require ...) (org-indent-mode 1)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility))) (let ((delay-mode-hooks t)) (outline-mode) (setq major-mode (quote org-mode)) (setq mode-name Org) (progn (if ... ...) (unless ... ...) (let ... ...)) (use-local-map org-mode-map) (set-syntax-table org-mode-syntax-table)
Re: [O] if: Wrong type argument: stringp, \.\.\.
Markus Heller helle...@gmail.com wrote: Debugger entered--Lisp error: (error :END: line missing at position 15207) signal(error (:END: line missing at position 15207)) error(:END: line missing at position %s 15207) You seem to be missing an :END: line (or it may be malformed, so that the regexp below does not match) ... (if (re-search-forward ^[ ]*:END: (save-excursion ... ...) t) (outline-flag-region b (point-at-eol) flag) (error :END: line missing at position %s b)) (let ((b ...) (outline-regexp org-outline-regexp)) (if (re-search-forward ^[ ]*:END: ... t) (outline-flag-region b ... flag) (error :END: line missing at position %s b))) (progn (let (... ...) (if ... ... ...))) (if (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (progn (let ... ...))) (when (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (let (... ...) (if ... ... ...))) (save-excursion (beginning-of-line 1) (when (looking-at ^[ ]*:[a-zA-Z][a-zA-Z0-9]*:) (let ... ...))) org-flag-drawer(t) ... in a drawer ... (while (re-search-forward org-drawer-regexp end t) (org-flag-drawer t)) (let* ((globalp ...) (beg ...) (end ...)) (goto-char beg) (while (re-search-forward org-drawer-regexp end t) (org-flag-drawer t))) (save-excursion (let* (... ... ...) (goto-char beg) (while ... ...))) (progn (save-excursion (let* ... ... ...))) (if (and (org-mode-p) (not ...)) (progn (save-excursion ...))) (when (and (org-mode-p) (not ...)) (save-excursion (let* ... ... ...))) org-cycle-hide-drawers(all) ... org-set-startup-visibility() (if org-inhibit-startup-visibility-stuff nil (org-set-startup-visibility)) (unless org-inhibit-startup-visibility-stuff (org-set-startup-visibility)) ... org-mode() set-auto-mode-0(org-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#buffer 600_install.org h:/org/600_install.org nil nil h:/org/600_install.org (0 (9885 . 5800))) ... in this file. Position 15207 in the file is where the code choked, but it may be missing earlier in the file. If you can't find it, and you don't mind making the file public, post it here. If you'd rather not, but still can't find it, as a last resort, you can send it to me: I promise not to look unnecessarily :-) HTH, Nick
[O] [PATCH 0/2] Clocking fixes
The following patch series fixes problems with with clocking in tasks and setting the default clock task. These patches are available at git://git.norang.ca/org-mode.git clock-fixes Bernt Hansen (2): Allow setting default clocking task to current clocking task Allow clocking in new tasks inserted before the current clocking task lisp/org-clock.el | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) -- 1.7.4.1.208.gf7c6c
[O] [PATCH 1/2] Allow setting default clocking task to current clocking task
* lisp/org-clock.el (org-clock-in): Set default clocking task when already clocking the task The default clocking task can now be set to the current clocking task. Previously this just threw an error stating the clock continues in the current clocking task. The double prefix now forces setting the default clocking task instead of forcing the user to clock out and back in again just to set the default clocking task to the current clocking task. --- lisp/org-clock.el | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index c0c6c82..693025a 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -992,6 +992,7 @@ the clocking selection, associated with the letter `d'. ts selected-task target-pos (msg-extra ) (leftover (and (not org-clock-resolving-clocks) org-clock-leftover-time))) + (when (and org-clock-auto-clock-resolution (or (not interrupting) (eq t org-clock-auto-clock-resolution)) @@ -1000,11 +1001,17 @@ the clocking selection, associated with the letter `d'. (setq org-clock-leftover-time nil) (let ((org-clock-clocking-in t)) (org-resolve-clocks))); check if any clocks are dangling + (when (equal select '(4)) (setq selected-task (org-clock-select-task Clock-in on task: )) (if selected-task (setq selected-task (copy-marker selected-task)) (error Abort))) + + (when (equal select '(16)) + ;; Mark as default clocking task + (org-clock-mark-default-task)) + (when interrupting ;; We are interrupting the clocking of a different task. ;; Save a marker to this task, so that we can go back. @@ -1028,10 +1035,6 @@ the clocking selection, associated with the letter `d'. (let ((org-clock-clocking-in t)) (org-clock-out t))) - (when (equal select '(16)) - ;; Mark as default clocking task - (org-clock-mark-default-task)) - ;; Clock in at which position? (setq target-pos (if (and (eobp) (not (org-on-heading-p))) -- 1.7.4.1.208.gf7c6c
[O] [PATCH 2/2] Allow clocking in new tasks inserted before the current clocking task
* lisp/org-clock.el (org-clock-in): Allow clocking in new tasks inserted before the current clocking task org-clock-in now checks that the name of the task you are clocking in also matches org-clock-current-task. This allows us to insert a new task in front of the current clocking task (with M-S-RET on the heading of the current clocking task) and then clock in the new task. Previously this just stated that clocking continues in the old task since the marker point now matches the new task. A side-effect of this change is that changing the current clocking task headline and clocking in again will now close the current clock and open a new entry as well as update the name of the current clocking task in the modeline. --- lisp/org-clock.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 693025a..cc0e51f 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1026,7 +1026,8 @@ the clocking selection, associated with the letter `d'. (= (marker-position org-clock-hd-marker) (if selected-task (marker-position selected-task) - (point) + (point))) +(equal org-clock-current-task (nth 4 (org-heading-components) (message Clock continues in \%s\ org-clock-heading) (throw 'abort nil)) (move-marker org-clock-interrupted-task -- 1.7.4.1.208.gf7c6c
[O] Delete in emacs on OS X
Hi, I finally installed emacs/orgmode (using gnu emacs) on my OS X partition (have had it on the Arch linux side) and have a probably silly question. All has gone quite smoothly except for the fact that for the life of me I can't figure out what key combo provides delete. Fn+delete behaves like backspace. In my searching, I found reference to C-?, but that comes up as unrecognized. How do I delete? Thanks! John
[O] Bug: Minor Bug: COOKIE_DATA property breaks parent statistics [7.5 (release_7.5.24.g5f0ef)]
I've run into a minor bug with cookie statistics. The COOKIE_DATA property seems to break parent task statistics when it is set to 'recursive'. In the org file below task one/two/foo/a has the COOKIE_DATA property set to recursive. Changing the state of task 'a' does not change the statistics cookie of the parent task 'foo' when 'a' changes from TODO to DONE or DONE to TODO. I cannot update the statistics of task 'foo' manually after changing task 'a' by hitting C-c # on the 'foo' headline. If I update one of the other tasks under 'foo' then the statistics are updated correctly. I think this should update automagically when the state of 'a' changes. Regards, Bernt --8---cut here---start-8--- * TODO one [0/1] [0%] ** TODO two [0/3] [0%] *** TODO foo [1/4] TODO a [3/6] :PROPERTIES: :COOKIE_DATA: recursive :END: * TODO a.1 ** TODO a.1.1 ** DONE a.1.2 CLOSED: [2011-03-09 Wed 22:50] :LOGBOOK: - State DONE from TODO [2011-03-09 Wed 22:50] :END: ** TODO a.1.3 * DONE a.2 CLOSED: [2011-03-09 Wed 22:50] :LOGBOOK: - State DONE from TODO [2011-03-09 Wed 22:50] :END: * DONE a.3 CLOSED: [2011-03-09 Wed 22:50] :LOGBOOK: - State DONE from TODO [2011-03-09 Wed 22:50] :END: TODO b CLOSED: [2011-03-09 Wed 22:50] :LOGBOOK: - State DONE from TODO [2011-03-09 Wed 22:50] :END: DONE c CLOSED: [2011-03-09 Wed 22:50] :LOGBOOK: - State DONE from TODO [2011-03-09 Wed 22:50] :END: TODO d *** TODO bar *** TODO baz --8---cut here---end---8--- Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Package: Org-mode version 7.5 (release_7.5.24.g5f0ef) -- Bernt
Re: [O] org-collector calculated rows?
I have tried adding #+TBLFM: @$=vmean(I..II) between the #+BEGIN and #+END lines (after generating a table), but when I C-c C-c on #+BEGIN, the table refreshes and removes the #+TBLFM line. I am using org-mode 7.4. Any idea why my formula isn't working? -Rehan On Sat, Mar 5, 2011 at 12:48 AM, Nick Dokos nicholas.do...@hp.com wrote: Rehan Iftikhar rehan.iftik...@gmail.com wrote: * More Complex Example: displaying the mean of the Amount column for each week. I see that I misread this: the formula calculates the mean of all the entries, not the mean for each week. Having thought about it for about 10 seconds, I cannot think of a way to do that. Nick -- -Rehan
Re: [O] Delete in emacs on OS X
John Hendy jw.he...@gmail.com writes: I can't figure out what key combo provides delete. Fn+delete behaves like backspace. In my searching, I found reference to C-?, but that comes up as unrecognized. How do I delete? Try C-d. If that doesn't work, look at the help for delete-char (C-h f delete-char RET), which should tell which key it's bound to. Best, Richard
Re: [O] org-collector calculated rows?
Rehan Iftikhar rehan.iftik...@gmail.com wrote: I have tried adding #+TBLFM: @$=vmean(I..II) between the #+BEGIN and #+END lines (after generating a table), but when I C-c C-c on #+BEGIN, the table refreshes and removes the #+TBLFM line. I am using org-mode 7.4. Any idea why my formula isn't working? I don't know why the #+TBLFM line disappears: it does not in my case - assuming that I've got org-collector loaded: since it's a contrib package it's not loaded automatically for me and when I tried the refresh before loading org-collector, *everything* disappeared: the table and the formula. But once I got the package loaded correctly, things worked as I described before: if only the formula is in there, it gets wiped out, but if there is a table along with the formula, the table gets refreshed and the formula is recalculated. BTW, the formula is wrong: it should read --8---cut here---start-8--- #+TBLFM: @$=vmean(@I..II) --8---cut here---end---8--- and that also assumes that you are running a very recent version of org, one that recognizes @ and $. But neither of these would explain why the formula is wiped. Nick PS. I'm using Eric Schulte's standard example from the Worg site: --8---cut here---start-8--- * Example #+BEGIN: propview :id december :conds ((string= spendtype food)) :cols (ITEM amount) | ITEM | amount | |--+--| | Grocery Store [2008-12-01 Mon] |56.77 | | Restaurant [2008-12-08 Mon]|30.67 | | Grocery Store [2008-12-09 Tue] |56.76 | |--+--| | | | #+TBLFM: @$=vmean(@I..II) #+END: #+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match example | ITEM | (+ 400 amount) | |--+--| | December Spending |0 | | Week One |0 | | Grocery Store [2008-12-01 Mon] | 456.77 | | Athletic club [2008-12-02 Tue] |475.0 | | Week Two |0 | | Restaurant [2008-12-08 Mon]| 430.67 | | Grocery Store [2008-12-09 Tue] | 456.76 | |--+--| | |259.88571 | #+TBLFM: @$=vmean(@I..II) #+END: #+TBLFM: @$ = vmean(@I..II) ** December Spending :example: :PROPERTIES: :ID: december :END: *** Week One Grocery Store [2008-12-01 Mon] :PROPERTIES: :amount: 56.77 :spendtype: food :END: Athletic club [2008-12-02 Tue] :PROPERTIES: :amount: 75.00 :spendtype: health :END: *** Week Two Restaurant [2008-12-08 Mon] :PROPERTIES: :amount: 30.67 :spendtype: food :END: Grocery Store [2008-12-09 Tue] :PROPERTIES: :amount: 56.76 :spendtype: food :END: --8---cut here---end---8--- On Sat, Mar 5, 2011 at 12:48 AM, Nick Dokos nicholas.do...@hp.com wrote: Rehan Iftikhar rehan.iftik...@gmail.com wrote: * More Complex Example: displaying the mean of the Amount column for each week. I see that I misread this: the formula calculates the mean of all the entries, not the mean for each week. Having thought about it for about 10 seconds, I cannot think of a way to do that. Nick -- -Rehan
Re: [O] Re: latex export issue
That sounds like it means that any documents you might want to export to LaTeX (and format with hard line breaks) should always have non-breaking spaces after the periods---or you should keep a manual eye on your paragraph formatting to make sure no numbers come first on the line. Although I really like the new list code (many, many thanks, Nicolas!), this does seem an unfortunate (if rare) little 'gotcha' arising from it. I hadn't realized that lists are triggered with no indentation at all. Scot On Wed, Mar 9, 2011 at 11:46 PM, Nicolas n.goaz...@gmail.com wrote: Hello, Stephen Eglen s.j.eg...@damtp.cam.ac.uk writes: With the following minimal org buffer: Simple test here here here here here here here here here here here here here here 2010. here here here here here here here here here here here here here here here here here here here here here here here here here here This is modified from a real case; is there any way that the 2010. can be interpreted as the end of the sentence rather than the start of a enumerate list? (I have fixed it for now by reformatting my paragraph so that 2010 does not begin the line.) I get similar behaviour with html export. I usually suggest to insert a non-breakable space just after the dot. Thus, the pattern doesn't match definition of a numbered list item anymore. Regards, -- Nicolas
[O] Re: lists and fill-region
I have pushed a fix for this case. Thanks for your report, it reminds me filling in lists is still a bit fragile, and needs some care. Thanks for the quick response! The list filling is very nice already. Cheers, Michael
Re: [O] org-collector calculated rows?
I updated to 7.5, recompiled, and now it works! Thanks for the help! On Wed, Mar 9, 2011 at 9:46 PM, Nick Dokos nicholas.do...@hp.com wrote: Rehan Iftikhar rehan.iftik...@gmail.com wrote: I have tried adding #+TBLFM: @$=vmean(I..II) between the #+BEGIN and #+END lines (after generating a table), but when I C-c C-c on #+BEGIN, the table refreshes and removes the #+TBLFM line. I am using org-mode 7.4. Any idea why my formula isn't working? I don't know why the #+TBLFM line disappears: it does not in my case - assuming that I've got org-collector loaded: since it's a contrib package it's not loaded automatically for me and when I tried the refresh before loading org-collector, *everything* disappeared: the table and the formula. But once I got the package loaded correctly, things worked as I described before: if only the formula is in there, it gets wiped out, but if there is a table along with the formula, the table gets refreshed and the formula is recalculated. BTW, the formula is wrong: it should read --8---cut here---start-8--- #+TBLFM: @$=vmean(@I..II) --8---cut here---end---8--- and that also assumes that you are running a very recent version of org, one that recognizes @ and $. But neither of these would explain why the formula is wiped. Nick PS. I'm using Eric Schulte's standard example from the Worg site: --8---cut here---start-8--- * Example #+BEGIN: propview :id december :conds ((string= spendtype food)) :cols (ITEM amount) | ITEM | amount | |--+--| | Grocery Store [2008-12-01 Mon] | 56.77 | | Restaurant [2008-12-08 Mon] | 30.67 | | Grocery Store [2008-12-09 Tue] | 56.76 | |--+--| | | | #+TBLFM: @$=vmean(@I..II) #+END: #+BEGIN: propview :cols (ITEM (+ 400 amount)) :scope tree :match example | ITEM | (+ 400 amount) | |--+--| | December Spending | 0 | | Week One | 0 | | Grocery Store [2008-12-01 Mon] | 456.77 | | Athletic club [2008-12-02 Tue] | 475.0 | | Week Two | 0 | | Restaurant [2008-12-08 Mon] | 430.67 | | Grocery Store [2008-12-09 Tue] | 456.76 | |--+--| | | 259.88571 | #+TBLFM: @$=vmean(@I..II) #+END: #+TBLFM: @$ = vmean(@I..II) ** December Spending :example: :PROPERTIES: :ID: december :END: *** Week One Grocery Store [2008-12-01 Mon] :PROPERTIES: :amount: 56.77 :spendtype: food :END: Athletic club [2008-12-02 Tue] :PROPERTIES: :amount: 75.00 :spendtype: health :END: *** Week Two Restaurant [2008-12-08 Mon] :PROPERTIES: :amount: 30.67 :spendtype: food :END: Grocery Store [2008-12-09 Tue] :PROPERTIES: :amount: 56.76 :spendtype: food :END: --8---cut here---end---8--- On Sat, Mar 5, 2011 at 12:48 AM, Nick Dokos nicholas.do...@hp.com wrote: Rehan Iftikhar rehan.iftik...@gmail.com wrote: * More Complex Example: displaying the mean of the Amount column for each week. I see that I misread this: the formula calculates the mean of all the entries, not the mean for each week. Having thought about it for about 10 seconds, I cannot think of a way to do that. Nick -- -Rehan -- -Rehan