[Orgmode] Patch for resolving "away time" when clocked in
Looking for anyone who uses Org's time clocking facilities and is willing to test this with me. I've been using it for a couple of days now. The functionality is based on the way the commercial app OfficeTime handles idleness. Excerpt from the new manual section: # Resolving idle time If you clock in on a work item, and then walk away from your computer---perhaps to take a phone call---you often need to ``resolve'' the time you were away by either subtracting it from the current clock, or applying it to another one. By customizing the variable @code{org-clock-idle-time} to some integer, such as 10 or 15, Emacs can alert you when you get back to your computer after being idle for that many minu...@footnote{on computers using Mac OS X, idleness is based on actual user idleness, not just Emacs' idle time.}, and ask what you want to do with the idle time. There will be a question waiting for you when you get back, indicating how much idle time has passed (constantly updated with the current amount), as well as a set of choices to correct the discrepancy: @table @kbd @item k To keep some or all of the minutes and stay clocked in, press @key {k}. Org will ask how many of the minutes to keep. Press @key{RET} to keep them all, effectively changing nothing, or enter a number to keep that many minutes. @item K If you use the shift key and press @key{K}, it will keep however many minutes you request and then immediately clock out of that task. If you keep all of the minutes, this is the same as just clocking out of the current task. @item s To keep none of the minutes, use @key{s} to subtract all the away time from the clock, and then check back in from the moment you returned. @item S To keep none of the minutes and just clock out at the start of the away time, use the shift key and press @key{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 @key{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 log with an empty entry. @end table What if you subtracted those away minutes from the current clock, and now want to apply them to a new clock? Simply clock in to any task immediately after the subtraction. Org will notice that you have subtracted time ``on the books'', so to speak, and will ask if you want to apply those minutes to the next task you clock in on. There is one other instance when this clock resolution magic occurs. Say you were clocked in and hacking away, and suddenly your cat chased a mouse who scared a hamster that crashed into your UPS's power button! You suddenly lose all your buffers, but thanks to auto-save you still have your recent Org mode changes, including your last clock in. If you restart Emacs and clock into any task, Org will notice that you have a dangling clock which was never clocked out from your last session. Using the Org file's last modified time as the beginning of the ``away'' period, Org will ask how you want to resolve that unaccounted-for time. The logic and behavior is identical to dealing with away time due to idleness, it's just happening due to a recovery event rather than a set amount of idle time. You can also check all the files visited by your Org agenda for dangling clocks at any time using @kbd{M-x org-resolve-clocks}. John 0001-Added-clock-resolution-logic.patch Description: Binary data ___ 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] Evangelize the world with Org-mode
... or, at least, my colleagues. Hello, I have the following problem. I write a lot of docs. They were before in LaTeX, and now in Org. I even write our Web site. Before it was FrontPage or Muse, now it is Org as well. Using Org allows a clear separation between the "contents" and the "form", even for LaTeX, with a minimalistic Wiki-type syntax. That's the message I convey to try to get my colleagues using this. Problems: - They don't use Emacs, but Vim... or Word - Some know a bit of LaTeX, but only a few - They're not willing to change so easily... How do I do, then? We have to collaborate on docs. Currently, it is mainly Word or OpenOffice docs with changes to be made written down in an email. Very efficient! I absolutely want to change this, but the path is not easy. I cannot tell my boss: just install and use Emacs, Org-mode, LaTeX and SVN, and you're good. What we would need, IMHO, is: - something like TeXMaker: a simple editor that's more or less WYSIWYG, and generates a PDF on one click; - or, even better (as it would be install-less): a Wiki based on Org syntax with document generation capability (button to generate a PDF). That's my current feeling. Does someone of you have a solution to bridge the editing gap and go in that direction? Is the Wiki option fool, or does something exist that's almost doing it? Best regards, Seb -- Sébastien Vauban ___ 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] Evangelize the world with Org-mode
Sebastien, I don't think any of this is crazy. The first idea is similar to the HTML composition GUIs which now seem to be everywhere. I'm told it's a pretty complex task to get them to reliably be both WYSISYG and to maintain syntactically correct markup through multiple edits, but people are attempting it---with some success for HTML and BBcode. Could org-syntax be used in a Wiki? I suppose so with some elisp or scripting infrasturcture. In fact, such an idea is has potential to help with other problems as well, such as making simple changes to your server-stored org-documents when at a non-emacs machine or a simple web-enabled device like a smartphone. I imagine that the overhead of processing org-markup to html via Emacs is high-ish in comparision with traditonal ways of generating html from other markup languages. But with static pages and mostly internal use, that should be no issue. Look at this link for an example of online PDF generation. In this case it's from another lightweight markup language called ReStructured Text, and uses pdflatex on a server to automatically generate pdf's. http://rst2a.com/ If they can do it. Scot ___ 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] Evangelize the world with Org-mode
There already is Worg for wiki and pdf generation is already a core function of org-mode. Not sure if i'm missing something here or not. On Oct 16, 2009, at 6:41 AM, Scot Becker wrote: Sebastien, I don't think any of this is crazy. The first idea is similar to the HTML composition GUIs which now seem to be everywhere. I'm told it's a pretty complex task to get them to reliably be both WYSISYG and to maintain syntactically correct markup through multiple edits, but people are attempting it---with some success for HTML and BBcode. Could org-syntax be used in a Wiki? I suppose so with some elisp or scripting infrasturcture. In fact, such an idea is has potential to help with other problems as well, such as making simple changes to your server-stored org-documents when at a non-emacs machine or a simple web-enabled device like a smartphone. I imagine that the overhead of processing org-markup to html via Emacs is high-ish in comparision with traditonal ways of generating html from other markup languages. But with static pages and mostly internal use, that should be no issue. Look at this link for an example of online PDF generation. In this case it's from another lightweight markup language called ReStructured Text, and uses pdflatex on a server to automatically generate pdf's. http://rst2a.com/ If they can do it. Scot ___ 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 ___ 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] Evangelize the world with Org-mode
Am 16.10.09 11:29, schrieb Sébastien Vauban: - or, even better (as it would be install-less): a Wiki based on Org syntax with document generation capability (button to generate a PDF). Perhaps ikiwiki? "Ikiwiki is a wiki compiler. It converts wiki pages into HTML pages suitable for publishing on a website. Ikiwiki stores pages and history in a revision control system such as Subversion or Git." "If you prefer to use some *other markup language*, ikiwiki allows others to easily be added by plugins." http://ikiwiki.info/ http://ikiwiki.info/features/ Karl ___ 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] Evangelize the world with Org-mode
Am 16.10.09 14:09, schrieb Karl Maihofer: Perhaps ikiwiki? Ha! Have a look at this: http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/ There was already a discussion about ikiwiki on this list: http://search.gmane.org/search.php?group=gmane.emacs.orgmode&query=ikiwiki Karl ___ 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] Evangelize the world with Org-mode
Karl Maihofer writes: > Am 16.10.09 11:29, schrieb Sébastien Vauban: >> - or, even better (as it would be install-less): a Wiki based on Org syntax >>with document generation capability (button to generate a PDF). > > Perhaps ikiwiki? > also blorgit could be relevant http://orgmode.org/worg/blorgit.php ___ 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: Patch for resolving "away time" when clocked in
John Wiegley gmail.com> writes: > Looking for anyone who uses Org's time clocking facilities and is > willing to test this with me. I've been using it for a couple of days > now. The functionality is based on the way the commercial app > OfficeTime handles idleness. Hi John, This is interesting and useful, and the manual section describing how it works is clear. I applied the patch against 93f396, and on Emacs 23.1 I get an error when clocking in. The error happens the first clock-in for each Emacs session, but the 'invalid timer' message shows for subsequent clock-in/out. Thanks, Jeff Debugger entered--Lisp error: (error "Invalid timer") signal(error ("Invalid timer")) error("Invalid timer") cancel-timer(1) byte-code("(snip) [org-clock-resolving-clocks-due-to-idleness org-clock-marker org-clock-resolving-clocks org-clock-left-over-time left-over msg-extra marker-buffer nil "" t org-resolve-clocks throw abort (4) org-clock-select-task "Clock-in on task: " copy-marker error "Abort" marker-position org-clock-out (16) org-clock-mark-default-task org-on-heading-p point-at-bol 0 run-hooks org-clock-in-prepare-hook org-base-buffer org-back-to-heading org-clock-history-push functionp looking-at match-string 2 org-todo "[ ]*" "\\>" 4 org-trim 1 "???" org-propertize face org-clock-find-position "^[ ]* " " \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}" " +\\sw+.? +[012][0-9]:[0-5][0-9]\\)\\][ ]*$" message "Matched %s" ...] 7) org-clock-in(nil) call-interactively(org-clock-in nil nil) The org-related parts of my config: (add-to-list 'load-path "~/.emacs.d/vendor/org-mode/lisp") (add-to-list 'load-path "~/.emacs.d/vendor/org-mode/contrib/lisp") (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (require 'org-install) (setq org-clock-persist t) (org-clock-persistence-insinuate) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (setq org-log-done 'time) (setq org-special-ctrl-k t) (org-remember-insinuate) (setq org-directory "~/org/") (setq org-default-notes-file (concat org-directory "/notes.org")) (define-key global-map "\C-cr" 'org-remember) (setq org-clock-into-drawer t) (setq org-clock-clocktable-default-properties '(:maxlevel 2 :scope subtree)) (defun yas/org-very-safe-expand () ___ 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
[babel] Re: [Orgmode] Re: [org-babel] Idea: Rendering output of code blocks inline (like org links)
Maurizio Vitale writes: >> "Eric" == Eric Schulte writes: > > Eric> 3) the results of a source code block are in no way > Eric> constrained to be located after the body of the block. In > Eric> cases where they are not located near each other the body > Eric> would be invisible (which is not desirable) and when viewing > Eric> the results there would be no way to tell if there is or isn't > Eric> a source-block hidden beneath it > > For this to be useful for what the OP wanted to achieve it should be > possible to ask for re-evaluation when on the result block. > the only tricky part of this would be capturing C-c C-c when on results, as this key binding already has a well defined meaning in most results types (for example in tables). However if we are willing to introduce a new keybinding the actual function would be relatively simple given the helper functions mentioned below. > > Also, it would be nice to be able to switch easily between source and > result blocks (maybe this is possible, haven't checked). > there are currently functions which return the location of a results block when called from a source block, and vice versa. (org-babel-where-is-src-block-result &optional INSERT) (org-babel-find-named-block name) The only issue in exposing these to the user is the possibility of polluting the already very dense space of Org-mode keybindings. > > Maybe with this additional functionality one can get most of the > hiding-the-source functionality and put all the source blocks in the > final page of the document. > Ah, I think I understand. That would be a much simpler path towards achieving much of the "hiding" functionality originally proposed. I will add this discussion in a PROPOSED state to the Org-babel task list. Thanks -- Eric > > The only difference I see is that when switching to the source block you > loose the visual context around it. > > Regards, > > Maurizio > > > > ___ > 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 ___ 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: org-protocol and safari
Matthew Lundin writes: [...] >> As for FF, the instructions should work. See also: >> >>http://kb.mozillazine.org/Register_protocol#Linux_and_Mac > > These instructions are incorrect. I can confirm that setting a protocol > does not work in Firefox on Mac OS - there is a bug that's been around > for a long time that prevents associating protocols with an application > and/or path. See this mailing list post: For Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20091010 Iceweasel/3.5.3 (Debian-3.5.3-2) these steps does the trick for me: - Add these two preferences to prefs.js: --8<---cut here---start->8--- user_pref("network.protocol-handler.app.org-protocol", "/usr/bin/emacsclient -t %L"); user_pref("network.protocol-handler.external.org-protocol", true); --8<---cut here---end--->8--- - Start emacs as daemon. - Start FF from the command line. It wouldn't work if started using a shortcut (i.e. with Gnome main menu entry). IIRC I tried to get a result without any success until I started FF from the X terminal by accident. - Org-mode must be activated. I suspect that my configuration broken in a some way that prevents org-mode + org-remeber functionality to be available just right after emacs was started. But I usually activate agenda view very early so this is not a problem for me. -- MAN-UANIC ___ 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] Exporting Agenda to HTML
Hello, I would like to be able to export my agenda as a set of files corresponding to each org-file in org-agenda-files, as an 'agenda' html file that looks like the agenda, and has its entries hyperlinked to the relevant entry in the relevant file - much like the agenda works in emacs, where pressing 'enter' on a line will take you to the specific entry. Is there a way to do this? Thanks, Nathaniel Flath ___ 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] Evangelize the world with Org-mode
How about a click-thru to download a PDF of the current page? I need to go back and look into Worg some more. On Fri, Oct 16, 2009 at 07:08:59AM -0400, Greg Newman wrote: > There already is Worg for wiki and pdf generation is already a core > function of org-mode. > Not sure if i'm missing something here or not. > > > On Oct 16, 2009, at 6:41 AM, Scot Becker wrote: > >> Sebastien, >> >> I don't think any of this is crazy. >> >> The first idea is similar to the HTML composition GUIs which now seem >> to be everywhere. I'm told it's a pretty complex task to get them to >> reliably be both WYSISYG and to maintain syntactically correct markup >> through multiple edits, but people are attempting it---with some >> success for HTML and BBcode. >> >> Could org-syntax be used in a Wiki? I suppose so with some elisp or >> scripting infrasturcture. In fact, such an idea is has potential to >> help with other problems as well, such as making simple changes to >> your server-stored org-documents when at a non-emacs machine or a >> simple web-enabled device like a smartphone. I imagine that the >> overhead of processing org-markup to html via Emacs is high-ish in >> comparision with traditonal ways of generating html from other markup >> languages. But with static pages and mostly internal use, that should >> be no issue. >> >> Look at this link for an example of online PDF generation. In this >> case it's from another lightweight markup language called ReStructured >> Text, and uses pdflatex on a server to automatically generate pdf's. >> >> http://rst2a.com/ >> >> If they can do it. >> >> Scot >> ___ >> 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 > > ___ > 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 -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ___ 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: Patch for resolving "away time" when clocked in
John Wiegley writes: > Looking for anyone who uses Org's time clocking facilities and is > willing to test this with me. I've been using it for a couple of days > now. The functionality is based on the way the commercial app > OfficeTime handles idleness. Wow. Your patch helped me clean up a multitude of dangling clocks. Thank you! One suggestion: I think when your code stops on a clock and prompts to keep/subtract/cancel, it should expand the drawer (for those of us who use drawers). -Greg (I know, there's probably already a variable like org-expand-drawers-when-running-a-patched-version) ___ 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 for resolving "away time" when clocked in
On Oct 16, 2009, at 10:25 AM, Jeff Kowalczyk wrote: I applied the patch against 93f396, and on Emacs 23.1 I get an error when clocking in. The error happens the first clock-in for each Emacs session, but the 'invalid timer' message shows for subsequent clock-in/out. In org-clock.el, on line 236, please change that line to: (defvar org-clock-left-over-time nil And see if this resolves your problem. I am unable to reproduce the cancel-timer failure here. Please load org-clock.el into Emacs and type M-x eval-buffer and then trigger it again, that I may see the complete stack trace. Thank you, John ___ 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] Integration with jsMath for HTML export of latex equations (feature request)
Hello org-users, I know that it is possible to export equations as images if you set the variable org-export-with-LaTeX-fragments to t, but I prefer to use jsMath (http://www.math.union.edu/~dpvc/jsMath/) for equation in HTML. The problem is that when org-export-with-LaTeX-fragments is set to nil org-mode interprets underlines, hats and Greek letters and replace them in the generated HTML. I agree that this is nice in most cases, but I need them to be left untouched, since they will be later interpreted by jsMath when I'm viewing the page in a browser that supports java-script. Therefore, my "feature request" is disabling this smart behavior of org-mode when latex fragments are not converted to images. I also need to add a line in the HTML header to load the jsMath script, but this is easily accomplished with the line #+STYLE: in the org-file header. Here are some advantages and disadvantages about using jsMath instead of images. Advantages: - It's really pretty when you have all the fonts installed and you can zoom without any loss of quality. - No need to generate images when exporting + When you see the generated HTML page the jsMath script is run each time you reload the page. Because modern browsers are increasing more and more the efficiency of the java-script engine this is not a problem even if there are a lot of equations in the generated page. + On the other hand, creating images when exporting can take considerable time when there are man equations. Disadvantages - More difficult to setup + you have to install jsMath for authors, since you are creating pages with it. + you have to install jsMath for users, that is, install the fonts that will be used. If this is not done, jsMath will use images for the equations. You won't need to generate images when exporting, since jsMath already has all images (it just put the pieces together) - It is more inconvenient to send the generated HTML page to a friend, since your friend will need to install the fonts used by jsMath. Darlan ___ 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 for resolving "away time" when clocked in
On Oct 16, 2009, at 11:59 AM, Gregory J. Grubbs wrote: One suggestion: I think when your code stops on a clock and prompts to keep/subtract/cancel, it should expand the drawer (for those of us who use drawers). I've added this to the version of the patch below. As another question: When attempting to clock into A, and org-resolve-clocks finds a dangling clock in B, and the user presses "k" or "s" (i.e., not K or S), do you expect it to clock you into A or into B when the resolution is done? Right now K will continue the clock-in to A, but k will abort the clock-in to A and clock you into B to resume that task. John 0001-Added-clock-resolution-logic.patch Description: Binary data ___ 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-olpath-completing-read is not friendly with partial-completion-mode
Hi Levin, I am already turning off partial completion mode for a number of relevant completion prompts, even have defined a macro org-without- partial-completion for this purpose. In what particular circumstance are you hit by this problem? - Carsten On Oct 16, 2009, at 8:52 AM, Levin Du wrote: Try this: (partial-completion-mode t) (funcall 'org-olpath-completing-read "? " '("todo1.org/tasks/" "todo1.org/tasks/normal/" "todo1.org/tasks/urgent/" "note.org/") nil t nil nil) todo It stays on todo1.org/ (Sole completion) my raw patch: diff --git a/vendor/org/org.el b/vendor/org/org.el index d3d886f..f3a02cf 100644 --- a/vendor/org/org.el +++ b/vendor/org/org.el @@ -7780,23 +7780,29 @@ from." (defun org-icompleting-read (&rest args) "Completing-read using `ido-mode' or `iswitchb' speedups if available" - (if (and org-completion-use-ido - (fboundp 'ido-completing-read) - (boundp 'ido-mode) ido-mode - (listp (second args))) - (let ((ido-enter-matching-directory nil)) - (apply 'ido-completing-read (concat (car args)) - (if (consp (car (nth 1 args))) - (mapcar (lambda (x) (car x)) (nth 1 args)) -(nth 1 args)) - (cddr args))) -(if (and org-completion-use-iswitchb -(boundp 'iswitchb-mode) iswitchb-mode -(listp (second args))) - (apply 'org-iswitchb-completing-read (concat (car args)) - (mapcar (lambda (x) (car x)) (nth 1 args)) - (cddr args)) - (apply 'completing-read args + (let ((saved-pc-mode partial-completion-mode)) +(when saved-pc-mode + (partial-completion-mode 0)) +(unwind-protect +(if (and org-completion-use-ido + (fboundp 'ido-completing-read) + (boundp 'ido-mode) ido-mode + (listp (second args))) +(let ((ido-enter-matching-directory nil)) + (apply 'ido-completing-read (concat (car args)) + (if (consp (car (nth 1 args))) + (mapcar (lambda (x) (car x)) (nth 1 args)) + (nth 1 args)) + (cddr args))) + (if (and org-completion-use-iswitchb + (boundp 'iswitchb-mode) iswitchb-mode + (listp (second args))) + (apply 'org-iswitchb-completing-read (concat (car args)) + (mapcar (lambda (x) (car x)) (nth 1 args)) + (cddr args)) +(apply 'completing-read args))) + (when saved-pc-mode +(partial-completion-mode 1) (defun org-extract-attributes (s) "Extract the attributes cookie from a string and set as text property." @@ -8890,7 +8896,6 @@ See also `org-refile-use-outline-path' and `org-completion-use-ido'" (unless org-refile-target-table (error "No refile targets")) (let* ((cbuf (current-buffer)) -(partial-completion-mode nil) (cfn (buffer-file-name (buffer-base-buffer cbuf))) (cfunc (if (and org-refile-use-outline-path org-outline-path-complete-in-steps) Hope it helps. Regards, Levin ___ 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 - 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
[Orgmode] Re: Patch for resolving "away time" when clocked in
John Wiegley gmail.com> writes: > > On Oct 16, 2009, at 10:25 AM, Jeff Kowalczyk wrote: > > > I applied the patch against 93f396, and on Emacs 23.1 I get an error > > when clocking in. The error happens the first clock-in for > > each Emacs session, but the 'invalid timer' message shows for > > subsequent clock-in/out. > > In org-clock.el, on line 236, please change that line to: > > (defvar org-clock-left-over-time nil > > And see if this resolves your problem. Thank you. With that change there are no more visible errors or backtraces. > I am unable to reproduce the > cancel-timer failure here. Please load org-clock.el into Emacs and > type M-x eval-buffer and then trigger it again, that I may see the > complete stack trace. No error anymore as mentioned above. I'm not sure I'm triggering the new functionality correctly. In the scratch buffer, I eval'd: (setq org-clock-idle-time 1) Next, I created an Org buffer with one TODO file, and clocked in, and took my hands off the computer. I waited three minutes, then clocked out. * Worklog ** TODO Task 1 :LOGBOOK: CLOCK: [2009-10-16 Fri 09:42]--[2009-10-16 Fri 09:46] => 0:04 :END: Was I supposed to be prompted to resolve some minutes when clocking out after the org-clock-idle-time had elapsed? Thanks, Jeff ___ 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 for resolving "away time" when clocked in
On Oct 16, 2009, at 1:02 PM, Jeff Kowalczyk wrote: I am unable to reproduce the cancel-timer failure here. Please load org-clock.el into Emacs and type M-x eval-buffer and then trigger it again, that I may see the complete stack trace. No error anymore as mentioned above. I'm not sure I'm triggering the new functionality correctly. In the scratch buffer, I eval'd: (setq org-clock-idle-time 1) Ah, I think I see where the cancel-timer bug came from. You had set org-clock-idle-timer to 1, rather than org-clock-idle-time (only the latter is a user-customizable variable). Next, I created an Org buffer with one TODO file, and clocked in, and took my hands off the computer. I waited three minutes, then clocked out. * Worklog ** TODO Task 1 :LOGBOOK: CLOCK: [2009-10-16 Fri 09:42]--[2009-10-16 Fri 09:46] => 0:04 :END: Was I supposed to be prompted to resolve some minutes when clocking out after the org-clock-idle-time had elapsed? At the moment, the auto-resolver only checks files which are referred to by org-agenda-files. It does not scan the entire buffer list looking for any org-mode buffer. Do you think it should do the latter instead? John ___ 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 for resolving "away time" when clocked in
On Oct 16, 2009, at 1:41 PM, John Wiegley wrote: At the moment, the auto-resolver only checks files which are referred to by org-agenda-files. It does not scan the entire buffer list looking for any org-mode buffer. Do you think it should do the latter instead? I have a better answer for this: 1. For the checking idle time, I just check the currently active clock's file, wherever that happens to be. 2. For resolving clocks on clock-in, I'll scan all agenda-files and open org-mode buffers. John ___ 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: Patch for resolving "away time" when clocked in
John Wiegley writes: > On Oct 16, 2009, at 11:59 AM, Gregory J. Grubbs wrote: > >> One suggestion: I think when your code stops on a clock and prompts to >> keep/subtract/cancel, it should expand the drawer (for those of us who >> use drawers). > > I've added this to the version of the patch below. > > As another question: > > When attempting to clock into A, and org-resolve-clocks finds a > dangling clock in B, and the user presses "k" or "s" (i.e., not K or > S), do you expect it to clock you into A or into B when the resolution > is done? Right now K will continue the clock-in to A, but k will > abort the clock-in to A and clock you into B to resume that task. Since my intention was to clock in to A, I would find it confusing in any event to suddenly find myself clocked into B. Even in the case of a dangling clock caused by an emacs crash, I would prefer to stay in control! Should task B strike me as the task I would rather be clocking in instead of task A, I would expect to either hit C-g and clock into B, or go through the list of all dangling clocks and come back to B. ___ 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: Patch for resolving
John Wiegley gmail.com> writes: > On Oct 16, 2009, at 1:41 PM, John Wiegley wrote: > > > At the moment, the auto-resolver only checks files which are > > referred to by org-agenda-files. It does not scan the entire buffer > > list looking for any org-mode buffer. Do you think it should do the > > latter instead? > > I have a better answer for this: > > 1. For the checking idle time, I just check the currently active > clock's file, wherever that happens to be. > > 2. For resolving clocks on clock-in, I'll scan all agenda-files and > open org-mode buffers. > > John Thanks, that plan sounds ideal for the way I use Org, i.e. without the agenda, and one or more open buffers in org-mode for clocking time. I actually haven't gotten around to using the agenda yet, because (and this is purely laziness on this user's part), I never got it to display gridded time for my completed worklogs in the form below (i.e. few things are ahead of time): * Worklog for ACME ** DONE Task 1 :tagA: CLOSED: [2009-10-16 Fri 11:06] :LOGBOOK: CLOCK: [2009-10-16 Fri 09:42]--[2009-10-16 Fri 09:46] => 0:04 :END: Describe. ** DONE Task 2 :tagA:tagB: CLOSED: [2009-10-16 Fri 11:06] :LOGBOOK: CLOCK: [2009-10-16 Fri 10:00]--[2009-10-16 Fri 10:43] => 0:43 CLOCK: [2009-10-16 Fri 09:54]--[2009-10-16 Fri 09:56] => 0:02 :END: Notes taken. ** TODO Task 3 :tagA: :LOGBOOK: CLOCK: [2009-10-16 Fri 11:07] CLOCK: [2009-10-16 Fri 10:43]--[2009-10-16 Fri 10:44] => 0:01 :END: In progress... ___ 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] Evangelize the world with Org-mode
2009/10/16 Sébastien Vauban : > I absolutely want to change this, but the path is not easy. I cannot tell my > boss: just install and use Emacs, Org-mode, LaTeX and SVN, and you're good. > We need an efficient middleware that transforms org buffer into html/pdf/latex as a web service.This, to my understanding is the bottleneck for achieving the dream. If we do this as web service or as a corba kind of service in a desktop system then independent of which template language is used for making dynamic websites, or which toolkit is used for making the GUI of an application, we will be able to serve the requests. Nagarjuna ___ 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 for resolving "away time" when clocked in
On Oct 16, 2009, at 2:09 PM, Gregory J. Grubbs wrote: Since my intention was to clock in to A, I would find it confusing in any event to suddenly find myself clocked into B. Even in the case of a dangling clock caused by an emacs crash, I would prefer to stay in control! Should task B strike me as the task I would rather be clocking in instead of task A, I would expect to either hit C-g and clock into B, or go through the list of all dangling clocks and come back to B. Ok, then if the resolution logic is being triggered by a clock-in event, I won't interrupt the user's clock in. In this case both s and S will be equivalent. John ___ 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] Any way to include filetags in tags completion?
Hi everyone, I've searched the org-mode variables and can't seem to find a way to get filetags included in tags completion. In other words, when I press "TAB" to see the org-global-tags-completion-table while entering a tag or filtering for tags in the agenda, only tags associated with headlines are offered for completion. Is there a way to include filetags in the completion table? I ask because I frequently use filetags (such as "finances" and "household") to filter the agenda and would prefer (lazy emacs user that I am) not to have to type the entire word. Thanks for your help. Matt ___ 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] Making TAB a touch more magical
In most "power" outliners on the Mac, pressing TAB indents the outline level of the current item. This lets you add subnotes very quickly by typing M-RET TAB. (I find M-S- way too cumbersome to use while typing). Since pressing TAB on a new entry (one with no body) doesn't do anything right now, I think TAB in that case should do what M-S- does. This little snippet achieves that: (defun org-indent-empty-items (arg) (when (eq arg 'empty) (goto-char (line-end-position)) (cond ((org-at-item-p) (org-indent-item 1)) ((org-on-heading-p) (org-demote-subtree) (add-hook 'org-pre-cycle-hook 'org-indent-empty-items) This also works for regular lists. John ___ 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] Making TAB a touch more magical
On Oct 17, 2009, at 2:59 AM, John Wiegley wrote: In most "power" outliners on the Mac, pressing TAB indents the outline level of the current item. This lets you add subnotes very quickly by typing M-RET TAB. (I find M-S- way too cumbersome to use while typing). Since pressing TAB on a new entry (one with no body) doesn't do anything right now, I think TAB in that case should do what M-S- does. This little snippet achieves that: (defun org-indent-empty-items (arg) (when (eq arg 'empty) (goto-char (line-end-position)) (cond ((org-at-item-p) (org-indent-item 1)) ((org-on-heading-p) (org-demote-subtree) (add-hook 'org-pre-cycle-hook 'org-indent-empty-items) If going this crazy, how about (extension for plain list still missing) (defun org-indent-empty-items (arg) (when (eq arg 'empty) (goto-char (line-end-position)) (cond ((org-at-item-p) (org-indent-item 1)) ((org-on-heading-p) (if (equal this-command last-command) (condition-case nil (org-promote-subtree) (error (save-excursion (goto-char (point-at-bol)) (and (looking-at "\\*+") (replace-match "")) (org-insert-heading) (org-demote-subtree (org-demote-subtree)) (add-hook 'org-pre-cycle-hook 'org-indent-empty-items) - carsten This also works for regular lists. John ___ 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 - 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