Re: [O] Testers / Feedback wanted: Gantt charts via org-gantt.el
On Saturday, 20 Jun 2015 at 12:46, Bernhard Schmitz wrote: Hi Karl, hi Eric, I know it has been a while. I think every suggestion has been implemented by now, except for linking independent headlines. I wanted to ask for your input again, as I'm still not sure how to handle this, and both of your suggestions seemed to fall into the same category for me. * Eric S Fraga e.fr...@ucl.ac.uk wrote: The only comments I have at the moment is that it is missing support for milestones and all of my GANTT charts have such and that I would like to be able to link tasks across headlines (i.e. groups). Can I suggest a :milestone: tag or MILESTONE property for the former and a LINKED-TO or similar for the latter? Should this link only be a graphical link, or should the start time of the second headline be determined by the end time of the first (as it is done with ordered headlines)? Or can what you have in mind be expressed by org-depend (see below)? Assuming you are referring to the second of my suggestions (linking across headlines). If so, I am not sure about org-depend as I have never used it. Does it allow linking across headlines or only within a sub-tree? In any case, it would be nice if the start time would be dependent on the end time of the from link, but only if a start time were not specified explicitly? thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1231-ga0a883
Re: [O] Org-Mode and iCloud Reminders
what do you use for rem-org? On Thu, Jun 25, 2015 at 7:41 PM, Ken Mankoff mank...@gmail.com wrote: I have hopes for rem https://github.com/kykim/rem but right now it is easier to have rem-org than org-rem. -k. Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback keyboard. On Jun 25, 2015, at 19:43, Yuri Niyazov yuri.niya...@gmail.com wrote: Has anyone had any success with getting Mac OS X Reminders working with org-mode? I found this blog post from a few years ago: http://msnyder.info/posts/2012/05/icloud-reminders-orgmode/ and was wondering if anyone's had much success with that or some other syncing mechanism. Thanks!
Re: [O] tentative patch Re: commit found, was: Re: ECM for: issues with publishing to LaTeX using #INCLUDE
Robert Klein rokl...@roklein.de writes: with the patch both the minimal example and my three big publishing projects are published Ok. That's a nice piece of work. TBH, even though I identified a source of bug in this area, I don't fully understand yet how it relates to your specific issue. In particular, how working.org solves it still puzzles me. This is probably due to the early call of `org-export-get-environment'. Alas, since I'm unable to reproduce the problem, I cannot investigate much further. Any chance for the patch ending up in the org tree? I just pushed a similar patch. Thank you. Regards,
Re: [O] org-log-reschedule: inactive time-stamp instead
Hello, M elwood...@web.de writes: I wonder if I get something wrong, but in the variable org-log-note-headings I see Heading when rescheduling String: Rescheduled from %S on %t Shouldn't the %S represent a TODO state (which makes no sense)? %S represents the last state. If you change a TODO keyword, is also a TODO keyword (or lack thereof). If you alter a timestamp, it is that timestamp. Can I replace it by an inactive timestamp? Is there any use case for an active timestamp at this location anyway? If there is not, we could automatically convert it to an inactive timestamp. WDYT? Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org-contacts.el: Catch 'nextfile in org-contacts-db
Hi Nicolas and Greg, Thank you for applying my initial patch. Inspired by Greg's improvements to my patch, I'd like to propose the attached (presumptuously named) better-patch that I believe fixes the TODO of my initial patch. Sorry it isn't quite in the format of the previous one/recommended by the project but I'm not on my main machine now. Best regards, -- Philippe Crama 0001-org-contacts.el-Handle-missing-files-in-org-contacts(1).patch Description: Binary data better-patch Description: Binary data
[O] Unclear org-icompleting-read interface
Hi all, The current `org-icompleting-read' is defined as taking only `rest args', which can be as many as 8, all of them without a name. I propose to update the definition to: (cl-defun org-icompleting-read (prompt collection key predicate require-match initial-input hist def inherit-input-method) ;; ... ) Let me know if you like the idea. If so, there are 43 calls to `org-icompleting-read' in the source that need to be updated. Some of them should as they are, since usually only the first two arguments are used. This change would make the calls to `org-icompleting-read' much easier to read. regards, Oleh
Re: [O] Is it possible to embed tag search as a link?
Jay Dresser j...@jaydresser.us writes: Sebastien Vauban sva-n...@mygooglest.com writes: Jay Dresser org-m...@jaydresser.us writes: Piotr Isajew pisajew at yahoo.com writes: what I'm looking for is a link format that, when C-c C-o'ed, opens agenda match query view for custom query which arguments are specified in the link. I.e.: org-search://+work-boss-TODO=DONE I am aware of org-protocol which can be used to develop a custom handler for something like this. I would just like to check if there exists any working solution before I start working on my own. Jay Dresser org-mode at jaydresser.us writes: I just happened to run across this which seems to better match your original question, to do it as a new link type: http://endlessparentheses.com/use-org-mode-links-for-absolutely-anything.html so you could have [[org-search:+work-boss-TODO=DONE]] When I click on such a link, I have the error: --8---cut here---start-8--- No match - create this as a new heading? (y or n) --8---cut here---end---8--- Best regards, Seb Did you add the elisp from the article into your .emacs? Although the article described using tag as the link type I displayed org-search since that's what the OP wanted. To get the desired effect add this to .emacs: (org-add-link-type org-search 'endless/follow-tag-link) (defun endless/follow-tag-link (tag) Display a list of TODO headlines with tag TAG. With prefix argument, also display headlines without a TODO keyword. (org-tags-view (null current-prefix-arg) tag)) No, I skipped that part -- thinking it was standard. Thanks. Best regards, Seb -- Sebastien Vauban
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame
Eric S Fraga e.fr...@ucl.ac.uk writes: Attached. Thanks! Applied. Thank you. Regards,
Re: [O] Unclear org-icompleting-read interface
Hello, Oleh Krehel ohwoeo...@gmail.com writes: The current `org-icompleting-read' is defined as taking only `rest args', which can be as many as 8, all of them without a name. I propose to update the definition to: (cl-defun org-icompleting-read (prompt collection key predicate require-match initial-input hist def inherit-input-method) ;; ... ) I'd rather not use cl-defun in code base, which is slightly more difficult to understand, and hardly unavoidable. Moreover, `org-icompleting-read' is not harder to read as `completing-read' anyway. This change would make the calls to `org-icompleting-read' much easier to read. While we're at it, I suggest instead to make `org-icompleting-read' an obsolete alias for `completing-read' in Org 8.4. `partial-completing-mode' is obsolete since Emacs 24.1. Regards, -- Nicolas Goaziou
[O] [PATCH] org-mobile: Tiny fix in creating index.org file lisp/org-mobile.el (org-mobile-create-index-file): - eliminate cloning of #+READONLY property in the index.org file; - org-todo-keywords d
--- lisp/org-mobile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 2c13802..293de79 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -439,14 +439,14 @@ agenda view showing the flagged items. (if org-mobile-use-encryption org-mobile-encryption-tempfile target-file) + (insert #+READONLY\n) (while (setq entry (pop def-todo)) - (insert #+READONLY\n) (setq kwds (mapcar (lambda (x) (if (string-match ( x) (substring x 0 (match-beginning 0)) x)) (cdr entry))) (insert #+TODO: (mapconcat 'identity kwds ) \n) - (setq dwds (member | kwds) + (setq dwds (or (member | kwds) (last kwds)) twds (org-delete-all dwds kwds) todo-kwds (org-delete-all twds todo-kwds) done-kwds (org-delete-all dwds done-kwds))) -- 1.9.5 (Apple Git-50.3)
[O] contrib/lisp/ox-taskjuggler.el patch
Hi, I want to pull some changes in contrib/lisp/ox-taskjuggler.el file There is patch in attach, created with git format-patch Manually written change log here: ox-taskjuggler.el: Minor enhancements in taskjuggler export * contrib/lisp/ox-taskjuggler.el b/contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-project): added new custom variable `org-taskjuggler-default-project-configuration' that can be used to configure additional project fields. (org-taskjuggler-get-end): added support for `end' property instead only standard org deadline value. (org-taskjuggler--build-task): added support for multiple allocations, specified by separators. TINYCHANGE Gleb Borodulya From e4fbd5a1c55b6cd5ee548e41f7e3b29b840d175a Mon Sep 17 00:00:00 2001 From: Mr. Reg reg@reg.bsd Date: Sun, 21 Jun 2015 02:04:48 +0300 Subject: [PATCH] support for multiple allocations new custom variable to configure project settings support for :end: property instead only standard org deadline support --- contrib/lisp/ox-taskjuggler.el | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/contrib/lisp/ox-taskjuggler.el b/contrib/lisp/ox-taskjuggler.el index fe88b45..ee1ea36 100644 --- a/contrib/lisp/ox-taskjuggler.el +++ b/contrib/lisp/ox-taskjuggler.el @@ -358,6 +358,11 @@ task buckets, while still sharing the same resources pool. :group 'org-export-taskjuggler :type 'boolean) +(defcustom org-taskjuggler-default-project-configuration + '() + This string variable can be used to customize additional project fields + :group 'org-export-taskjuggler + :type '(repeat (string :tag Project config))) ;;; Hooks @@ -471,7 +476,10 @@ doesn't have any start date defined. ITEM is a headline. Return value is a string or nil if ITEM doesn't have any end date defined. (let ((deadline (org-element-property :deadline item))) -(and deadline (org-timestamp-format deadline %Y-%02m-%02d +(or + (and deadline (org-timestamp-format deadline %Y-%02m-%02d)) + (and (memq 'end org-taskjuggler-valid-task-attributes) + (org-element-property :END item) @@ -715,7 +723,7 @@ PROJECT is a headline. INFO is a plist used as a communication channel. If no start date is specified, start today. If no end date is specified, end `org-taskjuggler-default-project-duration' days from now. - (format project %s \%s\ \%s\ %s %s {\n}\n + (format project %s \%s\ \%s\ %s %s {%s\n}\n (org-taskjuggler-get-id project info) (org-taskjuggler-get-name project) ;; Version is obtained through :TASKJUGGLER_VERSION: @@ -726,7 +734,10 @@ days from now. (format-time-string %Y-%m-%d)) (let ((end (org-taskjuggler-get-end project))) (or (and end (format - %s end)) -(format +%sd org-taskjuggler-default-project-duration) +(format +%sd org-taskjuggler-default-project-duration))) + (mapconcat + 'org-element-normalize-string + org-taskjuggler-default-project-configuration ))) (defun org-taskjuggler--build-resource (resource info) Return a resource declaration. @@ -806,7 +817,7 @@ a unique id will be associated to it. (milestone (or (org-element-property :MILESTONE task) (not (or (org-element-map (org-element-contents task) 'headline - 'identity info t) ; Has task any child? + 'identity info t) ; Has task any child? effort (org-element-property :LENGTH task) (org-element-property :DURATION task) @@ -828,11 +839,15 @@ a unique id will be associated to it. (format depends %s\n (org-taskjuggler-format-dependencies depends task info))) (and allocate - (format purge %s\n allocate %s\n - ;; Compatibility for previous TaskJuggler versions. - (if (= org-taskjuggler-target-version 3.0) allocate -allocations) - allocate)) + (concat (format purge %s\n + ;; Compatibility for previous TaskJuggler versions. + (if (= org-taskjuggler-target-version 3.0) allocate + allocations)) + ;;support for several allocations divided by separator + (mapconcat #'(lambda (allocation) + (format allocate %s\n allocation)) + (org-split-string allocate [ ,]* +) + ))) (and complete (format complete %s\n complete)) (and effort (format effort %s\n -- 2.4.2
Re: [O] Filters lost after reviving buried, sticky agenda
ghItlhpu' Daimrod daim...@gmail.com: My question is now: is this correct, or did I understand something wrong? If my understanding is correct, how this bug be fixed more elegantly? It doesn't work at startup when agenda hasn't been built yet. The following patch does seem to fix that. If it's ok, I can push it. It works for me. Thanks! Daniel -- ~~ Dr. rer. nat. Daniel Borchmann Postdoctoral Research Associate Technische Universität Dresden Fakultät Informatik Institut für Theoretische Informatik Lehrstuhl für Automatentheorie 01062 Dresden Tel.: +49 351 463-34059 E-Mail: daniel.borchm...@tu-dresden.de ~~ signature.asc Description: PGP signature
Re: [O] org-log-reschedule: inactive time-stamp instead
Karl Voit devnull at Karl-Voit.at writes: Those active time-stamps clutter my daily agenda a bit. Therefore: ,[ what I would like to get ] | :LOGBOOK: | - Rescheduled from [2014-12-17 Mi] on [2014-12-16 Di 17:01] | :END: ` So can someone please add an option for this variable to get inactive time-stamps? Hi Karl, did you find a solution in the meantime? I'm having the same problem and the active timestamps are also bothering me as rescheduled tasks which originally were scheduled for today stay in my daily agenda and clutter it. I wonder if I get something wrong, but in the variable org-log-note-headings I see Heading when rescheduling String: Rescheduled from %S on %t Shouldn't the %S represent a TODO state (which makes no sense)? Can I replace it by an inactive timestamp? Kind regards Martin
Re: [O] org-log-reschedule: inactive time-stamp instead
M elwood...@web.de writes: Karl Voit devnull at Karl-Voit.at writes: Those active time-stamps clutter my daily agenda a bit. Therefore: ,[ what I would like to get ] | :LOGBOOK: | - Rescheduled from [2014-12-17 Mi] on [2014-12-16 Di 17:01] | :END: ` So can someone please add an option for this variable to get inactive time-stamps? Hi Karl, did you find a solution in the meantime? I'm having the same problem and the active timestamps are also bothering me as rescheduled tasks which originally were scheduled for today stay in my daily agenda and clutter it. I wonder if I get something wrong, but in the variable org-log-note-headings I see Heading when rescheduling String: Rescheduled from %S on %t Shouldn't the %S represent a TODO state (which makes no sense)? Can I replace it by an inactive timestamp? Hi, I had the same problem and implemented a quick'n dirty solution : (defun dmd-org-active-timestamp-to-inactive-when-rescheduled () Convert some variable with active timestamp to inactive one. (when (eq org-log-note-purpose 'reschedule) (setq org-log-note-previous-state (substitute ?\] ?\ (substitute ?\[ ?\ org-log-note-previous-state :test #'char-equal) :test #'char-equal (add-hook 'org-log-buffer-setup-hook 'dmd-org-active-timestamp-to-inactive-when-rescheduled) It works for me but it should probably be fixed in org-mode itself. Best, -- Daimrod/Greg signature.asc Description: PGP signature
[O] ox-odt: headline export breaks if org-export-with-section-numbers set to nil
In an up to date master branch, I'm noticing a bug in ODT export: if org-export-with-section-numbers is set to nil, ox-odt exports headlines as plain-text paragraphs. With emacs -q, evaluate: (setq org-export-with-section-numbers nil org-export-with-toc nil org-export-preserve-breaks nil org-export-email-info nil ) then try to export to odt using the builtin org(emacs 25.1, so org 8.2.10, in my case). Headlines should export fine. Now try with a recent git org; headlines should fail to export. At least, that's my experience. I tried to bisect by checking out old commits and running make-all, then org-reload; but the problem persisted even for pretty old commits, so I think I'm not doing it right. Would very much welcome any help! thanks, Matt
Re: [O] org-log-reschedule: inactive time-stamp instead
Von: Nicolas Goaziou m...@nicolasgoaziou.fr Datum: Thu, 25 Jun 2015 14:20:40 +0200 Betreff: Re: org-log-reschedule: inactive time-stamp instead Hello, I wonder if I get something wrong, but in the variable org-log-note-headings I see Heading when rescheduling String: Rescheduled from %S on %t Shouldn't the %S represent a TODO state (which makes no sense)? %S represents the last state. If you change a TODO keyword, is also a TODO keyword (or lack thereof). If you alter a timestamp, it is that timestamp. Can I replace it by an inactive timestamp? Is there any use case for an active timestamp at this location anyway? If there is not, we could automatically convert it to an inactive timestamp. WDYT? Salut Nicolas, thanks a lot for your explanations! If the timestamp would automatically be converted to an inactive one, hat would be perfect from my point of view. How can we achievve that? (I'm sorry, but I am still quite clueless concerning ELISP :-) ) Kind regards Martin
Re: [O] Unclear org-icompleting-read interface
Hi, Nicolas Goaziou m...@nicolasgoaziou.fr writes: Oleh Krehel ohwoeo...@gmail.com writes: The current `org-icompleting-read' is defined as taking only `rest args', which can be as many as 8, all of them without a name. I propose to update the definition to: (cl-defun org-icompleting-read (prompt collection key predicate require-match initial-input hist def inherit-input-method) ;; ... ) I'd rather not use cl-defun in code base, which is slightly more difficult to understand, and hardly unavoidable. Moreover, `org-icompleting-read' is not harder to read as `completing-read' anyway. I agree. It's confusing how the docstring and the λ is written, but it's just a front-end for completing-read. A reference to completing-read should be added to the docstring. This change would make the calls to `org-icompleting-read' much easier to read. While we're at it, I suggest instead to make `org-icompleting-read' an obsolete alias for `completing-read' in Org 8.4. `partial-completing-mode' is obsolete since Emacs 24.1. That was my feeling about org-icompleting-read as well last time I looked at it (also a message by Oleh). For org 8.4 we can also get rid of all the iswitchb stuff. Good times ahead... Rasmus -- This is the kind of tedious nonsense up with which I will not put
Re: [O] Unclear org-icompleting-read interface
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Moreover, `org-icompleting-read' is not harder to read as `completing-read' anyway. I disagree on this. `completing-read' at least declares its own argument list. So it's possible to distinguish which argument is which, albeit with some effort for a large amount of arguments. For example, in this case there are 5 args, the first two I know by heart. Not the other three. (setq prop (org-icompleting-read Property: (mapcar 'list (org-buffer-property-keys t nil t)) nil nil prop)) And the arglist: rest args, instead of prompt collection predicate require-match initial-input hist def inherit-input-method. Here's how it would look like for a `cl-defun' variant: (org-icompleting-read Property: (mapcar 'list (org-buffer-property-keys t nil t)) :initial-input prop) Down to 3 arguments from 5, and the last one is very easy to understand, even without eldoc. In any case this also solves the problem of the argument list: (define-obsolete-function-alias 'org-icompleting-read 'completing-read)
Re: [O] [BUG] org-clock-display is partial (only some entries are counted)
Hello Nicolas, Nicolas Goaziou writes: Sebastien Vauban writes: I still consider the default behavior as dangerous -- because the novice is not aware (except if obvious) that some clock times may be dropped in the computation, and I find that scary --, but thanks anyway for the workaround. Would you mind testing the following patch, then? `untilnow' is just a suggestion. Applied the patch: --8---cut here---start-8--- patching file lisp/org-clock.el Hunk #1 succeeded at 441 (offset 1 line). Hunk #2 succeeded at 2091 (offset 3 lines). Hunk #3 succeeded at 2200 (offset 3 lines). Hunk #4 succeeded at 2216 (offset 3 lines). --8---cut here---end---8--- Tested on one of my real files, with: ┌ │ org-clock-display-default-range is a variable defined in `org-clock.el'. │ Its value is untilnow │ Original value was thisyear │ │ Documentation: │ Default range when displaying clocks with `org-clock-display'. │ │ You can customize this variable. └ Got this: --8---cut here---start-8--- Debugger entered--Lisp error: (error Specified time is not representable) encode-time(0 0 0 1 1 1) (setq ts (encode-time s m h d month y) te (encode-time (or s1 s) (or m1 m) (or h1 h) (or d1 d) (or month1 month) (or y1 y))) (let* ((tm (decode-time (or time (current-time (s 0) (m (nth 1 tm)) (h (nth 2 tm)) (d (nth 3 tm)) (month (nth 4 tm)) (y (nth 5 tm)) (dow (nth 6 tm)) (ws (or wstart 1)) (ms (or mstart 1)) (skey (symbol-name key)) (shift 0) (q (cond ((= (nth 4 tm) 10) 4) ((= (nth 4 tm) 7) 3) ((= (nth 4 tm) 4) 2) ((= (nth 4 tm) 1) 1))) s1 m1 h1 d1 month1 y1 diff ts te fm txt w date interval tmp shiftedy shiftedm shiftedq) (cond ((string-match ^[0-9]+$ skey) (setq y (string-to-number skey) m 1 d 1 key (quote year))) ((string-match ^\\([0-9]+\\)-\\([0-9]\\{1,2\\}\\)$ skey) (setq y (string-to-number (match-string 1 skey)) month (string-to-number (match-string 2 skey)) d 1 key (quote month))) ((string-match ^\\([0-9]+\\)-[wW]\\([0-9]\\{1,2\\}\\)$ skey) (require (quote cal-iso)) (setq y (string-to-number (match-string 1 skey)) w (string-to-number (match-string 2 skey))) (setq date (calendar-gregorian-from-absolute (calendar-iso-to-absolute (list w 1 y (setq d (nth 1 date) month (car date) y (nth 2 date) dow 1 key (quote week))) ((string-match ^\\([0-9]+\\)-[qQ]\\([1-4]\\)$ skey) (require (quote cal-iso)) (setq y (string-to-number (match-string 1 skey))) (setq q (string-to-number (match-string 2 skey))) (setq date (calendar-gregorian-from-absolute (calendar-iso-to-absolute (org-quarter-to-date q y (setq d (nth 1 date) month (car date) y (nth 2 date) dow 1 key (quote quarter))) ((string-match ^\\([0-9]+\\)-\\([0-9]\\{1,2\\}\\)-\\([0-9]\\{1,2\\}\\)$ skey) (setq y (string-to-number (match-string 1 skey)) month (string-to-number (match-string 2 skey)) d (string-to-number (match-string 3 skey)) key (quote day))) ((string-match \\([-+][0-9]+\\)$ skey) (setq shift (string-to-number (match-string 1 skey)) key (intern (substring skey 0 (match-beginning 1 (if (and (memq key (quote (quarter thisq))) ( shift 0)) (error Looking forward with quarters isn't implemented (if (= shift 0) (progn (cond ((eq key (quote yesterday)) (setq key (quote today) shift -1)) ((eq key (quote lastweek)) (setq key (quote week) shift -1)) ((eq key (quote lastmonth)) (setq key (quote month) shift -1)) ((eq key (quote lastyear)) (setq key (quote year) shift -1)) ((eq key (quote lastq)) (setq key (quote quarter) shift -1) (cond ((memq key (quote (day today))) (setq d (+ d shift) h 0 m 0 h1 24 m1 0)) ((memq key (quote (week thisweek))) (setq diff (+ (* -7 shift) (if (= dow 0) (- 7 ws) (- dow ws))) m 0 h 0 d (- d diff) d1 (+ 7 d))) ((memq key (quote (month thismonth))) (setq d (or ms 1) h 0 m 0 d1 (or ms 1) month (+ month shift) month1 (1+ month) h1 0 m1 0)) ((memq key (quote (quarter thisq))) (cond (( (+ (- q 1) shift) 0) (setq interval (* -1 (+ ... shift))) (setq tmp (org-floor* interval 4)) (if (= 0 (nth 1 tmp)) (setq shiftedy (- y ...) shiftedm 1 shiftedq 1) (setq shiftedy (- y ...) shiftedm (- 13 ...) shiftedq (- 5 ...))) (setq d 1 h 0 m 0 d1 1 month shiftedm month1 (+ 3 shiftedm) h1 0 m1 0 y shiftedy)) (( (+ q shift) 0) (setq shiftedq (+ q shift)) (setq shiftedy y) (setq d 1 h 0 m 0 d1 1 month (+ 1 (* 3 ...)) month1 (+ 4 (* 3 ...)) h1 0 m1 0 ((memq key (quote (year thisyear))) (setq m 0 h 0 d 1 month 1 y (+ y shift) y1 (1+ y))) ((eq key (quote untilnow)) (setq y1 y month1 m d1 d m 0 h 0 d 1 month 1 y 1)) ((eq key (quote interactive)) nil) (t (user-error No such time block %s key))) (setq ts (encode-time s m h d month y) te (encode-time (or s1 s) (or m1 m) (or h1 h) (or d1 d) (or month1 month) (or y1 y))) (setq fm (cdr org-time-stamp-formats)) (cond ((memq key (quote (day today))) (setq txt (format-time-string %A, %B %d, %Y ts))) ((memq key (quote
Re: [O] Unclear org-icompleting-read interface
Hello, Rasmus ras...@gmx.us writes: I agree. It's confusing how the docstring and the λ is written, but it's just a front-end for completing-read. A reference to completing-read should be added to the docstring. Isn't it already the case? That was my feeling about org-icompleting-read as well last time I looked at it (also a message by Oleh). For org 8.4 we can also get rid of all the iswitchb stuff. Good times ahead... Indeed. Can't wait... Regards, -- Nicolas Goaziou
[O] Preventing italics in code blocks exported to HTML
I'm writing a document that has a number of URL examples, like this: #+BEGIN_SRC js GET http://sandbox.api.xyz.com/sample/login #+END_SRC The problem is that when I export to HTML, everything following the http: is italicized (and blue). Is there any way to suppress that? Thanks, -pd
Re: [O] Unclear org-icompleting-read interface
Hi, Nicolas Goaziou m...@nicolasgoaziou.fr writes: Rasmus ras...@gmx.us writes: I agree. It's confusing how the docstring and the λ is written, but it's just a front-end for completing-read. A reference to completing-read should be added to the docstring. Isn't it already the case? I don't know. I have been saying stupid things recently. Lack of sleep is probably the reason, but I like to think that somehow my org version is messed up. org-icompleting-read is a compiled Lisp function in /usr/share/emacs/site-lisp/org/ (org-icompleting-read rest ARGS) Completing-read using ‘ido-mode’ or ‘iswitchb’ speedups if available. A lot of older org functions have terrible documentation. I had to study the code, several calls of org-icompleting-read, and completion-read to understand what it was doing. That was my feeling about org-icompleting-read as well last time I looked at it (also a message by Oleh). For org 8.4 we can also get rid of all the iswitchb stuff. Good times ahead... Indeed. Can't wait... Me to. I hope I will have more time in Eternal September. Rasmus -- May the Force be with you
Re: [O] [BUG] org-clock-display is partial (only some entries are counted)
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: Applied the patch: [...] Tested on one of my real files, with: [...] Got this: Debugger entered--Lisp error: (error Specified time is not representable) [...] BTW, `untilnow' is not proposed when TAB'ing on `C-u C-u C-c C-x C-d'. Time for another take on this. What about the following patch? Thank you for the feedback. Regards, -- Nicolas Goaziou From d22786a9542ff285339d61bcc1d0c364233f7a73 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou m...@nicolasgoaziou.fr Date: Fri, 20 Feb 2015 11:35:16 +0100 Subject: [PATCH] org-clock: Add `untilnow' time block MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/org-clock.el (org-clock-special-range): Handle `untilnow' range. (org-clock-display-default-range): Add `untilnow' as valid range. (org-clock-display): Offer `untilnow' as a possible range. * doc/org.texi (The clock table): Document `untilnow' Suggested-by: Sébastien Vauban --- doc/org.texi | 1 + lisp/org-clock.el | 260 ++ 2 files changed, 144 insertions(+), 117 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 8ec8a51..9dc4db9 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -6648,6 +6648,7 @@ be selected: thisweek, lastweek, thisweek-@var{N} @r{a relative week} thismonth, lastmonth, thismonth-@var{N} @r{a relative month} thisyear, lastyear, thisyear-@var{N} @r{a relative year} + untilnow @r{Use @kbd{S-@key{left}/@key{right}} keys to shift the time interval.} :tstart @r{A time string specifying when to start considering times.} @r{Relative times like @code{-2w} can also be used. See} diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 31d6115..d594054 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -441,6 +441,7 @@ This applies when using `org-clock-goto'. (const lastmonth) (const thisyear) (const lastyear) + (const untilnow) (const :tag Select range interactively interactive))) (defvar org-clock-in-prepare-hook nil @@ -1879,9 +1880,9 @@ Use \\[org-clock-remove-overlays] to remove the subtree times. (org-clock-remove-overlays) (let* ((todayp (equal arg '(4))) (customp (member arg '((16) today yesterday - thisweek lastweek thismonth - lastmonth thisyear lastyear - interactive))) +thisweek lastweek thismonth +lastmonth thisyear lastyear +untilnow interactive))) (prop (cond ((not arg) :org-clock-minutes-default) (todayp :org-clock-minutes-today) (customp :org-clock-minutes-custom) @@ -2090,134 +2091,159 @@ buffer and update it. (defun org-clock-special-range (key optional time as-strings wstart mstart) Return two times bordering a special time range. -Key is a symbol specifying the range and can be one of `today', `yesterday', -`thisweek', `lastweek', `thismonth', `lastmonth', `thisyear', `lastyear'. -By default, a week starts Monday 0:00 and ends Sunday 24:00. -The range is determined relative to TIME, which defaults to current time. -The return value is a cons cell with two internal times like the ones -returned by `current time' or `encode-time'. -If AS-STRINGS is non-nil, the returned times will be formatted strings. -If WSTART is non-nil, use this number to specify the starting day of a -week (monday is 1). -If MSTART is non-nil, use this number to specify the starting day of a -month (1 is the first day of the month). -If you can combine both, the month starting day will have priority. - (if (integerp key) (setq key (intern (number-to-string key + +KEY is a symbol specifying the range and can be one of `today', +`yesterday', `thisweek', `lastweek', `thismonth', `lastmonth', +`thisyear', `lastyear' or `untilnow'. If set to `interactive', +user is prompted for range boundaries. It can be a string or an +integer. + +By default, a week starts Monday 0:00 and ends Sunday 24:00. The +range is determined relative to TIME, which defaults to current +time. + +The return value is a list containing two internal times, one for +the beginning of the range and one for its end, like the ones +returned by `current time' or `encode-time' and a string used to +display information. If AS-STRINGS is non-nil, the returned +times will be formatted strings. + +If WSTART is non-nil, use this number to specify the starting day +of a week (monday is 1). If MSTART is non-nil, use this number +to specify the starting day of a month (1 is the first day of the +month). If you can combine both, the month starting day will +have priority. (let* ((tm (decode-time (or time (current-time - (s 0) (m (nth 1 tm)) (h (nth 2 tm)) - (d (nth 3 tm)) (month (nth 4 tm)) (y (nth 5 tm)) + (m (nth 1 tm)) + (h (nth 2 tm)) + (d (nth 3 tm)) + (month (nth 4 tm)) + (y (nth 5 tm)) (dow (nth 6 tm)) - (ws (or
Re: [O] ox-odt: headline export breaks if org-export-with-section-numbers set to nil
Matt Price mopto...@gmail.com writes: In an up to date master branch, I'm noticing a bug in ODT export: if org-export-with-section-numbers is set to nil, ox-odt exports headlines as plain-text paragraphs. With emacs -q, evaluate: (setq org-export-with-section-numbers nil org-export-with-toc nil org-export-preserve-breaks nil org-export-email-info nil ) then try to export to odt using the builtin org(emacs 25.1, so org 8.2.10, in my case). Headlines should export fine. Now try with a recent git org; headlines should fail to export. At least, that's my experience. I tried to bisect by checking out old commits and running make-all, then org-reload; but the problem persisted even for pretty old commits, so I think I'm not doing it right. Would very much welcome any help! thanks, Matt I can't reproduce. Most likely your org is picking up old style files. Check org-odt-styles-dir and make sure that the style Heading_20_1_unnumbered (and friends) is present in this style file. This is my ox-odt setup, where I unfortunately have to explicitly set the dirs because of a combination of how packages are build for my distro since dirs for style files are inferred at setup time. (with-eval-after-load 'ox-odt (setq org-latex-to-mathml-convert-command latexmlmath \%i\ --presentationmathml=%o) ;; This relies on `org-display-custom-times'... (setq org-odt-use-date-fields t) (let ((schema-dir /usr/share/emacs/etc/org/schema/) (style-dir /usr/share/emacs/etc/org/styles)) (when (file-exists-p schema-dir) (setq org-odt-schema-dir-list (list schema-dir))) (when (file-exists-p style-dir) (setq org-odt-styles-dir style-dir Rasmus -- El Rey ha muerto. ¡Larga vida al Rey!
Re: [O] [PATCH] org-mobile: Tiny fix in creating index.org file lisp/org-mobile.el (org-mobile-create-index-file): - eliminate cloning of #+READONLY property in the index.org file; - org-todo-keywor
Hello, Sergey Gordienko gordien...@gmail.com writes: --- lisp/org-mobile.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Thank you for the patch. Did you sign FSF papers? If you didn't, could you add TINYCHANGE at the end of the commit message? Regards, -- Nicolas Goaziou
Re: [O] Org-Mode and iCloud Reminders
I have hopes for rem https://github.com/kykim/rem but right now it is easier to have rem-org than org-rem. -k. Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback keyboard. On Jun 25, 2015, at 19:43, Yuri Niyazov yuri.niya...@gmail.com wrote: Has anyone had any success with getting Mac OS X Reminders working with org-mode? I found this blog post from a few years ago: http://msnyder.info/posts/2012/05/icloud-reminders-orgmode/ and was wondering if anyone's had much success with that or some other syncing mechanism. Thanks!
[O] Turn off html entities in md export
Bitbucket does not allow html entities in markdown See https://bitbucket.org/rustom/vit-projects/wiki/emacs and search for # So how to turn off html entities in md export? And if thats not available any tips on how to hook say a sed-filter to ox-md export?
[O] Org-Mode and iCloud Reminders
Has anyone had any success with getting Mac OS X Reminders working with org-mode? I found this blog post from a few years ago: http://msnyder.info/posts/2012/05/icloud-reminders-orgmode/ and was wondering if anyone's had much success with that or some other syncing mechanism. Thanks!
Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame
On Tuesday, 23 Jun 2015 at 22:31, Nicolas Goaziou wrote: [...] It looks good. Could you turn it into a proper patch with a commit message? Attached. Thanks! -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1231-ga0a883 From 9256af03530bcd34914f32fc1b7fbbba9cb0d80a Mon Sep 17 00:00:00 2001 From: Eric S Fraga e.fr...@ucl.ac.uk Date: Thu, 25 Jun 2015 08:58:34 +0100 Subject: [PATCH] place capture buffer in other window * org-capture.el (org-capture-fill-template): the capture template buffer will be displayed in another window, keeping original window visible if appropriate. --- lisp/org-capture.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index eeb05ca..ac0ed6f 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1590,8 +1590,7 @@ The template may still contain \%?\ for cursor positioning. (unless template (setq template ) (message No template) (ding) (sit-for 1)) (save-window-excursion - (delete-other-windows) - (org-pop-to-buffer-same-window (get-buffer-create *Capture*)) + (org-switch-to-buffer-other-window (get-buffer-create *Capture*)) (erase-buffer) (insert template) (goto-char (point-min)) -- 1.9.1