[O] Error in Context-sensitive word count in org mode (elisp)
I have just found this very useful function in org hacks. Unfortunately, it doesn't seem to work with the latest org-mode. I get the following error: Function definition void org-in-regexps-block-p Grepping the org source code, it seems that this function no longer exists. What has it been replaced with? Ian.
Re: [O] Frames and the agenda
At Mon, 27 Feb 2012 18:52:09 -0600, Marcelo de Moraes Serpa wrote: Although everything else is working great, I'm getting the following error message when trying to follow links to org files: cond: Symbol's function definition is void: org-in-clocktable-p [11 times] My branch is probably a few weeks behind the master, so the fix that Nick mentioned above is not there. You can temporarily fix this by doing M-x load-library RET org-clock. I'll rebase my branch to the latest origin/master soon, with the pace of development in org-mode its hard to be completely synced up all the time. Regards, Max
Re: [O] worg access source
Hi Thomas, t...@tsdye.com (Thomas S. Dye) writes: The Show Org source button on Worg is a great addition. Thanks! I added this a few days ago -- this will be on all new/updated worg pages, so don't worry if they are still some pages not showing this button. Best, -- Bastien
Re: [O] org-publish-validate-link ?
Nick Dokos nicholas.do...@hp.com writes: François Pinard pin...@iro.umontreal.ca wrote: The manual, in [[info:org#Publishing%20links][Publishing links]], speaks about an *org-publish-validate-link* function which does not seem to exist in Org mode sources. Is the function missing, or the documentation misleading? :-) It was removed by Sebastian Rose in a cleaning binge back in 2010, with the rationale that it was not being used anywhere: , | commit 339d6fe4bbf7b9858c6323d01f32d0c73a4cd3a8 | Author: Sebastian Rose sebastian_r...@gmx.de | Date: Thu May 13 13:43:53 2010 +0200 | | ... | | * org-publish.el (org-publish-validate-link) was not used | anywhere. Removed. | | ... ` Apparently that had happened before because there is also this: , | commit d1f91f7e936b1d3caf1b17f0fe755ee085256442 | Author: Carsten Dominik carsten.domi...@gmail.com | Date: Sun Nov 2 16:20:40 2008 +0100 | | Re-introduce the org-publish-validate-link function. ` but I cannot find the previous deletion. From git log -Sdefun\ org-publish-validate-link , | commit b05bc10e6794c902df679b906d8bd6ec3f5633a9 | Author: Bastien Guerry b...@altern.org | Date: Sun Mar 2 14:14:52 2008 + | | Cleaned up code. | ` -Bernt It was originally introduced with the following commit: , | commit 8fd900c6842d6f8d216ae6989b34c8de4a874e79 | Author: Carsten Dominik domi...@nb-dominik2.science.uva.nl | Date: Thu Jan 31 11:32:08 2008 +0100 | | Release 4.40 | | ... | | + Checking filenames against this hash | + | + | +(defun org-publish-validate-link (link) | + (gethash (file-truename link) org-publish-files)) | + | + | | ... ` I presume it's time to add it back in, this time with a note: Do NOT delete: this function may look unused, but it's referred to from the manual! Archaelogy is kind of fun ;-) Nick
Re: [O] org-publish-validate-link ?
Bernt Hansen be...@norang.ca wrote: Nick Dokos nicholas.do...@hp.com writes: ... but I cannot find the previous deletion. From git log -Sdefun\ org-publish-validate-link , | commit b05bc10e6794c902df679b906d8bd6ec3f5633a9 | Author: Bastien Guerry b...@altern.org | Date: Sun Mar 2 14:14:52 2008 + | | Cleaned up code. | ` Thanks! Nick
[O] [patch] Add autoload for org-version
Hello, I don't know if this is correct and sufficient, so please amend if not... From 8754d92bc954ccc9d1c2178ffcae5144b83b2af2 Mon Sep 17 00:00:00 2001 From: Sebastien Vauban s...@mygooglest.com Date: Tue, 28 Feb 2012 14:26:37 +0100 Subject: [PATCH 4/4] Add autoload instruction before org-version --- lisp/org.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index a81f7fc..26b28f7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -209,6 +209,7 @@ identifier. (defconst org-version 7.8.03 The version number of the file org.el.) +;;;###autoload (defun org-version (optional here) Show the org-mode version in the echo area. With prefix arg HERE, insert it at point. -- 1.7.9 Best regards, Seb -- Sebastien Vauban
Re: [O] Error in Context-sensitive word count in org mode (elisp)
On 28/02/12 08:58, Ian Barton wrote: I have just found this very useful function in org hacks. Unfortunately, it doesn't seem to work with the latest org-mode. I get the following error: Function definition void org-in-regexps-block-p Grepping the org source code, it seems that this function no longer exists. What has it been replaced with? Ian. Talking to myself here:) I have just found that in commit 8c6c6a4f3d66b39c06f8ac6dfb1e2af0111da098: Rename `org-in-regexps-block-p' to `org-between-regexps-p' which fixes my problem. I'll update the Worg article and the code in hacks. Ian.
[O] Special Tag Search
Hello to all, I have a question, I could not find an answer myself using the org-manual or googling. Mayby someone can help. I have several org-files with headings and subheadings similar to this: File #1: * Literatur, Quellen :Bib: ** AuthorSirName-1 ... ** AuthorSirName-2 ... ** AuthorSirName-3 ... File #2: * Literatur, Quellen :Bib: ** AuthorSirName-4 ... ** AuthorSirName-5 ... ** AuthorSirName-6 ... File #3: * Literatur, Quellen :Bib: ** AuthorSirName-7 ... ** AuthorSirName-8 ... ** AuthorSirName-9 ... all tagged with the same tags e.g. Bib Is it possible to generate a list using this tag, which displays the information shown above scattered over several org-files in a way like that: ** AuthorSirName-1 ... ** AuthorSirName-2 ... ** AuthorSirName-3 ... ** AuthorSirName-4 ... ** AuthorSirName-5 ... ** AuthorSirName-6 ... ** AuthorSirName-7 ... ** AuthorSirName-8 ... ** AuthorSirName-9 ... to get a list of all sources mentioned in my org-files (meaning only the entries/subheadings beneath the heading containing the tag which was searched for)? Is it further possible to sort this list according to AuthorSirName alphabetically? Greetings and thanks to all org-mode-contributors. I probably will use this mode as long as I will use computers at all! Martin -- | Martin Butz - m...@mkblog.org - 0421 98749324 - www.mkblog.org |
Re: [O] Frames and the agenda
Thanks guys, que quickfix worked. I'll see if I can rebase to org's HEAD myself, let's see if conflicts don't scare me away. Or perhaps just apply the fix manually. - Marcelo. On Tue, Feb 28, 2012 at 3:49 AM, Max Mikhanosha m...@openchat.com wrote: At Mon, 27 Feb 2012 18:52:09 -0600, Marcelo de Moraes Serpa wrote: Although everything else is working great, I'm getting the following error message when trying to follow links to org files: cond: Symbol's function definition is void: org-in-clocktable-p [11 times] My branch is probably a few weeks behind the master, so the fix that Nick mentioned above is not there. You can temporarily fix this by doing M-x load-library RET org-clock. I'll rebase my branch to the latest origin/master soon, with the pace of development in org-mode its hard to be completely synced up all the time. Regards, Max
Re: [O] Frames and the agenda
Anyway, I can't emphasize enough how useful this feature is. Having different agenda filtered views at the same time is a timesaver. This should be in the main org branch! Thanks for that, Max. Cheers, Marcelo. On Tue, Feb 28, 2012 at 10:55 AM, Marcelo de Moraes Serpa celose...@gmail.com wrote: Thanks guys, que quickfix worked. I'll see if I can rebase to org's HEAD myself, let's see if conflicts don't scare me away. Or perhaps just apply the fix manually. - Marcelo. On Tue, Feb 28, 2012 at 3:49 AM, Max Mikhanosha m...@openchat.com wrote: At Mon, 27 Feb 2012 18:52:09 -0600, Marcelo de Moraes Serpa wrote: Although everything else is working great, I'm getting the following error message when trying to follow links to org files: cond: Symbol's function definition is void: org-in-clocktable-p [11 times] My branch is probably a few weeks behind the master, so the fix that Nick mentioned above is not there. You can temporarily fix this by doing M-x load-library RET org-clock. I'll rebase my branch to the latest origin/master soon, with the pace of development in org-mode its hard to be completely synced up all the time. Regards, Max
Re: [O] Create new date-tree entry in current file?
On Thu, Oct 6, 2011 at 5:15 PM, John Hendy jw.he...@gmail.com wrote: Is there a way to create a date-tree in my current file, or is the only way to use a capture template pre-set to use a date-tree for the headline? For projects I have a setup something like this: --- * Tracking Stores todos and such * Journals Stores chronological notes that aren't todos. Lets me know when I worked on things. * Reference Odds and ends that aren't chronological, but that I might want to look at. --- +1 for this feature I also think this would be useful. Currently, I have: my_job.org my_job_journal.org - Journals go here It would be cool to have the ability to do file+datetree+headline/subheadline+prompt :-)
[O] Access org-tag-alist from #+FILETAGS
I use a few tags and usually two or three will apply to all entries in a particular file, e.g. :work:Client:OpenFile: or :Personal:Home: All my tags are in my .emacs using the org-tag-alist and I want to use these consistently. Is there a way to access org-tag-alist from the in-buffer settings #+FILETAGS or #+TAGS? C-c C-c, of course, refreshes the local setting; C-c C-q gives an error(?) message Before first headline at position 1 in buffer . . . At the moment my work around is: start the file's first line with *spc#+FILETAGS, then C-c C-c, and after setting tags delete the *spc. My system is Windows 7 (home Premium), emacs 24.0.93.1, org 7.8.03 If I have overlooked something obvious or easily researched, just say so and I'll continue looking for the answer. BTW, I'm a freelance paralegal. Amongst other uses, a few months ago I used org to draft a contract (from my notes kept in the org file), then exported to LaTeX, then to pdf to print the final draft. Charlie Millar
Re: [O] mlorg : yet another parser for org-mode (Written in OCaml contained in org-mode files)
On lun. 27/févr. (09:52), Eric Schulte wrote: Simon Castellan simon.castel...@iuwt.fr writes: On lun. 27/févr. (15:27), Alan Schmitt wrote: On 26 févr. 2012, at 17:41, Simon Castellan wrote: I have been writing a parser for mlorg files in OCaml. This started as an experiment to see if the literate programming mode of org-mode could scale to a full application (among other things). This looks very interesting, and would very much help in the dissemination of org-mode. Have you thought of announcing it on the caml mailing list? Alan I have but prefer to wait mlorg to be more complete. This post was meant mainly to gather info/document about org's syntax. (But as I said feedbacks welcome.) Hi Simon, Nicolas Goaziou has been working recently on a new emacs-lisp parser of Org-mode files, with the goals of 1. standardizing the formal syntax of Org-mode files 2. parsing Org-mode files to a canonical emacs-lisp list-based representation in memory (like an Org-mode AST) 3. re-basing the existing Org-mode exporters off of this canonical representation This work is contained in contrib/lisp/org-element.el, which includes a large amount of useful commentary at the top of the file. This should serve as a starting point for learning more about the formal syntax of Org-mode files (as it is defined). I think that developing parsers for this syntax in multiple language should be very useful to ensure that a usable syntax is developed separate from any particular implementation. Cheers, Thank you very much for this pointer, This is what I was looking for : a list of syntaxic construction in org-mode. I'd say though that it lacks a more-or-less formal syntaxic definition of constructions. Simon.
Re: [O] problems invoking org-agenda
Ah perfect! I followed your steps and tracked the problem down to one of my agenda files. Not sure why org didn't like it, but when I removed that file from my agenda list, it worked like a charm. Thank you! On Sat, Feb 25, 2012 at 12:52 AM, Nick Dokos nicholas.do...@hp.com wrote: Peter Salazar cycleofs...@gmail.com wrote: Maybe this is too esoteric for anyone to know, but I'm struggling and I can't figure this out. The time is Aquamacs 2.4. The place is org-mode 7.8.03. When I try to invoke org-agenda (C-c a a --- i.e. Agenda for current week or day), I get the error message: Args out of range: #( work : 0 14 org-category work tags nil org-highest-priority 65 or-lowest priority 67 time-of-day nil ...)), 0, 20 As far as I know I don't have any categories or priorities. Has anyone seen this before? It's probably because of a bad customization. To make sure, run with a minimal .emacs that just loads org and *none* of your customizations, something as simple as the following (with obvious adjustments for your setup): --8---cut here---start-8--- ;;; -*- mode: emacs-lisp -*- ;;; constant part (add-to-list 'load-path (expand-file-name ~/src/emacs/org/org-mode/lisp)) (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . org-mode)) (require 'org-install) (setq debug-on-error t) (setq debug-on-quit t) (setq eval-expression-print-length nil) (setq eval-expression-print-level nil) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) --8---cut here---end---8--- Save this in your home directory as minimal.org.el and start emacs with emacs -q -l ~/minimal.org.el and then do C-c a a - do you get the error? Probably not. The second thing you should do (this in your full emacs session, where you get the error) is M-x toggle-debug-on-error RET and then C-c a a to trigger the error - but now it will produce a backtrace which should tell you where the error occurred. If you can't figure it out, post the backtrace to the list. Nick
Re: [O] problems invoking org-agenda
Peter Salazar cycleofs...@gmail.com wrote: Ah perfect! I followed your steps and tracked the problem down to one of my agenda files. Not sure why org didn't like it, but when I removed that file from my agenda list, it worked like a charm. Did you get a backtrace? That (in combination with the file itself) should tell pretty clearly why org didn't like it. Thank you! You are welcome! Nick On Sat, Feb 25, 2012 at 12:52 AM, Nick Dokos nicholas.do...@hp.com wrote: Peter Salazar cycleofs...@gmail.com wrote: Maybe this is too esoteric for anyone to know, but I'm struggling and I can't figure this out. The time is Aquamacs 2.4. The place is org-mode 7.8.03. When I try to invoke org-agenda (C-c a a --- i.e. Agenda for current week or day), I get the error message: Args out of range: #( work : 0 14 org-category work tags nil org-highest-priority 65 or-lowest priority 67 time-of-day nil ...)), 0, 20 As far as I know I don't have any categories or priorities. Has anyone seen this before? It's probably because of a bad customization. To make sure, run with a minimal .emacs that just loads org and *none* of your customizations, something as simple as the following (with obvious adjustments for your setup): --8---cut here---start-8--- ;;; -*- mode: emacs-lisp -*- ;;; constant part (add-to-list 'load-path (expand-file-name ~/src/emacs/org/org-mode/lisp)) (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . org-mode)) (require 'org-install) (setq debug-on-error t) (setq debug-on-quit t) (setq eval-expression-print-length nil) (setq eval-expression-print-level nil) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) --8---cut here---end---8--- Save this in your home directory as minimal.org.el and start emacs with emacs -q -l ~/minimal.org.el and then do C-c a a - do you get the error? Probably not. The second thing you should do (this in your full emacs session, where you get the error) is M-x toggle-debug-on-error RET and then C-c a a to trigger the error - but now it will produce a backtrace which should tell you where the error occurred. If you can't figure it out, post the backtrace to the list. Nick Alternatives:
[O] [PATCH] Option for clock and timer to be displayed in frame-title
Attached is a patch that gives the option to show the clock and timer information in the frame title as well as the mode line (or both or neither). I find this useful as there is often not enough room in the mode line but there is enough in the frame title. I am in the process of assigning my copyright to the FSF for this and hopefully future org-mode contributions. I submit the patch now and request comments as this is my first contribution to the project. Thanks, George. From 3e29d48fb34e51a81544b1734dd75207c943d567 Mon Sep 17 00:00:00 2001 From: George Kettleborough g.kettleboro...@member.fsf.org Date: Tue, 28 Feb 2012 00:51:10 + Subject: [PATCH] Option for clock and timer to be displayed in frame-title --- lisp/org-clock.el | 43 +++ lisp/org-timer.el | 43 +++ 2 files changed, 70 insertions(+), 16 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 9206608..1a800b6 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -323,6 +323,15 @@ play with them. :version 24.1 :type 'boolean) +(defcustom org-clock-clocked-in-display 'mode-line + Where should the clocked in status be displayed. + :group 'org-clock + :type '(choice + (const :tag Mode line mode-line) + (const :tag Frame title frame-title) + (const :tag Both both) + (const :tag None nil))) + (defvar org-clock-in-prepare-hook nil Hook run when preparing the clock. This hook is run before anything happens to the task that @@ -1170,18 +1179,28 @@ the clocking selection, associated with the letter `d'. (save-excursion (org-back-to-heading t) (point)) (buffer-base-buffer)) (setq org-clock-has-been-used t) - (or global-mode-string (setq global-mode-string '())) - (or (memq 'org-mode-line-string global-mode-string) - (setq global-mode-string - (append global-mode-string '(org-mode-line-string + ;; add to mode line + (when (or (eq org-clock-clocked-in-display 'mode-line) + (eq org-clock-clocked-in-display 'both)) + (or global-mode-string (setq global-mode-string '())) + (or (memq 'org-mode-line-string global-mode-string) + (setq global-mode-string + (append global-mode-string '(org-mode-line-string) + ;; add to frame title + (when (or (eq org-clock-clocked-in-display 'frame-title) + (eq org-clock-clocked-in-display 'both)) + (or (memq 'org-mode-line-string frame-title-format) + (setq frame-title-format + (append frame-title-format '( org-mode-line-string) (org-clock-update-mode-line) (when org-clock-mode-line-timer (cancel-timer org-clock-mode-line-timer) (setq org-clock-mode-line-timer nil)) - (setq org-clock-mode-line-timer - (run-with-timer org-clock-update-period - org-clock-update-period - 'org-clock-update-mode-line)) + (when org-clock-clocked-in-display + (setq org-clock-mode-line-timer + (run-with-timer org-clock-update-period +org-clock-update-period +'org-clock-update-mode-line))) (when org-clock-idle-timer (cancel-timer org-clock-idle-timer) (setq org-clock-idle-timer nil)) @@ -1329,6 +1348,8 @@ If there is no running clock, throw an error, unless FAIL-QUIETLY is set. (when (not (org-clocking-p)) (setq global-mode-string (delq 'org-mode-line-string global-mode-string)) + (setq frame-title-format + (delq 'org-mode-line-string frame-title-format)) (force-mode-line-update) (if fail-quietly (throw 'exit t) (error No active clock))) (let (ts te s h m remove) @@ -1373,6 +1394,8 @@ If there is no running clock, throw an error, unless FAIL-QUIETLY is set. (setq org-clock-idle-timer nil)) (setq global-mode-string (delq 'org-mode-line-string global-mode-string)) + (setq frame-title-format + (delq 'org-mode-line-string frame-title-format)) (when org-clock-out-switch-to-state (save-excursion (org-back-to-heading t) @@ -1472,6 +1495,8 @@ UPDOWN tells whether to change 'up or 'down. (when (not (org-clocking-p)) (setq global-mode-string (delq 'org-mode-line-string global-mode-string)) +(setq frame-title-format + (delq 'org-mode-line-string frame-title-format)) (force-mode-line-update) (error No active clock)) (save-excursion ; Do not replace this with `with-current-buffer'. @@ -1484,6 +1509,8 @@ UPDOWN tells whether to change 'up or 'down. (move-marker org-clock-hd-marker nil) (setq global-mode-string (delq 'org-mode-line-string global-mode-string)) + (setq frame-title-format + (delq 'org-mode-line-string frame-title-format)) (force-mode-line-update) (message Clock canceled) (run-hooks 'org-clock-cancel-hook)) diff --git a/lisp/org-timer.el b/lisp/org-timer.el index a3bde0f..b39d362 100644 --- a/lisp/org-timer.el +++ b/lisp/org-timer.el @@ -56,6 +56,15 @@ When 0, the user is prompted for a
[O] org-agenda-list (from git) giving args-out-of-range error
[please keep me CC'd, as I'm a digest subscriber on this list] Suddenly C-c a a (`org-agenda-list') has started giving me this error: args-out-of-range #( ots: 0 14 (org-category ... Backtrace attached. This is with today's bleeding edge Org Mode code, pulled from git://orgmode.org/org-mode.git. I think the bug must be content-sensitive, since the only thing that changed was the content of some of my .org files (the ones listed in `org-agenda-files'). After encountering the bug, I upgraded to bleeding-edge org-mode, and saw that the bug reproduces there too. I can't find much on the Net about this problem, though this expired StackOverflow question seems to be the same thing: http://stackoverflow.com/questions/9460109/when-i-press-c-c-a-a-to-view-agenda-i-get-a-args-out-of-range-error That question is gone from StackOverflow now, but Google's cache still has it: http://webcache.googleusercontent.com/search?q=cache:QsaNSsILOegJ:stackoverflow.com/questions/9460109/when-i-press-c-c-a-a-to-view-agenda-i-get-a-args-out-of-range-error+emacs+org-mode+agenda+%22args-out-of-range%22cd=5hl=enct=clnkgl=us There are also some reports of org agenda exports failing similarly, but I'm not doing an export. And there's this, about how blank headlines cause a similar error: http://comments.gmane.org/gmane.emacs.orgmode/46444 Oh, I just found this -- it might be relevant: http://article.gmane.org/gmane.emacs.orgmode/41045/match=agenda+args+out+of+range I'll see if I can reproduce what that person found. Anyway, I can do Elisp debugging, and will start to do that unless someone here recognizes this problem and can add some information. Backtrace attached below. -Karl (I had to rectangularly truncate this backtrace to avoid showing confidential information, sorry, but the call stack is there anyway.) Debugger entered--Lisp error: (args-out-of-range #( ots: 0 14 (org-c match-string(2 #( ots: 0 14 (org-category ots tags nil org-highe (org-get-todo-face (match-string 2 x)) (list (quote face) (org-get-todo-face (match-string 2 x))) (add-text-properties (or (match-end 1) (match-end 0)) (match-end 0) (list (qu (progn (add-text-properties (or (match-end 1) (match-end 0)) (match-end 0) (l (if (and re (equal (string-match (concat \\(\\.*\\) re \\( +\\)) x (or pl (when (and re (equal (string-match (concat \\(\\.*\\) re \\( +\\)) x (or (let ((pl (text-property-any 0 (length x) (quote org-heading) t x))) (setq re (if (eq x (quote line)) (save-excursion (beginning-of-line 1) (setq re (org-g (let ((org-done-keywords org-done-keywords-for-agenda) (case-fold-search nil) org-agenda-highlight-todo(#( ots: 0 14 (org-category ots tags ni mapcar(org-agenda-highlight-todo (#( ots:TODO Karl to check in w/ (setq list (mapcar (quote org-agenda-highlight-todo) list)) org-finalize-agenda-entries((#( ots:TODO Karl to check in w/ Ray n (insert (org-finalize-agenda-entries (org-agenda-add-time-grid-maybe rtnall n (if rtnall (insert (org-finalize-agenda-entries (org-agenda-add-time-grid-may (progn (setq day-cnt (1+ day-cnt)) (insert (if (stringp org-agenda-format-dat (if (or rtnall org-agenda-show-all-dates) (progn (setq day-cnt (1+ day-cnt)) (while (setq d (pop day-numbers)) (setq date (calendar-gregorian-from-absolut (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-s org-agenda-list(nil) call-interactively(org-agenda-list) (cond ((setq entry (assoc keys org-agenda-custom-commands)) (if (or (symbolp (let* ((prefix-descriptions nil) (org-agenda-window-setup (if (equal (buffer- (catch (quote exit) (let* ((prefix-descriptions nil) (org-agenda-window-setup org-agenda(nil) call-interactively(org-agenda nil nil)
Re: [O] org-agenda-list (from git) giving args-out-of-range error
Karl Fogel kfo...@red-bean.com wrote: [please keep me CC'd, as I'm a digest subscriber on this list] Suddenly C-c a a (`org-agenda-list') has started giving me this error: args-out-of-range #( ots: 0 14 (org-category ... Backtrace attached. This is with today's bleeding edge Org Mode code, pulled from git://orgmode.org/org-mode.git. I think the bug must be content-sensitive, since the only thing that changed was the content of some of my .org files (the ones listed in `org-agenda-files'). After encountering the bug, I upgraded to bleeding-edge org-mode, and saw that the bug reproduces there too. I can't find much on the Net about this problem, though this expired StackOverflow question seems to be the same thing: http://stackoverflow.com/questions/9460109/when-i-press-c-c-a-a-to-view-agenda-i-get-a-args-out-of-range-error That question is gone from StackOverflow now, but Google's cache still has it: http://webcache.googleusercontent.com/search?q=cache:QsaNSsILOegJ:stackoverflow.com/questions/9460109/when-i-press-c-c-a-a-to-view-agenda-i-get-a-args-out-of-range-error+emacs+org-mode+agenda+%22args-out-of-range%22cd=5hl=enct=clnkgl=us There are also some reports of org agenda exports failing similarly, but I'm not doing an export. And there's this, about how blank headlines cause a similar error: http://comments.gmane.org/gmane.emacs.orgmode/46444 Oh, I just found this -- it might be relevant: http://article.gmane.org/gmane.emacs.orgmode/41045/match=agenda+args+out+of+range I'll see if I can reproduce what that person found. Anyway, I can do Elisp debugging, and will start to do that unless someone here recognizes this problem and can add some information. Backtrace attached below. -Karl (I had to rectangularly truncate this backtrace to avoid showing confidential information, sorry, but the call stack is there anyway.) Debugger entered--Lisp error: (args-out-of-range #( ots: 0 14 (org-c match-string(2 #( ots: 0 14 (org-category ots tags nil org-highe (org-get-todo-face (match-string 2 x)) (list (quote face) (org-get-todo-face (match-string 2 x))) (add-text-properties (or (match-end 1) (match-end 0)) (match-end 0) (list (qu (progn (add-text-properties (or (match-end 1) (match-end 0)) (match-end 0) (l (if (and re (equal (string-match (concat \\(\\.*\\) re \\( +\\)) x (or pl (when (and re (equal (string-match (concat \\(\\.*\\) re \\( +\\)) x (or (let ((pl (text-property-any 0 (length x) (quote org-heading) t x))) (setq re (if (eq x (quote line)) (save-excursion (beginning-of-line 1) (setq re (org-g (let ((org-done-keywords org-done-keywords-for-agenda) (case-fold-search nil) org-agenda-highlight-todo(#( ots: 0 14 (org-category ots tags ni mapcar(org-agenda-highlight-todo (#( ots:TODO Karl to check in w/ (setq list (mapcar (quote org-agenda-highlight-todo) list)) org-finalize-agenda-entries((#( ots:TODO Karl to check in w/ Ray n (insert (org-finalize-agenda-entries (org-agenda-add-time-grid-maybe rtnall n (if rtnall (insert (org-finalize-agenda-entries (org-agenda-add-time-grid-may (progn (setq day-cnt (1+ day-cnt)) (insert (if (stringp org-agenda-format-dat (if (or rtnall org-agenda-show-all-dates) (progn (setq day-cnt (1+ day-cnt)) (while (setq d (pop day-numbers)) (setq date (calendar-gregorian-from-absolut (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-s org-agenda-list(nil) call-interactively(org-agenda-list) (cond ((setq entry (assoc keys org-agenda-custom-commands)) (if (or (symbolp (let* ((prefix-descriptions nil) (org-agenda-window-setup (if (equal (buffer- (catch (quote exit) (let* ((prefix-descriptions nil) (org-agenda-window-setup org-agenda(nil) call-interactively(org-agenda nil nil) There have been a couple of recent reports on this problem (headlines with just a timestamp cause this error) in addition to the ones you found: http://thread.gmane.org/gmane.emacs.orgmode/52621 http://thread.gmane.org/gmane.emacs.orgmode/52786 The first one contains a diagnosis and a (possibly wrong) suggested fix. Nick
Re: [O] [PATCH] Option for clock and timer to be displayed in frame-title
g.kettleboro...@uea.ac.uk writes: Attached is a patch that gives the option to show the clock and timer information in the frame title as well as the mode line (or both or neither). I find this useful as there is often not enough room in the mode line but there is enough in the frame title. I am in the process of assigning my copyright to the FSF for this and hopefully future org-mode contributions. I submit the patch now and request comments as this is my first contribution to the project. Hi George! Thanks for the patch! First comment :) This patch needs a changelog entry in the commit text and a long description would also be appreciated. The long description allows us to see the purpose of the patch and how to use it without the necessity to read and parse any of the code changes. Thanks and Regards, Bernt
Re: [O] question about org-latex-regexps
Wow, I think I'm an org pariah. Did my email violate some org cultural norm? :-) If so, I apologize. Anyone have strong feelings about whether a change like this is advisable? On Feb 27, 2012, at 12:32 PM, Colin Fraizer orgm...@cfraizer.com wrote: The variable org-latex-regexps has an element ($ \\([^$]\\|^\\)\\(\\(\\$\\([^ \r\n,;.$][^$\n\r]*?\\(\n[^$\n\r]*?\\)\\{0,2\\}[^ \r\n,.$]\\)\\$\\)\\)\\([-.,?;:'\)\000]\\|$\\) 2 nil) The 6th nested subexpression (starts with \\([-) prevents conversion of some latex math-mode stuff. Is there a reason for that subexpression to be so restrictive? Because I mostly write UTF-8 org-mode documents, I often have $some math$ followed immediately by an EN DASH or EM DASH (U+2013 or U+2014). Is there a reason why those characters could not be inserted in that character class? That is, could I change that subexpression to be \\([--- .,?;:'\)\000]\\|$\\) ? [I've tried it with a couple of files and didn't notice any problems. Thanks, --Colin
[O] Bug: ditaa breaks export [7.8.03]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. When I run `emacs -q' and evaluate `(setq org-babel-load-languages '((ditaa . t)))', then try to export an org document to PDF, after answering yes to Evaluate this ditaa code block, I get: Wrong type argument: stringp, nil Emacs : GNU Emacs 24.0.93.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-02-22 on cw-bkp0, modified by Debian Package: Org-mode version 7.8.03 current state: == (setq org-export-blocks '((src org-babel-exp-src-block nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-first-hook '(org-beamer-initialize-open-trackers) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] org-babel-hide-all-hashes) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metadown-hook '(org-babel-pop-to-session-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-confirm-shell-link-function 'yes-or-no-p ) -- Ian Dalton Philosophy Undergraduate, SUU 408-838-4797 ~ http://www.linkedin.com/in/idalton
[O] adding custom org-keymaps for EVIL Vim emulator
I was playing around with Evil and like it quite a bit. It feels better than the previous Viper/Vimpulse package I was using, plus documentation is good, clear, and it seems easy to customize. One problem with Org for me has been keybindings. Even with a Vim emulator that does a decent job of vim-ifying Emacs, it still leaves all of the (numerous) Org-specific keymappings to deal with. It turns out to be quite easy to add custom keymappings to Org-mode to make commands accessible in a more Vim-like way. I've added the code below to my .emacs and it's a good start. Maybe some vim-friendly Org users will have ideas on how to grow it from here: (define-minor-mode evil-org-mode minor mode to add evil keymappings to Org-mode. :keymap (make-sparse-keymap) (evil-local-mode t)) ; the ',num' keys give quick and easy way to hide/reveal outline ; structure of entire document (analogous to shift-tab); (evil-define-key 'normal evil-org-mode-map ,1 '(lambda() (interactive)(hide-sublevels 1))) (evil-define-key 'normal evil-org-mode-map ,2 '(lambda() (interactive)(hide-sublevels 2))) (evil-define-key 'normal evil-org-mode-map ,3 '(lambda() (interactive)(hide-sublevels 3))) (evil-define-key 'normal evil-org-mode-map ,4 '(lambda() (interactive)(hide-sublevels 4))) (evil-define-key 'normal evil-org-mode-map ,5 '(lambda() (interactive)(hide-sublevels 5))) (evil-define-key 'normal evil-org-mode-map ,6 '(lambda() (interactive)(hide-sublevels 6))) (evil-define-key 'normal evil-org-mode-map ,7 '(lambda() (interactive)(hide-sublevels 7))) (evil-define-key 'normal evil-org-mode-map ,8 '(lambda() (interactive)(hide-sublevels 8))) ; the ',,num' maps below give quick and easy way to hide/reveal outline ; structure of single subtree. depending on what sort of org ; documents you have, and how you use them, you may prefer ; to have these mappings use single ',' and have entire-document ; mappings use ',,' prefix. (evil-define-key 'normal evil-org-mode-map ,,1 '(lambda() (interactive)(hide-sublevels 1))) (evil-define-key 'normal evil-org-mode-map ,,2 '(lambda() (interactive)(hide-sublevels 1)(show-children 1))) (evil-define-key 'normal evil-org-mode-map ,,3 '(lambda() (interactive)(hide-sublevels 1)(show-children 2))) (evil-define-key 'normal evil-org-mode-map ,,4 '(lambda() (interactive)(hide-sublevels 1)(show-children 3))) (evil-define-key 'normal evil-org-mode-map ,,5 '(lambda() (interactive)(hide-sublevels 1)(show-children 4))) (evil-define-key 'normal evil-org-mode-map ,,6 '(lambda() (interactive)(hide-sublevels 1)(show-children 5))) (evil-define-key 'normal evil-org-mode-map ,,7 '(lambda() (interactive)(hide-sublevels 1)(show-children 6))) (evil-define-key 'normal evil-org-mode-map ,,8 '(lambda() (interactive)(hide-sublevels 1)(show-children 7))) ; various commands mapped below (evil-define-key 'normal evil-org-mode-map ,dd 'org-deadline) (evil-define-key 'normal evil-org-mode-map ,ds 'org-schedule) (evil-define-key 'normal evil-org-mode-map ,te 'org-set-tags-command) (evil-define-key 'normal evil-org-mode-map ,ts 'org-todo) (evil-define-key 'normal evil-org-mode-map ,r 'org-refile) (evil-define-key 'normal evil-org-mode-map ,c 'org-capture) (evil-define-key 'normal evil-org-mode-map ,ag 'org-agenda) (evil-define-key 'normal evil-org-mode-map 'org-promote-subtree) (evil-define-key 'normal evil-org-mode-map 'org-demote-subtree) (evil-define-key 'normal evil-org-mode-map . 'org-move-subtree-down) (evil-define-key 'normal evil-org-mode-map , 'org-move-subtree-up) (evil-define-key 'normal evil-org-mode-map gj 'org-forward-same-level) (evil-define-key 'normal evil-org-mode-map gk 'org-backward-same-level) (evil-define-key 'normal evil-org-mode-map gh 'outline-up-heading) (evil-define-key 'normal evil-org-mode-map gl 'outline-next-visible-heading) (evil-define-key 'normal evil-org-mode-map ,g 'org-goto) (evil-define-key 'normal evil-org-mode-map ,ex 'org-export) (evil-define-key 'normal evil-org-mode-map ,ns 'org-narrow-to-subtree) (evil-define-key 'normal evil-org-mode-map ,nw 'widen) (evil-define-key 'normal evil-org-mode-map [(return)] 'org-insert-heading-respect-content) ; add hook to load evil-org mappings in all org documents (add-hook 'org-mode-hook 'evil-org-mode)
Re: [O] adding custom org-keymaps for EVIL Vim emulator
Herbert Sitz hesitz at gmail.com writes: (define-minor-mode evil-org-mode minor mode to add evil keymappings to Org-mode. :keymap (make-sparse-keymap) (evil-local-mode t)) Whoops, I left out the earlier lines to load and enable Evil. They are below. I commented out the (evil-mode 1), which enables evil-mode in all buffers and instead call evil-local-mode in the hook function that's called when a buffer is set to 'org' type. I assume there's some better way to do this, since I do want to use Evil mode in most buffers, not just org buffers. But I was having problems in the date-editing mini buffer if I had (evil-mode 1) so I took the easy way of getting rid of that. . . Also, Evil must of course be installed before you can do these custom mappings. Here's home page for Evil: https://gitorious.org/evil/pages/Home v below to be in .emacs file v (add-to-list 'load-path c:/Program Files (x86)/Emacs/emacs/lisp/evil) (require 'evil) ; comment out line below to activate evil only in org-buffers ;(evil-mode 1) ; lines above go in .emacs above lines from previous post, which ; start as. . . (define-minor-mode evil-org-mode minor mode to add evil keymappings to Org-mode. :keymap (make-sparse-keymap) (evil-local-mode t)) [. . .]
Re: [O] [babel] [PATCH] enhanced org-babel-goto-named-src-block
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, attached is a patch that enhances org-babel-goto-named-src-block (bound to C-c C-v g by default). Included are two enhancements: 1. the point is pushed to the org-mark-ring, such that returning with C-c becomes possible 2. the target src block is guessed from a) noweb-reference b) #+call: c) #+results: d) symbol-at-point if one of these is found (in that order) - Andreas Hi all, Should C-c be included in Key Bindings and Useful Functions, Section 14.11 of the Org Mode manual? Or, is this a general Emacs thing documented elsewhere? Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] question about org-latex-regexps
Colin Fraizer orgm...@cfraizer.com writes: Wow, I think I'm an org pariah. Did my email violate some org cultural norm? :-) Not that I'm aware of :) If so, I apologize. Anyone have strong feelings about whether a change like this is advisable? This should probably go to Carsten and Nicolas since they touched it last according to git blame -L 16840,16870 lisp/org.el Regards, Bernt On Feb 27, 2012, at 12:32 PM, Colin Fraizer orgm...@cfraizer.com wrote: The variable org-latex-regexps has an element ($ \\([^$]\\|^\\)\\(\\(\\$\\([^ \r\n,;.$][^$\n\r]*?\\(\n[^$\n\r]*?\\)\\{0,2\\}[^ \r\n,.$]\\)\\$\\)\\)\\([-.,?;:'\)\000]\\|$\\) 2 nil) The 6th nested subexpression (starts with \\([-) prevents conversion of some latex math-mode stuff. Is there a reason for that subexpression to be so restrictive? Because I mostly write UTF-8 org-mode documents, I often have $some math$ followed immediately by an EN DASH or EM DASH (U+2013 or U+2014). Is there a reason why those characters could not be inserted in that character class? That is, could I change that subexpression to be \\([--- .,?;:'\)\000]\\|$\\) ? [I've tried it with a couple of files and didn't notice any problems. Thanks, --Colin
[O] Selectively export RESULTS
I sometimes create large documents with many dozens of src blocks and associated #+RESULTS. I'd like to be able to grab some of these results blocks and export them into a document. Since revisions of the src blocks can change the results, I do not want to just and to copy and paste the results in case I need to revise the sub-document(s). And with long running blocks, I do not want to use a noweb strategy to rerun the code in the src blocks. As an example, I might have this in a file with many other headlines and src blocks: , | * Selectively Export Some Results | :PROPERTIES: | :EXPORT_FILE_NAME: Selected_Results.pdf | :EXPORT_TITLE: Selected Results | :END: | | Here are the results from block named Ablock: | | #+CALL: show-results(Ablock) | | and here they are for a block named Bblock: | | #+CALL: show-results(Bblock) ` and if I put point on the headline and type C-c @ C-c C-e d, I'd like to have a document that includes the two results blocks in it after each CALL line. It looks like many of the pieces I need are available, but I don't see how to stitch them together to create the show-results() function. TIA, Chuck -- Charles C. BerryDept of Family/Preventive Medicine cberry at ucsd edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
Re: [O] Selectively export RESULTS
cbe...@tajo.ucsd.edu writes: I sometimes create large documents with many dozens of src blocks and associated #+RESULTS. I'd like to be able to grab some of these results blocks and export them into a document. Since revisions of the src blocks can change the results, I do not want to just and to copy and paste the results in case I need to revise the sub-document(s). And with long running blocks, I do not want to use a noweb strategy to rerun the code in the src blocks. As an example, I might have this in a file with many other headlines and src blocks: , | * Selectively Export Some Results | :PROPERTIES: | :EXPORT_FILE_NAME: Selected_Results.pdf | :EXPORT_TITLE: Selected Results | :END: | | Here are the results from block named Ablock: | | #+CALL: show-results(Ablock) | | and here they are for a block named Bblock: | | #+CALL: show-results(Bblock) ` and if I put point on the headline and type C-c @ C-c C-e d, I'd like to have a document that includes the two results blocks in it after each CALL line. It looks like many of the pieces I need are available, but I don't see how to stitch them together to create the show-results() function. TIA, Chuck Hi Chuck, Does this do what you want? * Selectively Export Some Results :PROPERTIES: :EXPORT_FILE_NAME: Selected_Results.pdf :EXPORT_TITLE: Selected Results :END: Here are the results from block named Ablock: #+CALL: Ablock() :exports results and here they are for a block named Bblock: #+CALL: Bblock() :exports results All the best, Tom -- Thomas S. Dye http://www.tsdye.com
[O] Bug in odt export of org files with footnotes
Hi, I started using the new odt export feature of org mode, and it turns out to be very useful, and I am very pleased with the results. I am using the latest version available with the package manager of emacs-snapshot in debian (20120216). There, the export of documents with footnotes seems to be broken. A minimal document is provided at end. It exports without problems . As soon as I add a footnote (say, at the end of The software system...numbers:, the exported document breaks. It can still be opened in libreoffice, but a complete section is missing. In a more complex document, libreoffice crashed when trying to open the document, and I recognised missing closing xml tags in content.xml. Regards, Martin #+TITLE: test.org #+AUTHOR:Martin Gürtler #+EMAIL: none@none #+DATE: 2012-02-29 Wed #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: de #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :nil #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil #+OPTIONStags:not-in-toc #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: * Protocol ** System description The software system provides the following numbers: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 It also provides letters: - q - w - e - r - t - z - u - i ** Another subsection Just to have some more words...