Re: [Orgmode] Adding a timestamp after refiling
Hi Charles, On Mar 25, 2010, at 3:43 AM, Charles Cave wrote: I use a task planning methodology From Mark Forster called Autofocus (http://www.markforster.net/autofocus-index/) Part of the workflow is rewriting a task at the end of the list of things to do - in orgmode terms - refiling a task. Would it be possible to add functionality to add a date/time stamp when a task is refiled? I have looked at the Tracking TODO state changes documentation in section 5.3.2 and this style of logging would be good. I am not a Lisp programmer but I have heard the term hook in regard to org-mode, so I assume there is some point in the code for each function to add extra functionality before or after a function is done? For example, after executing the org-refile command, add a date time stamp to the heading. This requires small changes in a few places in org.el, so a single hook would not be enough here. I have just added a variable `org-log-refile' which does what you asked for. Best wishes - Carsten ___ 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: Timeline of completed tasks?
Yep, that looks like what I wanted. Thanks. On Wed, Mar 24, 2010 at 9:00 PM, Memnon Anon gegendosenflei...@googlemail.com wrote: Ryan Thompson r...@thompsonclan.org writes: Hi, Is there any way to view a timeline or agenda of completed tasks? That is, can I invert the normal logic of excluding finished tasks from the agenda? ,[ (info (org)Agenda commands) ] | `v l or short l' | Toggle Logbook mode. In Logbook mode, entries that were marked | DONE while logging was on (variable `org-log-done') are shown in | the agenda, as are entries that have been clocked on that day. | You can configure the entry types that should be included in log | mode using the variable `org-agenda-log-mode-items'. When called | with a `C-u' prefix, show all possible logbook entries, including | state changes. When called with two prefix args `C-u C-u', show | only logging information, nothing else. ` ,[ (info (org)Timeline) ] | 10.3.4 Timeline for a single file | - | | The timeline summarizes all time-stamped items from a single Org mode | file in a _time-sorted view_. The main purpose of this command is to | give an overview over events in a project. | | `C-c a L' | Show a time-sorted view of the Org file, with all time-stamped | items. When called with a `C-u' prefix, all unfinished TODO | entries (scheduled or not) are also listed under the current date. | | The commands available in the timeline buffer are listed in *note | Agenda commands::. ` Does that help? ___ 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 ___ 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: Basic orgmode tutorial
On Mar 24, 2010, at 9:49 PM, Memnon Anon wrote: Dan Davison davi...@stats.ox.ac.uk writes: Yes, exactly. I want to counter some of the recent pessimism on this topic. Org-mode is very attractive to people in its own right, and as it happens it is implemented in emacs. I know one person who has used org-mode constantly for a couple of years now, purely for the agenda and todo lists, without ever aquiring any ability or interest in using emacs per se. She knows the keys to change TODO states, set timestamps and call up the agenda and that was all that was needed. Although only scraping the surface of what org-mode can do, the fact that someone who otherwise only uses MS Word and firefox is still using org-mode after two years says something *extremely* positive about org-mode. [...] That also brings up the question of org-CUA-compatible -- would that be set in this putative newbie org configuration? [...] So what I am saying is that org-mode is sufficiently attractive that we should expect non-emacs users to be attracted to it, and that we should be optimistic about the ability of such people to start using org-mode. And that yes, we need to work on the configuration for them. I recently installed emacs for a co-student of mine, just to give her the ability to have the outline. She struggled with organizing her notes on her research (first semester ;), so I suggested to her to have a look at the outline tools out there; after she tried some of the solutions available, I finally showed her orgmode, and she really chose org. Reason: Cleaner look, less clutter: Some of the menus in the other programs were overwhelming for her and org offered her exactly what she wanted. She is a student with average computer/software knowledge: Watch movies, use firefox, use openoffice. And thats it. I will ask her for feedback, I haven't spoken to her lately. One thing, however, I noticed at once: I installed for her the official emacs windows build, and the inconsistent mouse usage was a problem. Inconsistent not in itself, just different to what she learned and expects how mouse, copy and paste, selecting text etc. works. It broke her pattern of usage, and it was interesting to see, how confusing that is from an outside perspective. ;). I wish I had chosen Lennart Borgmanns Built, which, I guess - I am on linux only, comes with a more sensible set of preconfigurations. Memnon ... P.S.: Crazy idea: Would it be possible to use the mouse to move Headlines like M-up/M-down does? I do not understand it, but again and again I see computerusers cherishing their beloved rodent. Even heavy computer users find it hard to remember keystrokes. Or they are just unwilling to invest the effort ... I believe that org-mouse.el might have some limited support for this. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Export buffer w/o filename to ASCII errors out (patch attached) [6.34trans (release_6.34c.221.gadb2)]
Applied, thanks. - Carsten On Mar 24, 2010, at 9:51 PM, David Maus wrote: 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 exporting a buffer without associated filename and no #+TITLE set to ASCII using C-c C-e A Org errors out with Wrong type argument: stringp, nil. The problem is that `org-export-as-ascii' tries to obtain the document's title and falls back to (buffer-file-name) -- what is nil for a buffer w/o associated file. Steps to reproduce: - create shiny new buffer C-x b *test* RET - turn on Org M-x org-mode RET - maybe insert something - C-c C-e A Attached patch fixes this by using (buffer-file-name) only if there is one and falls back to UNTITLED. -- David Emacs : GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of 2010-03-11 on elegiac, modified by Debian Package: Org-mode version 6.34trans (release_6.34c.221.gadb2) current state: == (setq org-log-done 'time org-wl-nntp-prefer-web-links t org-export-latex-default-class scrartcl org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-todo-keyword-faces '((TODO :foreground red :weight bold) (MAYB :foreground orange red :weight bold) (WAIT :foreground firebrick :weight bold) (DONE :foreground green) (IDEA :foreground gold :weight bold) (CANC :foreground LightSlateGrey)) org-wl-shimbun-prefer-web-links t org-agenda-custom-commands '((R Refile new tasks and notes tags LEVEL=1+REFILE)) org-agenda-files '(~/org/ ~/org/priv/ ~/org/pg/ ~/org/tec/) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-agenda-tags-column -120 org-checklist-export-function 'org-export-as-ascii org-after-todo-state-change-hook '(org-clock-out-if-current org- checklist) org-agenda-todo-ignore-scheduled t org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-log-redeadline 'time org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-wl-link-remove-filter t org-todo-keywords '((sequence TODO(t) WAIT(w) | DONE(D)) (sequence IDEA(i) MAYB(m) | CANC(C))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file /home/david/org//bucket.org org-directory /home/david/org/ org-log-reschedule 'time org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-classes '((scrartcl \\documentclass[paper=a4,12pt]{scrartcl}\n \ \usepackage[utf8]{inputenc}\n \\usepackage[T1]{fontenc} \n \\usepackage[ngerman]{babel}\n \\usepackage{graphicx} \n \\usepackage{longtable}\n \\usepackage{float}\n \\usepackage{wrapfig}\n \\usepackage{soul}\n \ \usepackage{amssymb}\n \\usepackage{microtype}\n \ \usepackage{lmodern}\n \\parskip 6pt\n \ \usepackage[autocite=footnote,style=authoryear]{biblatex}\n \ \usepackage{hyperref} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \ \subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\ \paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) ) org-publish-project-alist '((ictsoc-web :base-directory ~/www/ ictsoc.de/ :base-extension org :publishing-directory ~/www/ictsoc.de/ :publishing-function org-publish-org-to- html :author David Maus :email dm...@ictsoc.de :author-info t :creator-info t :timestamp nil :headline-levels 4 :section-numbers nil :recursive t) (ictsoc-feed :base-directory ~/www/ictsoc.de/ :base- extension org :publishing-directory ~/www/ictsoc.de/ :publishing-url http:// ictsoc.de/ :auto-index t :recursive t :index-filename feed.atom :index-function org-atom- publish-feed-index :feed-map-entries LEVEL=1 :feed-id 109b1796-d619-424d-a339-596093767737) (ictsoc :components (ictsoc-web))) org-export-preprocess-before-normalizing-links-hook '(org-remove- file-link-modifiers) org-email-link-description-format %m org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-show- block-all) (quote append) (quote local))) ) org-refile-targets '((org-agenda-files :maxlevel . 5)) org-confirm-elisp-link-function 'yes-or-no-p org-refile-use-outline-path 'file org-log-into-drawer
[Orgmode] Re: apparently too stupid to use checkboxes
checkboxes stop functioning again. Do you still have the defmacro in .emacs? No. I removed it, because in *Messages* there is (/usr/bin/emacs /tmp/orgtest.org) Loading regexp-opt...done Loading subst-ksc...done Loading subst-gb2312...done Loading subst-big5...done Loading subst-jis...done Loading /usr/share/emacs/site-lisp/tex-site.el (source)...done Loading paren...done Loading easy-mmode...done Loading advice...done Loading cl-macs...done ^^ So I thougth cl-macs should be available in my session. Nevertheless: I put it in again for testing and _nothing changes_. And is there a cl-mac.el somewhere on your system? find /usr -name 'cl-mac.*' see above. I'm told it's loaded. (if you meant cl-macs and not cl-mac?) Detlef -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de signature.asc Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Repeating TODOs
As I mentioned yesterday, I am trying to follow http://orgmode.org/worg/org-tutorials/tracking-habits.php I have the following entry: ** TODO Go to the gym :habit: SCHEDULED: 2010-03-24 Wed .+2d and even managed to successfully go to the gym as planned :) However, I couldn't update the status until today (the day after I completed the task), so when I updated the status with C-c C-t it added the next occurence two days from *today*. It might not always be the way that I update the status a day after, sometimes it might be the same day, or two days after, or whatever. Is there a way, short of manually editing the file, of taking care of that? I know it's because of the . in the .+2d but given that sometimes I won't do it on the planned date, I think it's best to have that in there - or is there a better solution for when I miss the planned date? ___ 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: Timeline of completed tasks?
You may also show archived items with v A. If you turn on the log with v l and show archived items with v A you have a great way to see what you did. Even better if you change, for instance, to the month view with v m. - Darlan At Thu, 25 Mar 2010 00:15:53 -0700, Ryan Thompson r...@thompsonclan.org wrote: Yep, that looks like what I wanted. Thanks. On Wed, Mar 24, 2010 at 9:00 PM, Memnon Anon gegendosenflei...@googlemail.com wrote: Ryan Thompson r...@thompsonclan.org writes: Hi, Is there any way to view a timeline or agenda of completed tasks? That is, can I invert the normal logic of excluding finished tasks from the agenda? ,[ (info (org)Agenda commands) ] | `v l or short l' | Toggle Logbook mode. In Logbook mode, entries that were marked | DONE while logging was on (variable `org-log-done') are shown in | the agenda, as are entries that have been clocked on that day. | You can configure the entry types that should be included in log | mode using the variable `org-agenda-log-mode-items'. When called | with a `C-u' prefix, show all possible logbook entries, including | state changes. When called with two prefix args `C-u C-u', show | only logging information, nothing else. ` ,[ (info (org)Timeline) ] | 10.3.4 Timeline for a single file | - | | The timeline summarizes all time-stamped items from a single Org mode | file in a _time-sorted view_. The main purpose of this command is to | give an overview over events in a project. | | `C-c a L' | Show a time-sorted view of the Org file, with all time-stamped | items. When called with a `C-u' prefix, all unfinished TODO | entries (scheduled or not) are also listed under the current date. | | The commands available in the timeline buffer are listed in *note | Agenda commands::. ` Does that help? ___ 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 ___ 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 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [feature request] use relative path in the file set by org-agenda-files
Thanks Carsten for the feedback! The following patch remembers the un-expanded file names by re-reading the agenda-files definition file before saving. It matches the expanded file names with the un-expanded and keeps the un-expanded version when saving. If you like it please apply it. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4c76cc0..709dbd8 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,12 @@ +2010-03-25 Mikael Fornius m...@abc.se + + * org.el (org-agenda-files): Typo. + (org-read-agenda-file-list): Optional argument added helping + org-store-new-agenda-file-list to remember un-expanded file names. + (org-store-new-agenda-file-list): Keep un-expanded file names when + saving, if availible. + (org-agenda-files): Updating documentation. + 2010-03-25 Carsten Dominik carsten.domi...@gmail.com * org-ascii.el (org-export-as-ascii): Catch the case of exporting diff --git a/lisp/org.el b/lisp/org.el index 68dd1ed..0abe787 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2780,7 +2780,8 @@ If an entry is a directory, all files in that directory that are matched by If the value of the variable is not a list but a single file name, then the list of agenda files is actually stored and maintained in that file, one -agenda file per line. +agenda file per line. In this file paths can be given relative to this files +directory, tilde expansion and environment variable substitution is also made. :group 'org-agenda :type '(choice (repeat :tag List of files and directories file) @@ -14641,7 +14642,7 @@ If EXCLUDE-TMP is non-nil, ignore temporary buffers. Get the list of agenda files. Optional UNRESTRICTED means return the full list even if a restriction is currently in place. -When ARCHIVES is t, include all archive files hat are really being +When ARCHIVES is t, include all archive files that are really being used by the agenda files. If ARCHIVE is `ifmode', do this only if `org-agenda-archives-mode' is t. (let ((files @@ -14694,17 +14695,28 @@ the buffer and restores the previous window configuration. (defun org-store-new-agenda-file-list (list) Set new value for the agenda file list and save it correctly. (if (stringp org-agenda-files) - (let ((f org-agenda-files) b) - (while (setq b (find-buffer-visiting f)) (kill-buffer b)) - (with-temp-file f - (insert (mapconcat 'identity list \n) \n))) + (let ((fe (org-read-agenda-file-list t)) b u) + (while (setq b (find-buffer-visiting org-agenda-files)) + (kill-buffer b)) + (with-temp-file org-agenda-files + (insert + (mapconcat + (lambda (f) ;; Keep un-expanded entries. + (if (setq u (assoc f fe)) + (cdr u) + f)) + list \n) + \n))) (let ((org-mode-hook nil) (org-inhibit-startup t) (org-insert-mode-line-in-empty-file nil)) (setq org-agenda-files list) (customize-save-variable 'org-agenda-files org-agenda-files -(defun org-read-agenda-file-list () - Read the list of agenda files from a file. +(defun org-read-agenda-file-list (optional pair-with-expansion) + Read the list of agenda files from a file. +If PAIR-WITH-EXPANSION is t return pairs with un-expanded +filenames, used by org-store-new-agenda-file-list to write back +un-expanded file names. (when (file-directory-p org-agenda-files) (error `org-agenda-files' cannot be a single directory)) (when (stringp org-agenda-files) @@ -14712,8 +14724,11 @@ the buffer and restores the previous window configuration. (insert-file-contents org-agenda-files) (mapcar (lambda (f) - (expand-file-name (substitute-in-file-name f) - (file-name-directory org-agenda-files))) + (let ((e (expand-file-name (substitute-in-file-name f) +(file-name-directory org-agenda-files + (if pair-with-expansion + (cons e f) + e))) (org-split-string (buffer-string) [ \t\r\n]*?[\r\n][ \t\r\n]*) ;;;###autoload -- Mikael Fornius ___ 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: Switch language on heading lines in Latex export (was Re: [Orgmode] Re: org-beamer: How to get items appear sequentially rather than all at once)
I think this behavior in org-mode is correct. For instance, suppose we have the heading below , | * Some heading | - \textbf{lalala} | - {\textbf lelele} | - \alert{lilili} ` In the first item org will recognize this is a Latex command and the brackets will be passed to Latex without any escaping. However, in the second item there is nothing before the first bracket and org will correctly escape the bracket. Therefore only the first letter in lelele will be in bold. That is, org recognizes Latex syntax and not the old TeX syntax in the second item. Any command recognized in Beamer will work as the alert command in the third item. Summarizing, define your macros as Latex macros instead of TeX ones and they should work. That is, something like \J{XXX}. - Darlan At Thu, 25 Mar 2010 12:50:23 +0900, Christian Wittern cwitt...@gmail.com wrote: Dear Darlan, Thanks for your detailed explanation. I now got it working and am really happy with it. Now there is one remaining problem with my presentation (which is different, which is why I changed the header line): I do have some words on some heading line that are in a different language and need to be set in a different font. To achieve that, I have customized the beamer section in org-export-latex-classes to set up a new font etc, this can now be switched on with {\J XX } to put XX into the desired Japanese Font. However, when I do this, I get the {} brackets escaped so they appear in the output (I do get the right font). So I wonder how I can pass this literal LaTeX through in the export. I looked at the manual, where it talks about literal LaTeX, but the use cases there seem to work only on lines by themselves, not in the middle of a header line. But since this is org-mode, I am sure there must be a (obvious) solution which I am just failing to see As always, any help appreciated Christian -- Christian Wittern, Kyoto ___ 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] org-table: reference to free variable `line'
As I compiled org-mode today I noticed a free variable and I think this change fixes it. diff --git a/lisp/org-table.el b/lisp/org-table.el index 670edcb..9614608 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1043,8 +1043,8 @@ Return t when the line exists, nil if it does not exist. (goto-char (org-table-begin)) (let ((end (org-table-end)) (cnt 0)) (while (and (re-search-forward org-table-dataline-regexp end t) - ( (setq cnt (1+ cnt)) line))) -(= cnt line))) + ( (setq cnt (1+ cnt)) N))) +(= cnt N))) (defun org-table-blank-field () Blank the current table field or active region. -- Mikael Fornius ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Repeating TODOs
Gary . em...@garydjones.name writes: As I mentioned yesterday, I am trying to follow http://orgmode.org/worg/org-tutorials/tracking-habits.php I have the following entry: ** TODO Go to the gym :habit: SCHEDULED: 2010-03-24 Wed .+2d and even managed to successfully go to the gym as planned :) However, I couldn't update the status until today (the day after I completed the task), so when I updated the status with C-c C-t it added the next occurence two days from *today*. It might not always be the way that I update the status a day after, sometimes it might be the same day, or two days after, or whatever. Is there a way, short of manually editing the file, of taking care of that? I know it's because of the . in the .+2d but given that sometimes I won't do it on the planned date, I think it's best to have that in there - or is there a better solution for when I miss the planned date? I think it works as you want if you just drop the . SCHEDULED: 2010-03-24 Wed +2d .+2d is 2 days from today +2d is 2 days later ++2d repeat 2 days later until the date is after today I think all of these formats work with habits. HTH, Bernt ___ 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] [PATCH] org-table: reference to free variable `line'
Applied, thanks. - Carsten On Mar 25, 2010, at 12:20 PM, Mikael Fornius wrote: As I compiled org-mode today I noticed a free variable and I think this change fixes it. diff --git a/lisp/org-table.el b/lisp/org-table.el index 670edcb..9614608 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1043,8 +1043,8 @@ Return t when the line exists, nil if it does not exist. (goto-char (org-table-begin)) (let ((end (org-table-end)) (cnt 0)) (while (and (re-search-forward org-table-dataline-regexp end t) - ( (setq cnt (1+ cnt)) line))) -(= cnt line))) + ( (setq cnt (1+ cnt)) N))) +(= cnt N))) (defun org-table-blank-field () Blank the current table field or active region. -- Mikael Fornius ___ 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 - Carsten ___ 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: Switch language on heading lines in Latex export (was Re: [Orgmode] Re: org-beamer: How to get items appear sequentially rather than all at once)
Darlan, Thank you again. I think I understand the problem now. On 2010-03-25 20:02, Darlan Cavalcante Moreira wrote: Summarizing, define your macros as Latex macros instead of TeX ones and they should work. That is, something like \J{XXX}. Currently, the definition is \newfontfamily{\J}[Scale=0.85]{Osaka} If I say \J{XX} in my documents, org-mode's latex export does the right thing and I get what I need, so does this definition as you call it also define a LaTeX macro? Or is this just pure luck? Still mystified by all this, but very glad that I can say goodbye to WYSWIG presentation software:-) All the best, Christian ___ 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] [PATCH] babel: add a :rownames argument to R code blocks
Hi Julien, Thanks for the patch, however it looks like the attached patch breaks columnname support for R source code blocks. I'm pasting in the relevant portion of our test suite, from the development.org file in our development repository [1]. Could you please sort this issue out before we apply the patch? Thanks -- Eric relevant test... the final source block should return 169 #+tblname: test-table-colnames | var1 | var2 | var3 | |--+--+--| |1 | 22 | 13 | | 41 | 55 | 67 | #+srcname: R-square(x=default-name-doesnt-exist) #+begin_src R :colnames yes x^2 #+end_src This should return 169. The fact that R is able to use the column name to index the data frame (x$var3) proves that a table with column names (a header row) has been recognised as input for the R-square function block, and that the R-square block has output an elisp table with column names, and that the colnames have again been recognised when creating the R variables in this block. #+srcname: table-R-colnames-org(x = R-square(x=test-table-colnames)) #+begin_src R x$var3[1] #+end_src Julien Barnier jul...@no-log.org writes: Hi, The following simple patch add a :rownames argument to R source code blocks in org-babel. With :rownames yes it allows to export the row names when the result is a table. For example : #+BEGIN_SRC R :session :colnames yes :rownames yes table(d$sexe,d$cuisine) #+END_SRC #+results: | | Non | Oui | |---+-+-| | Homme | 2 | 2 | | Femme | 4 | 2 | Thanks a lot for all your work ! Julien --- contrib/babel/lisp/langs/org-babel-R.el | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/babel/lisp/langs/org-babel-R.el b/contrib/babel/lisp/langs/org-babel-R.el index a8071b2..f0d79b9 100644 --- a/contrib/babel/lisp/langs/org-babel-R.el +++ b/contrib/babel/lisp/langs/org-babel-R.el @@ -46,6 +46,8 @@ called by `org-babel-execute-src-block'. (vars (second processed-params)) (column-names-p (and (cdr (assoc :colnames params)) (string= yes (cdr (assoc :colnames params) +(row-names-p (and (cdr (assoc :rownames params)) + (string= yes (cdr (assoc :rownames params) (out-file (cdr (assoc :file params))) (augmented-body (concat @@ -53,7 +55,7 @@ called by `org-babel-execute-src-block'. (mapconcat ;; define any variables (lambda (pair) (org-babel-R-assign-elisp (car pair) (cdr pair))) vars \n) \n body \n (if out-file dev.off()\n ))) -(result (org-babel-R-evaluate session augmented-body result-type column-names-p))) +(result (org-babel-R-evaluate session augmented-body result-type column-names-p row-names-p))) (or out-file result (defun org-babel-prep-session:R (session params) @@ -133,9 +135,9 @@ called by `org-babel-execute-src-block'. (defvar org-babel-R-eoe-indicator 'org_babel_R_eoe') (defvar org-babel-R-eoe-output [1] \org_babel_R_eoe\) (defvar org-babel-R-wrapper-method main - function ()\n{\n%s\n} -write.table(main(), file=\%s\, sep=\\\t\, na=\nil\,row.names=FALSE, col.names=%s, quote=FALSE)) +write.table(main(), file=\%s\, sep=\\\t\, na=\nil\,row.names=%s, col.names=%s, quote=FALSE)) -(defun org-babel-R-evaluate (session body result-type column-names-p) +(defun org-babel-R-evaluate (session body result-type column-names-p row-names-p) Pass BODY to the R process in SESSION. If RESULT-TYPE equals 'output then return a list of the outputs of the statements in BODY, if RESULT-TYPE equals 'value then return the value of the @@ -153,7 +155,7 @@ last statement in BODY, as elisp. (stderr (with-temp-buffer (insert (format org-babel-R-wrapper-method -body tmp-file (if column-names-p TRUE FALSE))) +body tmp-file (if row-names-p TRUE FALSE) (if column-names-p (if row-names-p NA TRUE) FALSE))) (setq exit-code (org-babel-shell-command-on-region (point-min) (point-max) R --no-save nil 'replace (current-buffer))) (buffer-string @@ -168,7 +170,7 @@ last statement in BODY, as elisp. (case result-type (value (mapconcat #'org-babel-chomp (list body - (format write.table(.Last.value, file=\%s\, sep=\\\t\, na=\nil\,row.names=FALSE, col.names=%s, quote=FALSE) tmp-file (if column-names-p TRUE FALSE)) + (format write.table(.Last.value, file=\%s\, sep=\\\t\, na=\nil\,row.names=%s, col.names=%s, quote=FALSE) tmp-file (if row-names-p TRUE FALSE) (if column-names-p (if row-names-p NA TRUE) FALSE))
[Orgmode] [babel] passing strings in
In the table/block pair below, I'm trying to pass an IP number to some shell code. It seems like in the table formula I can only have numbers. Is that right? #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |---++| | host 1| 192.168.10.200 | #ERROR | | host 2| 192.168.10.24 | #ERROR | | host 3| 192.168.42.24 | #ERROR | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src Any way to pass arbitrary strings? Thanks a lot, Maurizio ___ 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] Publishing not working: troubleshooting
Hello, I was wondering if anyone could help me with this. I guess this question has been asked before, but I couldn't find an answer. Apologies. The setting: I have a require entry in my .emacs that reads: (require 'dervin-org-projects) and a file dervin-org-projects.el that reads: (require 'org-publish) ;; I've tried without this as well (setq org-publish-project-alist '((orgfiles :base-directory ~/org/courses/ :base-extension org :publishing-directory /ssh:myu...@myhost:~/public_html/ :recursive t :publishing-function org-publish-org-to-html :exclude PrivatePage.org ;; regexp :headline-levels 3 :section-numbers t :table-of-contents nil :auto-preamble t :auto-postamble nil) (images :base-directory ~/org/courses/images :base-extension jpg\\|gif\\|png :publishing-directory /ssh:myu...@myhost:~/public_html/ :publishing-function org-publish-attachment) (other :base-directory ~/org/courses/other/ :base-extension css\\|el\\|pdf :publishing-directory /ssh:myu...@myhost:~/public_html/ :publishing-function org-publish-attachment) (courses :components (orgfiles images other (provide 'dervin-org-projects) When I attempt to publish the project with C-c C-e X, and I choose courses, absolutely nothing happens. There's not even a message that appears. I therefore don't know how to troubleshoot this by myself. Could anyone help? Thank you and best regards, Dervin ___ 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] [PATCH] babel: add a :rownames argument to R code blocks
Eric Schulte schulte.e...@gmail.com writes: Hi Julien, Thanks for the patch, however it looks like the attached patch breaks columnname support for R source code blocks. I'm pasting in the relevant portion of our test suite, from the development.org file in our development repository [1]. Could you please sort this issue out before we apply the patch? Hi Julien, Thanks for the patch and for raising this issue. It's been something I've wanted to sort out for a while. I'm attaching a rushed-together org file containing some test examples for colnames and rownames. I think it shows a couple of problems with your patch, but I had to do this quickly so sorry if I'm mistaken. Before we finalise the behaviour, I'd like us to be clear about the following issues: 1. When we say ':rownames yes', are we 1. Declaring that the input has rownames? 2. Declaring that we want the output to have rownames? 3. Both? 2. Same as (1) but for colnames I've added the test file to our devel repo at http://github.com/eschulte/babel-dev/ please contact either of us offline for access to the repo. Could we use this org file as the basis for settling on final colnames/rownames behaviour in org-babel-R? Dan #+title: Column and row names * Tables #+tblname: A | row1 | 11 | 12 | | row2 | 21 | 22 | #+tblname: B | | col1 | col2 | |--+--+--| | row1 | 11 | 12 | | row2 | 21 | 22 | * Current behaviour *** OK Simple identity #+begin_src R :var tab=A tab #+end_src #+results: | row1 | 11 | 12 | | row2 | 21 | 22 | *** OK Use org header line #+begin_src R :var tab=B :colnames yes tab #+end_src The X comes from R providing a default name for a missing column name #+results: | X| col1 | col2 | |--+--+--| | row1 | 11 | 12 | | row2 | 21 | 22 | *** Create rownames in R * Simple #+begin_src R :var tab=B array(1:9, dim=c(3,3), dimnames=list(letters[1:3], letters[1:3])) #+end_src #+results: | 1 | 4 | 7 | | 2 | 5 | 8 | | 3 | 6 | 9 | * OK With colnames #+begin_src R :var tab=B :colnames yes array(1:9, dim=c(3,3), dimnames=list(letters[1:3], letters[1:3])) #+end_src #+results: | a | b | c | |---+---+---| | 1 | 4 | 7 | | 2 | 5 | 8 | | 3 | 6 | 9 | * New behaviour *** OK Simple identity #+begin_src R :var tab=A tab #+end_src #+results: | row1 | 11 | 12 | | row2 | 21 | 22 | *** TODO Use org header line Header line from org table is not used. #+begin_src R :var tab=B :colnames yes tab #+end_src #+results: | row1 | 11 | 12 | |--++| | row2 | 21 | 22 | *** OK Use org header line with 'rownames yes' #+begin_src R :var tab=B :colnames yes :rownames yes tab #+end_src #+results: | X| col1 | col2 | |--+--+--| | row1 | 11 | 12 | | row2 | 21 | 22 | *** TODO Create rownames in R * Simple #+begin_src R :var tab=B array(1:9, dim=c(3,3), dimnames=list(letters[1:3], letters[1:3])) #+end_src #+results: | 1 | 4 | 7 | | 2 | 5 | 8 | | 3 | 6 | 9 | * TODO With colnames Inappropriate colnames #+begin_src R :var tab=B :colnames yes array(1:9, dim=c(3,3), dimnames=list(letters[1:3], letters[1:3])) #+end_src #+results: | 1 | 4 | 7 | |---+---+---| | 2 | 5 | 8 | | 3 | 6 | 9 | * TODO With rownames Gets colnames but not rownames #+begin_src R :var tab=B :rownames yes array(1:9, dim=c(3,3), dimnames=list(letters[1:3], letters[1:3])) #+end_src #+results: | a | b | c | | 1 | 4 | 7 | | 2 | 5 | 8 | | 3 | 6 | 9 | * TODO With colnames and rownames Doesn't get rownames (?) #+begin_src R :var tab=B :colnames yes :rownames yes array(1:9, dim=c(3,3), dimnames=list(letters[1:3], letters[1:3])) #+end_src #+results: | a | b | c | |---+---+---| | 1 | 4 | 7 | | 2 | 5 | 8 | | 3 | 6 | 9 | * Org config #+TODO: TODO | OK Thanks -- Eric relevant test... the final source block should return 169 #+tblname: test-table-colnames | var1 | var2 | var3 | |--+--+--| |1 | 22 | 13 | | 41 | 55 | 67 | #+srcname: R-square(x=default-name-doesnt-exist) #+begin_src R :colnames yes x^2 #+end_src This should return 169. The fact that R is able to use the column name to index the data frame (x$var3) proves that a table with column names (a header row) has been recognised as input for the R-square function block, and that the R-square block has output an elisp table with column names, and that the colnames have again been recognised when creating the R variables in this block. #+srcname: table-R-colnames-org(x = R-square(x=test-table-colnames)) #+begin_src R x$var3[1] #+end_src Julien Barnier jul...@no-log.org writes: Hi, The following simple patch add a :rownames argument to R source code blocks in org-babel. With :rownames yes it allows to export the row names when the result is a table. For example : #+BEGIN_SRC R :session :colnames yes :rownames yes table(d$sexe,d$cuisine) #+END_SRC #+results: | | Non | Oui | |---+-+-| | Homme | 2 |
[Orgmode] org-beamer bug
From reading the org-beamer documentation, I get the impression that the following two should headings should be equivalent: * Example 1 :B_block: * Example 2 :PROPERTIES: :BEAMER_env: block :END: However, only the second example is actually exported with a block environment. This also happens with other environments. The note environment is the only one I tested that works by using a tag. I'm using Org-mode version 6.34trans (release_6.34c.251.gd1289). Regards, Jason ___ 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] [babel] passing strings in
Hi Maurizio, The ip addresses in your table are being interpreted as source/reference names which org-babel is trying to resolve. In order to differentiate between strings and reference names, we either must surround all strings in double quotes (as below) or we must end all references with () and disallow any strings which end in (). Currently we are taking the former approach, which means your table will require the following to work... #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |+--+| | host 1 | 192.168.10.200 | 192.168.10.200 | | host 2 | 192.168.10.24 | 192.168.10.24 | | host 3 | 192.168.42.24 | 192.168.42.24 | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh :var ip=0 # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src I'd be open to discussion on this issue. I suppose if reference resolution fails we could try using the name as a string literal, but that could lead to debugging nightmares... Cheers -- Eric Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: In the table/block pair below, I'm trying to pass an IP number to some shell code. It seems like in the table formula I can only have numbers. Is that right? #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |---++| | host 1| 192.168.10.200 | #ERROR | | host 2| 192.168.10.24 | #ERROR | | host 3| 192.168.42.24 | #ERROR | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src Any way to pass arbitrary strings? Thanks a lot, Maurizio ___ 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 ___ 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] [babel] passing strings in
Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: In the table/block pair below, I'm trying to pass an IP number to some shell code. Hi Maurizio, I think you've forgotten to specify that 'ip' is an argument of the system-ping block. So either add e.g. :var ip=0 or use #+source: system-ping(ip=0) (You can of course use any default argument value other than 0) Additionally, I'm finding that the ip column needs to be single-quoted (whether it is an IP number or a human-readable alias). I'm rushing a bit at the moment, but that looks like a bug. So in any case, this works for me (also works with single-quoted IP numbers) | name | ip | ping | |++--| | host 1 | 'orgmode.org' |0 | | host 2 | 'xorgmode.org' |2 | #+TBLFM: $3='(sbe system-ping (ip $2)) #+source: system-ping(ip=0) #+begin_src sh ping -w 10 -c 1 -q $ip /dev/null 21 echo $? #+end_src Dan It seems like in the table formula I can only have numbers. Is that right? #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |---++| | host 1| 192.168.10.200 | #ERROR | | host 2| 192.168.10.24 | #ERROR | | host 3| 192.168.42.24 | #ERROR | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src Any way to pass arbitrary strings? Thanks a lot, Maurizio ___ 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 ___ 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] [babel] passing strings in
Eric Schulte schulte.e...@gmail.com writes: Hi Maurizio, The ip addresses in your table are being interpreted as source/reference names which org-babel is trying to resolve. In order to differentiate between strings and reference names, we either must surround all strings in double quotes (as below) or we must end all references with () and disallow any strings which end in (). Hi Eric, Thanks for the much better answer. I think my vote goes for your second option. In other words, :var x=blockname passes the string blockname, whereas :var x=blockname() passes the result of evaluating a block called blockname. One argument for this is that in order to pass arguments to a block being evaluated as a reference, users are already obliged to use the parenthetic function call syntax: :var x=blockname(arg1=val1) so demanding the parentheses in the absence of arguments is natural (and perhaps even serves to remind users of the possibility of passing arguments). Also I think that users will probably pass strings more often than they will pass the results of block reference evaluations, so interpreting :var=blockname as a string literal may also be justified by Least Surprise for naive users (e.g. apparently me...). Dan Currently we are taking the former approach, which means your table will require the following to work... #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |+--+| | host 1 | 192.168.10.200 | 192.168.10.200 | | host 2 | 192.168.10.24 | 192.168.10.24 | | host 3 | 192.168.42.24 | 192.168.42.24 | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh :var ip=0 # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src I'd be open to discussion on this issue. I suppose if reference resolution fails we could try using the name as a string literal, but that could lead to debugging nightmares... Cheers -- Eric Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: In the table/block pair below, I'm trying to pass an IP number to some shell code. It seems like in the table formula I can only have numbers. Is that right? #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |---++| | host 1| 192.168.10.200 | #ERROR | | host 2| 192.168.10.24 | #ERROR | | host 3| 192.168.42.24 | #ERROR | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src Any way to pass arbitrary strings? Thanks a lot, Maurizio ___ 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 ___ 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 ___ 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] [babel] passing strings in
Hi Maurizio, Thanks for the $$ suggestion, I think that sounds like the simplest solution. I've just applied it, so your original table should now work if you double the $ before the column number. Dan, I think this is preferable to forcing the addition of () for interpretation as a reference both for reasons of backwards compatibility, and also I somehow feel that reference interpretation by default and string interpretation only in the presence of double quotes is somehow more intuitive and natural. Definitely an open area for discussion... Thanks -- Eric Maurizio Vitale maurizio.vit...@polymath-solutions.com writes: Eric == Eric Schulte schulte.e...@gmail.com writes: Eric Hi Maurizio, The ip addresses in your table are being Eric interpreted as source/reference names which org-babel is Eric trying to resolve. In order to differentiate between strings Eric and reference names, we either must surround all strings in Eric double quotes (as below) or we must end all references with Eric () and disallow any strings which end in (). Currently we Eric are taking the former approach, which means your table will Eric require the following to work... That was a quick replay! Thanks. If I understand you, the problem is not with org-babel, but with org-mode itself expanding column references. In this case, wouldn't it be possible to consider a general quoting mechanism preventing that expansion? obviously ' cannot be used, but maybe $$2 could be made to mean threat the value literally. I'd be ok with the quotes in the source, but they look terrible in exported documents. Anyhow, I can live with the workaround you suggested. Thanks again, Maurizio ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-beamer bug
Hi Jason, Jason Dunsmore jason.pub...@gmail.com writes: From reading the org-beamer documentation, I get the impression that the following two should headings should be equivalent: * Example 1 :B_block: * Example 2 :PROPERTIES: :BEAMER_env: block :END: However, only the second example is actually exported with a block environment. This also happens with other environments. The note environment is the only one I tested that works by using a tag. According to the manual, the environment tags have no effect on the export. They are simply visual aids. If org-beamer-mode is activated, the tags are added automatically whenever you set the :BEAMER_env: property. , | `BEAMER_env' | The environment that should be used to format this entry. Valid | environments are defined in the constant | `org-beamer-environments-default', and you can define more in | `org-beamer-environments-extra'. If this property is set, the | entry will also get a `:B_environment:' tag to make this visible. | This tag has no semantic meaning, it is only a visual aid. ` Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Publishing not working: troubleshooting
Hi Leo, My comments are inline below. Leo Ferres lfer...@ccs.carleton.ca writes: Hello, I was wondering if anyone could help me with this. I guess this question has been asked before, but I couldn't find an answer. Apologies. The setting: I have a require entry in my .emacs that reads: (require 'dervin-org-projects) and a file dervin-org-projects.el that reads: (require 'org-publish) ;; I've tried without this as well Why do you require org-publish? Shouldn't you be setting up the regular org environment? I don't have a require org-publish in my .emacs... (setq org-publish-project-alist '((orgfiles :base-directory ~/org/courses/ :base-extension org :publishing-directory /ssh:myu...@myhost:~/public_html/ :recursive t :publishing-function org-publish-org-to-html :exclude PrivatePage.org ;; regexp :headline-levels 3 :section-numbers t :table-of-contents nil :auto-preamble t :auto-postamble nil) (images :base-directory ~/org/courses/images :base-extension jpg\\|gif\\|png :publishing-directory /ssh:myu...@myhost:~/public_html/ :publishing-function org-publish-attachment) (other :base-directory ~/org/courses/other/ :base-extension css\\|el\\|pdf :publishing-directory /ssh:myu...@myhost:~/public_html/ :publishing-function org-publish-attachment) (courses :components (orgfiles images other (provide 'dervin-org-projects) When I attempt to publish the project with C-c C-e X, and I choose courses, absolutely nothing happens. There's not even a message that appears. I therefore don't know how to troubleshoot this by myself. Could anyone help? I'm thinking you haven't done the standard org-mode setup with (require 'org-install) which sets up the keyboard mappings. What is C-c C-e mapped to for you? C-c C-e is mapped to org-export for me. -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-mode tutorial questionaire
On Wed, Mar 24 2010, Ian Barton wrote: I keep my stuff in git too, but recently I have found Dropbox very useful. Once I discovered how to install it on my server it meant that all my config files were automatically kept in sync on my computers. in fact Dropbox is still great even if you don't run your own server. Git is still very useful for letting you easily go back if you make a mistake, or want to start over again from an earlier version. Even better, make a git repo in your dropbox directory. Great tastes that taste great together! (There's a valid question as to whether the git repo in dropbox should be a bare repo to facilitate pushing and pulling, or a working repo so that you can use it directly. Suggestions on this point are welcome). /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpjwWoCFRmzP.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] checklist and org-after-todo-statistics-hook
I have the following in my .emacs file to automatically update the todo state of a parent todo based on the number of completed children. (defun org-summary-todo (n-done n-not-done) Switch entry to DONE when all subentries are done, to TODO otherwise. (this is an unquoted list) (let (org-log-done org-log-states) ; turn off logging (org-todo (if (= n-not-done 0) DONE (if (= n-done 0) TODO STARTED) (add-hook 'org-after-todo-statistics-hook 'org-summary-todo) I have started using checklists and notices that this hook does not get called when the statistics cookie is updated. For example, in the following, the parent todo state gets updated as the statistics cookie is updated: * STARTED Project 1 [1/3] ** DONE task 1 ** TODO task 2 ** TODO task 3 In the following example, the statistics are updated but the hook is not called * TODO Project 1 [1/3] - [X] task 1 - [ ] task 2 - [ ] task 3 Is it possible to change it to call the hook for the second example? Dave ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Publishing not working: troubleshooting
Hi, Bernt; My C-c C-e is indeed mapped to org-export... the project, however, does not get published. If I export the file to html, that does work. It's just org-publish-org-to-html that seems to be broken for me. Any ideas? Leo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Repeating TODOs
Bernt Hansen be...@norang.ca writes: I think it works as you want if you just drop the . SCHEDULED: 2010-03-24 Wed +2d .+2d is 2 days from today +2d is 2 days later ++2d repeat 2 days later until the date is after today I think all of these formats work with habits. If this is really the case, I think the manual should be modified to reflect this: ,[ (info (org)Tracking your habits) ] | 5. The TODO may also have minimum and maximum ranges specified by | using the syntax `.+2d/3d', which says that you want to do the | task at least every three days, but at most every two days. ` The whole page gave me the impression that the .-syntax is the only one supported. Memnon ___ 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] [babel] passing strings in
Eric == Eric Schulte schulte.e...@gmail.com writes: Eric Hi Maurizio, The ip addresses in your table are being Eric interpreted as source/reference names which org-babel is Eric trying to resolve. In order to differentiate between strings Eric and reference names, we either must surround all strings in Eric double quotes (as below) or we must end all references with Eric () and disallow any strings which end in (). Currently we Eric are taking the former approach, which means your table will Eric require the following to work... That was a quick replay! Thanks. If I understand you, the problem is not with org-babel, but with org-mode itself expanding column references. In this case, wouldn't it be possible to consider a general quoting mechanism preventing that expansion? obviously ' cannot be used, but maybe $$2 could be made to mean threat the value literally. I'd be ok with the quotes in the source, but they look terrible in exported documents. Anyhow, I can live with the workaround you suggested. Thanks again, Maurizio ___ 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] [babel] passing strings in
Dan == Dan Davison davi...@stats.ox.ac.uk writes: Dan Maurizio Vitale Dan m...@cuma.i-did-not-set--mail-host-address--so-tickle-me Dan writes: In the table/block pair below, I'm trying to pass an IP number to some shell code. Dan Hi Maurizio, Dan I think you've forgotten to specify that 'ip' is an argument of Dan the system-ping block. So either add e.g. :var ip=0 or use Dan #+source: system-ping(ip=0) (You can of course use any default Dan argument value other than 0) I used to have the argument specification. But then discovered it was working without and since I didn't have a need for a default value, I removed it. Maybe this work accidentally and it is not supported. Dan Additionally, I'm finding that the ip column needs to be Dan single-quoted (whether it is an IP number or a human-readable Dan alias). I'm rushing a bit at the moment, but that looks like a Dan bug. Dan So in any case, this works for me (also works with Dan single-quoted IP numbers) Thanks! Maurizio ___ 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] [babel] passing strings in
On Mar 25, 2010, at 6:49 AM, Dan Davison wrote: Eric Schulte schulte.e...@gmail.com writes: Hi Maurizio, The ip addresses in your table are being interpreted as source/ reference names which org-babel is trying to resolve. In order to differentiate between strings and reference names, we either must surround all strings in double quotes (as below) or we must end all references with () and disallow any strings which end in (). Hi Eric, Thanks for the much better answer. I think my vote goes for your second option. In other words, :var x=blockname passes the string blockname, whereas :var x=blockname() passes the result of evaluating a block called blockname. One argument for this is that in order to pass arguments to a block being evaluated as a reference, users are already obliged to use the parenthetic function call syntax: :var x=blockname(arg1=val1) so demanding the parentheses in the absence of arguments is natural (and perhaps even serves to remind users of the possibility of passing arguments). Also I think that users will probably pass strings more often than they will pass the results of block reference evaluations, so interpreting :var=blockname as a string literal may also be justified by Least Surprise for naive users (e.g. apparently me...). Dan Currently we are taking the former approach, which means your table will require the following to work... #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |+--+| | host 1 | 192.168.10.200 | 192.168.10.200 | | host 2 | 192.168.10.24 | 192.168.10.24 | | host 3 | 192.168.42.24 | 192.168.42.24 | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh :var ip=0 # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src I'd be open to discussion on this issue. I suppose if reference resolution fails we could try using the name as a string literal, but that could lead to debugging nightmares... Cheers -- Eric Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: In the table/block pair below, I'm trying to pass an IP number to some shell code. It seems like in the table formula I can only have numbers. Is that right? #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |---++| | host 1| 192.168.10.200 | #ERROR | | host 2| 192.168.10.24 | #ERROR | | host 3| 192.168.42.24 | #ERROR | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src Any way to pass arbitrary strings? Thanks a lot, Maurizio ___ 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 ___ 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 ___ 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 Aloha all, Would it be useful to interpret arguments like this? arg - interpretation --- string - string reference() - string reference - string reference() - reference If reference resolution fails then an error could be raised unambiguously. All the best, Tom ___ 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] [babel] passing strings in
Dan Davison davi...@stats.ox.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Hi Maurizio, The ip addresses in your table are being interpreted as source/reference names which org-babel is trying to resolve. In order to differentiate between strings and reference names, we either must surround all strings in double quotes (as below) or we must end all references with () and disallow any strings which end in (). Hi Eric, Thanks for the much better answer. I think my vote goes for your second option. Actually, although I think what I said below is valid, it's much less obvious what a good solution is because I completely ignored the (common) possibility of referring to a table: :var x=tablename In that case it is less appealing, although a possibility, to demand that we write :var x=tablename() [1] However, I do still feel that having to quote the strings in Maurizio's example is unfortunate -- so my current position is not very helpful: I'm not sure what a good solution is. Dan Footnotes: [1] There are two cases: 1. Normal org table not associated with code block 2. Table created by code block In the case of (2) it makes some sense to use the name() notation because the same name is used to name the results table as is used to name the code block which generates the table. In other words, :var x=blockname passes the string blockname, whereas :var x=blockname() passes the result of evaluating a block called blockname. One argument for this is that in order to pass arguments to a block being evaluated as a reference, users are already obliged to use the parenthetic function call syntax: :var x=blockname(arg1=val1) so demanding the parentheses in the absence of arguments is natural (and perhaps even serves to remind users of the possibility of passing arguments). Also I think that users will probably pass strings more often than they will pass the results of block reference evaluations, so interpreting :var=blockname as a string literal may also be justified by Least Surprise for naive users (e.g. apparently me...). Dan Currently we are taking the former approach, which means your table will require the following to work... #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |+--+| | host 1 | 192.168.10.200 | 192.168.10.200 | | host 2 | 192.168.10.24 | 192.168.10.24 | | host 3 | 192.168.42.24 | 192.168.42.24 | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh :var ip=0 # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src I'd be open to discussion on this issue. I suppose if reference resolution fails we could try using the name as a string literal, but that could lead to debugging nightmares... Cheers -- Eric Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: In the table/block pair below, I'm trying to pass an IP number to some shell code. It seems like in the table formula I can only have numbers. Is that right? #+TBLNAME: system-host-ping :var host=system-hosts | name | ip | ping | |---++| | host 1| 192.168.10.200 | #ERROR | | host 2| 192.168.10.24 | #ERROR | | host 3| 192.168.42.24 | #ERROR | #+TBLFM: $3='(sbe system-ping (ip $2))' #+source: system-ping #+begin_src sh # This is what I eventually want #ping -w 10 -c 1 -q $ip /dev/null 21 #echo $? # Testing echo $ip #+end_src Any way to pass arbitrary strings? Thanks a lot, Maurizio ___ 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 ___ 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 ___ 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 ___ 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] [babel] passing strings in
Dan Davison davi...@stats.ox.ac.uk writes: Dan Davison davi...@stats.ox.ac.uk writes: [...] Hi Eric, Thanks for the much better answer. I think my vote goes for your second option. Actually, although I think what I said below is valid, it's much less obvious what a good solution is because I completely ignored the (common) possibility of referring to a table: :var x=tablename In that case it is less appealing, although a possibility, to demand that we write :var x=tablename() [1] My problem with this path is that then we can't pass a string value into a variable in which the last two characters are ( and ) because it would be interpreted as a reference. I'm liking the current solution at http://eschulte.github.com/babel-dev/DONE-literal-values-from-tables.html Cheers -- Eric ___ 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] spreadsheet: column width behavior(s)
Hi Carsten, hi all Are there reasons to only narrow but not to widen columns? I would like the behavior `fixed width' like | year | boss | facility management assistant | | | 30 | 30 | |--+---+| | 2009 | Alice | Bob| but with the current implementation get | year | boss | facility management assistant | | | 30 | 30 | |--+---+---| | 2009 | Alice | Bob | which widens the column only if there is too less space left for the column content. As a comparison I can imagine four variants: ..40 : `maximum width' (what 40 is today) 30 : `fixed width' 20.. : `minimum width' (no narrowing) 20..40 : `width range' (minimum 20, up to 40, narrowing if even longer) The most commonly used spreadsheet applications offer just one single variant out of the above four (right?) and it is `fixed width'. My vote for org-table would be the same: That it should support `fixed width' and that this is sufficient as the only variant. What is the opinion of other users? - Michael ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-beamer bug
Thanks for the explanation. The documentation is confusing. If this property is set, the entry will also get a `:B_environment:' tag to make this visible. This tag has no semantic meaning, it is only a visual aid. I thought there was actually a `:B_environment:' tag. I also didn't know that this was referring to auto-selecting the tag when using the PROPERTIES selection interface (C-c C-c inside a PROPERTIES drawer). For that part of the documentation, I would suggest: ``If this property is set using C-c C-c inside the properties drawer, the entry will also get an environment tag (eg. :B_block:) to make this visible. This tag has no semantic meaning, it is only a visual aid.'' The org-beamer-set-environment-tag docstring states: ``Set an environment tag, to determine the beamer environment to be used. This makes use of the fast tag selection interface.'' But it doesn't determine the beamer environment to be used. I would suggest instead: ``Set a beamer environment tag using the fast tag selection interface. This is only a visual aid to indicate the beamer environment configured in the :BEAMER_env: property.'' What is the point of having an interface to select the beamer environment tags (C-c C-b) if they are auto-generated? Also, the example from http://orgmode.org/manual/Beamer-class-export.html shows a :B_block: tag in use without the :BEAMER_env: property. --8---cut here---start-8--- *** Request :B_block: Please test this stuff! --8---cut here---end---8--- This should be: --8---cut here---start-8--- *** Request :B_block: :PROPERTIES: :BEAMER_env: block :END: Please test this stuff! --8---cut here---end---8--- Did org-beamer previously support configuring beamer environments via tags? If so, why was it removed? It seems like a nice feature. Regards, Jason ___ 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] using orgmode to send html mail?
Okay, took a look on the specs and attached is a memo on how an implementation of org to MIME could be done. The MIME delimiters of SEMI and mml are quite similar so there's already a generic function that creates representation of a MIME message for both. I've published this memo on Worg, too, occupying some space in http://orgmode.org/worg/org-devel.php The tasks at hand would be: find the functions that attach a file in mime-edit-mode and mml-mode and look who they can be utilized. Best -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de Author: David Maus dm...@ictsoc.de Date: 2010-03-25 21:56:50 CET Table of Contents = 1 Representing a MIME internet message 2 MIME delimiters of SEMI and mml 3 Generic function 4 Open questions 4.1 How to handle charset information? 4.2 How to attach files? 5 Quotes from the specs 5.1 MIME multipart: Notion of structured, related body parts 5.2 MIME multipart: order of entities inside a multipart 1 Representing a MIME internet message ~~~ A MIME internet message consists of one or more MIME entities. Each MIME entity is of a distinct type and subtype, has a body and optional MIME headers related to it's content. A MIME entity is represented as a list: (TYPE SUBTYPE BODY CONT-HEAD) TYPE: Symbol of MIME media type (e.g. text, video, audio). SUBTYPE: Symbol of MIME media subtype (e.g. plain, html). BODY: String with entity body -or- list of other MIME entities. CONT-HEAD: List of cons with content related MIME header fields. The name of the header field without the prefix Content- is car, the value cdr. Example: '(text html h1Headline/h1 ((disposition . inline))) For messages of type multipart the body consists of a list of one or more MIME entities. '(multipart alternative '((text plain * Headline) (text html h1headline/h1))) 2 MIME delimiters of SEMI and mml ~~ The MIME delimiters are defined in an association list with a symbol of the library's name as key and delimiter format strings as values. For each library there are three formatstrings. (SYMBOL DELIM-SINGLE DELIM-SINGLE-CONT DELIM-MULTI) DELIM-SINGLE: Denoting a single MIME entity. Strings are passed in this order: 1. type 2. subtype 3. content header 4. body DELIM-SINGLE-CONT: Format of content header strings. Strings are passed in this order: 1. header field name 2. header field value DELIM-MULTI: Enclosing parts of a multipart entity. Strings are passed in this order: 1. subtype 2. body 3. subtype (setq org-mail-htmlize-mime-delimiter-alist '((semi \n- -[%s/%s%s]\n%s \ncontent-%s: %s \n- -%s-{\n%s\n- -}-%s) (mml \n#part type=\%s/%s\%s\n%s %s=\%s\ \n#multipart type=\%s\\n%s\n#/multipart))) 3 Generic function ~~~ This generic function returns a string representation with MIME delimiters depending on the variable =org-mail-htmlize-mime-lib=. (setq org-mail-htmlize-mime-lib 'semi) (defun org-mail-htmlize-mime-entity (type subtype body optional cont-head) Return string representation of MIME entity. TYPE is the type of entity body. SUBTYPE is the subtype of body. BODY is the body of the entity. Either a string with the body content or a list with one ore more MIME entities. Optional argument CONT-HEAD is a list of cons with content specific headers, name in car and value in cdr. (let ((delimlst (assoc org-mail-htmlize-mime-lib org-mail-htmlize-mime-delimiter-alist))) (if (eq type 'multipart) (format (nth 3 delimlst) subtype (mapconcat '(lambda (b) (apply 'org-mail-htmlize-mime-entity (car b) (cadr b) (cddr b))) body ) subtype) (format (nth 1 delimlst) type subtype (mapconcat '(lambda (h) (format (nth 2 delimlst) (car h) (cdr h))) cont-head ) body 4 Open questions ~ 4.1 How to handle charset information? === 4.2 How to attach files? = The generic function expects BODY either be a string or a list. Attaching binary file (image, etc.) requires to encode it so the message will pass the message system. So we /might/ use kind of a encoder (e.g. base64) on our own. Or, what seems a cleaner
[Orgmode] Re: Repeating TODOs
Memnon Anon gegendosenflei...@googlemail.com writes: Bernt Hansen be...@norang.ca writes: I think it works as you want if you just drop the . SCHEDULED: 2010-03-24 Wed +2d .+2d is 2 days from today +2d is 2 days later ++2d repeat 2 days later until the date is after today I think all of these formats work with habits. If this is really the case, I think the manual should be modified to reflect this: ,[ (info (org)Tracking your habits) ] | 5. The TODO may also have minimum and maximum ranges specified by | using the syntax `.+2d/3d', which says that you want to do the | task at least every three days, but at most every two days. ` The whole page gave me the impression that the .-syntax is the only one supported. It seemed to work for me but I didn't test it extensively. -Bernt ___ 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] Writing papers in foreign languages (toc and image captions)
Hi, I am using org-mode to write a paper in Turkish, when I export a pdf, table of contents header reads Contents also images containing captions has Figure N in them. Is it possible to change these words to their Turkish equivalent? Thanks... -- Nurullah Akkaya http://nakkaya.com ___ 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] Writing papers in foreign languages (toc and image captions)
Hi Nirullah, I guess for that you have to use the latex babel package (not mixing up with org-babel), furthermore, you might have to use inputenc and fontenc if you get problems with special turkish characters. All of those you should be able to add to the LATEX header of your org-file More infos will be here: http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel Greetings Torsten On 03/26/2010 10:56 AM, Nurullah Akkaya wrote: Hi, I am using org-mode to write a paper in Turkish, when I export a pdf, table of contents header reads Contents also images containing captions has Figure N in them. Is it possible to change these words to their Turkish equivalent? Thanks... -- Nurullah Akkaya http://nakkaya.com ___ 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 ___ 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] Writing papers in foreign languages (toc and image captions)
Hi Torsten, Thanks for the tip, adding #+LATEX_HEADER: \usepackage[turkish]{babel} changed both toc and figure captions to Turkish however, images containing captions, #+CAPTION: Iki sensor yerlesimi. [[./img/sensor-yerlesim-2.jpg]] disappeared, I have following in their place now, =10em=1...@default Sekil1:Iki sensor yerlesimi. -- Nurullah Akkaya http://nakkaya.com On Fri, Mar 26, 2010 at 4:08 AM, Torsten Wagner torsten.wag...@gmail.com wrote: Hi Nirullah, I guess for that you have to use the latex babel package (not mixing up with org-babel), furthermore, you might have to use inputenc and fontenc if you get problems with special turkish characters. All of those you should be able to add to the LATEX header of your org-file More infos will be here: http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel Greetings Torsten On 03/26/2010 10:56 AM, Nurullah Akkaya wrote: Hi, I am using org-mode to write a paper in Turkish, when I export a pdf, table of contents header reads Contents also images containing captions has Figure N in them. Is it possible to change these words to their Turkish equivalent? Thanks... -- Nurullah Akkaya http://nakkaya.com ___ 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 ___ 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] Writing papers in foreign languages (toc and image captions)
Nurullah, nice to hear it is working now #+LATEX_HEADER: \usepackage[turkish]{babel} changed both toc and figure captions to Turkish however, images containing captions, #+CAPTION: Iki sensor yerlesimi. [[./img/sensor-yerlesim-2.jpg]] disappeared, I have following in their place now, Hmm that is a bit strange since as far as I know it should not make any differences to org-mode, or to say precisely, org mode has no idea that you are going to write in Turkish. The only thing I could think about is some interference with between org-mode and babel... however, babel is a very frequently used package people would now about any problem and probably fixed it already. Please check the tex-file generated by org-mode with and without babel-package. This gives you an idea whether it is a org-mode or a latex problem. Your workaround might work but cut a bit of the elegance of LaTeX. Greetings Torsten ___ 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-mode] Stop exporting u...@hostname to html
Perhaps a silly question: just wondering if it's possible to stop having this at the bottom of every html file I export: /- | Author: John W. Henderson usern...@hostname jwhe...@zenwalk | Date: 2010-03-25 21:56:05 CDT | HTML generated by org-mode 6.34trans in emacs 23 \-- I'm all for the date and supporting people knowing this is from org-mode/emacs but I don't really want the username/hostname thingy there. I have Author set via #+AUTHOR. I can't find any reference to host/hostname in the manual and with other google searches. Thanks, John ___ 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] Writing papers in foreign languages (toc and image captions)
Torsten, Thanks for all the help, It turns out that it is a latex problem, switching to other languages works such as german french but turkish causes compile errors. Regards, -- Nurullah Akkaya http://nakkaya.com On Fri, Mar 26, 2010 at 4:55 AM, Torsten Wagner torsten.wag...@gmail.com wrote: Nurullah, nice to hear it is working now #+LATEX_HEADER: \usepackage[turkish]{babel} changed both toc and figure captions to Turkish however, images containing captions, #+CAPTION: Iki sensor yerlesimi. [[./img/sensor-yerlesim-2.jpg]] disappeared, I have following in their place now, Hmm that is a bit strange since as far as I know it should not make any differences to org-mode, or to say precisely, org mode has no idea that you are going to write in Turkish. The only thing I could think about is some interference with between org-mode and babel... however, babel is a very frequently used package people would now about any problem and probably fixed it already. Please check the tex-file generated by org-mode with and without babel-package. This gives you an idea whether it is a org-mode or a latex problem. Your workaround might work but cut a bit of the elegance of LaTeX. Greetings Torsten ___ 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] suggestion: display of #+TITLE
Carsten, Scot -- Scot Becker scot.bec...@gmail.com writes: Or what about---in the spirit of the 'hidden' outline stars---the option to set #+TITLE: and friends in a 'barely visible' color, and in the 'standard' font of the document, if that's possible. OK, I understand that suddenly-disappearing text might be confusing. My intention was to help in the current efforts to avoid making org seem too technical to people coming from more mainstream software, by providing a clean document title. But OK, so magical hiding off by default. Scot's suggestion seems like a good intermediate position. Below is a new version of the patch which follows that. I resisted the temptation to go crazy with the barely visible-ness, just the same as other dimmed text in org (archived, code, etc). An image is at http://www.princeton.edu/~ddavison/org-faces/Default-MidnightBlue-DimmedKeywords.png As sexy as it is, really hiding the markup is a fair break from most (all?) of 'standard' org mode, Right, apart from links I guess. Org users are used to sudden hiding behaviour on their part. [...] On Wed, Mar 24, 2010 at 2:52 PM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Dan, I think the patch is almost good. I do like the larger face for the title, and I know that some themes also use larger faces for headlines. But I think we at least need a variable governing if the keyword will be made invisible or not. In addition to the new faces, I've introduced a new variable org-hidden-keywords which is a list of special keywords to hide, with a customise interface. At the moment that allows for hiding of #+TITLE, #+AUTHOR, #+DATE and #+EMAIL. By default all hiding is off. Dan --8---cut here---start-8--- diff --git a/lisp/org-faces.el b/lisp/org-faces.el index e336b3c..fc80e82 100644 --- a/lisp/org-faces.el +++ b/lisp/org-faces.el @@ -59,6 +59,19 @@ The foreground color of this face should be equal to the background color of the frame. :group 'org-faces) +(defface org-dim; similar to shadow + (org-compatible-face 'shadow +'class color grayscale) (min-colors 88) (background light)) + (:foreground grey50)) + (((class color grayscale) (min-colors 88) (background dark)) + (:foreground grey70)) + (((class color) (min-colors 8) (background light)) + (:foreground green)) + (((class color) (min-colors 8) (background dark)) + (:foreground yellow + Face used to de-emphasise text by dimming. + :group 'org-faces) + (defface org-level-1 ;; originally copied from font-lock-function-name-face (org-compatible-face 'outline-1 'class color) (min-colors 88) (background light)) (:foreground Blue1)) @@ -468,6 +481,41 @@ changes. :group 'org-faces :version 22.1) +(defface org-document-title + 'class color) (background light)) (:foreground midnight blue :weight bold :height 1.44)) +(((class color) (background dark)) (:foreground steel blue :weight bold :height 1.44)) +(t (:weight bold :height 1.44))) + Face for document title, i.e. that which follows the #+TITLE: keyword. + :group 'org-faces) + +(defface org-document-author + 'class color) (background light)) (:foreground midnight blue)) +(((class color) (background dark)) (:foreground steel blue))) + Face for document author, i.e. that which follows the #+AUTHOR: keyword. + :group 'org-faces) + +(defface org-document-email + (org-compatible-face 'org-document-author '((t nil))) + Face for document email, i.e. that which follows the #+EMAIL: keyword. + :group 'org-faces) + +(defface org-document-date + (org-compatible-face 'org-document-author '((t nil))) + Face for document date, i.e. that which follows the #+DATE: keyword. + :group 'org-faces) + +(org-copy-face 'org-dim 'org-document-title-keyword + Face for #+TITLE: keyword.) + +(org-copy-face 'org-dim 'org-document-author-keyword + Face for #+AUTHOR: keyword.) + +(org-copy-face 'org-dim 'org-document-email-keyword + Face for #+EMAIL: keyword.) + +(org-copy-face 'org-dim 'org-document-date-keyword + Face for #+DATE: keyword.) + (defface org-block (org-compatible-face 'shadow 'class color grayscale) (min-colors 88) (background light)) diff --git a/lisp/org.el b/lisp/org.el index dad8649..4410f46 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2975,6 +2975,17 @@ lines to the buffer: :group 'org-font-lock :type 'boolean) +(defcustom org-hidden-keywords nil + List of keywords that should be hidden when typed in the org buffer. +For example, add #+TITLE to this list in order to make the +document title appear in the buffer without the initial #+TITLE +keyword. + :group 'org-font-lock + :type '(set (const :tag #+AUTHOR author) + (const :tag #+DATE date) + (const :tag #+EMAIL email) + (const :tag #+TITLE title))) + (defcustom org-fontify-done-headline nil Non-nil means change the face
[Orgmode] LaTeX package dependencies
Hi everyone, I am working on better entity (special symbol) support for export, based on a list Ulf Stegemann has compiled. The list Ulf has sent me requires the following LaTeX packages to be available: * t1enc * textcomp * marvosym * wasysym * MnSymbol Before I introduce new dependencies on these packages, I would like to ask that many of you check if these packages are available in the LaTeX distribution you are using. Please check, and let me know which package you do not have. Thanks! - Carsten ___ 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] possible bug: TAB after elipsis
Yep, I see this too! setup org-version: 6.34trans (from 2010_02_25) emacs: 23.1.50.1 Livin Stephen Sharma On Mar 24, 2010, at 23:34:40 , Anthony Lander wrote: If the cursor is after the elipsis on a folded entry like this: Some entry...| pressing TAB doesn't expand the entry, or in fact, do anything useful at all. Is it possible to get it to expand the entry, or am I missing something? Thanks, -Anthony ___ 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 ___ 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