[Orgmode] Possible? Markdown-syntax for links in org-mode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using Markdown on my wordpress-powered-blog and I'm always confused when switching applications, because the syntax is different: + org-mode: [[LINK-TEXT][URL]] documentation: http://staff.science.uva.nl/~dominik/Tools/org/ org.html#Hyperlinks + markdown: [LINK-TEXT](URL "optional TITLE") documentation: http://daringfireball.net/projects/markdown/ syntax#link QUESTION: Is there a way to setup org-mode to use the markdown-syntax? regards from Berlin - - Phil -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (Darwin) iD8DBQFFcIdMuJlsHqDZFGYRAhCRAJ0ZjWxXzh+Tz03060yJNqFcaODGNwCfayn6 R0eNy37oPszVlflhUOFIXEo= =oG+1 -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Possible? Markdown-syntax for links in org-mode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using Markdown on my wordpress-powered-blog and I'm always confused when switching applications, because the syntax is different: + org-mode: [[LINK-TEXT][URL]] documentation: http://staff.science.uva.nl/~dominik/Tools/org/ org.html#Hyperlinks + markdown: [LINK-TEXT](URL "optional TITLE") documentation: http://daringfireball.net/projects/markdown/ syntax#link QUESTION: Is there a way to setup org-mode to use the markdown-syntax? regards from Berlin - - Phil -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (Darwin) iD8DBQFFcIdMuJlsHqDZFGYRAhCRAJ0ZjWxXzh+Tz03060yJNqFcaODGNwCfayn6 R0eNy37oPszVlflhUOFIXEo= =oG+1 -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org-mode & EasyPG: How to enable both on a per-file-basis?
Hello, I want to use have my .org-file gpg-encrypted. I played arround with EasyPG (http://www.easypg.org/) and after compiling the package and adding: (require 'epa-setup) to my .emacs, encryption and decryption is working fine. When I'm saving a file EasyPG is asking for a public-key which it should choose for encryption. To skip this dialog, there is the possibility to put -*- epa-file-encrypt-to: ("EMAIL-ADRESS OR KEY-ID") -*- in the FIRST line. This key is then used for encryption. While this is working, when in the first line, it doesn't work when I have -*- mode: org; -*- in the line above and when I move the mode: org to the second line, Org-Mode isn't working. Any ideas how I can use both settings on a per file basis: 1. telling Emacs that this file is a org-mode file, and 2. telling Emacs which GPG-Key it should choose when encrypting? Best regards from Berlin - P hil ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Org-mode & EasyPG: How to enable both on a per-file-basis?
Thanks! -*- mode: org; epa-file-encrypt-to: ("KEY-ID") -*- Is working like a charm - Everytime I save my .org-file it will be stored gnupg-encrypted. Pretty nice, when you take your data with you - in case of lost. Should be a must-have for org-mode-users. - P hil On Apr 8, 2007, at 4:21 PM, Olaf Dietsche wrote: phil <[EMAIL PROTECTED]> writes: Any ideas how I can use both settings on a per file basis: 1. telling Emacs that this file is a org-mode file, and 2. telling Emacs which GPG-Key it should choose when encrypting? Maybe -*- mode: org; epa-file-encrypt-to: ("EMAIL-ADRESS OR KEY- ID") -*- works? Regards, Olaf. ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Export org-mode to .ics (on FTP-Server)
Hello, I'm using org-mode to keep track of my todos & events & to store stuff. I've an org-mode file (events.org) that contains all upcoming events (music, sports...). I've setup my blog to show the next events that are taken from a .ics- file, that is stored on my webserver. So the current workflow is: 1. Editing my events.org-file 2. Exporting this file to an .ics 3. Uploading the .ics file to my webserver using FTP QUESTION: Is it possibile to upload the .ics file after exporting in one step from emacs? - Phil ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
ob-sql-mode/session
Hi all, In need for a sessions support on SQL, I checked ob-sql.el and sql.el lately, then wrote [[https://github.com/flintforge/ob-sql-session][ob-sql-session]] (no pun intended, at all:) It started with a quick workaround on ob-sql, which turned out to be the same logic to what _ob-sql-mode_ does: a simple sql-redirect. Most of the content found in it was general consideration regarding org-mode usage with source blocks, and a working solution is more demanding, so I felt a little embarassed to fork ob-sql-mode after, but still, would like to volunteer. Perhaps it would also be embrassement to have a package named ob-sql-session in the repos (because it's not related to Emacs sessions of course;)? https://github.com/nikclayton/ob-sql-mode/issues/14#issue-1855387618 https://github.com/flintforge/ob-sql-session Phil
Re: ob-sql-mode/session
* [2024-06-06 02:20] Phil: * [2024-06-05 20:50] Ihor Radchenko: Phil writes: In need for a sessions support on SQL, I checked ob-sql.el and sql.el lately, then wrote https://github.com/flintforge/ob-sql-session CCing Daniel, the ob-sql maintainer. it sounds to me like a proposal to add :session support to Org mode's ob-sql. Yes, it is. The re-wiring will need to federate and differentiate some command-line options without them clashing. Of course it's easier to get it operational on databases one is used to work with. I'll be testing further these new functions in real conditions before, and think about a complete test coverage on the other DBs. Phil
Re: [BUG] ob-sql should escape the password [9.7.3 (9.7.3-2f1844 @ /home/andrea/.emacs.d/elpa/org-9.7.3/)]
* [2024-06-07 00:58] Andrea: org-babel-execute:sql. This function extracts the password to connect to your database of choice as dbpassword. It then uses it like this: (format "PGPASSWORD=%s " dbpassword) If the password contains an & character, the execution of a block fails. I solved like this: (format "PGPASSWORD='%s' " dbpassword) shell-quote-argument is designed for this case. Phil
Re: org-babel-execute-src-block filters characters from :session *shell* output
* [2024-06-16 14:47] Max Nikulin: On 15/06/2024 20:19, Ihor Radchenko wrote: The underlying cause is a limitation of Emacs API for interactive shells - we cannot easily distinguish command output from prompt and other extra stuff your shell/other interactive command spits into the buffer. Some shells support "semantic shell" that allows terminal applications e.g. to copy whole command output. It is based on escape sequences. - https://gitlab.freedesktop.org/Per_Bothner/specifications/blob/master/proposals/semantic-prompts.md - http://per.bothner.com/blog/2019/shell-integration-proposal/ it is implemented by simply setting PROMPT in a way that adds these escape sequences to the original PROMPT value. one downside will be that the unicode character we add may be carried along if the user copies the comint buffer contents. Perhaps a minor-mode would get to the rescue to filter copies? I'd like to add a few general remarks about *error status*. I'm starting to notice there are not much subprocesses that to do get called through =call-process= with ‘(REAL-DESTINATION ERROR-DESTINATION)’ kept as separate. You all know how useful stdin/out/err and the return codes are, but they're absent from Babel. That's why a failed command will still provide a result — an empty array for instance, something that looks legit even when it's not. I had again this experience with =ob-http :pretty= and =ob-mongo= lastly: errors are silenced. Comint reads and write from/to terminals with all three standard channels together. It's meant to provide requirements to communicate with non-POSIX terminals too. It's a great library but perhaps there's a need to specialize things further when dealing with one shell? So In Emacs, those specs would land either in one precise (possibly low-level) shell extension or a generic one that would once more care for the many idiosyncracies every one of them have. Something I figured when dealing with ob-sql-session is that if several commands are given in one batch (what a babel source block is in many cases), they can either be all run until the end or be stopped when an error is met. In both cases, knowing the number of errors met is possible in one shell that do agree with the convention of returning a value for every command (or command line). Otherwise, a terminal "reader" has to reinterpret the results. [[info:elisp#Synchronous Processes][elisp#Synchronous Processes]] says : You can’t directly specify a buffer to put the error output in; that is too difficult to implement. Can someone explain why? Phil
Re: org-babel-execute-src-block filters characters from :session *shell* output
* [2024-07-02 22:05] Ihor Radchenko: Phil Estival writes: I'd like to add a few general remarks about *error status*. I'm starting to notice there are not much subprocesses that to do get called through =call-process= with ‘(REAL-DESTINATION ERROR-DESTINATION)’ kept as separate. You all know how useful stdin/out/err and the return codes are, but they're absent from Babel. They are not. See `org-babel-eval-error-notify'. Not for sessions though. That's right. The situation is fine when there is one synchronous command line. And I admit too much "interactivity" may put astray from strict reproducible frames. When several commands are given in one batch (what a babel source block is in many cases), they can either be all run I should rather say "sent to a compiler or interpreter process" until the end or be stopped when an error is met. In both cases, knowing the number of errors met is possible in one shell that do agree with the convention of returning a value for every command (or command line). May you elaborate? Source code is given to a compiler one character at a time. It's also typed in a terminal one character at a time, and when is hit, a line can be sent to the underlying interpreter. Programming environments often run a parallel evaluator to provide feedback, completions, suggestions, and so on, to the programmer, on every keystroke. Reproducible research will only provides the source: a text, made of syntactic atoms. On the host on which this text is read can coexist numerous evaluators, and while they can virtually be anything, the basic environment is a syntax colorator and a command processor that activates only when it is asked to. The error management channel is important. Only a very small fraction of errors should be silenced, and we must not have feedback displaying that a function ran correctly when it did not. Let's decouple an interactive shell from its compiler/interpreter (setting aside a Lisp evaluator that can dodge most of the problems): In many programming languages the source code can indeed be assimilated line by line by the interpreter through an interactive shell. - It returns nothing or an error after a definition or a silent directive, then the prompt. - One or more values as a result or errors, then the prompt, when calling functions and procedures. - It can expect more input and more lines before terminating a statement, returning a secondary prompt until that statement completes or fails. The terminal display is organized from programming interactions but the separation of channels is needed for further processing. 1) We should avoid filtering output with regexp acrobatics. 2) Communication with the process should go through a function that can display inputs and outputs and errors in three different channels before sending it to the process. Communicating directly to the process should remain possible, but it's a short-circuit. + In : code block. - Headers and parameters are given upon session initialization. + Out : program output and exit code. This we have. + Err : file, line, error code, message, including the prompt which goes to stderr. + The line number where the error occurs related to a source block. There may be extra code wrapping a block and noweb may complicate things even more. The situation to avoid is a line number unrelated to the edited source block. (Weaving and tangling programs is fine for me I'm only thinking out loud here). Example: Errors goes in one file buffer and a filter wraps them in blocks. file:/tmp/babel-uuid/fiction.err #+begin_err :lang fiction :err 5 :line 2 Parse error: near "?": syntax error ? ; ^--- error here #+end_err Should all commands in a block be run ? It depends on the language of course, but usually, no, the execution stops and drops into a backtrace or raises an exception pointing to the stack frames. Dash has =set -e= (that doesn't always behave as expected). Sqlite has =.bail= for noninteractive sessions. And now here is my problem. Am I missing something about carriage return ? A differentiation problem between what happen when pressing C-q C-j in a shell, and ? If ob-sql-session concatenates the SQL commands on one line, sqlite is able to stop on error. #+begin_src sql-session :engine sqlite :session A select 1; raise; select 2; select 33; #+end_src #+RESULTS: : 1 : Parse error: near "raise": syntax error : raise; select 2; select 33; : ^--- error here If it does not, a newline terminates the command, the prompt is displayed and the next line is an other command. Which is not the desirable effect as there's no way to halt the remaining commands. #+RESULTS: : 1 : Parse error: near "raise": syntax error : raise; select 2; : ^--- error here : 33 At last, I would reformulate
Re: org-babel-execute-src-block filters characters from :session *shell* output
* [2024-07-06 13:36] Max Nikulin: On 18/06/2024 00:57, Ihor Radchenko wrote: Max Nikulin writes: Some shells support "semantic shell" that allows terminal applications e.g. to copy whole command output. It is based on escape sequences. https://gitlab.freedesktop.org/Per_Bothner/specifications/blob/master/proposals/semantic-prompts.md I am looking at this gitlab link, and they way it is implemented is simply setting PROMPT in a way that adds these escape sequences to the original PROMPT value. It does a bit more. There are escape sequences to mark user input, program output, and to report program exit status. I had in mind support of this protocol in comint, so Org babel session make take advantage of it if the feature is available for a specific interpreter. I imagine it organized in such a way that it can communicate with a program able in the first place to talk natively with std in/out/err, separating input, output, exit/result code and the prompt. By means of escape sequences and a filter, a given shell can talk to that other layer of the protocol. The insertion of escape sequences stays possible with filters for any given shell.
[BUG] unexpected behaviour on sub-list
Hello, I'm reporting this bug on Org mode version 9.7.6. It was in already in 9.5. - here is a list with a sub list - like here ; and then text (<- this will be deleted) x 1) Trying to insert an other item above, by suppressing the "x", and hitting M-RET, if there's no text after, the command gets stuck in org-list-struct-apply-struct. file:~/.emacs.d/repos/org/lisp/org-list.el::1968 Very likely, needs to check if forward line returns 0 otherwise it will keep looping. #+begin_src patch - (while (< (point) down) + (while (and ( < (point) down) (not(> lines-left-to-move 0))) #+end_src file:~/.emacs.d/repos/org/lisp/org-list.el::1982 #+begin_src patch - (forward-line))) + (setq-local lines-left-to-move (forward-line) #+end_src 2) after a break, C-g, or if there is some text, the previous paragraph is killed and the list structure re/dis-organized. Cheers, Phil
[FR] org-babel-n-tangle
Hi, The ability to tangle to multiple destinations is a very convenient way to manage cluster configurations. No, it's more than that: it's an *awesome* way to deploy and keep clusters configs and repros well organized. The following *org-babel-n-tangle*, is just a small derivation of *org-babel-tangle*. It's displayed here as a diff not with the intent to be applied as a patch, but to show the very little differences required in order to get this working. #+begin_src diff diff -u ~/.emacs.d/repos/org/lisp/ob-tangle.el ~/tmp/ob-ntangle.el --- ~/.emacs.d/repos/org/lisp/ob-tangle.el +++ ~/tmp/ob-ntangle.el @@ -238,8 +238,12 @@ (org-babel-tangle-file filename))) ;;;###autoload -(defun org-babel-tangle (&optional arg target-file lang-re) - "Write code blocks to source-specific files. +(defun org-babel-n-tangle (&optional arg target-file lang-re) + "Write code blocks to source-specific files +located into the directories designated by the :n-tangle parameter +then onto subsequent directory and file of the :tangle parameter. +Performs like `org-babel-tangle' adding an extra iteration over +a list of directories, potentially different hosts and protocols Extract the bodies of all source code blocks from the current file into their own source-specific files. Return the list of files. With one universal prefix argument, only tangle the block at point. @@ -268,12 +272,19 @@ (tangle-file (when (equal arg '(16)) (or (cdr (assq :tangle (nth 2 (org-babel-get-src-block-info 'no-eval - (user-error "Point is not in a source code block" + (user-error "Point is not in a source code block" + (targets (or (cadr (assoc (cdr + (assoc :n-tangle (nth 2 (org-babel-get-src-block-info + org-babel-ntangle-destinations)) + '(nil))) ; iterate on one local target path-collector (source-file buffer-file-name)) + + (dolist (target targets) ;; iterate the n-tangle group + (progn (mapc ;; map over file-names (lambda (by-fn) -(let ((file-name (car by-fn))) +(let ((file-name (concat target (car by-fn (when file-name (let ((lspecs (cdr by-fn)) (fnd (file-name-directory file-name)) @@ -354,6 +365,7 @@ (if (equal arg '(4)) (org-babel-tangle-single-block 1 t) (org-babel-tangle-collect-blocks lang-re tangle-file))) + )) (message "Tangled %d code block%s from %s" block-counter (if (= block-counter 1) "" "s") (file-name-nondirectory #+end_src In order to use this *:n-tangle* parameter, the destinations are declared in groups of host and/or root folders. #+begin_src elisp (setq org-babel-ntangle-destinations '(("test-1" ("/tmp/test/host-A" "/tmp/test/host-B" )) ("hosts-A&B/tmp" ("/-:hostA:/tmp/" "/-:hostB:/tmp/" #+end_src Calling *org-babel-n-tangle* with the universal argument runs the tangle processor, not on the entire file, but for the current block. The tangled output goes into the designated group. #+begin_example #+begin_src elisp :n-tangle "hosts-A&B/tmp" :tangle /x/y :mkdirp t (org-babel-n-tangle '(4)) #+end_src #+end_example In the above example the tangled outputs goes to *hostA:/tmp/x/y* and *hostB:/tmp/x/y* using a default protocol. In the absence of *:n-tangle* or when *org-babel-ntangle-destinations* is nil. *org-babel-n-tangle* behaves like *org-babel-tangle* What do you think ? Phil /"Oh what a tangled web we weave..."/
Re: Property: How to define allowed values at file level
Hello Sébastien, Remove the two dots after Review_all and everything will be fine. #+PROPERTY: Review_ALL ⭐ ⭐⭐ ⭐⭐⭐ ⭐ Best, Phil * [2024-07-15 03:18] Sébastien Gendre: Hello, After reading the manual about property syntax[1], I want to set the allowed values for a property at the file level. So, at the beginning of my buffer, I have written this: #+PROPERTY: Review_ALL: ⭐ ⭐⭐ ⭐⭐⭐ ⭐ But when I try to set the property of an heading, with keyboard shortcut C-c C-x p, and select the property "Review": I can set any value. Didn't the minibuffer should offer me only the values above, with completion ? Did I misunderstand the manual ? Is it not possible to set allowed values at a file level ? [1] https://orgmode.org/manual/Property-Syntax.html Best regards --- Gendre Sébastien
Re: [FR] org-babel-n-tangle
* [2024-07-12 13:23] Ihor Radchenko:> Phil writes: To tangle to multiple destinations a logic extension of the existing tangle mechanism. 1) Introduce :tangle-directory parameter that defines relative directory to be used as tangle target; this directory, if defined, will be used instead of the Org file directory to expand the tangle target; 2) Allow :tangle-directory and :tangle-file to be a list of targets to write. Then, we can modify `org-babel-effective-tangled-filename' to account for :tangle directory and modify `org-babel-tangle' (as you did) to write to multiple targets. All right. So I have it working for single blocks by modifying only `org-babel-tangle' with :tangle-directory accepting a single string or a list, e.g. :tangle-directory '("dir1" "/ssh:host1:/dir2" "/-::/etc") The option is ignored for file-wide tangle. What do you think of, instead of adding :tangle-directory, modifying :tangle to make it accept also a list? Since I may not get back to this in the next weeks, I'm saving the following note and a patch as a current status of the function for later. =:tangle-directory dir= is set - Tangle globally |+--+--| | tangle | expected result | current | |+--+--| | yes| ignore dir | | no | ignore dir | | file | block → dir/file?| block → file | |+--+--| - Tangle a single block |+--+---| | tangle | expected result | current | |+--+---| | yes| ?| dir/[org-folder/org-file] | | no | error? | dir (as file or folder) | | file | tangle to TD+dir | tangle to TD+dir | |+--+---| Cheers, PhilFrom 360938b43a9c6a731114840c9b6db7c79f786116 Mon Sep 17 00:00:00 2001 From: Phil Estival Date: Sat, 13 Jul 2024 14:46:08 +0200 Subject: [PATCH] add header-arg :tangle-directory declares a directory or a list of directories as parent(s) to the :tangle argument --- lisp/ob-tangle.el | 16 ++-- testing/lisp/test-ob-tangle.el | 72 +- 2 files changed, 84 insertions(+), 4 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index c89763efa..c494571dc 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -269,11 +269,20 @@ matching a regular expression." (when (equal arg '(16)) (or (cdr (assq :tangle (nth 2 (org-babel-get-src-block-info 'no-eval (user-error "Point is not in a source code block" +(dirs (cdr (assq :tangle-directory (nth 2 (org-babel-get-src-block-info) path-collector -(source-file buffer-file-name)) - (mapc ;; map over file-names + (source-file buffer-file-name)) + +(setq dirs (cl-case (type-of dirs) + (string (list dirs)) + (cons dirs) + (symbol '(nil + + (dolist (dir dirs) ; iterate the n-tangle group + (progn + (mapc ; map over directories (lambda (by-fn) - (let ((file-name (car by-fn))) + (let ((file-name (concat dir (car by-fn (when file-name (let ((lspecs (cdr by-fn)) (fnd (file-name-directory file-name)) @@ -354,6 +363,7 @@ matching a regular expression." (if (equal arg '(4)) (org-babel-tangle-single-block 1 t) (org-babel-tangle-collect-blocks lang-re tangle-file))) +)) (message "Tangled %d code block%s from %s" block-counter (if (= block-counter 1) "" "s") (file-name-nondirectory diff --git a/testing/lisp/test-ob-tangle.el b/testing/lisp/test-ob-tangle.el index e13bca0cb..a725cdb14 100644 --- a/testing/lisp/test-ob-tangle.el +++ b/testing/lisp/test-ob-tangle.el @@ -27,6 +27,7 @@ (require 'subr-x) (require 'ob-tangle) +(require 'find-file) (require 'org) ;; TODO @@ -660,7 +661,13 @@ another block #+begin_src emacs-lisp :tangle ~/../../tmp/absolute.el \"H2: :tangle ~/../../tmp/absolute.el\" -#+end_src" +#+end_src + +#+begin_src emacs-lisp :tangle-directory '(\"/tmp/a/\" \"tmp/b/\") :tangle multiple.el +\"H2: :tangle /tmp/multiple.el\" +#+end_src + +" `((?a . ,el-file-abs) (?r . ,el-file-rel ;; We check the collected blocks to tangle by counting equal @@ -699,6 +706,7 @@ another block (should (equal (funcall normalize-expected-targets-alist `(("/tmp/absolute.el" . 4) +
Re: Examples of online documentation written with Org-mode
* [2024-08-11 08:19] Ihor Radchenko: mb...@mbork.pl writes: On 2024-08-10, at 17:13, Ihor Radchenko wrote: Many blogs are also made with Org mode. Not sure if it qualifies for documentation. ... my custom blog engine (https://gitlab.com/mbork_mbork_pl/org-clive). It is a testament to the power of Org that Org Clive is less then 400 lines of Elisp - most of the heavy lifting is done by Org itself. Note that it is listed in https://orgmode.org/tools.html since long ago ;) Mine too (https://gitlab.com/7dnz/org-weblog) lands in this category, with an emphasize on a — very verbose I admit — but strict literate programming. It's a 99KB file, with tests, attempts, explanations, explorations, etc. The page documentation is produced as blog post by evaluating directly from the code and documentation being redacted. It doesn't use the tangle processor but evaluates one section after the other. This is how I learned Lisp. It may stay as a beginner's work forever but I don't mind, it works, and I like it. Here are the functions it lacks to make it a complete blogging engine : search, archival by year/month, previous/next post, pagination, one folder by post, and a few custom properties : the author of a post and a custom stylesheet per post among others. Cheers -- Philippe Estival https://7d.nz
[Orgmode] Using noweb with org-mode source
In making up lecture and teaching materials, I would find it useful to be able to use noweb references to replicate blocks of org-mode text directly, rather than source code from latex or another language. But org-mode isn't one of the babel-supported languages. Can anyone suggest a tricky way to achieve this result? What I have in mind is something like the following: * One section, exported to a particular document #+srcname: primates #+begin_src org-mode - chimps :: strong, smart and savage - bonobos :: less savage, sexy, smart - orangutans :: kinda asocial, with big arms - gorillas :: really strong, but shy #+end_src Lots of text here. * Another section, exported to a different document Let's review what we know about the primate group. <> -- Phil Branigan ___ 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 noweb with org-mode source
Thanks, Suvaya and Christian, Unfortunately, neither of these two suggestions really does what I had hoped. Using INCLUDE files will certainly allow me to reuse my text and export to different documents, but at the cost of cluttering up my directories with a bunch of files which have no other purpose. And the syntax proposed by Christian produces verbatim copies of the org-mode source, instead of allowing me to export the same text at different points in the document. I can achieve what I want already to some extent by using org-tables and the like to generate latex code in a src block. But this obviously doesn't offer a general export solution to other formats, and it's a clunky way of working. It may be that the noweb syntax can't accomodate the kind of src-export-reuse that I'm looking for. - Phil Branigan On Wed, Jan 5, 2011 at 4:47 PM, Christian Moe wrote: > Hi, > > This should get you part of the way: Use `org' as the language name, not > `org-mode'. Enclose the noweb reference in another src block with noweb > explicitly turned on. Reworked example follows. > > I can't seem to get rid of the code block around it, though, however I play > with the header arguments. > > Yours, > Christian > > > > * One section, exported to a particular document > > #+srcname: primates > #+begin_src org > ,- chimps :: strong, smart and savage > > ,- bonobos :: less savage, sexy, smart > ,- orangutans :: kinda asocial, with big arms > ,- gorillas :: really strong, but shy > #+end_src > > Lots of text here. > > * Another section, exported to a different document > > Let's review what we know about the primate group. > > #+begin_src org :noweb yes > <> > #+end_src > > > On 1/5/11 6:59 PM, Phil Branigan wrote: > >> In making up lecture and teaching materials, I would find it useful to >> be able to use noweb references to replicate blocks of org-mode text >> directly, rather than source code from latex or another language. But >> org-mode isn't one of the babel-supported languages. Can anyone >> suggest a tricky way to achieve this result? >> >> What I have in mind is something like the following: >> >> * One section, exported to a particular document >> >> #+srcname: primates >> #+begin_src org-mode >> - chimps :: strong, smart and savage >> - bonobos :: less savage, sexy, smart >> - orangutans :: kinda asocial, with big arms >> - gorillas :: really strong, but shy >> #+end_src >> >> Lots of text here. >> >> * Another section, exported to a different document >> >> Let's review what we know about the primate group. >> >> <> >> >> >> -- >> Phil Branigan >> >> >> >> ___ >> 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 >> > > -- Phil Branigan Associate Professor Department of Linguistics Memorial University of Newfoundland St. John's, NL, A1B 3X9 Tel. (709) 737-8134 Fax (709) 737-4000 ___ 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 bug?
Somehow, in putting together the file list, org-mobile-push strips the home ~ from the file names in org-agenda-files, so that no org files are actually getting copied to my staging directory. I sure would appreciate any hints on how to track this to ground. ___ 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-mobile bug?
Sorry all. It was an overly hasty posting and a hint from Bob Erb led me to realize that my load-path was pulling in an old version. The problem disappears when the current version is loaded. - Phil On Sat, Oct 24, 2009 at 9:45 AM, Carsten Dominik wrote: > Hi Phil, > > > On Oct 23, 2009, at 4:36 PM, Phil Branigan wrote: > > Somehow, in putting together the file list, org-mobile-push strips the >> home ~ >> from the file names in org-agenda-files, so that no org files are actually >> getting copied to my staging directory. I sure would appreciate any hints >> on >> how to track this to ground. >> > > Hmm, this is strange. What it the value of org-agenda-files, > does it actually contain absolute names? > > Can you show us your configuration, most easily with > > M-x org-submit-bug-report > > (at least in order to create the text that you can then send > us with an arbitrary mail client) > > - Carsten > > > > ___ 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] Unable to clock in on task
Keith Lancaster writes: > I updated to 6.32 this morning and am now unable to clock in on > tasks. At first, there was an issue with an org file having a dangling > clock- > in. When I attempted to log in to a task, it alerted me to the > dangling task. No matter how I answered (cancel, etc), Emacs crashed. > I then fixed the dangling clock in question and tried again. Now, > emacs crashed immediately without displaying a menu. I am guessing > that the issue is still related to a dangling clock-in, but cannot be > sure. Is there a way to disable the clock-checking feature? I'm on > emacs 23 cocoa on Snow Leopard. I too upgraded this morning and am also having problems clocking in (using "I" on a task in the daily agenda). My symptoms are different, Emacs doesn't crash but I do consistently get the following: Debugger entered--Lisp error: (wrong-type-argument stringp 126) expand-file-name(126) mapcar(expand-file-name "~/Documents/Org/org-agenda-files") org-files-list() org-resolve-clocks() byte-code org-clock-in(nil) org-agenda-clock-in(nil) call-interactively(org-agenda-clock-in nil nil) Currently running: 79bcdbe73667be7ad811c1f2facd419cbef90426 Author: Carsten Dominik Date: Tue Oct 27 09:29:49 2009 +0100 Mac OS X 10.5.8 GNU Emacs 23.50.1 Rgds Phil ___ 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] Unable to clock in on task
Nick Dokos writes: > This does look like a bug: org-resolve-clock calls org-files-list which > does not know about the "agenda files list in a file" convention. It > should probably call the function org-agenda-files instead of > org-files-list. org-files-list is only used in this one place and should > probably be deleted. > > Try this patch: > > diff --git a/lisp/org-clock.el b/lisp/org-clock.el > index ea23a8d..2ce2f22 100644 > --- a/lisp/org-clock.el > +++ b/lisp/org-clock.el > @@ -737,7 +737,7 @@ non-dangling (i.e., currently open and valid) clocks." >(interactive "P") >(unless org-clock-resolving-clocks > (let ((org-clock-resolving-clocks t)) > - (dolist (file (org-files-list)) > + (dolist (file (org-agenda-files)) > (let ((clocks (org-find-open-clocks file))) > (dolist (clock clocks) > (let ((dangling (or (not (org-clock-is-active)) That works for me. Thanks a lot. Phil ___ 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] Unable to clock in on task
Nick Dokos writes: > Even better, using org-submit-bug-report would have shown us that the > "agenda file list in a file" convention was being used - as you can > imagine, that's not the setting I use, so when I tried clocking in > yesterday, things worked without a problem for me. Back in the days of v3.x/4.x when I originally wrote the org reference card I would pride myself on knowing pretty much everything the mode offered...nowadays, sadly, lots of bits pass me by. I didn't even know of the bug report function :( Still I do now, thanks and I will use it in future. > Moralizingly-but-I-hope-not-overbearingly-so yours, Not at all, it was a fair point. Regards, Phil ___ 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] Org-mode version 6.32trans; Cannot complete on #+SETUPFILE
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. Hardly important, but SETUPFILE doesn't seem to appear in the #+ options completions list. Phil -- Emacs : GNU Emacs 23.1.50.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46) Package: Org-mode version 6.32trans current state: == (setq org-log-done 'time org-remember-default-headline "Tasks" org-clock-in-switch-to-state "STARTED" org-agenda-clockreport-parameter-plist '(:link nil :maxlevel 3) org-default-priority 99 org-agenda-custom-commands '(("P" "Projects" tags "/!PROJECT" ((org-use-tag-inheritance nil))) ("s" "Started Tasks" todo "STARTED" ((org-agenda-todo-ignore-with-date nil))) ("w" "Tasks waiting on something" tags "WAITING" ((org-use-tag-inheritance nil))) ("r" "Refile New Notes and Tasks" tags "REFILE" ((org-agenda-todo-ignore-with-date nil))) ("n" "Notes" tags "NOTES" nil)) org-agenda-files "~/Documents/Org/org-agenda-files" org-agenda-window-setup 'current-window org-clock-into-drawer t org-completion-use-ido t org-after-todo-state-change-hook '(org-clock-out-if-current) org-clock-out-when-done nil org-clock-history-length 35 org-time-stamp-rounding-minutes '(5 5) org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) ("WAITING" ("WAITING" . t) ("NEXT")) ("SOMEDAY" ("WAITING" . t)) (done ("NEXT") ("WAITING")) ("TODO" ("WAITING") ("CANCELLED")) ("STARTED" ("WAITING")) ("PROJECT" ("CANCELLED") ("PROJECT" . t))) org-agenda-sorting-strategy '(time-up priority-down category-up) org-agenda-restore-windows-after-quit t org-agenda-skip-scheduled-if-done t org-clock-in-resume t 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-clock-persist t org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "NEXT(n)" "|" "DONE(d!/!)") (sequence "WAITING(w@/!)" "SOMEDAY(S!)" "PROJECT(p@)" "|" "CANCELLED(c@/!)")) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file "~/Documents/Org/notes.org" org-directory "~/Documents/Org" org-attach-auto-tag "attach" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '((lambda nil (setq local-abbrev-table text-mode-abbrev-table)) #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]) org-clock-out-remove-zero-time-clocks t org-agenda-ndays 1 org-refile-targets '((org-agenda-files :maxlevel . 5) (nil :maxlevel . 5)) org-cycle-separator-lines 1 org-confirm-elisp-link-function 'yes-or-no-p org-refile-use-outline-path 'file org-fast-tag-selection-single-key 'expert org-agenda-start-on-weekday nil org-agenda-skip-deadline-if-done t org-occur-hook '(org-first-headline-recenter) org-agenda-log-mode-items '(clock) org-tags-column -79 org-modules '(org-bbdb org-bibtex org-gnus org-info org-habit org-protocol org-w3m org-bookmark org-checklist org-toc) org-remember-templates '(("Appt" 97 "* %^T %^{Appointment}%?" "triage.org" bottom nil) ("Browser" 119 "* %:description\n (created: %U)\n\n %?\n\n %c\n\n %i") ("Date" 100 "* %^t %^{Diary entry}%?" "triage.org" bottom nil) ("Hols" 104 "* %^{Event (eg holiday)}\n%^t--%^t%?" "triage.org" bottom nil) ("Notes" 110 "* %? :note:\n %U" "notes.org" bottom nil) ("Phone" 112 "* PHONE %? :phone:\n %U" "triage.org" bottom nil) ("Todo" 116 "* TODO %?\n %u" "triage.org" bottom nil)) ) ___ 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] [PATCH] A few typos
Correct a few spelling mistakes. Some of these are American vs British spelling disagreements but the Org documentation uses the US spellings. diff --git a/doc/org.texi b/doc/org.texi index 25406c0..73289d2 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -434,7 +434,7 @@ Using header arguments Specific header arguments * var::Pass arguments to code blocks -* results::Specify the type of results and how they will be collectd and handled +* results::Specify the type of results and how they will be collected and handled * file:: Specify a path for file output * dir and remote execution:: Specify the default directory for code block execution * exports::Export code and/or results @@ -451,7 +451,7 @@ Specific header arguments Miscellaneous * Completion:: M-TAB knows what you need -* Speed keys:: Electic commands at the beginning of a headline +* Speed keys:: Electric commands at the beginning of a headline * Code evaluation security:: Org mode files evaluate inline code * Customization:: Adapting Org to your taste * In-buffer settings:: Overview of the #+KEYWORDS @@ -1521,7 +1521,7 @@ LaTeX}). Here are the valid references: @table @code @item [1] A plain numeric footnote marker. Compatible with @file{footnote.el}, but not -recommended because somthing like @samp{[1]} could easily be part of a code +recommended because something like @samp{[1]} could easily be part of a code snippet. @item [fn:name] A named footnote reference, where @code{name} is a unique label word, or, for @@ -2643,7 +2643,7 @@ functions. @node Org-Plot, , The spreadsheet, Tables @section Org-Plot @cindex graph, in tables -...@cindex plot tables using gnuplot +...@cindex plot tables using Gnuplot @cindex #+PLOT Org-Plot can produce 2D and 3D graphs of information stored in org tables @@ -3868,7 +3868,7 @@ If the task was going to be overdue the next day. If the task was overdue on that day. @end table -In addition to coloring each day, the day is also marked with an asterix if +In addition to coloring each day, the day is also marked with an asterisk if the task was actually done that day, and an exclamation mark to show where the current day falls in the graph. @@ -5745,8 +5745,8 @@ use the shift key and press @kbd{S}. Remember that using shift will always leave you clocked out, no matter which option you choose. @item C To cancel the clock altogether, use @kbd{C}. Note that if instead of -cancelling you subtract the away time, and the resulting clock amount is less -than a minute, the clock will still be cancelled rather than clutter up the +canceling you subtract the away time, and the resulting clock amount is less +than a minute, the clock will still be canceled rather than clutter up the log with an empty entry. @end table @@ -6026,7 +6026,7 @@ place where you started the capture process. @node Template elements, Template expansion, Capture templates, Capture templates @subsubsection Template elements -Now lets look at the elements of a template defintion. Each entry in +Now lets look at the elements of a template definition. Each entry in @code{org-capture-templates} is a list with the following items: @table @var @@ -9455,7 +9455,7 @@ and @code{style} attributes for a link: Org-mode tables are exported to HTML using the table tag defined in @code{org-export-html-table-tag}. The default setting makes tables without cell borders and frame. If you would like to change this for individual -tables, place somthing like the following before the table: +tables, place something like the following before the table: @cindex #+CAPTION @cindex #+ATTR_HTML @@ -9486,7 +9486,7 @@ will link to a high resolution version of the image, you could use: [[file:highres.jpg][file:thumb.jpg]] @end example -If you need to add attributes to an inlines image, use a @code{#+ATTR_HTML}. +If you need to add attributes to an inlined image, use a @code{#+ATTR_HTML}. In the example below we specify the @code{alt} and @code{title} attributes to support text viewers and accessibility, and align it to the right. @@ -10329,7 +10329,7 @@ For more information and examples see the Org-taskjuggler tutorial at @cindex Freemind export @cindex mind map -The freemind exporter was written by Lennart Borgman. +The Freemind exporter was written by Lennart Borgman. @table @kbd @kindex C-c C-e m @@ -11005,7 +11005,7 @@ formulas (see @ref{The spreadsheet}). @item The language of the code in the block. @item -Switches controling exportation of the code block (see switches discussion in +Switches controlling exportation of the code block (see switches discussion in @ref{Literal examples}) @item Optional header arguments control many aspects of evaluation, export and @@ -11413,7 +11413,7 @@ The following he
[Orgmode] [PATCH] The docstring of org-capture-templates
A few minor corrections and suggestions for the org-capture-templates docstring diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 2b02b77..8b6bd03 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -97,14 +97,16 @@ keys The keys that will select the template, as a string, characters description A short string describing the template, will be shown during selection. -type The type of entry. Valid are: +type The type of entry. Valid types are: entry an Org-mode node, with a headline. Will be filed as the child of the target entry or as a top-level entry. - itema plain list item, placed in the first plain - list a the target location. - checkitem a checkbox item. This only differs from the - plain lis item by the default template. + itema plain list item, will be placed in the + first plain list at the target + location. + checkitem a checkbox item. This differs from the + plain list item only is so far as it uses a + different default template. table-line a new line in the first table at target location. plain text to be inserted as it is. @@ -119,7 +121,7 @@ target Specification of where the captured item should be placed. Text will be placed at the beginning or end of that file (id \"id of existing org entry\") - Filing as child of this entry, or in the body of the entry + File as child of this entry, or in the body of the entry (file+headline \"path/to/file\" \"node headline\") Fast configuration if the target heading is unique in the file @@ -128,20 +130,20 @@ target Specification of where the captured item should be placed. For non-unique headings, the full path is safer (file+regexp \"path/to/file\" \"regexp to find location\") + File to the entry matching regexp (file+datetree \"path/to/file\") - Will create a heading in a date tree. + Will create a heading in a date tree (file+function \"path/to/file\" function-finding-location) - A function to find the right location in the file. + A function to find the right location in the file (clock) -File to the entry that is currently being clocked. +File to the entry that is currently being clocked (function function-finding-location) Most general way, write your own function to find both -file and location. - +file and location template The template for creating the capture item. If you leave this empty, an appropriate default template will be used. See below @@ -156,7 +158,7 @@ template The template for creating the capture item. If you leave this The rest of the entry is a property list of additional options. Recognized properties are: - :prependNormally new captured information will be appended at + :prependNormally newly captured information will be appended at the target location (last child, last table line, last list item...). Setting this property will change that. @@ -183,12 +185,12 @@ properties are: which means that the new line should become the third line before the second horizontal separaor line. -The template defined the text to be inserted. Often then this is an org-mode +The template defines the text to be inserted. Often this is an org-mode entry (so the first line should start with a star) that will be filed as a child of the target headline. It can also be freely formatted text. Furthermore, the following %-escapes will be replaced with content: - %^{prompt} Prompt the user for a string and replace this sequence with it. + %^{prompt} prompt the user for a string and replace this sequence with it. A default value and a completion table ca be specified like this: %^{prompt|default|completion2|completion3|...} %t time stamp, date only @@ -202,13 +204,13 @@ Furthermore, the following %-escapes will be replaced with content: indented, the entire inserted text will be indented as well. %c current kill ring head %x content of the X clipboard - %^C Interactive selection of which kill or clip to use - %^L Like %^C, but insert as link + %^C interactive selection of which kill or c
[Orgmode] [PATCH] Correct some docstrings [part 3]
This is the third patch in a series that makes some straightforward corrections to a number of docstrings. Each change is normally to: - correct a typo, or - fix up hyperlinks to function or variable names, or - ensure slightly better conformance with the documentation guidelines and tips given in the Elisp manual No attempt is made to provide missing docstrings or document arguments. Cheers, Phil -- lisp/org-icalendar.el |7 +-- lisp/org-id.el |2 ++ lisp/org-indent.el | 16 ++-- lisp/org-inlinetask.el |7 +++ lisp/org-jsinfo.el |6 +++--- lisp/org-latex.el | 10 +- lisp/org-list.el | 10 +- 7 files changed, 33 insertions(+), 25 deletions(-) diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el index a50fdb6..2a506a3 100644 --- a/lisp/org-icalendar.el +++ b/lisp/org-icalendar.el @@ -26,7 +26,10 @@ ;; ;;; Commentary: +;;; Code: + (require 'org-exp) + (eval-when-compile (require 'cl)) @@ -164,7 +167,7 @@ The iCalendar standard requires that all entries have a unique identifier. Org will create these identifiers as needed. When this variable is non-nil, the created UIDs will be stored in the ID property of the entry. Then the next time this entry is exported, it will be exported with the same UID, -superceding the previous form of it. This is essential for +superseding the previous form of it. This is essential for synchronization services. This variable is not turned on by default because we want to avoid creating a property drawer in every entry if people are only playing with this feature, @@ -192,7 +195,7 @@ file, but with extension `.ics'." ;;;###autoload (defun org-export-icalendar-all-agenda-files () - "Export all files in `org-agenda-files' to iCalendar .ics files. + "Export all files in the variable `org-agenda-files' to iCalendar .ics files. Each iCalendar file will be located in the same directory as the Org-mode file, but with extension `.ics'." (interactive) diff --git a/lisp/org-id.el b/lisp/org-id.el index cf61f8a..1f795ab 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -69,6 +69,8 @@ ;;Find the location of an entry with specific id. ;; +;;; Code: + (require 'org) (declare-function message-make-fqdn "message" ()) diff --git a/lisp/org-indent.el b/lisp/org-indent.el index 48b10b7..233871e 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -29,22 +29,24 @@ ;; by adding text properties to a buffer to make sure lines are ;; indented according to outline structure. +;;; Code: + (require 'org-macs) (require 'org-compat) (require 'org) + (eval-when-compile (require 'cl)) - (defgroup org-indent nil "Options concerning dynamic virtual outline indentation." :tag "Org Indent" :group 'org) (defconst org-indent-max 40 - "Maximum indentation in characters") + "Maximum indentation in characters.") (defconst org-indent-max-levels 40 - "Maximum indentation in characters") + "Maximum indentation in characters.") (defvar org-indent-strings nil "Vector with all indentation strings. @@ -53,7 +55,7 @@ It will be set in `org-indent-initialize'.") "Vector with all indentation star strings. It will be set in `org-indent-initialize'.") (defvar org-hide-leading-stars-before-indent-mode nil - "Used locally") + "Used locally.") (defcustom org-indent-boundary-char ?\ ; comment to protect space char "The end of the virtual indentation strings, a single-character string. @@ -67,13 +69,15 @@ it may be prettier to customize the org-indent face." :type 'character) (defcustom org-indent-mode-turns-off-org-adapt-indentation t - "Non-nil means turning on `org-indent-mode' turns off indentation adaptation. + "Non-nil means setting the variable `org-indent-mode' will \ +turn off indentation adaptation. For details see the variable `org-adapt-indentation'." :group 'org-indent :type 'boolean) (defcustom org-indent-mode-turns-on-hiding-stars t - "Non-nil means turning on `org-indent-mode' turns on `org-hide-leading-stars'." + "Non-nil means setting the variable `org-indent-mode' will \ +turn on `org-hide-leading-stars'." :group 'org-indent :type 'boolean) diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index ea7a63a..5ca8d78 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -33,7 +33,7 @@ ;; and properties. However, these nodes are treated specially by the ;; visibility cycling and export commands. ;; -;; Visibility cycling exempts these nodes from cycling. So whenever their +;; Visibility cycling exempts these nodes from cycling. So whenever their ;;
[Orgmode] [PATCH] Correct some docstrings [part 4]
Same rationale as previous patches in this series. Phil -- lisp/org-mac-message.el | 10 lisp/org-macs.el|4 +- lisp/org-mks.el | 12 +++-- lisp/org-mobile.el | 12 + lisp/org-mouse.el | 15 ++- lisp/org-plot.el|4 +- lisp/org-protocol.el| 60 -- lisp/org-publish.el | 33 +++-- lisp/org-remember.el| 51 ++-- 9 files changed, 107 insertions(+), 94 deletions(-) diff --git a/lisp/org-mac-message.el b/lisp/org-mac-message.el index 1fca14d..bb108ce 100644 --- a/lisp/org-mac-message.el +++ b/lisp/org-mac-message.el @@ -39,7 +39,7 @@ ;; messages selected in Mail.app. ;; (org-mac-message-insert-flagged) searches within an org-mode buffer -;; for a specific heading, creating it if it doesn't exist. Any +;; for a specific heading, creating it if it doesn't exist. Any ;; message:// links within the first level of the heading are deleted ;; and replaced with links to flagged messages. @@ -53,7 +53,7 @@ :group 'org-link) (defcustom org-mac-mail-account "customize" - "The Mail.app account in which to search for flagged messages" + "The Mail.app account in which to search for flagged messages." :group 'org-mac-flagged-mail :type 'string) @@ -81,7 +81,7 @@ This will use the command `open' with the message URL." "open" (concat "message://<" (substring message-id 2) ">"))) (defun as-get-selected-mail () - "AppleScript to create links to selected messages in Mail.app" + "AppleScript to create links to selected messages in Mail.app." (do-applescript (concat "tell application \"Mail\"\n" @@ -97,7 +97,7 @@ This will use the command `open' with the message URL." "end tell"))) (defun as-get-flagged-mail () - "AppleScript to create links to flagged messages in Mail.app" + "AppleScript to create links to flagged messages in Mail.app." (do-applescript (concat ;; Is Growl installed? @@ -179,7 +179,7 @@ The Org-syntax text will be pushed to the kill ring, and also returned." (defun org-mac-message-insert-selected () "Insert a link to the messages currently selected in Mail.app. -This will use applescript to get the message-id and the subject of the +This will use AppleScript to get the message-id and the subject of the active mail in Mail.app and make a link out of it." (interactive) (insert (org-mac-message-get-links "s"))) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 2043045..4c2fecd 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -92,7 +92,7 @@ Also, do not record undo information." (defmacro org-maybe-intangible (props) "Add '(intangible t) to PROPS if Emacs version is earlier than Emacs 22. -In emacs 21, invisible text is not avoided by the command loop, so the +In Emacs 21, invisible text is not avoided by the command loop, so the intangible property is needed to make sure point skips this text. In Emacs 22, this is not necessary. The intangible text property has led to problems with flyspell. These problems are fixed in flyspell.el, @@ -292,7 +292,7 @@ This is in contrast to merely setting it to 0." (defvar org-inlinetask-min-level) ; defined in org-inlinetask.el (defun org-get-limited-outline-regexp () "Return outline-regexp with limited number of levels. -The number of levels is controlled by " +The number of levels is controlled by `org-inlinetask-min-level'" (if (or (not (org-mode-p)) (not (featurep 'org-inlinetask))) outline-regexp diff --git a/lisp/org-mks.el b/lisp/org-mks.el index 4a49a2b..88b01c2 100644 --- a/lisp/org-mks.el +++ b/lisp/org-mks.el @@ -23,6 +23,12 @@ ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. ; + +;;; Commentary: +;; + +;;; Code: + (require 'org) (eval-when-compile (require 'cl)) @@ -41,8 +47,8 @@ There should be two types of entries. short description string of the item. The command will then make a temporary buffer listing all entries -that can be selected with a single key, and all the sinke key -prefixes. When you press the key for a single-letter enty, it is selected. +that can be selected with a single key, and all the single key +prefixes. When you press the key for a single-letter entry, it is selected. When you press a prefix key, the commands (and maybe further prefixes) under this key will be shown and offered for selection. @@ -113,7 +119,7 @@ only the bare key is returned." (throw 'exit (setq rtn (rassoc (cdr (asso
[Orgmode] [PATCH] Fix a few references to the JavaScript name
Subject: [PATCH] Fix some trivial typos People like Douglas Crockford (a member of the JavaScript 2.0 committee at ECMA and author of JavaScript: The Good Parts) capitalize the J and the S in JavaScript. This patch fixes some references to follow this standard. --- doc/org.texi | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index fc8236c..3002772 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -365,7 +365,7 @@ HTML export * Images in HTML export:: How to insert figures into HTML output * Text areas in HTML export:: An alternative way to show an example * CSS support::Changing the appearance of the output -* Javascript support:: Info and Folding in a web browser +* JavaScript support:: Info and Folding in a web browser l...@tex{} and PDF export @@ -9334,7 +9334,7 @@ language, but with additional support for tables. * Images in HTML export:: How to insert figures into HTML output * Text areas in HTML export:: An alternative way to show an example * CSS support::Changing the appearance of the output -* Javascript support:: Info and Folding in a web browser +* JavaScript support:: Info and Folding in a web browser @end menu @node HTML Export commands, Quoting HTML tags, HTML export, HTML export @@ -9526,7 +9526,7 @@ respectively. For example @end example -...@node CSS support, Javascript support, Text areas in HTML export, HTML export +...@node CSS support, JavaScript support, Text areas in HTML export, HTML export @subsection CSS support @cindex CSS, for HTML export @cindex HTML export, CSS @@ -9597,8 +9597,8 @@ referring to an external file. @c FIXME: More about header and footer styles @c FIXME: Talk about links and targets. -...@node Javascript support, , CSS support, HTML export -...@subsection Javascript supported display of web pages +...@node JavaScript support, , CSS support, HTML export +...@subsection JavaScript supported display of web pages @cindex Rose, Sebastian Sebastian Rose has written a JavaScript program especially designed to -- 1.7.1.1 ___ 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] Docstring fixes
This is the eighth patch in a series that makes some straightforward corrections to a number of docstrings. Each change is normally to: - correct a typo, or - fix up hyperlinks to function or variable names, or - ensure slightly better conformance with the documentation guidelines and tips given in the Elisp manual --- This is a partial patch, mainly focused on fixing some typos. Given the pending release deadline I thought I may as well send this now, hopefully it is useful in its own right. diff --git a/lisp/org.el b/lisp/org.el index e26c51b..acd7031 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -133,15 +133,16 @@ org-babel-load-languages)) (defcustom org-babel-load-languages '((emacs-lisp . t)) - "Languages which can be evaluated in Org-mode buffers. This -list can be used to load support for any of the languages below, -note that each language will depend on a different set of system -executables and/or Emacs modes. When a language is \"loaded\", -then code blocks in that language can be evaluated with -`org-babel-execute-src-block' bound by default to C-c C-c (note -the `org-babel-no-eval-on-ctrl-c-ctrl-c' variable can be set to -remove code block evaluation from the C-c C-c keybinding. By -default only Emacs Lisp (which has no requirements) is loaded." + "Languages which can be evaluated in Org-mode buffers. +This list can be used to load support for any of the languages +below, note that each language will depend on a different set of +system executables and/or Emacs modes. When a language is +\"loaded\", then code blocks in that language can be evaluated +with `org-babel-execute-src-block' bound by default to C-c +C-c (note the `org-babel-no-eval-on-ctrl-c-ctrl-c' variable can +be set to remove code block evaluation from the C-c C-c +keybinding. By default only Emacs Lisp (which has no +requirements) is loaded." :group 'org-babel :set 'org-babel-do-load-languages :type '(alist :tag "Babel Languages" @@ -334,7 +335,7 @@ to add the symbol `xyz', and the package must have a call to "Non-nil means make shift-cursor commands select text when possible. In Emacs 23, when `shift-select-mode' is on, shifted cursor keys start -selecting a region, or enlarge thusly regions started in this way. +selecting a region, or enlarge regions started in this way. In Org-mode, in special contexts, these same keys are used for other purposes, important enough to compete with shift selection. Org tries to balance these needs by supporting `shift-select-mode' outside these @@ -494,10 +495,10 @@ become effective." :type 'boolean) (defcustom org-use-extra-keys nil - "Non-nil means use extra key sequence definitions for certain -commands. This happens automatically if you run XEmacs or if -window-system is nil. This variable lets you do the same -manually. You must set it before loading org. + "Non-nil means use extra key sequence definitions for certain commands. +This happens automatically if you run XEmacs or if `window-system' +is nil. This variable lets you do the same manually. You must +set it before loading org. Example: on Carbon Emacs 22 running graphically, with an external keyboard on a Powerbook, the default way of setting M-left might @@ -529,7 +530,7 @@ therefore you'll have to restart Emacs to apply it after changing." (defun org-key (key) "Select key according to `org-replace-disputed-keys' and `org-disputed-keys'. Or return the original if not disputed. -Also apply the trnaslations defined in `org-xemacs-key-equivalents'." +Also apply the translations defined in `org-xemacs-key-equivalents'." (when org-replace-disputed-keys (let* ((nkey (key-description key)) (x (org-find-if (lambda (x) @@ -751,7 +752,7 @@ The cdr is either a command to be called interactively, a function to be called, or a form to be evaluated. An entry that is just a list with a single string will be interpreted as a descriptive headline that will be added when listing the speed -copmmands in the Help buffer using the `?' speed command." +commands in the Help buffer using the `?' speed command." :group 'org-structure :type '(repeat :value ("k" . ignore) (choice :value ("k" . ignore) @@ -831,7 +832,7 @@ of the buffer." When the cursor is at the end of an empty headline, i.e with only stars and maybe a TODO keyword, TAB will then switch the entry to become a child, -and then all possible anchestor states, before returning to the original state. +and then all possible ancestor states, before returning to the original state. This makes data entry extremely fast: M-RET to create a new headline, on TAB to make it a child, two or more tabs to make it a (grand-)uncle. @@ -1089,9 +1090,8 @@ See also the QUOTE keyword." :group 'org-edit-structure :type 'boolean) - (defcustom org-goto-auto-isearch t - "Non-nil means typing characters in org-goto starts incremental search." + "Non-nil means typing characters in `org-go
[Orgmode] [PATCH] Docstring fixes
This is the ninth patch in a series that makes some straightforward corrections to a number of docstrings. Each change is normally to: - correct a typo, or - fix up hyperlinks to function or variable names, or - ensure slightly better conformance with the documentation guidelines and tips given in the Elisp manual --- This is a partial patch, mainly focused on fixing some references to C-u. Given the pending release deadline I thought I may as well send this now, hopefully it is useful in its own right. diff --git a/lisp/org.el b/lisp/org.el index acd7031..f8c2026 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -818,7 +818,8 @@ This can also be set in on a per-file basis with (defcustom org-cycle-global-at-bob nil "Cycle globally if cursor is at beginning of buffer and not at a headline. This makes it possible to do global cycling without having to use S-TAB or -C-u TAB. For this special case to work, the first line of the buffer +\\[universal-argument] TAB. For this special case to work, the first line \ +of the buffer must not be a headline - it may be empty or some other text. When used in this way, `org-cycle-hook' is disables temporarily, to make sure the cursor stays at the beginning of the buffer. @@ -1640,7 +1641,6 @@ file identifier are that does not use any of the group matches, this case is handled identically to the second one (i.e. match against file name only). - In a custom lisp form, you can access the group matches with (match-string n link). @@ -1660,7 +1660,7 @@ file identifier are `system' The system command to open files, like `open' on Windows and Mac OS X, and mailcap under GNU/Linux. This is the command that will be selected if you call `C-c C-o' with a double - `C-u C-u' prefix. + \\[universal-argument] \\[universal-argument] prefix. Possible values for the command are: `emacs' The file will be visited by the current Emacs process. @@ -5925,7 +5925,7 @@ in special contexts. ;;;###autoload (defun org-global-cycle (&optional arg) "Cycle the global visibility. For details see `org-cycle'. -With C-u prefix arg, switch to startup visibility. +With \\[universal-argument] prefix arg, switch to startup visibility. With a numeric prefix, show all headlines up to that level." (interactive "P") (let ((org-cycle-include-plain-lists @@ -6259,7 +6259,7 @@ point nowhere." (make-variable-buffer-local 'org-hide-block-overlays) (defun org-block-map (function &optional start end) - "Call function at the head of all source blocks in the current buffer. + "Call FUNCTION at the head of all source blocks in the current buffer. Optional arguments START and END can be used to limit the range." (let ((start (or start (point-min))) (end (or end (point-max @@ -6548,10 +6548,12 @@ With numerical prefix ARG, go up to this level and then take that tree. If ARG is negative, go up that many levels. If `org-indirect-buffer-display' is not `new-frame', the command removes the indirect buffer previously made with this command, to avoid proliferation of -indirect buffers. However, when you call the command with a `C-u' prefix, or +indirect buffers. However, when you call the command with a \ +\\[universal-argument] prefix, or when `org-indirect-buffer-display' is `new-frame', the last buffer is kept so that you can work with several indirect buffers at the same time. -If `org-indirect-buffer-display' is `dedicated-frame', the C-u prefix also +If `org-indirect-buffer-display' is `dedicated-frame', the \ +\\[universal-argument] prefix also requests that a new frame be made for the new buffer, so that the dedicated frame is not changed." (interactive "P") @@ -9554,7 +9556,8 @@ entry for this file type, and if yes, the corresponding command is launched. If no application is found, Emacs simply visits the file. With optional prefix argument IN-EMACS, Emacs will visit the file. -With a double C-c C-u prefix arg, Org tries to avoid opening in Emacs +With a double \\[universal-argument] \\[universal-argument] \ +prefix arg, Org tries to avoid opening in Emacs and to use an external application to visit the file. Optional LINE specifies a line to go to, optional SEARCH a string @@ -10039,7 +10042,8 @@ below it are allowed. With prefix arg GOTO, the command will only visit the target location, not actually move anything. -With a double prefix `C-u C-u', go to the location where the last refiling +With a double prefix arg \\[universal-argument] \\[universal-argument], \ +go to the location where the last refiling operation has put the subtree. With a prefix argument of `2', refile to the running clock. @@ -12002,7 +12006,8 @@ not t for the search context. With optional argument SIBLINGS, on each level of the hierarchy all siblings are shown. This repairs the tree structure to
Re: [O] Counting total number of projects
Hi Chris, > Is there any way to calculate total number of projects in real-time such that, If you don't mind marking your projects as TODO then you can use statistics cookies like this: * Projects [%] [/] ** TODO project 1 + foo ** DONE project 2 + bar ** TODO project 3 + baz ** TODO project 4 + qux And then the projects line should show (4 projects, 3 in progress, 1 completed): * Projects [25%] [1/4] There is more on the checkboxes page of the manual here: http://orgmode.org/manual/Checkboxes.html#Checkboxes I tend to have todo lists for each projects so I need the recursive property after the projects line like this: * Projects [%] [/] :PROPERTIES: :COOKIE_DATA: recursive :END: ** TODO project 1 ... Hope this helps Phil
[O] Include a limited level of subheadings for export/publish?
I've been through all of the export and publishing documentation and what I could find about includes and I can't see a way to do what I want to accomplish. I have multiple org files, each of which represents a project, with the first level headings representing milestones for the project and lower headings providing more detail. I currently publish these as HTML for my manager to peruse. I would like to construct, as automatically as possible, an overview page for my manager. I would like to be able to list my active and inactive projects and, for each one, include just the milestone headings from the project file, ideally any SCHEDULED, DEADLINE, or CLOSED timestamps on the headings. I haven't found anything that seems to come close to doing what I want. Any pointers to similar examples, useful functions or settings, and the link would be appreciated. For a concrete example, say I have the following two project files. # project-a.org * DONE Milestone A-1 CLOSED: [2012-11-01 Thu 15:54] DEADLINE: <2012-11-01 Thu> ** Milestone details * STARTED Milestone A-2 * TODO Milestone A-3 Some descriptive text. # project-b.org * STALLED Milestone B-1 DEADLINE: <2012-11-05 Mon> * TODO Milestone B-3 * Future Goal ** Future goal details. I would like to do something that gets me HTML output similar to the following: Projects In Progress Project A DONE Milestone A-1 CLOSED: 2012-11-01 Thu 15:54 DEADLINE: 2012-11-01 Thu STARTED Milestone A-2 TODO Milestone A-3 Project B STALLED Milestone B-1 DEADLINE: 2012-11-05 Mon TODO Milestone B-3 Future Goal Future Projects
Re: [O] Include a limited level of subheadings for export/publish?
* John Hendy [2012-11-07 17:27 -0600]: > I'm actually wondering if you couldn't write a custom agenda view for this > easier than trying to concatenate two files. Agenda already includes the > file name, so if it's descriptive enough it would be clear to your manager > which "project bucket" it was looking at. Or make an agenda view with > headers for each project. You could include the todo/done/stalled status as > well as scheduled/deadline dates. Agenda views can easily be exported to > html with C-x C-w while looking at the view. I started looking into agenda views in a lot more detail and discovered a few things that I was able to put together into pretty much what I wanted. I documented it here for posterity: http://aperiodic.net/phil/archives/Geekery/org-mode-project-overviews.html
[O] Shell script block gives no output when evaluated
Hello all, If I evaluate the following source block in emacs 23.1.1, org mode v7.8.03 it reports that it produces no output: #+begin_src sh :results replace foo=1 if [[ -n "$foo" ]]; then echo "foo has been defined (and has value $foo)" else echo "foo has not been defined" fi if [[ -n "$bar" ]]; then echo "bar has been defined (and has value $bar)" else echo "bar has not been defined" fi #+end_src Confusingly if I remove either if block then the results for the remaining one is correct and if I run the same code from within an actual script it works as I expect (foo is defined, bar is not). Can anybody provide any clues about what I'm doing wrong. Thanks in advance Phil
[Orgmode] Simple type
diff --git a/lisp/org-remember.el b/lisp/org-remember.el index 149bd30..91bf482 100644 --- a/lisp/org-remember.el +++ b/lisp/org-remember.el @@ -349,7 +349,7 @@ RET at beg-of-buf -> Append to file as level 2 headline (setq char0 (read-char-exclusive)) (when (and (not (assoc char0 templates)) (not (equal char0 ?\C-g))) -(message "No suche template \"%c\"" char0) +(message "No such template \"%c\"" char0) (ding) (sit-for 1) (setq char0 nil))) (when (equal char0 ?\C-g) ___ 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] Custom agenda question
Carsten Dominik writes: > On Aug 26, 2009, at 2:04 PM, Daniel Clemente wrote: > >> I saw something strange: Emacs seems to beep with each C-n on that >> view. Not with C-p. >> >> The following (ding) is being run on next-line due to the condition >> end-of-buffer, I don't know why: >> >>(if (interactive-p) >> (condition-case nil >> (line-move arg nil nil try-vscroll) >>((beginning-of-buffer end-of-buffer) (ding))) >> (line-move arg nil nil try-vscroll))) >> nil) >> >> The call was: >> (line-move 1 nil nil 1) > > Interesting. But I cannot reproduce it. I too am having the exact same (minor) problem as Daniel. Additionally, in the 'E' expanded view the 'p' command will move to the end of the line containing the previous agenda entry as opposed to hugging the leftmost column as it does in the non-expanded view. Phil ___ 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] Mode line colour under a clocked item
I have customised the background colour of my mode line face. However, when I clock into a task the background colour under the clocked task button on the mode line reverts to the default grey. That grey background also extends one character to the left of the clocked item button (that is one of the mode line '-' characters in my case). I think it has been like this for quite a while. Sorry for being slow in reporting it. Phil I am currently running org-mode as of: commit c2265b414571ceec4bffd43edefe6afc81ff25e0 Author: Carsten Dominik Date: Wed Aug 26 13:08:22 2009 +0200 ___ 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 ] colourful timestamps
Hello, Something I thought might be nice is highlighting of timestamps according to there relativity to time(). For example, at time of writing, <2006-12-11> would be red, <2007-12-03 Mon 19:00> pink. Perhaps for customisation: (setq org-timestamp-colour-map '(("<2h" . 'face) ("<10m" . 'face))) Cheers, Phil ___ 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 ] colourful timestamps
Bastien, Bastien <[EMAIL PROTECTED]> writes: > Phil Jackson <[EMAIL PROTECTED]> writes: > >> Something I thought might be nice is highlighting of timestamps >> according to there relativity to time(). [...] > I like the general idea of having feedback about the proximity of a > deadline or time-stamp. But I think doing this interactively is better, > since the values like "<2h" "<10m" (in your example) are very likely to > change quite often, no? I can't see why it would change, I would expect the map to remain largely static. Only the colours of the links would change. The idea is that one would become used to scanning the colours and be able to 'sort' tasks visually. Am I making any sense? > In the same spirit, I've written this, which let you check for deadlines > or scheduled items before a date (strings like "+2d" are okay): That's brilliant, thanks for the effort. I'm putting this into my config straight away. Is there a chance of your patch making trunk? Cheers, Phil ___ 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 - add a new heading with a lower level than current
Charles Cave <[EMAIL PROTECTED]> writes: >> Or you could just do "M-return M-right" - is that really too slow for >> you? > > Thank you! I hadn't thought of that. Entering M-right is easy > because I am already holding the Meta key with my thumb so it is just > a matter of continuing to hold the thumb and hitting the right arrow > key. [...] On a side note; I use C-p, C-n, C-b and C-f for my basic navigation meaning the cursor keys are free for me so in org I bind them to: , | (define-key org-mode-map [left] 'org-metaleft) | (define-key org-mode-map [right] 'org-metaright) | (define-key org-mode-map [up] 'org-metaup) | (define-key org-mode-map [down] 'org-metadown) `---- Making re-organisation of the headings really fast. Cheers, Phil ___ 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] Whitespace and outline structure...
Bastien <[EMAIL PROTECTED]> writes: >> I put multiple blank lines before a top level heading to get visible >> whitespace, in this sort of structure: >> >> * Some Stuff >> ** A first item. >> ** Blah Blah [...] >> If I was then to move '** Blah Blah' under the 'Other Stuff' heading >> using the built-in structure management tools those extra blank lines >> move with it. [...] > The problem is that there is no way to tell that the two blank lines > after "** Blah blah" are part of "** Blah blah" or part of "* Some > stuff". [...] > What do you think? I suffer this problem too. I can't think of a situation where blank lines would be useful attached to an item but maybe I'm doing it wrong. Cheers, Phil ___ 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: source code
Hi, This may well be beyond the scope of Org but the only thing that keeps me from switching everything from Muse to Org is the lack of a method to 'embed' source code into a document ala: ... Is this something that might be possible in the future? Cheers, Phil ___ 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] patch: link to the log of an ERC session
Hi, I get a lot of my information from ERC/bitlbee so wrote this patch to allow for linking against the log associated with an ERC session. Sorry, only tested in GNU. --- /home/phil/org-5.18a/org.el 2008-01-06 15:30:26.0 + +++ org.el 2008-01-10 14:12:27.0 + @@ -11765,6 +11765,22 @@ link (org-make-link cpltxt)) (org-store-link-props :type "bbdb" :name name :company company))) + ((eq major-mode 'erc-mode) + (let ((erc-line (buffer-substring-no-properties + (point-at-bol) (point-at-eol +(if (erc-logging-enabled nil) +(progn + (erc-save-buffer-in-logs) + (with-current-buffer (find-file-noselect (erc-current-logfile)) +(goto-char (point-max)) +(unless (search-backward erc-line nil t) + (error "Unable to find this line in the logs: '%s'" + erc-line)) + (setq cpltxt (concat "file:" (abbreviate-file-name +buffer-file-name) + "::" erc-line +(error "This ERC session is not being logged" + ((eq major-mode 'Info-mode) (setq link (org-make-link "info:" (file-name-nondirectory Info-current-file) Cheers, Phil ___ 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: patch: link to the log of an ERC session
Michael Olson <[EMAIL PROTECTED]> writes: >> I get a lot of my information from ERC/bitlbee so wrote this patch to >> allow for linking against the log associated with an ERC session. > > It's interesting that you're linking to the log file. I hadn't > thought of doing that before, but I like the idea. Planner's ERC > integration causes a new conversation to that person to be launched > when clicking on its generated link. I could see merits in each > approach. As I just make a 'file://' link to the log there is no reason org couldn't have an 'irc://' link too. Might be a little confusing for users having two places in the same buffer where C-c l could collect different links though :/ Cheers, Phil ___ 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] Annotate files in org syntax
Hi, Thought I might share this with you: org-annotate-file.el Description: application/emacs-lisp Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] REQUEST: orgstruct-mode modeline string?
Carsten Dominik <[EMAIL PROTECTED]> writes: > On Jan 7, 2008, at 1:29 PM, Richard KLINDA wrote: > >> Hello, I've noticed that M-x orgstruct-mode doesn't put the string >> "OrgStruct" onto the modeline (to give visual feedback about its >> activeness). M-x orgtbl-mode puts "OrgTbl" there, I think >> orgstruct-mode should do the same. > > Hi Richard, > > it does do that for me, do see OrgStruct in the mode line. Me too, just for the record. Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Annotate files in org syntax
Carsten Dominik <[EMAIL PROTECTED]> writes: > Can you say more on how you typically use this? At the moment I use it solely with code. Rather than put TODOs in the code itself I like to keep an org style list. As an off the top of my head example an entry might look like this: * ~/blah.pl ** TODO [/] Refactor extract_something function :SPAM_ENGINE: - [ ] 100% unit test coverage - [ ] Replace substr/index calls with regexps As all of these are in one file I can use sparse trees to drill down to a project (for example). I'm going to hack on it and make it project/branch aware... just haven't figured out how yet :) Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Annotate files in org syntax
Carsten Dominik <[EMAIL PROTECTED]> writes: >> I'm going to hack on it and make it project/branch aware... just >> haven't figured out how yet :) > Yes, I guess you might want to have sections corresponding to > functions in a source code file or so. Maybe you can get some > inspiration from the code i Emacs that produced ChangeLog entires > (e.g. `add-change-log- entry'). These commands create an etnry > consisting of a file name and some kind of local section like a > function name, a section in a texinfo document etc. Good thinking, I'll take a look. In the mean time I've hacked in the ability to link to a particular line with a subheading: http://www.emacswiki.org/cgi-bin/wiki/org-annotate-file.el Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] What's the use of Column View?
Leo <[EMAIL PROTECTED]> writes: > Any one find the column view feature of any use? Yes, I use it all the time. My main application of it being a (gpg'd) passwords file. Column view makes it very easy to scan and edit. I also use it to maintain a small, high level log of my business accounts. > 1. It reduced the readability of .org files. I think the syntax of the > file should be kept as close as possible to plain text file. But you don't have to use it *and* it's all plain text. > 2. It barely has a role in any GTD work flow. Org mode isn't just about GTD. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: Announcing Worg (Web-Org)
David, Bastien <[EMAIL PROTECTED]> writes: > "David O'Toole" <[EMAIL PROTECTED]> writes: >> Now that the holidays are over, I am back to hacking. > > Good to hear. I'm just back from an email blackout. [...] >> contribute my org-radio annotator thing to the repository (if anyone >> is interested). > > Sure! Normaly you should be able to commit to Worg's repository. [...] > - I think Phil and you could put your effort in common, since > org-annotate-file.el is scratching at the same itching need. I must have skipped over radio thinking it was something to do solely with audio :( I went back to your original announcement and it sounds like we really are doing the same thing. I can't actually find org-radio (the link to the repo doesn't work anymore) to see how much better your code is than mine and or sabotage the repository :) Happy to swap/lend/steal/merge anything you think we should or we could go into a bitter competition involving spies, bribery and litigation. Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: Announcing Worg (Web-Org)
"David O'Toole" <[EMAIL PROTECTED]> writes: >> Happy to swap/lend/steal/merge anything you think we should or we >> could go into a bitter competition involving spies, bribery and >> litigation. > http://dto.mamalala.org/eon/radio.el > > I haven't worked on it in a little while, as I've been hacking on Eon > and org-publish.el. But, some people may find it of interest. I do > intend to use it for audio, because it allows you to annotate binaries > as well (by making a separate little note file.) It's amazing how similar they are. An important difference, for me, is that org-annotate-file doesn't modify its target file (my fellow team members wouldn't be happy with me putting UUIDs in our code base :)). Having said that org-annotate-file uses the 'file:name::search' syntax which means potentially matching the wrong line if there are identical ones. Swings and roundabouts I suppose. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] FR: source code
Carsten Dominik <[EMAIL PROTECTED]> writes: > On Jan 8, 2008, at 12:22 PM, Phil Jackson wrote: [...] >> is the lack of a method to 'embed' source code into a document ala: >> >> >> ... >> [...] > It seems to me that there are really two issues here: > > 1. Font-locking in the buffer > 2. Export > > I guess one problem is that the stuff in BEGIN_EXAMPLE and similar > structures is not protected from font-lock a la org-mode. > Maybe this is the main issue you are having Phil? > > How does Muse behave in your examlple? I don't know Muse too well. The code isn't actually font-locked in the buffer itself but is syntax highlighted upon export (in (x)html anyway). Without actually reading the code, I think it just takes the region applies the mode specified by the 'lang' attribute and then uses htmlize.el on it. I *personally* still can't decide if this is within org's scope though, not to say I wouldn't find it very handy. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: patch: link to the log of an ERC session
Carsten Dominik <[EMAIL PROTECTED]> writes: > On Jan 11, 2008, at 11:49 AM, Phil Jackson wrote: > >> Michael Olson <[EMAIL PROTECTED]> writes: >> >>>> I get a lot of my information from ERC/bitlbee so wrote this patch >>>> to allow for linking against the log associated with an ERC >>>> session. >>> >>> It's interesting that you're linking to the log file. I hadn't >>> thought of doing that before, but I like the idea. Planner's ERC >>> integration causes a new conversation to that person to be launched >>> when clicking on its generated link. I could see merits in each >>> approach. >> >> As I just make a 'file://' link to the log there is no reason org >> couldn't have an 'irc://' link too. Might be a little confusing for >> users having two places in the same buffer where C-c l could collect >> different links though :/ > > How about writing a little extension org-irc.el that extends the link > mechanism for both cases? I'd love to see more such extensions, and I > would be happy to distribute them with Org-mode, and to put them into > Emacs if the papers are in order. Sure, I'll get a patch to you when I can. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Easily re-indent the #+OPTIONS lines
Hey Bastien, Bastien <[EMAIL PROTECTED]> writes: > I often fiddle around #+AUTHOR, #+TITLE, and other such lines. But > having to re-align them so that it looks better is time-consuming. > > This function does it automatically: > > (defun bzg-org-indent-options () > "Indent option lines correctly." > (interactive) > (save-excursion > (goto-char (point-min)) > (let ((max-length 0)) > (while (re-search-forward "^#\\+\\([A-Z_]+\\)" nil t) > (if (> (length (match-string 1)) max-length) > (setq max-length (length (match-string 1) > (goto-char (point-min)) > (while (re-search-forward "^#\\+\\([A-Z_]+\\):[ \t]*\\(.+\\)$" nil t) > (replace-match >(concat "#+" (match-string 1) ":" >(make-string (1+ (- max-length (length (match-string 1 32) >(match-string 2)) t t) Thanks, really handy. BTW did you know about align-regexp? , | (align-regexp (point-min) (point-max) "^#\\+[A-Z_]+:\\( +\\)" 1 5) ` Dare I say will have a similar affect. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] FR: source code
Carsten Dominik <[EMAIL PROTECTED]> writes: > On Jan 16, 2008, at 7:59 PM, Phil Jackson wrote: [...] >> I *personally* still can't decide if this is within org's scope >> though, not to say I wouldn't find it very handy. > > So then am confused what you initial message was about. The feature > your are asking for is then an exporting feature, right? Maybe you > need to restate what exactly you would like to see. Yes, I'm a confused young man. My final answer is: I would like to see syntax highlighted code in a HTML export :) Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: patch: link to the log of an ERC session
Phil Jackson <[EMAIL PROTECTED]> writes: [...] >> How about writing a little extension org-irc.el that extends the link >> mechanism for both cases? I'd love to see more such extensions, and I >> would be happy to distribute them with Org-mode, and to put them into >> Emacs if the papers are in order. > > Sure, I'll get a patch to you when I can. Please find attached a 'beta' of the plugin. If anyone could give it a quick test that would be great. It needs a little bit of re-factoring I think so I'll do that post critique. org-link-irc.el Description: application/emacs-lisp Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Fill-paragraph and orgmode
"Hugo Schmitt" <[EMAIL PROTECTED]> writes: > Hi everyone. There is a little issue that I keep having with org-mode. > Say the cursor is on <> : > > * TODO Title > Words words words words words words words words words words words words > words words words<> > [2008-01-25 sex] > > After you press M-q you get this: > > * TODO Title > Words words words words words words words words words words words words > words > words words [2008-01-25 sex] > > ... while what i really wanted was this: > > * TODO Title > Words words words words words words words words words words words words > words > words words > [2008-01-25 sex] I think your MUA is wrapping your text :/ Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Fill-paragraph and orgmode
"Eddward DeVilla" <[EMAIL PROTECTED]> writes: > On Jan 28, 2008 4:54 AM, Hugo Schmitt <[EMAIL PROTECTED]> wrote: >> * TODO Title >> Words words words words words words words words words words words words >> words >> words words [2008-01-25 sex] > > For what it's worth, this looked right until I hit reply. You saw the text/html part I saw the text/plain part. Another reason for HTML mail to die a painful death! Erm...you can get back to the important stuff now. :) -- Phil Jackson http://www.shellarchive.co.uk ___ 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: patch: link to the log of an ERC session
Chaps, Bastien <[EMAIL PROTECTED]> writes: > Carsten Dominik <[EMAIL PROTECTED]> writes: > >> I would really appreciate if people can test this out and give >> feedback - I would like to include this file with Org-mode, but I am >> not an irc/erc user myself. > > I've been testing it and it works fine. The patch below does this: [...] > - when point is after ERC prompt, don't add this as a string for > contextual search, since such a search won't produce the right result. I'm not sure that will produce the right result either in that case. What about if I changed it to link to the line above (if there isn't one then just the file)? > Thanks for this add-on No problemo :) [...] Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] [BUG?] org-open-file cannot handle spaces in file name?
Hi, Xiao-Yong Jin <[EMAIL PROTECTED]> writes: > Hi, When I open a link in org-mode containing spaces in the actual > file name, it gives out error as in attached file. > > Emacs version: "GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, > GTK+ Version 2.12.1) of 2008-01-13 on > neutrino" I can't quite replicate this on 23.0.50.3 (5.19a), if I try with a file called 'file with spaces.txt' all is well. With 'file with spaces.pdf' I get a different error to you (args out of range). I'll try with 22 tomorrow and see what I get. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] [BUG?] org-open-file cannot handle spaces in file name?
Phil Jackson <[EMAIL PROTECTED]> writes: [...] > I'll try with 22 tomorrow and see what I get. 22.1.50.1 (5.19a): [[file:~/this is a file with space.pdf]] ,[ trace ] | Debugger entered--Lisp error: (args-out-of-range 34 35) | replace-match("/home/pjackso1/this\\ is\\ a\\ file\\ with\\ space.pdf" | t t "evince %s") (setq cmd (replace-match (shell-quote-argument file) | t t cmd)) (while (string-match "%s" cmd) (setq cmd (replace-match | ... t t cmd))) (cond ((and ... ...) (while ... ...) (while ... ...) | (save-window-excursion ...)) ((or $ (let* ((file ...) (apps ...) (remp | ...) (dirp ...) (dfile ...) (old-buffer ...) (old-po$ | org-open-file("~/this is a file with space.pdf" nil nil nil) (if | (string-match "[*?{]" (file-name-nondirectory path)) (dired path) | (org-open-file pa$ (cond ((assoc type org-link-protocols) (funcall | ... path)) ((equal type "mailto") (let $ (let (type path link line | search (pos ...)) (catch (quote match) (save-excursion ... ..$ (if | (org-at-timestamp-p t) (org-follow-timestamp-link) (let (type path | link line search$ (catch (quote abort) (move-marker | org-open-link-marker (point)) (setq org-window-config$ | org-open-at-point(nil) call-interactively(org-open-at-point) ` Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] FR: source code
Phil Jackson <[EMAIL PROTECTED]> writes: > Carsten Dominik <[EMAIL PROTECTED]> writes: [...] >>> I *personally* still can't decide if this is within org's scope >>> though, not to say I wouldn't find it very handy. >> So then am confused what you initial message was about. The feature >> your are asking for is then an exporting feature, right? Maybe you >> need to restate what exactly you would like to see. > Yes, I'm a confused young man. My final answer is: I would like to see > syntax highlighted code in a HTML export :) So what do you think Carsten? I would like to see the: #+BEGIN_EXAMPLE lang:shell-script #+END_EXAMPLE That Bastien suggested. I would be willing to help out the exporter people if need be. -- Phil Jackson http://www.shellarchive.co.uk ___ 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] FR: source code
Russell Adams <[EMAIL PROTECTED]> writes: >> I'd like to see this too, primarily for HTML export (for syntax >> highlighting etc) though it would be handy if you could also display the >> syntax highlighting of the specified mode inside the block in Emacs. > Would it be practical to just specify the major mode to use with > htmlify in order to syntax highlight the block of code, as opposed to > keeping a table of which types equate to which modes? I expect that's the plan. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Git repository
Carsten Dominik <[EMAIL PROTECTED]> writes: > I am considering the idea to move the org development to a public git > repository. This is a great move. Will you be taking on other "core" developers with push access? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] commas in URLs?
Carsten Dominik <[EMAIL PROTECTED]> writes: [...] >> So URLs should just exclude commas that are followed by a whitespace >> or a line break, not all commas - right? > Yes, but this is harder to do with a regexp. I wish Emacs had look- > ahead assertions like perl. This is the main bother I have with emacs, I wish RMS would allow it to be linked with PCRE or similar. It would rid us of most of those ugly backslashes too. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] [OT] xkcd - emacs
Hi, As it's Friday I thought I might get away with posting this: http://xkcd.com/378/ Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] [OT] GNU Screen and arrow keys
lore <[EMAIL PROTECTED]> writes: > My emacs lives inside a GNU Screen session. > > When I say M- to promote current heading I get '3C'. [...] > Is out there a workaround for this? I need screen :) I'm a screen/TTY emacs user and I don't see the same behaviour. What is your TERM value outside and inside screen? If you hit ESC- do you see the same thing? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Timeline not working in 5.20
Wanrong Lin <[EMAIL PROTECTED]> writes: > I have the same problem, and here is a mini-example that will generate > the error "Arithmetic range error: "floor", -0.0e+NaN ", hope it > helps. I've had a look and I think the culprit is: ,[ line 21411 ] | dfrac (/ (* 1.0 (- wdays diff)) wdays) ` Which evals to -0.0e+NaN and then propagates. Might see if I can dig further tomorrow if I get time. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: [OT] GNU Screen and arrow keys
lore <[EMAIL PROTECTED]> writes: > Phil Jackson wrote: > >>> When I say M- to promote current heading I get '3C'. >> >> I'm a screen/TTY emacs user and I don't see the same behaviour. What >> is your TERM value outside and inside screen? > > screen, inside > xterm, outside And if within screen you set your TERM to xterm-256color (for example) and then start emacs? Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] CONTRIB and changes
Hi, On Carstens request I've created a ChangeLog file in the root of CONTRIB that people who haven't signed the papers can use for their er... conribs. I would also like to point out that I was the first person to have their changes reverted (doh) :) Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: GNU Screen and arrow keys
lore <[EMAIL PROTECTED]> writes: [...] >> * My setup >> - gnome-terminal2.18.4 > > I "solved" changing gnome-terminal with unicode rxvt. I thought changing TERM solved it for you? :/ If you use the 256 colour one I mentioned you can use color-theme (with close matching colours) for TTY emacs too. RXVT is _very_ quick though :) Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] vs document heading in HTML export
Bastien <[EMAIL PROTECTED]> writes: >>> a) control what goes in separately from the document header >>>(the text inside the first by default), and >> >> Would you care to suggest a syntax for this? > > I wonder why do you need this, Adam. The content of ... > is only displayed on a few nearly-invisible locations and indexation is > not really an issue, I guess. Playing devils advocate: http://www.julian-bez.de/blog/2005/02/15/how-to-use-the-title-tag/ Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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 2 openoffice impress converter
Bastien Guerry <[EMAIL PROTECTED]> writes: > Of course this rely on the yes-coming-soon! brand new exporter. I > will work on it this WE, maybe something good will come from this. Have you actually started this? If so is there anyway you could share it with us in a branch? I actually have a branch called org-exporter with nothing but useless snippets in it, which I would push but I don't understand git enough to know what would happen when I try :) I was heading towards a call-back system where a plugin author would define a var like: '((headline . my-handle-headline-defun) (... . )) Then my-handle-headline-defun would get an object which looks like this: ((outline-level . 1) (todo-keyword . "TODO") (priority . "A") (perc-completed . "30") (headline . "blah")) Is that similar to what you (and anyone else interested) was thinking? Has there already been a discussion about the design? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: Release 5.22 (Carsten Dominik
Carsten Dominik <[EMAIL PROTECTED]> writes: >>> +1 vote on that one. I haven't tried out 5.22 yet, but the >>> M-RET/M- behavior that Scott describes, also fits my >>> way of working perfectly. >> >> >> Arghh ... me too ... so count me in on this vote for wanting to having >> it back ... please ... :-) > I'll fix this for the next release, but I am traveling for the next > few days Any chance of making it configurable (default to the old behavior)? I like the new behaviour better, am I the only one? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: Release 5.22 (Carsten Dominik
Detlef, Detlef Steuer <[EMAIL PROTECTED]> writes: >> Any chance of making it configurable (default to the old behavior)? I >> like the new behaviour better, am I the only one? > > You're not alone! Phew, my abandonment issues remain buried for a while longer :) Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Suggestions on Org-table export-html
Hi Xin, Xin Shi <[EMAIL PROTECTED]> writes: > When I use the org-table to export-html, I have two suggestions to > make the CSS more flexiable (it already done a great job!) > [...] It looks like I'll be doing the HTML exporter for the new engine so I've jotted down your points. Thanks, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] bug in org-store-link
Scott Otterson <[EMAIL PROTECTED]> writes: [...] > + expand matching pattern outwards until matching uniqueness is > assured across the whole file This isn't foolproof as an identical line could be added later leaving us with much the same problem. > + store line number This actually is already possible, but not the default behaviour for org-store-link. Also, from the manual: ,[ org.html#Handling-links ] | If there is an active region, the selected words will form the basis of | the search string. ` Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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-bookmark.el
Bastien <[EMAIL PROTECTED]> writes: > In any case, this should be implemented in org.el directly. When > `org-store-link' checks whether we are in dired-mode or in a buffer > visiting a file, then it would also check whether 'org-bookmark is > provided (with (featurep 'org-bookmark)...) and act accordingly if it > is. I don't think it needs to go into org.el does it? When org-bookmark gets it's turn upon `org-store-link' it should check a variable called, for example, `org-bookmark-check-bookmarks-first' and then if that's non-nil check major-mode and act accordingly. This will keep `org-store-link' nice and clean. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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-bookmark.el
Bastien <[EMAIL PROTECTED]> writes: >> I don't think it needs to go into org.el does it? When org-bookmark gets >> it's turn upon `org-store-link' it should check a variable called, for >> example, `org-bookmark-check-bookmarks-first' and then if that's non-nil >> check major-mode and act accordingly. This will keep `org-store-link' >> nice and clean. > Of course, you're right. > > But I doubt whether `org-bookmark-check-bookmarks-first' would be > useful here. People using `org-bookmark.el' are likely to use it in > dired-mode and in buffer visiting files as well. Actually, I would > use it just for that (not really for creating links from the bookmarks > list.) I don't think that just through the act of loading a module the unrelated default behaviour should change. I would put a vote in for this behaviour to be off by default (but then I don't use bookmarks). Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Bug? Installing from git master
Carsten Dominik <[EMAIL PROTECTED]> writes: > On Mar 3, 2008, at 1:13 AM, Bastien Guerry wrote: > I did not realize that erc is not supported on all Emacs versions, to > we clearly need to cater for this. Wither by taking it out of that > variable, of my making the require fail silently. We could, for > example, wrap the require into condition-case and only pus out a > message, not raise a signal. I meant to pick up on this but I was really busy over the weekend. What about each module having a defun, something like `org-irc-load-check' where the 'load-check' function is autoloaded and run by org before the require to do a check on features, on non-nil the module is required? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Bug? Installing from git master
Bastien Guerry <[EMAIL PROTECTED]> writes: > BTW, maybe the name of the feature "org-irc" is a bit misleading: > since it's really about erc, and since Emacs also comes with rcirc.el, > it should either be called org-erc.el or support links to rcirc.el. It's somewhat extensible (through `org-irc-client') to support other IRC clients (the link parsing is generic for instance). Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] Bug? Installing from git master
Bastien <[EMAIL PROTECTED]> writes: > Carsten Dominik <[EMAIL PROTECTED]> writes: > >> I did not realize that erc is not supported on all Emacs versions, >> to we clearly need to cater for this. Wither by taking it out >> of that variable, of my making the require fail silently. >> We could, for example, wrap the require into condition-case and only >> pus out a message, not raise a signal. > > I have pushed a commit taking this later route. Slow down... :) As mentioned orc-irc is meant to be generic so it's still not quite right. I sent an email to you and Carsten about having a loadablep (bad name?) function exposed by the module which would give it a chance to do some requires and setting up too. Might be interesting to look at the ERC code and check how they do it... Here is my (rough) suggestion again: --8<---cut here---start->8--- (defun org-load-module (module-name) (let ((sym (intern (concat module-name "-loadablep" (if (fboundp sym) (when (funcall sym) (require (intern module-name))) (error "org modules must have a -loadablep defun." --8<---cut here---end--->8--- Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: IRC Channel
Russell Adams <[EMAIL PROTECTED]> writes: > First thing everyone talked about was who wants to take the role of > channel owner? They can delegate an Op, but the Freenode group > registration will want a core team member as the owner. I guess I would be willing but I'm not sure how much of an active user I would be to be honest. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: IRC Channel
Bastien <[EMAIL PROTECTED]> writes: > Being the owner of the channel doesn't require anything special from > you, except responsability (and glory): > > ,[ http://freenode.net/policy.shtml ] > | Channels on freenode are owned and operated by the groups which register > | them. No minimum level of activity or moderation is expected or required > | of channel owners. > ` > > I think it is a good idea to go for #org-mode. Am I right in thinking that http://freenode.net/group_registration.shtml is what we're after? Seems very formal... Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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: IRC Channel
[EMAIL PROTECTED] (J. David Boyd) writes: > Here's the ChanServ help, that makes it all pretty clear: [...] Thanks, a link rather than a 21k mail would have done the trick though ;) Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] rcirc
"Hugo Schmitt" <[EMAIL PROTECTED]> writes: > So I have another question (for Phil)... why is org-irc-link-to-logs a > customizable option? What would you suggest? Separating them altogether? A new key binding? > It looks like linking to logs and linking to sessions are two totally > different things and users may want to do both at different times. So how would the org-store-link know what to do in an ERC buffer when called? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] rcirc (bug?)
Richard, Richard G Riley <[EMAIL PROTECTED]> writes: > Both "enter" and "follow link" (C-c C-o) had the same problem. I've just put a fix in git for this. Can I ask how you initiate your session? Is it interactively with erc-select? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] rcirc (bug?)
Richard G Riley <[EMAIL PROTECTED]> writes: >>> Both "enter" and "follow link" (C-c C-o) had the same problem. >> >> I've just put a fix in git for this. Can I ask how you initiate your > > How do I get it? Or can you post the line here? Hold two, I'm going to make sure this is more robust. I'll post to this thread when I'm done and you can help me test it if you would. >> session? Is it interactively with erc-select? > > What do you mean interactively? The only way I know to start erc is with > erc-select. Or did you mean was erc already open when I selected the > link? If so, then both. Sometime erc is open, sometimes not. It can be initialised non-interactively like this: --8<---cut here---start->8--- (erc :server "irc.blah.com" :nick "phil" :port 6667)) --8<---cut here---end--->8--- And :port can be a string or a number which is where this bug comes from I think. Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] export to txt files
"Dimitris Kapetanakis" <[EMAIL PROTECTED]> writes: > Hello All, > I wanted to ask if there is a way to export an org file as individual txt > files depending on level 1 hierarchy. For example if you have a file like > > * Projects > bla bla text etcetc > > * Procedures > bla bla text etcetc > > to output two files projects.txt which contains bla bla text etcetc and > another procedures.txt with its text. 10 points to someone who can do this with just a keyboard macro. 15 if you can make sure the heading is filesystem safe :) Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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] org-return-follows-link and the TTY
Hi Carsten/All, I'm a --without-x user and set org-return-follows-link. When I hit enter on a link it simply inserts \n. If I apply this patch: diff --git a/generic/.elisp/org/lisp/org.el b/generic/.elisp/org/lisp/org.el index 878482d..4c8adb2 100644 --- a/generic/.elisp/org/lisp/org.el +++ b/generic/.elisp/org/lisp/org.el @@ -3278,7 +3278,6 @@ The following commands are available: (org-defkey org-mouse-map [(tab)] 'org-open-at-point) (org-defkey org-mouse-map "\C-i" 'org-open-at-point)) (when org-return-follows-link - (org-defkey org-mouse-map [(return)] 'org-open-at-point) (org-defkey org-mouse-map "\C-m" 'org-open-at-point)) (require 'font-lock) All becomes well again. Does org-return-follows-link work with this patch applied against an X11/w32 linked emacs? Cheers, Phil -- Phil Jackson http://www.shellarchive.co.uk ___ 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 - Customisable chars for table drawing
Hey, It would be really cool if the chars used to draw the various bits of the table were configurable. This way we could use the pretty looking multibyte chars like the ones at the bottom of this page: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt Cheers, Phil -- Philip Jackson http://www.shellarchive.co.uk ___ 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 - Customisable chars for table drawing
Carsten Dominik <[EMAIL PROTECTED]> writes: >> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt > > That page looks really terrible in my Browser. Am I missing > something? It could be the fault of the font you're rendering it with... maybe. Cheers, Phil -- Philip Jackson http://www.shellarchive.co.uk ___ 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-mode and git
Richard Riley <[EMAIL PROTECTED]> writes: > What, if any, git interface for emacs do you guys recommend? I would highly recommend magit[1]. I've been using it for a while now and it far better fits around the way /I/ use git :) You'll need a version[2] of git that supports --graph on the log command. Cheers, Phil Footnotes: [1] http://zagadka.vm.bytemark.co.uk/magit/magit.html [2] http://www.kernel.org/pub/software/scm/git/docs/git-log.html -- Philip Jackson web:http://www.shellarchive.co.uk photos: http://www.flickr.com/photos/[EMAIL PROTECTED]/ ___ 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: org-mode and git
Richard Riley <[EMAIL PROTECTED]> writes: > Looks good, a shame vc-git doesn't seem to work though. I will look into > why as another set of non standard keys will make my head explode :-( > Having said that its time to do some housekeeping anyway as there are > few niggly little things I run into with packages and emacs 23 at the > moment. > > C-x v v is a revelation in VC :-; It's great if you're working on only one file and want to commit all of its hunks, yes. Cheers, Phil -- Philip Jackson web:http://www.shellarchive.co.uk photos: http://www.flickr.com/photos/[EMAIL PROTECTED]/ ___ 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
[O] Clear non-repeated scheduled time when deadline is repeated
Hi, I'm having the exact same issue as this question on stackoverflow http://stackoverflow.com/questions/18123972/emacs-org-mode-clear-non-repeated-scheduled-time-when-deadline-is-repeated and I've copied it below. The solution provided to the question modifies the source, which I'd like to avoid if possible. Is there a better way of doing this like by setting a variable or a hook? Or does anyone have better ideas about this type of workflow? Question: > I use org-mode to manage some deadlines for repeated tasks. For example, I > may have something like the following: > * TODO My Weekly Task > DEADLINE <2013-08-10 Sat +1w> > If I mark the task as DONE, then the deadline automatically increments to > the next week as expected. However, I also like to use the SCHEDULED time > to indicate when during the week I would like to actually do that task, for > example: > * TODO My Weekly Task > DEADLINE <2013-08-10 Sat +1w> SCHEDULED: <2013-08-08 Thu> > This makes the task show up in the agenda for today (Thursday). However > when I mark the task DONE, I end up with the following: > * TODO My Weekly Task > DEADLINE <2013-08-17 Sat +1w> SCHEDULED: <2013-08-08 Thu> > ...and the task still appears in the agenda view for today, even though it > has been completed. > Is it possible, for tasks that have a repeated DEADLINE, to get Org-Mode > to clear the non-repeated SCHEDULED date? Solution: > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -12835,7 +12835,8 @@ This function is run automatically after each > state change to a DONE state." > (setq type (if (match-end 1) org-scheduled-string > (if (match-end 3) org-deadline-string "Plain:")) > ts (match-string (if (match-end 2) 2 (if (match-end 4) 4 0 > - (when (string-match "\\([.+]\\)?\\(\\+[0-9]+\\)\\([hdwmy]\\)" ts) > + (if (not (string-match "\\([.+]\\)?\\(\\+[0-9]+\\)\\([hdwmy]\\)" ts)) > + (org-remove-timestamp-with-keyword org-scheduled-string) > (setq n (string-to-number (match-string 2 ts)) > what (match-string 3 ts)) > (if (equal what "w") (setq n (* n 7) what "d")) Thanks, Phil
Re: [O] Cooperating with oneself using the cloud?
Hi Martin, > That should work if I can find a free Git repository allowing me to keep > files secret. I use the free private repos from https://bitbucket.org/ to do something very similar to what you require. All the best Phil
[O] Babel #+CALL: results?
I'm new to Babel -- I've been using Org for the last few years just to organize and typeset simple LaTeX for PDF and MathJax export -- and furthermore have had to compile Emacs from scratch and install into my home directory (installing Org as an ELPA package) to get my versions to sync up with the Worg documentation, so I may have broken something, but I've had no end of trouble trying to get even the simplest named block calls to produce output. As I understand Worg, and some old list messages from gmane, the following should produce meaningful output: #+NAME: testfun #+BEGIN_SRC sh :var Var1="Val1" echo "Var1: $Var1" #+END_SRC #+CALL: testfun[:results output](Var1="Val3") :results output verbatim #+RESULTS: : "" *Once* I got output, but I could not reproduce this after making and undoing a few formatting changes; I would chalk this up to my own cluelessness, except that I can get what I *think* is statefully incorrect output from the first block: Iteration 1 (control case): Begin with only the #+NAME: ... #+END_SRC with ":results verbatim" and execute block to get #+NAME: testfun #+BEGIN_SRC sh :var Var1="Val1" :results output verbatim echo "Var1: $Var1" #+END_SRC #+RESULTS: testfun : Var1: Val1 Iteration 2: Replace ":results output verbatim" with ":results output raw" and execute block to get #+NAME: testfun #+BEGIN_SRC sh :var Var1="Val1" :results output raw echo "Var1: $Var1" #+END_SRC #+RESULTS: testfun Var1: Val1 Iteration 3: Change back to ":results output verbatim" and execute block to get #+NAME: testfun #+BEGIN_SRC sh :var Var1="Val1" :results output verbatim echo "Var1: $Var1" #+END_SRC #+RESULTS: testfun =Var1: Val1 =Var1: Val1 Iteration 3+n: Execute the same block to get #+NAME: testfun #+BEGIN_SRC sh :var Var1="Val1" :results output verbatim echo "Var1: $Var1" #+END_SRC #+RESULTS: testfun =Var1: Val1 ==Var1: Val1 ==Var1: Val1 (prev. line repeated n times total) =Var1: Val1 Is this intended behavior? I will admit I don't understand Babel's output modes sufficiently well to know for sure; *however*, I also believe my one isolated success in getting output from #+CALL: was a side effect of this stateful behavior. If this is likely to be due to a bad install/configuration, can anyone clarify the "right" way to get a current org-mode installation (or at least, a version that corresponds to one or more "official" online documentation repositories) as an unprivileged user on a system that already has a prepackaged emacs installation? If this is intended behavior, where can I find the right combination of :results properties to pass output from a named block to a later call for display and/or export? Running from my current home directory installation, here are my emacs and Org versions: GNU Emacs 24.3.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.9) of 2013-11-10 on Org-mode version 8.2.2 (8.2.2-dist @ //.emacs.d/elpa/org-20131108/) Any guidance would be greatly appreciated... Phil Regier preg...@ittc.ku.edu
Re: [O] Babel #+CALL: results?
Oops; forgot to reply-all. Aaron's advice did set me straight, and #+CALL: is working fine for me now without my ill-advised debugging artifacts. Thanks to Aaron for the assistance, and to the Org list/maintainers for all the great Org tools and documentation. Phil - Original Message - From: "Aaron Ecay" To: "Phil Regier" , emacs-orgmode@gnu.org Sent: Tuesday, November 12, 2013 5:13:34 PM Subject: Re: [O] Babel #+CALL: results? Hi Phil, I’m far from an expert myself, but I think I see what is going on with your testcases. 2013ko azaroak 12an, Phil Regier-ek idatzi zuen: [...] > *Once* I got output, but I could not reproduce this after making and > undoing a few formatting changes; I would chalk this up to my own > cluelessness, except that I can get what I *think* is statefully > incorrect output from the first block: > > Iteration 1 (control case): Begin with only the #+NAME: ... #+END_SRC with > ":results verbatim" and execute block to get > > #+NAME: testfun > #+BEGIN_SRC sh :var Var1="Val1" :results output verbatim > echo "Var1: $Var1" > #+END_SRC > > #+RESULTS: testfun > : Var1: Val1 So far, as expected. > > > > Iteration 2: Replace ":results output verbatim" with ":results output raw" > and execute block to get > > #+NAME: testfun > #+BEGIN_SRC sh :var Var1="Val1" :results output raw > echo "Var1: $Var1" > #+END_SRC > > #+RESULTS: testfun > Var1: Val1 Also as expected. > > > Iteration 3: Change back to ":results output verbatim" and execute block to > get > > #+NAME: testfun > #+BEGIN_SRC sh :var Var1="Val1" :results output verbatim > echo "Var1: $Var1" > #+END_SRC > > #+RESULTS: testfun > =Var1: Val1 > =Var1: Val1 Now org would like to remove the previous output. However, it cannot do so, since it does not know where it begins and ends (since raw output could contain in principle anything, or nothign at all). It’s best to use “drawer” instead of “raw” in most cases, because the drawer wrapper bounds the result and lets subsequent calls see it and remove it. Without removing the previous result, org tries to add the “Var1: Val1” as verbatim text (before the instance of that text which is left over from the previous call). It looks like even though there is a newline in the string org chooses to use the single-line =verbatim= syntax, rather than the multiline : verbatim I don’t know why it does this, and it may be a bug. As for your original example: > #+CALL: testfun[:results output](Var1="Val3") :results output verbatim You don’t need the second :results output. That applies to an invisible elisp source block which wraps the evaluation of the #+call line, and which produces no output. I get the right result consistently with #+CALL: testfun(Var1="Val3") #+RESULTS: : Var1: Val3 Or (note the addition of quotes in the result): #+CALL: testfun(Var1="Val3") :results verbatim #+RESULTS: : "Var1: Val3" -- Aaron Ecay
[O] Bug: Need additional context 'protocol' for capture templates [8.3.2 (8.3.2-39-gd537a3-elpa @ /home/phil/.emacs.d/elpa/org-20151123/)]
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. I set my web capture template's context to w3m-mode. I expected it still to be accessible via remote org-protocol invocation from Conkeror, but found that it was not when I tried my previously-working Conkeror command for bookmarking the current page in Org. Removing the context restriction from my web capture template re-enabled the command. I propose the addition of a 'protocol' context and code to handle it. I envision being able to specify that access to my web capture template is restricted to 'w3m-mode', 'eww-mode' or 'protocol', for example. Emacs : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2015-04-25 on quiz Package: Org-mode version 8.3.2 (8.3.2-39-gd537a3-elpa @ /home/phil/.emacs.d/elpa/org-20151123/) current state: == (setq org-id-locations-file "~/.emacs.d/org-id-locations" org-hide-leading-stars t org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-mobile-files '(org-agenda-files "~/org/bookmarks.org" "~/org/Cygwin-install-checklist.org" "~/org/emacs-install-checklist.org" "~/org/Handles.org" "~/org/Home-LAN.org" "~/org/linux-install-checklist.org" "~/org/Mac-install-checklist.org" "~/org/Movies.org" "~/org/music.org" "~/org/Windows-install-checklist.org") org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-agenda-diary-file "~/SpiderOak/diary.org" org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-finalize-agenda-hook '(ph/force-revert-google-calendar-org-buffer ph/un-mouse-highlight ph/org-agenda-to-appt) org-mobile-before-process-capture-hook '(ph/force-revert-google-calendar-org-buffers) org-special-ctrl-a/e t org-agenda-prefix-format '((agenda . "%-6:c%?-12t%-13s") (timeline . "% s") (todo . "%-12:c") (tags . "%-12:c") (search . "%-12:c")) org-agenda-custom-commands '(("n" "Agenda and all TODOs" ((agenda "" nil) (alltodo "" nil)) nil)) org-mobile-pre-push-hook '(ph/force-revert-google-calendar-org-buffers) org-return-follows-link t org-default-notes-file "~/org/notes.org" org-capture-templates '(("w" "Capture from web browser such as Conkeror" entry (file+headline "~/org/bookmarks.org" "Web capture") "* %c %?\n Sourced: %u\n\n %i" :prepend t :jump-to-captured t) ("t" "Capture a task" entry (file+headline "~/org/ToDo.org" "Incoming") "* TODO %? %^G\n SCHEDULED: %t\n %^{Effort}p\n Created: %U" :prepend t :jump-to-captured t) ("b" "Capture a purchasing task" entry (file+headline "~/org/ToDo.org" "Incoming") "* TODO Bought %? %^G:buy:work:\n SCHEDULED: %t\n :PROPERTIES:\n :DATE_ORDERED: %u\n :END: %^{PRICE}p\n Created: %U" :prepend t :jump-to-captured t) ("h" "Capture a habit" entry (file+headline "~/org/ToDo.org" "Incoming") "* TODO %? %^G\n SCHEDULED: <%(ph/current-date-and-day-for-habit)