Re: custom function for org-babel src block export
Rudolf Adamkovič writes: > How about: > > (defvar stacker-base > "\href{https://www.example.com/stacker/?program=%s}{execute on stacker}") > > (defun org-babel-execute:stacker (body params) > (format stacker-base > (org-link-encode body '(?? ? ?( ?) ?\n > Thanks, that's a definite improvement on my version. I feel less like I'm fighting org-mode now ;). It just needs the same ":results value latex" to insert properly into the beamer export.
Re: custom function for org-babel src block export
David Bremner writes: > Ihor Radchenko writes: > >> David Bremner writes: >> >>> I am generating slides using org-beamer. I would like certain code >>> blocks to export as links containing URL-encoded content of the >>> block. >> >> Check out https://orgmode.org/manual/Advanced-Export-Configuration.html >> You may use export filter or extend ox-beamer backend, creating a new >> custom backend that will export your code blocks as desired. >> > > Thanks for the suggestion(s). > > I tried defining org-export-filter-src-block-functions (see end) > but I encountered two issues > My "good enough for now" solution is to use a second emacs-lisp code block as below. This requires a bit of care to keep the link in sync with the exported code, but is otherwise workable. #+name: smol-test #+begin_src smol (deffun (f x) (+ x 1)) #+end_src #+begin_src emacs-lisp :eval true :exports results :noweb yes :results value latex (db-stacker-link "<>") #+end_src #+results: #+begin_export latex \href{https://www.example.com/stacker/?program=%28deffun%20%28f%20x%29%20%28+%20x%201%29%29}{execute on stacker} #+end_export
Re: custom function for org-babel src block export
Ihor Radchenko writes: > David Bremner writes: > >> I am generating slides using org-beamer. I would like certain code >> blocks to export as links containing URL-encoded content of the >> block. > > Check out https://orgmode.org/manual/Advanced-Export-Configuration.html > You may use export filter or extend ox-beamer backend, creating a new > custom backend that will export your code blocks as desired. > Thanks for the suggestion(s). I tried defining org-export-filter-src-block-functions (see end) but I encountered two issues 1) The text already includes the latex environment (in my case listings). This is solvable, but did make me wonder if I was using the right filter. 2) I could not figure out how to cleanly access the source language (e.g. "stacker" in my example). It didn't seem to be in "info". I guess I can recover it from the text using e.g. regex, but this seems fragile, since it would break when switching backends. ;; (defun db-ox-src-filter (text backend info) (when (org-export-derived-backend-p backend 'latex) (db-stacker-link text))) (add-to-list 'org-export-filter-src-block-functions #'db-ox-src-filter)
custom function for org-babel src block export
I am generating slides using org-beamer. I would like certain code blocks to export as links containing URL-encoded content of the block. As an example I would like the following block #+begin_src stacker (defvar x 1) (deffun (f) (defvar y 2) (deffun (h) (+ x y)) (h)) (f) #+end_src would be exported as something like \href{https://www.example.com/stacker/?program=%28defvar%20x%201%29%0A%28deffun%20%28f%29%0A%20%20%28defvar%20y%202%29%0A%20%20%28deffun%20%28h%29%0A%20%20%20%20%28+%20x%20y%29%29%0A%20%20%28h%29%29%0A%28f%29}{execute on stacker} I can do the encoding easily enough (see end), but I did not see a way of hooking that up to org-babel, while retaining the ability to also use minted or listings for other blocks. I need the ability to use noweb expansion, so using a custom block type seems unattractive (at least at first glance). ;; (defvar stacker-base "\href{https://www.example.com/stacker/?program=%}{execute on stacker}") (defun db-stacker-link (prog) (format stacker-base (org-link-encode prog '(?? ? ?( ?) ?\n
Re: tangling from multiple files
"Berry, Charles" writes: > I see. > > It looks like you are back to `org-babel-lob-ingest'. > > Maybe the issue you raised at the start of having to re-ingest after changes > could be addressed by a function in `org-babel-pre-tangle-hook'. Thanks for the suggestion. I wrote up my solution at http://www.cs.unb.ca/~bremner/blog/posts/tangle-multi/ It doesn't really seem robust enough to be included in org-mode (even if rewritten to remove the use of a hook), but it gets the job done for me. d
Re: tangling from multiple files
"Berry, Charles" writes: > Oops. Correction below. > >> On Mar 18, 2020, at 7:38 PM, Berry, Charles wrote: >> >> >> Right. It does not work directly for tangling. So also use >> >> #+export_file_name: b2.org >> >> (say) >> >> Then load ox-ob.el, > > load ox-org.el, rather. > >> export as C-c C-e O o (org-org-export-to-org), visit b2.org and tangle from >> there. I finally got around to trying this. In a broad sense it works, but (at least with default settings) it loses the keywords on individual source blocks. if a.org looks like #+include: c.org #+export_file_name: foo.org #+begin_src python :tangle foo.py :noweb true <> def hello(): test() #+end_src then foo.org looks like # Created 2020-04-04 Sat 15:03 #+TITLE: #+AUTHOR: David Bremner #+name test.py #+begin_src python def test: print("test") #+end_src #+export_file_name: foo.org #+begin_src python <> def hello(): test() #+end_src Since my org files all tangle to multiple source files, this doesn't really work for me. I guess I could have a single wrapper file for each file I want to tangle to, but I have other keywords e.g. :shebang, whose loss will still break things. d
Re: tangling from multiple files
"Berry, Charles" writes: >> On Mar 17, 2020, at 4:21 PM, David Bremner wrote: >> >> >> I've seen this question around e.g. stack overflow, but none of the >> answers I found seems really satisfactory. >> >> I'd like to share a set of begin_src / end_src blocks in a.org between >> b.org and c.org; in particular b.org and c.org contain noweb references >> to names defined in a.org. Is there a better way than using >> (org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring >> manual action every time a.org changes. >> > > > Put > > #+include: ./a./org > > directives in b.org and c.org > > You might want to put the directives inside a non-exported drawer. See > `org-export-with-drawers’ docstring. This works fine (modulo the extra /) for exporting, but doesn't seem to work for tangling. Does it work for tangling for you; i.e. is b.scm produced with the two defines in it? d
tangling from multiple files
I've seen this question around e.g. stack overflow, but none of the answers I found seems really satisfactory. I'd like to share a set of begin_src / end_src blocks in a.org between b.org and c.org; in particular b.org and c.org contain noweb references to names defined in a.org. Is there a better way than using (org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring manual action every time a.org changes. For example, here is a.org #+name: x.scm #+begin_src scheme (define x 1) #+end_src #+name: y.scm #+begin_src scheme (define y 2) #+end_src and here is b.org. You can imagine c is similar, but maybe swaps the order of x and y #+begin_src scheme :tangle "b.scm" :noweb strip-export <> <> #+end_src # Local Variables: # eval: (org-babel-lob-ingest "a.org") # End:
Re: excluding noweb references completely from exports
"Fraga, Eric" writes: > On Saturday, 4 Jan 2020 at 14:15, David Bremner wrote: >> Any better ideas for how to do this? In case it's not clear, I want >> include files in my tangled output that don't show in the beamer >> export. > > Export and tangling are orthogonal to each other and are controlled > independently by their respectively keywords in the src header > lines. In other words, I am not sure I understand what one has to do > with the other. > > Would you please give an example that does not work the way you want it? The attached exports with a blank line after the comment, which I don't want. The comment is just added to highlight the problem, so normally the blank line is at the beginning of the exported code block. #+STARTUP: beamer #+OPTIONS: toc:nil #+PROPERTY: header-args :noweb strip-export :shebang "#lang plait" :tangle-mode (identity #o644) #+LATEX_HEADER: \usepackage{listings} * A frame #+BEGIN_SRC scheme :tangle tangled.rkt ; there is a blank line after this comment <> (Snake? (Snake 'Slimey 10 'rats)) ; => #t (Snake? (Tiger 'Tony 12)) ; => #t #+END_SRC #+NAME: include/animal-type.rkt #+BEGIN_SRC scheme :export none (define-type Animal [Snake (name : Symbol) (weight : Number) (food : Symbol)] [Tiger (name : Symbol) (weight : Number)]) #+END_SRC
excluding noweb references completely from exports
At the end you can find a cut down version of an org-mode file I am using to generate some beamer slides. This works as written, but it feels clumsy to use two src blocks for every snippet. I have tried putting the <> in the main src block, but this either generates a blank line or if I delete the newline after >>, the export looks fine but the source is ugly to edit. Any better ideas for how to do this? In case it's not clear, I want include files in my tangled output that don't show in the beamer export. Please CC me with any replies, I'm not on the list. #+STARTUP: beamer #+OPTIONS: toc:nil #+PROPERTY: header-args :noweb strip-export :shebang "#lang plait" :tangle-mode (identity #o644) #+BEGIN_SRC plait :tangle tangled.rkt :export none <> #+END_SRC #+BEGIN_SRC plait :tangle tangled.rkt #;(Snake 10 'Slimey 5) ; => compile error: 10 is not a Symbol (Snake? (Snake 'Slimey 10 'rats)) ; => #t (Snake? (Tiger 'Tony 12)) ; => #t ;(Snake? 10) ; => compile error #+END_SRC #+NAME: include/animal-type.rkt #+BEGIN_SRC plait :export none (define-type Animal [Snake (name : Symbol) (weight : Number) (food : Symbol)] [Tiger (name : Symbol) (weight : Number)]) #+END_SRC
[O] exporting columnview with properties and text
I have some 40 files like the following. I would like to export them in some more friendly to read form without losing either properties or the comments in between the headlines. Any ideas? Please CC, I'm not subscribed to the list. #+COLUMNS: %ITEM %SCORE(score){+} * total ** Q1 *** a :PROPERTIES: :score:0 :END: - this answer is completely off base *** b :PROPERTIES: :score:1.5 :END: - seems to be a mostly correct (if not very efficient) algorithm for the incorrect definition above. *** c :PROPERTIES: :score:0 :END: - blank
[O] Bug: org-clock-display dependence on org-clock-display-default-range is undocumented [8.3.2 (8.3.2-dist @ /usr/share/emacs24/site-lisp/org-mode/)]
Emacs : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.2) of 2015-10-24 on trouble, modified by Debian Package: Org-mode version 8.3.2 (8.3.2-dist @ /usr/share/emacs24/site-lisp/org-mode/) Today being January first, the definition of 'thisyear changed rather suddenly, and I spent a while trying to understand why org-display-clock was "broken". Of course it wasn't really broken, but I could have solved my problem quicker if the docstring and/or the info page had mentiond variable org-clock-display-default-range current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-agenda-clockreport-parameter-plist '(:link t :maxlevel 3) org-texinfo-format-drawer-function '(lambda (name contents) contents) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-clock-display-default-range 'untilnow org-notmuch-search-open-function 'org-notmuch-search-follow-link org-reverse-note-order t org-time-clocksum-format '(:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-clock-into-drawer "CLOCK" org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-columns-default-format "%25ITEM %TODO %3PRIORITY %TAGS %5CLOCKSUM" org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-pdf-process '("lualatex -interaction nonstopmode -output-directory %o %f" "lualatex -interaction nonstopmode -output-directory %o %f" "lualatex -interaction nonstopmode -output-directory %o %f") org-agenda-skip-scheduled-if-done t org-return-follows-link t org-latex-format-headline-function 'org-latex-format-headline-default-function org-default-notes-file "~/.org/notes.org" org-agenda-include-diary t org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((org-agenda-files :level . 1) (nil :level . 1) (nil :level . 2) (nil :level . 3)) org-texinfo-format-headline-function 'org-texinfo-format-headline-default-function org-archive-hook '(org-attach-archive-delete-maybe) org-agenda-sorting-strategy '((agenda time-up priority-down category-up) (todo category-keep priority-down) (tags category-keep priority-down) (search category-keep)) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path t org-directory "~/.org" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-notmuch-open-function 'org-notmuch-follow-link
Re: [Orgmode] Re: Org support for the notmuch mail client
On Sun, 05 Dec 2010 18:19:39 +0100, Matthieu Lemerre ra...@free.fr wrote: I should have mentioned that the reason why I wrote it is that I would very much like to have it included in org-mode, and I'm OK to sign the copyright papers if necessary. Sigh. The FSF and my University still haven't been able to come to an agreement on a disclaimer. So, by all means, use Mathieu's code if it is less bureaucratically encumbered. It would be nice if the link format was compatible; there are few brave souls using my patch. d ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] notmuch support for org-mode?
On Tue, 10 Aug 2010 09:40:05 +1000, Bart Bunting b...@bunting.net.au wrote: Hi all,, A while back a notmuch link patch was posted to the list. I think it was written by David Bremner but don't appear to be able to find the exact mail now. Is there any update on the patch and or plans to include it in official org-mode release? Sadly the patches remain mired in negotiations between the FSF and my university as far as inclusion in an official org-mode release. But, you are welcome to use them in the mean time. You can find them at http://pivot.cs.unb.ca/git/?p=org-mode.git;a=shortlog;h=refs/heads/notmuch-link The network to that machine is down right now thanks to high voltage electrical work, but it should be up again tommorow. d ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] pretty export of tags
I would like some more control over how tags are exported to PDF. I tried both latex and docbook based methods, and as far as I can tell, in both cases the treatment is hard-coded (at least in the docbook case it does mark them as being different from the headline). Is there some existing trick I should know about? I'd like the tags e.g. right justified, or on the next line in a box. The HTML treatment is almost OK. David ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Updated patches for linking to notmuch mail from org
On Tue, 6 Apr 2010 12:13:48 +0200, Carsten Dominik carsten.domi...@gmail.com wrote: Hi David, before we take this further, what is your copyright status with the FSF? - Carsten Some years ago (possible 20) I sent a copyright assignment for some contributions to bookmark.el (see the comments therein), so it should be OK. I don't know if there is some way to verify that is less work than sending another assignment. d ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Updated patches for linking to notmuch mail from org
I'm happy to report that my patches for org-mode to support linking to notmuch mail are usable with the current master branch of notmuch (as of a few hours ago). These have been tested for a while, but I think only by me. I find them incredibly useful (well, I found the links to Wanderlust very useful as well, but notmuch is much faster for various reasons). ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH 1/2] Initial version of link support for the notmuch mail system.
It requires a version of notmuch from git after April 5 2010. The code here is based on org-wl.el. One thing to note is that links to threads are faked as a collection of message ids. This is because notmuch thread-ids are currently not stable between dump/restore of the database. --- lisp/org-notmuch.el | 87 +++ 1 files changed, 87 insertions(+), 0 deletions(-) create mode 100644 lisp/org-notmuch.el diff --git a/lisp/org-notmuch.el b/lisp/org-notmuch.el new file mode 100644 index 000..82c31a5 --- /dev/null +++ b/lisp/org-notmuch.el @@ -0,0 +1,87 @@ +;;; org-notmuch.el --- Support for links to notmuch messages from within Org-mode +;; Author: David Bremner da...@tethera.net +;; License: GPL3+ +;;; Commentary: + +;; This file implements links to notmuch messages from within Org-mode. +;; Link types supported include +;; - notmuch:id:message-id +;; - notmuch:show:search-terms +;; - notmuch:search:search-terms +;; +;; The latter two pass the search terms to the corresponding notmuch-* +;; function. 'id:' is an abbreviation for 'show:id:' search-terms is +;; a space delimited list of notmuch search-terms. +;; +;; Currently storing links is supported in notmuch-search and +;; notmuch-show mode. It might make sense to support notmuch-folder +;; mode too. Because threads-ids are currently not save/restore safe, +;; they are converted into a list of message-ids. +;; +;; Org-mode loads this module by default - if this is not what you want, +;; configure the variable `org-modules'. +;;; Code: + +;; Install the link type +(org-add-link-type notmuch 'org-notmuch-open) +(add-hook 'org-store-link-functions 'org-notmuch-store-link) + +;; Configuration +(defvar org-notmuch-mid-limit 10 + Maximum number of message ids to store for a thread) + +;; Implementation +(defun org-notmuch-store-link () + Store a link to the currently selected thread. + (require 'notmuch) + (when (memq major-mode '(notmuch-show-mode notmuch-search-mode)) +(if (equal major-mode 'notmuch-search-mode) + (org-notmuch-do-store-link +(org-notmuch-build-thread-link) +(notmuch-search-find-authors) +(notmuch-search-find-subject)) + (org-notmuch-do-store-link (notmuch-show-get-message-id) + (notmuch-show-get-from) + (notmuch-show-get-subject) + +;; sigh. there doesn't seem to be such a function. +(defun org-notmuch-n-first (list n) + (if ( n 0) + (cons (car list) + (org-notmuch-n-first (cdr list) (1- n))) +nil)) + +(defun org-notmuch-build-thread-link () + Expand the thread-id on the current line to a list of message-ids + (require 'notmuch-query) + (let* ((current-thread (or (notmuch-search-find-thread-id) + (error End of search results))) +(message-ids + (org-notmuch-n-first + (notmuch-query-get-message-ids current-thread) + org-notmuch-mid-limit))) +(concat show: + (mapconcat (lambda (id) (concat id: id)) message-ids + +(defun org-notmuch-do-store-link (id author subject) + (let ((link (org-make-link notmuch: id))) +(org-store-link-props :type notmuch :from author :subject subject) +(org-add-link-props :link link :description (org-email-link-description)) +link)) + + +(defun org-notmuch-open (link) + Open a link with notmuch. id: or show: links are opened directly with notmuch-show +otherwise notmuch-search is used to give an index view + (require 'notmuch) + (cond + ((string-match ^show:\\(.*\\) link) +(notmuch-show (match-string 1 link))) + ((string-match ^search:\\(.*\\) link) +(notmuch-search (match-string 1 link))) + ((string-match ^id:.* link) +(notmuch-show link)) + (t (notmuch-search link + + +(provide 'org-notmuch) -- 1.7.0 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH 2/2] Add org-notmuch.el to Makefile and to org-modules.
--- Makefile|1 + lisp/org.el |3 ++- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 18b37d3..177139f 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,7 @@ LISPF = org.el \ org-mhe.el \ org-mobile.el \ org-mouse.el\ + org-notmuch.el \ org-publish.el \ org-plot.el \ org-protocol.el \ diff --git a/lisp/org.el b/lisp/org.el index 48ec349..a27b431 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -170,7 +170,7 @@ With prefix arg HERE, insert it at point. (let ((a (member 'org-infojs org-modules))) (and a (setcar a 'org-jsinfo -(defcustom org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-w3m org-wl) +(defcustom org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-w3m org-wl org-notmuch) Modules that should always be loaded together with org.el. If a description starts with C, the file is not part of Emacs and loading it will require that you have downloaded and properly installed @@ -201,6 +201,7 @@ to add the symbol `xyz', and the package must have a call to (const :tagmac-message: Links to messages in Apple Mail org-mac-message) (const :tagmewLinks to Mew folders/messages org-mew) (const :tagmhe: Links to MHE folders/messages org-mhe) + (const :tagnotmuch: Links to Notmuch threads/messages org-notmuch) (const :tagprotocol: Intercept calls from emacsclient org-protocol) (const :tagrmail: Links to RMAIL folders/messages org-rmail) (const :tagvm:Links to VM folders/messages org-vm) -- 1.7.0 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Notmuch: An emacs interface for fast global search and tagging of email
For those of you interested in notmuch and org-mode, I have a preliminary version of support for links from org-mode files to notmuch. Currently the following are working * Supported by org-store-link ** Link to a thread [[notmuch:thread:35471bef770cf624005d52a155bd140e][Email from Aneesh Kumar K. V.: {notmuch} {PATCH 1/2} notmuch-]] ** Link to a specific message [[notmuch:id:87pr9724pv@fastmail.fm][email from Matt Lundin: {Orgmode} Re: HTML export: How]] * Manually created links ** Link to a tag search [[notmuch:tag:notmuch][Search notmuch about notmuch]] ** Link to an aritrary search [[notmuch:Thisbe%20dog][Search for Thisby dog]] If you want to try it out, you need a recent org-mode, the file org-notmuch.el http://pivot.cs.unb.ca/git/?p=org-mode.git;a=blob_plain;f=lisp/org-notmuch.el;hb=notmuch-link And a patched notmuch.el from http://pivot.cs.unb.ca/git/?p=notmuch.git;a=blob_plain;f=notmuch.el;hb=org-link Of course you can just clone those two git repos if you want. The org-mode side is still subject to change as Carl merges/modifies/rejects my proposed patches to notmuch. David ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [OT] Emacs for email?
Keith Lancaster wrote: I apologize for the WAY off topic question, but since you folk are emacs expertsdo you use emacs for email, and if so, what do you use? Org-mode caused me to switch to emacs after programming for 30 years in other editors, and so like many emacs converts, I'm not wanting to exit the app :-). I use wanderlust. It interacts with Org-mode pretty well. See back on topic :). I used to use VM, but at the time (a few years ago), the imap was a bit of an afterthought. Some people like mew, I think it is a bit simpler than wanderlust if you don't need the offline features of wanderlust. A very new contender is notmuch, but IMHO, it is not quite ready for general use. d ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [org-mobile] Pushing without custom agendas defined does not create agenda.org
I don't have any custom agenda views defined (I know, I must be a newbie). When I run org-mobile-push, the file agenda.org is not created. Is this the way things are intended to work? d ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [org-mobile] Pushing without custom agendas defined does not create agenda.org
Carsten Dominik wrote: On Nov 24, 2009, at 4:17 PM, David Bremner wrote: I don't have any custom agenda views defined (I know, I must be a newbie). When I run org-mobile-push, the file agenda.org is not created. Is this the way things are intended to work? It was until a few minutes ago. Now you will get the weekly agenda and the global todo list in that file, and you can configure which agendas you want in `org-mobile-agendas'. Thanks, that sounds perfect. I'll have to wait a bit to test it, but I'll report back when I do. David ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Feature request: Periodic events based on count of specific weekdays
Ben Finney wrote: I'm surprised at this assertion. Just about every club or social organisation, etc., that I've heard of that meets monthly, does so by meeting “on the second Tuesday of the month” or equivalent monthly specification. It's surely not seldom in my experience. I missed some context, so maybe this was already mentioned, but for things like this it should be possible to use diary lisp style date entries %%(diary-float t 2 1) 19:00 Club meeting seems to do the First Tuesday of the month for me. Notice that there must be no space at the beginning of the line. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Proposed key binding changes: archiving and attachments
At Sat, 7 Nov 2009 07:33:30 +0100, Carsten Dominik wrote: I actually think that few people use archiving to sibling. Am I wrong about this? For what it is worth, I have started to use archive to sibling quite a lot in the last month or so. I also like to tidy up my org files, but I need to keep the structure for monthly and tri-monthly clock tables. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [orgmode] Solutions of blogging tools for org-mode
Juan Reyero wrote: I am looking for in a blogging engine is a way to mark entries as belonging to the blog, and generation of an RSS feed that includes them; all other things, including publishing and HTML export, are already covered by standard org-mode facilities, and services like disqus for the comments. Please check the recent archives of the list for a longer discussion; some of us use ikiwiki with a contributed org-mode plugin by Manoj Srivastava. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] columnview and emacsclient (again)
Memnon Anon wrote: Hi! I still see this problem with emacsclient and columnview (cf. http://article.gmane.org/gmane.emacs.orgmode/17568/match= , especially the links to the pictures). I don't much about the causes, but when have this problem, it turns out that the org-column face is messed up. In particular, it often seems to get set to 1/10 of a point high or something silly. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: A simpler remember architecture
Jean-Marie Gaillourdet wrote: At Thu, 01 Oct 2009 14:41:39 -0400, Bernt Hansen wrote: C-u C-c C-x C-i i Perhaps, it's worth considering shorter and easier to remember keyboard shortcuts. It is actually not quite as bad is it sounds. - C-u is the generic do it differently prefix - C-c C-x C-i is the usual start the clock in org. Unfortunately org has so many commands, that it is probably hard to find a two key sequence. At that point a menu pops up, and you choose i. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] A student hopes to learn more about the Org-Mode Community and free/open source software
At Thu, 17 Sep 2009 11:46:26 -0400, Tiebing Shi wrote: !-- /* Font Definitions */ @font-face {font-family:#23435;#20307;; panose-1:2 1 6 0 3 1 1 1 1 1; The first thing you'll find out is that we are a bit fussy about email. I suggest you switch to an email client that understands how to send plain text, and send only plain text to mailing lists. As I'm sure you understand, every community has its own definitions of professionalism. Although the community is different, you may find the following page helpful: http://people.debian.org/~mjr/surveys.html ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Feature Request: insert/delete rows in column view
Carsten Dominik wrote: What is so bad about exiting column view, doing the structure changes and then going back in? The problem is that structure changes potentially affect summary columns, so it is not a good idea to do this in column view. I can certainly live with it. I made the request after spending a day editing a document in column view, and finding my fingers kept hitting C-k and return, and discovering they did nothing in column view. So my brain is fine with the concept; I expect the fingers will catch up eventually. David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Feature Request: insert/delete rows in column view
Maybe this is difficult for reasons I don't know about, but it would be very nice to insert and delete rows in column view. I agree that deleting a row could kill a lot of text, but no differently than a folded view. For inserting, maybe below the current row. Of course then I'll be wanting to edit structure too, move rows up and down and change their indent level. All the best, David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Why not emacs -Q for byte-compiling org-mode in the Makefile
At Sun, 3 May 2009 21:52:05 +0200, Carsten Dominik wrote: On May 3, 2009, at 9:29 PM, Tassilo Horn wrote: is there a specific reason that the Makefile uses emacs -q and not emacs -Q for byte-compiling org-mode? this is a good idea, but -Q is not understood by XEmacs, and I am not even sure about Emacs 22. at least for Emacs 22, it works. XEmacs apparently has -no-site-file as equivalent to --no-site-init, so it would be possible to do something similar. Of course then you have switches depending on Emacs family, and I could see that being too much trouble. David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Agenda clock report - adding new columns
At Thu, 16 Apr 2009 13:02:03 -0400, Bernt Hansen wrote: (replying to my own post) Bernt Hansen be...@norang.ca writes: Maybe I'm over-engineering this... Just putting the limit in the headline text works for me... I just added [MAX xxx] and [MIN yyy] to my headline and that'll work. It's probably not a pretty as a property could be but it's _lots_ less work to implement :) There is the possibility of :formula parameter for clocktable's, which can be added to the agenda clocktable with org-agenda-clockreport-parameter-plist. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] iPhone ---- org-mode
At Fri, 27 Mar 2009 18:29:02 +0100, Carsten Dominik wrote: Brilliant. Just what I was asking for in my Posting last week. As I have argued, solutions like this would be the most important piece of development. However, it would be a pity to have this iPhone-only. The Emacs side will be general, and I guess there is no way to make a general mobile side? Conceivably some portability is acheivable using e.g. python on jailbroken iphones. No idea how much of the UI code is portable. Obviously not everyone is comfortable jailbreaking their iphone. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] blorg??
Rustom Mody wrote: They've started sending me their reports in org format. I was considering the next step of making them blog rather than use mail for their reports and was wondering if blorg.el is the way to go. (Gather that blorg is not really stable) Any other suggestions (org-oddmuse.el??) As I think mentioned once before on the list, you can use the Org backend by Manoj Srivastava with ikiwiki. Ikiwiki can use git as a backend, so that might give you a nice way for people to file reports. It works fine for me (I mostly use it to insert tables into markdown documents). d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] FR: org-clock-goto last-clock
It would be useful to me for org-goto-clock to go to the last headline that I clocked out of (in order to restart it). It seems this information is (usually) in the variable org-clock-heading even if there is no current clock running. All the best David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: FR: org-clock-goto last-clock
Mikael Fornius wrote: Does the prefix argument help you? With C-u C-c C-x C-j I get a menu with current and recent used clocks and can select easily with a keystroke. As usual, I just missed it. Thanks, that is perfect. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] A little warning
Carsten Dominik wrote: I am abandoning the CLOCK drawer, and instead use the LOGBOOK drawer also for CLOCK lines and clock-out notes. This makes a lot of sense to me, hopefully also to you. Is it sensible to global search and replace :CLOCK: with :LOGBOOK: to upgrade my org files? David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] time tracking common activities
J Aaron Farr wrote: I'm using org-mode to track my time on projects and todo items, but I'd also like to start tracking time I spend on things such as my email, reading rss feeds, etc. I'd prefer to continue to use org-mode for that so that all my time tracking is in one place with one system. My current thought is to have a `diary.org` file that I keep tasks that don't clearly fit in any of my projects. The file would look something like: *** DONE Checking email :email: CLOSED: [2009-02-20 Fri 18:56] :CLOCK: CLOCK: [2009-02-20 Fri 17:56]--[2009-02-20 Fri 18:56] = 1:00 :END: I don't see anything wrong with this, but I also don't see the need for a TODO. Do you need to be reminded to check email? You could just make a headline, and clock on that. Clocktables (or, maybe, clocktable view in agenda mode) could narrow down e.g. time spent reading email in one week. I guess you would still have to think about comfortable ways to find the right file/buffer and clock in there. David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] clocktable agenda view?
I would like an agenda view that summaries the time for various projects for the current week. Something like a clocktable block, but that is dynamic (i.e. doesn't need a new file created) and allows navigation to the corresponding projects/files. I tried clocksum, but it gives the total times, which is not what I want. Is clocksum property configurable somehow? I see org-clock-sum takes a start and end time, but I'm not sure how to use that. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] revert all agenda buffers
Hi Org-wizards; I am using git to to sync my org files between various hosts. The problem is that when I update the files on disk (i.e. with a git pull) then I have to manually revert each current org buffer (or, restart emacs, like that is going to happen :-) ). It would be nice if there was an analog of org-save-all-org-buffers that reverted them all for me. Am I missing an existing solution? d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Citing articles, bibliography and html export
At Tue, 10 Feb 2009 18:33:31 +0100, Manuel Hermenegildo wrote: Some time ago I had some success in a similar context (writing an autodocumenter for the Ciao programming language) where I needed to generate citations in a format different from latex. I managed to do this by writing a new .bst file (the bibliography style file that controls the format in which bibtex formats the references that it outputs). Hope it helps. --Manuel Unless you like forth, bst programming is not much fun. There is also e.g. the Text::BibTeX perl module, python-bibtex and probably other options parsing for the bibtex format. There is also ebib [1], a bibtex editor for emacs, but I'm not sure if deals with formatting entries, which is the main issue here. [1] http://ebib.sourceforge.net/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-tab-follows-link
Carsten Dominik wrote: is there anyone who used org-tab-follows-link? The implementation is bad and I woud like to remove this option. I just started using it. I guess I could go back to org-return-follows-link, although I remember there was discussion about the implementation of that one as well. d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] clocktable and ISO week
I have a clocktable that begins like this. #+BEGIN: clocktable :maxlevel 2 :block 2009-W05 :scope agenda-with-archives Clock summary at [2009-01-27 Tue 17:15], for week 2009-W04. [contents snipped] #+END: Whatever week I put in :block, it puts one less in the title. It seems actually gather the clock data from the right week, but the title is wrong? Or I misunderstand something as usual :-). I tried emacs22 and emacs23 (emacs-snapshot on debian) and org-mode 6.19b (6.17c was the same IIRC). d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] DONE todo's in agenda view
I'm a bit embarrassed to ask this, because it seems like it must be a FAQ, but I'm stuck. I have (setq org-agenda-skip-scheduled-if-done t) (setq org-agenda-skip-deadline-if-done t) in my .emacs, but there are still many DONE todos in my weekly agenda (C-c a a) Can someone give me a hint what I should look for? Have I misunderstood the documentation? I am using org-mode 6.16c (debian unstable package) and emacs 22.2.1 d ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: DONE todo's in agenda view
Bernt Hansen wrote: Sorry for the confusion - I meant active timestamps _outside_ of the DEADLINE: or SCHEDULED: entries. [snip] but if I add an active timestamp to it like this it does show up ,[ test.org ] | * DONE Some task | DEADLINE: 2009-01-10 Sat CLOSED: [2009-01-17 Sat 16:19] | - State DONE [2009-01-17 Sat 16:19] | 2009-01-10 Sat ` OK, thanks for explaining things for me. So it looks like I should use DEADLINE instead of plain timestamps. David ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] import mail messages like mhc?
At Sat, 25 Oct 2008 18:30:18 +0100, Ben Alexander wrote: Completely unrelated to org-mode: I would love to move my email to Emacs and use something like this, but I the only solutions I can understand rely on moving mail from my IMAP based inbox onto the local system. [snip] Does anyone have some cheap advice on mixing email and org-mode? Wanderlust has good support for disconnected operation with IMAP, including refiling, deleting, replying... Since I haven't gotten any further than wishing Emacs could read my mail, I haven't looked to see if the (org-store-link) does the right magic thing in Rmail and/or Gnus. According the org-mode manual, there is all kinds of support for linking from your org-mode buffer back to the original email. The linking to mail messages is good (at least in Wanderlust, where I tested it), but it grabs only the subject header by default. [snip] of the cruft of the To: field and the Subject: field. But within the minibuffer, I could hit C-p to get the the line with the date and *poof* like magic it found the date. And the minibuffer shows you what date it has computed. I'll have to play with that a bit, I'm hoping for something relatively automatic. For example, MHC grabbed the 'next monday' out of your message and turned that into 2008/10/27. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode