Re: Allow Currency Symbols and Grouping Commas in Table Numbers
Thanks, I'll take a look at it. Cheers, On Thu, Jun 02 2022, Ihor Radchenko wrote: > "Daniel E. Doherty" writes: > >> Again, thanks for your thoughts. All, however, ruin the look of the >> tables. Could you, perhaps, point me to where in the vast org code, >> strings are converted to numbers in preparation for sending to calc? > > org-table-eval-formula could be a good starting point to look into. > > Best, > Ihor -- ==================== Daniel E. Doherty Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) d...@ddoherty.net
Re: Allow Currency Symbols and Grouping Commas in Table Numbers
Ihor, Again, thanks for your thoughts. All, however, ruin the look of the tables. Could you, perhaps, point me to where in the vast org code, strings are converted to numbers in preparation for sending to calc? I could then play with overriding the function and come up with a work-around. Regards, On Fri, May 27 2022, Ihor Radchenko wrote: > "Daniel E. Doherty" writes: > >> | Description | Amount | >> |--+| >> | Mortage | 125,000.26 | >> | Credit Cards | 6,325.00 | >> | Auto Loan| 14,853.00 | >> |--+| >> | Total| 1323.26| >> #+TBLFM: @5$2=vsum(@I..@II) >> >> Note that the total is wrong. > > Well. This is also a caveat from calc, unfortunately. > > 7.7.2 Grouping Digits >Please note that grouped numbers will not generally be parsed > correctly if re-read in textual form, say by the use of ‘C-x * y’ and > ‘C-x * g’. (*Note Kill and Yank::, for details on these commands.) One > exception is the ‘\,’ separator, which doesn’t interfere with parsing > because it is ignored by TeX language mode. > > So, you can instead do > > | Description | Amount | > |--+-| > | Mortage | 125\,000.26 | > | Credit Cards | 6\,325.00 | > | Auto Loan| 14\,853.00 | > |--+-| > | Total| 146178.26 | > > #+TBLFM: @5$2=vsum(@I..@II) > > Or with > > #+begin_SRC emacs-lisp > (setq org-calc-default-modes > '( calc-internal-prec 12 >calc-float-format (float 8) >calc-angle-modedeg >calc-prefer-frac nil >calc-symbolic-mode nil >calc-language latex ;; <--- this is new compared to default, enable > latex symbols >calc-group-digits t ;; <--- group digits in the results >calc-group-char "\\," >calc-date-format ( "-" MM "-" DD " " Www (" " hh ":" mm)) >calc-display-working-message t)) > #+end_SRC > > > | Description | Amount | > |--+-| > | Mortage | 125\,000.26 | > | Credit Cards | 6\,325.00 | > | Auto Loan| 14\,853.00 | > |--+-| > | Total| 146\,178.26 | > > #+TBLFM: @5$2=vsum(@I..@II) > >> | Description | Amount | >> |--+| >> | Mortage | \dollar 125000.26 | >> | Credit Cards | 6325.00| >> | Auto Loan| 14853.00 | >> |--+| >> | Total| 125000.26 \dollar + 21178. | >> #+TBLFM: @5$2=vsum(@I..@II) >> >> Total is still wrong. > > You need > > | Description | Amount | > |--+------------| > | Mortage | \dollar 125000.26 | > | Credit Cards | \dollar 6325.00| > | Auto Loan| \dollar 14853.00 | > |--+| > | Total| 146178.26 \dollar | > > #+TBLFM: @5$2=vsum(@I..@II) > > Best, > Ihor -- Daniel E. Doherty Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) d...@ddoherty.net
Re: Allow Currency Symbols and Grouping Commas in Table Numbers
On Fri, May 27 2022, Ihor Radchenko wrote: Ihor, thanks for your thoughts, but this does not solve my problem. Here is an sample org table that exemplifies the problem: == #+begin_SRC emacs-lisp (setq org-calc-default-modes '(calc-internal-prec 12 calc-float-format (float 8) calc-angle-modedeg calc-prefer-frac nil calc-symbolic-mode nil calc-language latex ;; <--- this is new compared to default calc-date-format ( "-" MM "-" DD " " Www (" " hh ":" mm)) calc-display-working-message t)) #+end_SRC #+RESULTS: | calc-internal-prec | 12 | calc-float-format | (float 8) | calc-angle-mode | deg | calc-prefer-frac | nil | calc-symbolic-mode | nil | calc-language | latex | calc-date-format | ( - MM - DD Www ( hh : mm)) | calc-display-working-message | t | | Description | Amount | |--+-| | Mortage | $125,000.26 | | Credit Cards | 6,325.00| | Auto Loan| 14,853.00 | |--+-| | Total| :=vsum(@I..@II) | #+TBLFM: @5$2=vsum(@I..@II) -> Error: Invalid field specifier "$125" | Description |Amount | |--+---| | Mortage | 125000.26 | | Credit Cards | 6325.00 | | Auto Loan| 14853.00 | |--+---| | Total| 146178.26 | #+TBLFM: @5$2=vsum(@I..@II) | Description | Amount | |--+| | Mortage | 125,000.26 | | Credit Cards | 6,325.00 | | Auto Loan| 14,853.00 | |--+| | Total| 1323.26| #+TBLFM: @5$2=vsum(@I..@II) Note that the total is wrong. | Description | Amount | |--+| | Mortage | \dollar 125000.26 | | Credit Cards | 6325.00| | Auto Loan| 14853.00 | |--+| | Total| 125000.26 \dollar + 21178. | #+TBLFM: @5$2=vsum(@I..@II) Total is still wrong. > > You can, for example, do > > | 1 USD | 2 USD | 4 USD | 7 USD | > > #+tblfm: $4=vsum($1..$3) > > Emacs calc is able to work with arbitrary ascii symbols or even units. > However, calc does not appear work with unicode. If Emacs calc were to > support unicode, it would automatically work in Org. > > Also, you can > > enable latex in calc via > (setq org-calc-default-modes > '(calc-internal-prec 12 > calc-float-format (float 8) > calc-angle-modedeg > calc-prefer-frac nil > calc-symbolic-mode nil >calc-language latex ;; <--- this is new compared to > default > calc-date-format ( "-" MM "-" DD " " Www (" " hh ":" > mm)) > calc-display-working-message t)) > But it requires the \dollar on every entry. The convention if financial table is to include the currency symbol only on the first item. > Then, the following will work > > | \dollar1 | \dollar2 | \dollar3 | 6 \dollar | > > #+tblfm: $4=vsum($1..$3) Whatever calc is able to handle, calc is not getting the entries interpreted as numbers, or at least not the numbers that a human would understand. My elisp skills are limited, but it seems that org mode could, as a matter of course, strip commas and currency symbols from the numbers before delivering them to calc, and, if the user wants add back the grouping commas and currency symbol with a format specifier in the result. Also, it would be better if the regular expression for recognizing numbers allowed grouping commas and currency symbols to be included by default so that financial-type numbers get right-aligned by default. > > Best, > Ihor -- Daniel E. Doherty Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) d...@ddoherty.net
Allow Currency Symbols and Grouping Commas in Table Numbers
I often use org table to perform calculations and export those tables to LaTeX documents. One thing I always wished I could do with org tables is get it to allow numbers to be decorated with currency symbols, the dollar, euro, yen, etc., as well as grouping commas so that the tables are more suitable for presentation. I can see from the code that there is a function, org-table--number-for-summing, that converts text into numbers for summing, and it would seem it could strip out leading or trailing currency symbols as well as grouping commas before submitting numbers to calc for calculation. Consider this a feature request. I think it would be a very popular enhancement to org. Regards, -- Daniel E. Doherty Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) d...@ddoherty.net
Re: Bug: Display Inline Images from Subdirectory [9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/)]
Kyle, Thanks for the excellent sleuthing. Nailed it. I took your second suggestion, and ended up with the following (for those interested), which works like a charm: = (setq org-startup-with-inline-images t) (require 'subr-x) (defun ded:org-babel-inline-display-subtree () "Redisplay inline images in subtree if cursor in source block with :result graphics." (when (org-in-src-block-p) (let (beg end (default-directory (if-let ((fname (buffer-file-name))) (file-name-directory fname) default-directory))) (save-mark-and-excursion (org-mark-subtree) (setq beg (point)) (setq end (mark))) (when-let ((info (org-babel-get-src-block-info t)) (params (org-babel-process-params (nth 2 info))) (result-params (cdr (assq :result-params params))) ((member "graphics" result-params))) (org-display-inline-images nil nil beg end) (add-hook 'org-babel-after-execute-hook #'ded:org-babel-inline-display-subtree) On Sat, Apr 10 2021, Kyle Meyer wrote: > Daniel E. Doherty writes: > >> Nick, >> >> Thanks for trying this out. I tried this again using emacs -Q with both >> emacs27 and emacs28, and I still get the same result, i.e., it produces >> the link but does not display it inline. Both versions supported >> display of SVG graphics files. > > Hmm, I see the same behavior you're describing: your custom function > doesn't trigger the inline display when :dir is used. > > Let's look at the custom function... > >> | (defun ded:org-babel-inline-display-subtree () >> | "Redisplay inline images in subtree if cursor in source block with >> :result graphics." >> | >> | (when (org-in-src-block-p) >> | (let (beg end) >> | (save-mark-and-excursion >> | (org-mark-subtree) >> | (setq beg (point)) >> | (setq end (mark))) >> | (when-let ((info (org-babel-get-src-block-info t)) >> | (params (org-babel-process-params (nth 2 info))) >> | (result-params (cdr (assq :result-params params))) >> | ((member "graphics" result-params))) >> | (org-display-inline-images nil nil beg end) >> | >> | (add-hook 'org-babel-after-execute-hook >> #'ded:org-babel-inline-display-subtree) > > So, org-display-inline-images is probably the place to start debugging. > You can step through its execution [1] and compare the "no :dir" vs > ":dir" cases. When I did that, I noticed that a > > (expand-file-name "dot/lehman.svg") > > leads to a non-existent "/path/to/dot/dot/lehman.svg" (note the > repeating "dot/"). That's because :dir temporarily changes the > directory, and org-babel-after-execute-hook executes in that context. > > To work around that, you could avoid using org-babel-after-execute-hook > and instead advise org-babel-execute-src-block so that your function is > called afterward. Another approach would be to let-bind the > default-directory in your function: > > (when (org-in-src-block-p) > (let ((default-directory (if-let ((fname (buffer-file-name))) > (file-name-directory fname) >default-directory)) > ...) > ...)) > > > [1] (info "(elisp)Instrumenting") -- Daniel E. Doherty Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) d...@ddoherty.net
Re: Bug: Display Inline Images from Subdirectory [9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/)]
On Tue, Apr 06 2021, Nick Dokos wrote: FWIW, this works fine for me: Org mode version 9.4.4 (release_9.4.4-231-gf46925 @ /home/nick/elisp/org-mode/lisp/) The only things I had to do was 1) to make the above into a tree by adding a headline (otherwise, I guess org-mark-subtree would complain: Not in a subtree) and 2) create the dot subdirectory. Nick, Thanks for trying this out. I tried this again using emacs -Q with both emacs27 and emacs28, and I still get the same result, i.e., it produces the link but does not display it inline. Both versions supported display of SVG graphics files. ,[ Org and Emacs Versions ] | Org version: Org mode version 9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/) | | GNU Emacs 28.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2021-04-02 | | and | | GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19 ` I did the following: 1. Start emacs with the -Q flag 2. Load the file inline.el (shown below) 3. Create a directory 'dots' in the current directory 4. Open the file inline.org (shown below) 5. Run C-c C-c on the dot src block in inline.org and confirm execution of the block 6. Org creates the SVG file, but does not display it. 7. If I remove the ':dir dots' header argument, the image /does/ display inline. ,[ inline.el ] | (org-babel-do-load-languages | 'org-babel-load-languages | '( |(dot . t) |(emacs-lisp . t) |(ruby . t))) | | | (setq org-startup-with-inline-images t) | (require 'subr-x) | (defun ded:org-babel-inline-display-subtree () | "Redisplay inline images in subtree if cursor in source block with :result graphics." | | (when (org-in-src-block-p) | (let (beg end) | (save-mark-and-excursion | (org-mark-subtree) | (setq beg (point)) | (setq end (mark))) | (when-let ((info (org-babel-get-src-block-info t)) | (params (org-babel-process-params (nth 2 info))) | (result-params (cdr (assq :result-params params))) | ((member "graphics" result-params))) | (org-display-inline-images nil nil beg end) | | (add-hook 'org-babel-after-execute-hook #'ded:org-babel-inline-display-subtree) ` ,[ inline.org ] | * Supreme Court | ** Blau v. Lehman, 368 U.S. 403 (1962). | #+begin_SRC dot :file lehman.svg :cmdline -Kdot -Tsvg :results graphics | digraph lehman { | Thomas [shape=circle]; | TideWater [shape = box, label="Tide Water\nSecurities\n(Issuer)"]; | Lehman [shape = box]; | Thomas -> TideWater [label="Director"]; | Lehman -> TideWater [label="Shareholder"]; | Thomas -> Lehman [label="Partner"]; | } | #+end_SRC `---- If others could try this out, I would appreciate it. -- Daniel E. Doherty d...@ddoherty.net
Bug: Display Inline Images from Subdirectory [9.4.4 (9.4.4-33-g5450d6-elpaplus @ /home/ded/.emacs.d/elpa/org-plus-contrib-20210322/)]
nk) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("roam" :follow org-roam-link-follow-link) ("man" :follow org-man-open :export nil) ("id" :follow org-id-open) ("elfeed" :follow elfeed-link-open :store elfeed-link-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi)) org-roam-capture-function 'org-capture org-html-format-headline-function 'org-html-format-headline-default-function org-caldav-inbox "/home/ded/work/Projects/Nextcloud.org" outline-minor-mode-hook-hook '(outline-minor-faces-add-font-lock-keywords) org-metaup-hook '(org-babel-load-in-session-maybe) org-caldav-save-directory "/home/ded/work/Projects/" org-refile-allow-creating-parent-nodes t org-agenda-include-diary t org-startup-with-inline-images t org-footnote-define-inline t org-speed-commands-user '(("0" . delete-window) ("1" . delete-other-windows) ("2" . split-window-vertically) ("3" . split-window-horizontally) ("h" . hide-other) ("k" . org-kill-note-or-show-branches) ("r" . org-reveal) ("s" . org-save-all-org-buffers) ("z" . org-add-note) ("J" . org-clock-goto)) org-return-follows-link t org-outline-path-complete-in-steps nil org-icalendar-combined-agenda-file "/home/ded/work/Projects/cal/org.ics" org-noter-always-create-frame nil org-special-ctrl-a/e t org-table-header-line-p t org-caldav-calendar-id "D7FBFCCB-DED5-492E-9E60-E30D8767BF0C" org-src-lang-modes '(("dot" . graphviz-dot) ("mathematica" . wolfram) ("redis" . redis) ("php" . php) ("arduino" . arduino) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql)) org-tab-before-tab-emulation-hook '(org-tempo-complete-tag) org-icalendar-categories '(category local-tags) org-texinfo-format-inlinetask-function 'org-texinfo-format-inlinetask-default-function org-caldav-resume-aborted 'always org-clock-sound "/home/ded/.emacs.d/ded/etc/pill.ogg" org-list-allow-alphabetical t org-texinfo-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] ) -- Daniel E. Doherty d...@ddoherty.net
Re: [O] Dates in Tables Should be Inactive
Nicolas Goaziou writes: > > Agreed. In master, I pushed a change that transforms all computed dates > as inactive time stamps. Nicolas, just say this, and thanks for the quick action. Regards, -- ==== Daniel E. Doherty Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) ded-...@ddoherty.net
Re: [O] Title/Author missing in Markdown export?
On Tue, 28 Apr 2015 09:08:45 -0500, Rasmus wrote: > > Andreas Hilboll writes: > > > Using the current git master, any exported Markdown doesn't include > > title, author, and date information. Is this desired behaviour, or is > > it a bug? > > AFAIK it's a "feature". > > -- > ⠠⠵ > > Rasmus, Not sure whether you were being ironic on this, but I've noticed that exports in LaTeX, odt, and HTML, not longer seem to pick up the buffer name as the title as formerly and as the manual claims. `TITLE' The title to be shown (otherwise derived from buffer's name). You can use several such keywords for long titles. Same is true of author: `AUTHOR' The document author (`user-full-name'). I rather liked having this be the default with the option to change it. So, is this the intended behavior, or is the manual wrong? Regards, Dan Doherty
[O] Org-crypt encrypting PROPERTIES?
I am trying to use org-crypt to encrypt certain headings, but when I invoke org-crypt-entry on an entry with properties, it encrypts the properties as well. From the manual, "Org-crypt will encrypt the text of an entry, but not the headline, or properties" it would appear that its not supposed to do that. It causes a problem if the file is synced with org-caldav, which adds an UID property if one does not exist. To it, an encrypted entry always looks like the property does not exist, so it always adds a new one, resulting in a series of nested encryptions. I can recover the original only by decrypting, deleting the PROPERTIES drawer, and repeating until the clear text appears. For example, with this entry: = * Test this with Crypt :PROPERTIES: :JUNK: Nothing :END: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. = After I run org-encrypt-entry on the headline, I get this: = * Test this with Crypt -BEGIN PGP MESSAGE- Version: GnuPG v1 hQEMA3KA9hHAqfLwAQf+I7AWvahZROMa7TMSf4vTJ20JBYjBNDecceQYjDEwmaaC LRhsqF984JGmudFupBTMIDS6okx6HE3Ko7Pm/H4wmCH5t6V8uolM4Hz0acP0uNE6 BmgAEUNrchIfJZeBR6JYjQA93d3h/05q6si1VBgVnhKyXLkJhL8B6QUCiMZQ80qQ aWiD2RU7t0CViFrIpbkhOlH7lpTtrO9qUW9qQtjBRAamsnjYYna42i7cGbOYp0aW rXyxhRkNfelzrhc7bI8xhOorVr/3gqGpJFCkrrELD4oWHgc1mfZoqk+BZbCJF3yX ZQKUhz2jt5gx+gATYnM3etdPwHW9ASvvKQGA9OkU+tLAtwHJRl7zuCXpYJ2+7DA2 L5USdwgVlfs0jnpatPfhaCkRPD+5JEca0lZVNCZpclJRbk72hmNxeivlOk9ctiXQ QxYo5FaJGElYMZuxXRcUingEFlMH20F7QBPDoDHIVJhjcGTkAfnuXp96upCWoJwu sag0tE5gkuVhnbKVAeVWoNdAamZOzAGsW1Dl2rJyD25zlLwEagGwnmr8NfMd6aIC ZCHv1/DgFXr7zHOZzg2OhHjQj9JI3NwpRej9TPcSX4UTmXrxQcUELI84m5HWuqoJ 10ieoDaWZmmoOaSfoDUF3VCDSEjLSnkhVI0Jxp6V17Po1zjugrjZIoDMRw5Qby87 MEo4o+LKVzDnKoPjYSZMEIAarDG26uf8oBz3Ypb621uqFJo0vcDVYK7jnKJn 7HCihEFi9baRzZGaO72+nMJad/m8K0LlMBoruR5QFoVV43+vNQdRT9x7mwO3DJpN dDe1yRGh6aLQKpQoIrKq5LT4Y+TZXWTWYQ== =GXUz -END PGP MESSAGE- = Notice that the property drawer got encrypted. Am I reading the manual right, that this should not happen? -- ======== Daniel E. Doherty d...@ddoherty.net
Re: [O] Clocktable feature requests
Thanks Charles. I'm still hoping for Org Mode to do this built-in so I can export the table to a format of my choosing. On Mon, 06 Jul 2015 11:21:13 -0500, Charles Millar wrote: > > Hi Dan, > > Maybe Tom Marble's timesheet..el is what you are looking for > > https://github.com/tmarble/timesheet.el > > As I recall if was discussed on this list awhile ago. Also see his interview > with Sacha Chua's interview with Tom > > http://emacslife.com/emacs-chats/chat-tom-marble.html > > Hate to say this, but I still haven't tried it myself. > > > Charlie Millar > On 07/06/2015 12:05 PM, Daniel E. Doherty wrote: > > I typically keep a list of tasks I'm working on in a subtree that is > > simply a bunch of subheads that describe the task, like so: > > > > , > > | * Time Records > > | ** Review filings for Johnson--Morgan > > | CLOCK: [2014-08-27 Wed 09:13]--[2014-08-27 Wed 12:20] => 3:07 > > | ** Discussion with Smith re Johnson possible violation > > | CLOCK: [2014-08-27 Wed 10:35]--[2014-08-27 Wed 10:55] => 0:20 > > | ** Prepare and send demand letter for Johnson > > | CLOCK: [2014-08-28 Mon 11:18]--[2014-08-28 Thu 12:20] => 1:02 > > | ** Forward summary to Smith following on discussion > > | CLOCK: [2014-08-29 Fri 09:35]--[2014-08-29 Fri 09:45] => 0:10 > > | ** Receive and review letter from Willy Wonka re demand > > | CLOCK: [2014-09-11 Thu 09:38]--[2014-09-11 Thu 10:39] => 1:01 > > | ** Prepare reply to Wonka response letter > > | CLOCK: [2014-09-11 Thu 10:40]--[2014-09-11 Thu 11:30] => 0:50 > > ` > > > > I clock in and out of tasks as I work on them. There is typically no > > 'SCEDULED' or 'DEADLINE' associated with the tasks. > > > > I would like to produce a clocktable that works as a passible bill. > > > > There are two things that make this difficult: > > > > 1. I would like the clocktable to have a column that indicates the date on > > which the activity took place. > > > > 2. I would like the an optional 'Rate' and 'Charge' columns to be added > > > > As to 1: > > > > The timestamp feature almost takes care of 1, except that it will not use > > the > > CLOCK property to set the timestamp. Using the date (optional time) at > > which > > the CLOCK started would work as a good timestamp, and probably better than > > something like the SCHEDULED or DEADLINE. If the purpose is to indicate > > when > > the activity occurred, it would seem that the best order for picking the > > time > > stamp would be something like TIMESTAMP, TIMESTAMP_IA, CLOCK (begin), > > SCHEDULED, then DEADLINE, that is from more specific to more general. > > > > As to 2: > > > > With an option like :rate set to, say, 50, the time column could be > > converted > > to dollars (or whatever currency) at rate * hours. It would also be nice to > > have that amount summed in the same way that time is summed by levels now. > > > > With those items added, the clocktable would be usable as a billing > > mechanism. As it is now, it makes a nice start, but requires a lot of > > massaging to turn a clocktable into an invoice. > > > > Any chance of getting these features added? > > > > Dan Doherty > > > > > >
[O] Clocktable feature requests
I typically keep a list of tasks I'm working on in a subtree that is simply a bunch of subheads that describe the task, like so: , | * Time Records | ** Review filings for Johnson--Morgan | CLOCK: [2014-08-27 Wed 09:13]--[2014-08-27 Wed 12:20] => 3:07 | ** Discussion with Smith re Johnson possible violation | CLOCK: [2014-08-27 Wed 10:35]--[2014-08-27 Wed 10:55] => 0:20 | ** Prepare and send demand letter for Johnson | CLOCK: [2014-08-28 Mon 11:18]--[2014-08-28 Thu 12:20] => 1:02 | ** Forward summary to Smith following on discussion | CLOCK: [2014-08-29 Fri 09:35]--[2014-08-29 Fri 09:45] => 0:10 | ** Receive and review letter from Willy Wonka re demand | CLOCK: [2014-09-11 Thu 09:38]--[2014-09-11 Thu 10:39] => 1:01 | ** Prepare reply to Wonka response letter | CLOCK: [2014-09-11 Thu 10:40]--[2014-09-11 Thu 11:30] => 0:50 ` I clock in and out of tasks as I work on them. There is typically no 'SCEDULED' or 'DEADLINE' associated with the tasks. I would like to produce a clocktable that works as a passible bill. There are two things that make this difficult: 1. I would like the clocktable to have a column that indicates the date on which the activity took place. 2. I would like the an optional 'Rate' and 'Charge' columns to be added As to 1: The timestamp feature almost takes care of 1, except that it will not use the CLOCK property to set the timestamp. Using the date (optional time) at which the CLOCK started would work as a good timestamp, and probably better than something like the SCHEDULED or DEADLINE. If the purpose is to indicate when the activity occurred, it would seem that the best order for picking the time stamp would be something like TIMESTAMP, TIMESTAMP_IA, CLOCK (begin), SCHEDULED, then DEADLINE, that is from more specific to more general. As to 2: With an option like :rate set to, say, 50, the time column could be converted to dollars (or whatever currency) at rate * hours. It would also be nice to have that amount summed in the same way that time is summed by levels now. With those items added, the clocktable would be usable as a billing mechanism. As it is now, it makes a nice start, but requires a lot of massaging to turn a clocktable into an invoice. Any chance of getting these features added? Dan Doherty
Re: [O] Inserted Heading Starts on Prior Heading's Fold Mark
John, You nailed it. I had that variable set in my custom file to '(org-blank-before-new-entry (quote ((heading) (plain-list-item . auto which is not a proper alist. When I chaned it back to '(org-blank-before-new-entry (quote ((heading . auto) (plain-list-item . auto the bad behavior went away. Thanks a ton for taking a look at this, John. Back to loving org-mode! On Mon, 06 Apr 2015 13:12:21 -0500, John Hendy wrote: > > On Mon, Apr 6, 2015 at 12:05 PM, Daniel E. Doherty > wrote: > > > > I don't know when this started, but recently I've seen the following > > annoying > > behavior from M-RET in org files. > > I have this on my main Org file and just assumed it was due to it > being big and Org having a tough time keeping track of all the various > blocks (src, example, etc.), properties, ids, and whatnot. I figured > I'd messed up the syntax in there somewhere and would just have to > deal with this quirky behavior. > > I think others have experienced this as well (e.g. > http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg00457.html). > > Can you try commenting out: > > #+begin_src .emacs > ;;(setq org-blank-before-new-entry nil) > #_end_src > > I copied my .emacs into a new config, started with emacs -Q, loaded > that file, and then tried your original post's exercise, repeating > after commenting out various lines in my own config file. We both had > the above setting, and that turned out to fix it for me on your test > file. Not sure if there's another interaction between your options vs. > mine, though, so confirmation is needed. > > > John > > > > > I've tried tweaking a number of these settings with no luck. > > > > Any ideas about what is going wrong here? > > > > Dan Doherty > > > > >
[O] Inserted Heading Starts on Prior Heading's Fold Mark
I don't know when this started, but recently I've seen the following annoying behavior from M-RET in org files. Here is a minimal file to demonstrate what I'm seeing lately: == demo.org == * First Header Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. * Second Header === When the headings are completely folded, I see the following, as expected: == demo.org == * First Header... ^* Second Header === With my cursor on the ^, I hit M-RET to insert a new heading between "First Header" and "Second Header", and I get the following: === When the headings are completely folded, I see the following, as expected: == demo.org == * First Header...* ^ * Second Header === In other words, the new heading is being placed after the elipses for the folded content of the first heading. Naturally, I expect the following: == demo.org == * First Header... * ^ * Second Header === I'm trying to determine if this is an odd intereaction from some of my settings, or if it is a bug in the org code. It does the same whether I have org-indent-mode toggled on or off. Does anyone else see this behavior? My emacs-version is: GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2014-10-28 on micah Here are the main org settings from my init file: ,[ init.el ] | #+BEGIN_SRC emacs-lisp :tangle yes | (setq org-directory (expand-file-name "~/Dropbox/Projects/")) | (setq org-agenda-files (concat org-directory "agenda-files")) | (setq | org-attach-directory user-data-dir | org-agenda-include-diary t | org-agenda-span 3 | org-todo-keywords '((sequence "TODO(t)" "WAIT(w)" "|" "DONE(d)" "CNCL(x)")) | org-todo-interpretation 'sequence | org-return-follows-link t | org-cycle-separator-lines 2 | org-completion-use-ido t | org-refile-use-outline-path 'file | org-outline-path-complete-in-steps nil | org-refile-allow-creating-parent-nodes t) | #+END_SRC ` And here is what I have set in my custom.el files: ,[ custom.el ] | #+BEGIN_SRC emacs-lisp | '(org-agenda-span (quote day)) | '(org-blank-before-new-entry (quote ((heading) (plain-list-item . auto | '(org-confirm-babel-evaluate nil) | '(org-entities-ascii-explanatory t) | '(org-export-babel-evaluate nil) | '(org-file-apps |(quote | ((auto-mode . emacs) | ("\\.mm\\'" . default) | ("\\.x?html?\\'" . default) | ("\\.pdf\\'" . default) | ("ods" . "oocalc" | '(org-footnote-fill-after-inline-note-extraction t) | '(org-format-latex-options |(quote | (:foreground "OliveDrab" :background default :scale 1.2 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers | ("begin" "$1" "$" "$$" "\\(" "\\[" | '(org-highlight-latex-and-related (quote (latex))) | '(org-icalendar-include-todo t) | '(org-icalendar-use-plain-timestamp t) | '(org-latex-pdf-process |(quote | ("/usr/bin/pdflatex -interaction nonstopmode -output-directory %o %f" "/usr/bin/pdflatex -interaction nonstopmode -output-directory %o %f" "/usr/bin/pdflatex -interaction nonstopmode -output-directory %o %f"))) | '(org-list-demote-modify-bullet (quote (("+" . "-") ("-" . "*") ("*" . "+" | '(org-list-indent-offset 2) | '(org-log-refile (quote time)) | '(org-modules |(quote | (org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-protocol org-vm org-wl org-w3m))) | '(org-outline-path-complete-in-steps nil) | '(org-pretty-entities-include-sub-superscripts nil) | '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1 | '(org-refile-use-outline-path (quote file)) | '(org-special-ctrl-a/e t) | '(org-special-ctrl-k t) | '(org-src-fontify-natively t) | '(org-src-tab-acts-natively t) | '(org-startup-align-all-tables t) | '(org-startup-folded t) | '(org-table-number-regexp |"^\\([<>]?\\(\\$ *\\)?[-+^.,0-9]*[0-9][-+^.0-9eEdDx()%:]*\\|\\(0[xX]\\)[0-9a-fA-F]+\\|nan\\)$") | '(org-time-stamp-custom-formats (quote ("<%b %d, %Y (%a)>" . "<%b %d, %Y (%
[O] Typo in manual
Carsten et al., I just noticed in footnote 2 of section 2.2 of the org manual, the following typo: , | (2) Clocking only works with headings indented less then 30 stars. ` The 'less then' should be 'less than'. Regards, -- ============ Daniel E. Doherty ded-...@ddoherty.net
Re: [O] /emsp in clock tables
It looks like an alignment bug to me. The \emsp is rendered as a double-width character with org-pretty-entities on, and the table no longer aligns properly. At least it doesn't for me. Try tabbing through the table with org-pretty-entities on when the \emsp char is used for indenting. At Fri, 12 Dec 2014 18:26:39 +0100, Nicolas Goaziou wrote: > > Hello, > > Daniel E. Doherty writes: > > > I am seeing the same thing. When I set org-pretty-entities t, the alignment > > gets confused. I am assuming that the alignment algorithm assumes all > > characters are the same width, but the utf8 rendering of an em-space is > > wider, > > hence the problems. > > > > Perhaps a fix would be for the clocktable to use two en-spaces instead of > > one > > em-space to indent lower levels. It looks to me as though the en-space is > > as > > wide as a single space. > > > > Em-space [ ] > > En-space [ ] > >space [ ] > > > > Using regular ASCII spaces at the beginning get deleted during alignment of > > the table, but not the en-spaces. > > > > I think this is a bug in the implementation of the clocktables. Any chance > > of > > getting this fixed? > > What is the bug? The fact that \emsp is used instead \ensp? > > > Regards, > > -- > Nicolas Goaziou
Re: [O] /emsp in clock tables
I am seeing the same thing. When I set org-pretty-entities t, the alignment gets confused. I am assuming that the alignment algorithm assumes all characters are the same width, but the utf8 rendering of an em-space is wider, hence the problems. Perhaps a fix would be for the clocktable to use two en-spaces instead of one em-space to indent lower levels. It looks to me as though the en-space is as wide as a single space. Em-space [ ] En-space [ ] space [ ] Using regular ASCII spaces at the beginning get deleted during alignment of the table, but not the en-spaces. I think this is a bug in the implementation of the clocktables. Any chance of getting this fixed? At Thu, 11 Dec 2014 11:52:27 -0500, dbo...@mmm.com (J. David Boyd) wrote: > > > I don't remember reading about this here, so hopefully I haven't just missed > it. > > I've found some reference to it on the web, but no resolution. > > Sometime in the last few releases, clock tables have changed the display. > > I now see > > | *Total time* | *2:17* | | | > |---++--+--| > | Tasks | 2:17 | | | > | \emsp Infrastructure || 0:27 | | > | \emsp\emsp WAITING Email || | 0:06 | > > > How can I remove the \emsp artifact and get back the old behavior? > > Advance apologies if this is somewhere in a README that I didn't... > > Dave in Hudson, FL > > >
[O] Feature Request: Move table row groups, like rows?
One thing I use org tables for is to represent a series of accounting transactions, with each group of rows representing a set of entries for the transaction. Like this: |-+---+--+---+---+---+---+---+| | Id | X | Date | Charge| Dr| Cr| C | R | Description| |-+---+--+---+---+---+---+---+| | 206 | | [2010-12-05 Sun] | l:chase visa | | 1,648.62 | x | x | Opening Equity | | 207 | | [2010-12-05 Sun] | q:eq | 1,648.62 | | | | Opening Equity | |-+---+--+---+---+---+---+---+| | 208 | | [2010-12-20 Mon] | l:comm:visa | | 3,859.39 | x | x | Opening Equity | | 209 | | [2010-12-20 Mon] | q:eq | 3,859.39 | | | | Opening Equity | |-+---+--+---+---+---+---+---+| | 211 | | [2010-12-27 Mon] | q:eq | 43,447.85 | | | | Opening Equity | | 210 | | [2010-12-27 Mon] | l:charter one | | 43,447.85 | x | x | Opening Equity | |-+---+--+---+---+---+---+---+| It is sometimes handy to move transactions around, but they have to be moved as a group. It would be nice if org had the ability to do this in a manner as convenient as moving around individual rows. Perhaps, C-M-, C-M- could be bound to such a function. A Bonus feature might be to provide a way to sort groups in a manner similar to rows, using say, the first row in each group for the sort criteria, but moving whole groups as a unit. So I could sort the transactions by date, description, etc. -- Daniel E. Doherty ded-...@ddoherty.net
[O] How to Supress Block Eval on iCalendar Export
I sync my org calendar with my Android phone by periodically running a process that exports my agenda files in iCal format. I have this run periodically, once every four hours or so. My problem is that in combining the agenda files the exporter appears to tangle the file, or in some way run the src blocks in the agenda files. I don't want it to do this since I'm only interested in extracting the appointments and TODOs. It also sometimes throws up prompts about saving a file modified by the processing (I'm guessing). After a weekend, I often have five to ten of these jobs stacked up waiting for me to respond to the prompt. Is there a way to supress running code block in the case of 'icalendar exports? I guess out of curiosity, is it a good idea to be executing them by default for this exporter? Regards, -- Daniel E. Doherty d...@ddoherty.net
Re: [O] Creating hline in table from source block?
And if you are generating this programatically, this works: #+BEGIN_SRC sh :results raw ( echo "|a |b |c |d" echo "|-" echo "|1 |2 |3 |4" echo "|5 |6 |7 |8" ) #+END_SRC -- ============ Daniel E. Doherty
[O] Org LaTeX export not setting default title?
All, I just upgraded to 8.02, so I am trying out the new exporter. Nice. A little nit. When I export a minimal org file, it should use the name of the file or buffer as the title if I set nothing in #+TITLE:, but it seems not to. Here it a minimal Org file named 'Junk.org': == * First Headline * Second Headline == And this is the LaTex, when I do an export LaTeX to buffer: == % Created 2013-05-08 Wed 05:03 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{amstext} \usepackage{hyperref} \tolerance=1000 \author{Daniel E. Doherty} \date{\today} \title{} \hypersetup{ ... Note that the \title is empty, but should be \title{Junk}. I do have some customizations set, but nothing that I can see would affect the title. Anyone else seeing this? Regards, Dan
[O] Table Alignment in presence of \vert{}
All, I am writing an app for bookkeeping that uses regexp's in org tables. They are working great except that they always come up misaligned when the regexp has a \vert{} in it for alternation. Also when tabbing through the file the alignment gets confused as well and appears to miscalculate the length of the entry, taking display of \vert into account. Try tabbing through the following: #+TBLNAME: modes |+-| | Name | Matcher | |+-| | ATM Withdrawal | /atm withdrawal/| | Auto Debit | /(ach\s+(debit\vert{}item))\vert{}transfer fee/ | | Bank Item | /interest payment\vert{}atm\s+.*fee/| | Check | /check image\vert{}^check/ | | Debit Card | /visa check card\vert{}point of sale/ | | Transfer | /(online bnkg\vert{}od coverage) trans(fer)?/ | |+-| Maybe this is a known problem, but I thought I would report it since it comes up alot for me. My org-version is 7.8.11 and Emacs 24.2.1 Thanks
Re: [O] I can't make work 'startup hidestars'
If it helps, I have the following in my init file to make sure the hidden stars stay hidden: #+begin_src emacs-lisp (defun ded-set-org-hide () "Make sure the background and foreground colors of the org-hide face matches the background of the default face." (interactive) (when (featurep 'org) (set-face-attribute 'org-hide nil :foreground (face-attribute 'default :background)) (set-face-attribute 'org-hide nil :background (face-attribute 'default :background (add-hook 'after-init-hook 'ded-set-org-hide) (add-hook 'org-ctrl-c-ctrl-c-hook 'ded-set-org-hide) #+end_src This works fine, but has to be manually re-run if you load a different custom theme. -- ================ Daniel E. Doherty Law Offices of Daniel E. Doherty ded-...@ddoherty.net
[O] Bug?: Table spreadsheet: Inactive dates
All, I notice that in a table, I can use active timestamps, do arithmetic with them, and get meaningful results. However, if I use inactive timestamps, I get different results. I prefer the way active timestamps work, since I can easily do date arithmetic with them. The problem with active timestamps is that they pollute the agenda. Imagine a table with 100 rows of timestammps, all the same date. * Tables with dates ** Active timestamps | Begin | End| Days | |++--| | <2012-09-24 Mon> | <2012-09-25 Tue> |1 | | <2012-09-25 Tue 17:50> | <2012-09-25 Tue 19:37> | 0.074305 | #+TBLFM: $3=@$2-@$1 ** Inactive timestamps | Begin | End| Days | |++--| | [2012-09-24 Mon] | [2012-09-25 Tue] | [-1, Tue - Mon] | | [2012-09-25 Tue 17:50] | [2012-09-25 Tue 19:37] | [0, 0, 321:1850] | #+TBLFM: $3=@$2-@$1 It seems to me that they ought to behave the same, but I would normally want inactiv timestamps when doing calculations. Regards, Dan
[O] Feature Request: Per-file attachment directories
Org Mode-erists: I like the attachment facility of Org for organizing external files related to a project, but it seems to lack an obvious feature. I use a separate org file for each major project, which in my case are law suits. I would like to have a custom attachment directory specified at the top of the file for all attachments related to the project, have it inherited by all headings, and be able to specify a custom directory for a heading relative to that file-wide attachment directory. I have tried this: #+PROPERTY: :ATTACH_DIR_INHERIT: t #+PROPERTY: :ATTACH_DIR: ~/cases/Client Name/Case Name/ but it does not work. When I C-c C-a f to open up the attachment directory on a headline, it gives me an ID-based directory in the data directory instead of the file-wide default. Also, when I C-c C-a s to set a custom attachment directory, it defaults to my org directory. Using the data directory would be fine if I only wanted to access files through Org Mode (and perhaps I should), but I occassionaly have to open a file from outside emacs (say, a spreadsheet from excel on a Windows machine) and finding the file in the ID-based heirarchy is tough. How hard would this be to implement? With this, I can thing of my org-mode file as a kind of annotated dired for a project. Regards, -- Daniel E. Doherty ded-...@ddoherty.net
Re: [O] Pipe character in a table cell?
KJ, Thanks. I had not noticed that little footnote in the Org manual. This allows me to read and display the regular expression, so that's progress. I am a bit concerned about the fate of a naive user who comes to editing the thing, but how naive can you be if your editing regular expressions, right? Regards, Dan At Mon, 28 May 2012 20:05:32 +0530, Jambunathan K wrote: > > Daniel E. Doherty writes: > > > All, > > > > I would like to put a string with an embedded pipe character in the > > cell. The idea is to display regular expressions, which inevitably > > contain pipe characters. I've tried /one|two/, one\|two, "one|two", and > > even > > "one\|two", but they all split the entry into two cells. > > > > Is there anyway to escape the pipe character so that the cell is not > > split by it? > > > > If not, may I suggest this as a feature request. Preferably, allow a > > pipe to be embedded in quotes to be ignored? > > \vert > > > Regards > > > > Dan Doherty > > > > > > --
[O] Pipe character in a table cell?
All, I would like to put a string with an embedded pipe character in the cell. The idea is to display regular expressions, which inevitably contain pipe characters. I've tried /one|two/, one\|two, "one|two", and even "one\|two", but they all split the entry into two cells. Is there anyway to escape the pipe character so that the cell is not split by it? If not, may I suggest this as a feature request. Preferably, allow a pipe to be embedded in quotes to be ignored? Regards Dan Doherty
Re: [O] Adding Easy Templates
Gentlemen: For the record, I combined Carsten and Nick's suggestion, so here is what I now have in my init file, and it works: #+begin_src emacs-lisp (eval-after-load 'org '(progn (add-to-list 'org-structure-template-alist '("m" "#+begin_src emacs-lisp\n?\n#+end_src" "")) (add-to-list 'org-structure-template-alist '("j" "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote" "" #+end_src Carsten, I appreciate the explanation for why my quoting didn't work. I will now be adding many more of these Easy Templates to my init file, they are a great shortcut. Regards, At Wed, 23 May 2012 15:35:23 +0200, Carsten Dominik wrote: > > > On May 23, 2012, at 3:28 PM, Carsten Dominik wrote: > > > Hi Daniel, > > > > you need to quote the entire form, i.e. the progn; > > > > (eval-after-load 'org > > '(progn > > (add-to-list 'org-structure-template-alist > > '("m" "#+begin_src emacs-lisp\n?\n#+end_src")) > > (add-to-list 'org-structure-template-alist > > '("j" > > "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote" > > > > This is because the entire form is stored for execution after loading org - > > but in your case it was > > evaluated immediately... > > > > so what happens is that the result of the second add-to-list command (that > result is the extended list) is stored and then evaluated after org.el is > loaded. So at that point in time, Emacs tries to evaluate > > > (("j" .. > > Which is of cause not valid because the first element in that list `("j" ...' > is not a function. > > - Carsten > > > > > > - Carsten > > > > On May 23, 2012, at 3:10 PM, Daniel E. Doherty wrote: > > > >> All, > >> > >> I really like the Easy Template facility, and would like to add some of > >> my own. However, I am having trouble with the elisp syntax. I would > >> like to add a couple in my init file, but am having no luck. Here is > >> what I have now: > >> = > >> (eval-after-load 'org > >> (progn > >> (add-to-list 'org-structure-template-alist > >> (list '("m" "#+begin_src emacs-lisp\n?\n#+end_src"))) > >> (add-to-list 'org-structure-template-alist > >> (list '("j" > >> "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote") > >> = > >> Which yeilds: > >> = > >> Debugger entered--Lisp error: (invalid-function (("j" "#+begin_quote > >> ||Dr|Cr| > >> |- > >> |?|$|| > >> |||$| > >> #+end_quote"))) > >> = > >> > >> > >> I have also tried this: > >> = > >> (eval-after-load 'org > >> (progn > >> (add-to-list 'org-structure-template-alist > >> '("m" "#+begin_src emacs-lisp\n?\n#+end_src")) > >> (add-to-list 'org-structure-template-alist > >> '("j" > >> "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote" > >> = > >> Which spits out a similar error. I am quoting the list, so I don't > >> understand why elisp is interpteting it as a function. In the first > >> case, I even quote it twice. > >> > >> Any help? > >> > >> Thanks. > >> > >> Dan Doherty > >> > > > > - Carsten > > > > > > > > - Carsten > > > >
[O] Adding Easy Templates
All, I really like the Easy Template facility, and would like to add some of my own. However, I am having trouble with the elisp syntax. I would like to add a couple in my init file, but am having no luck. Here is what I have now: = (eval-after-load 'org (progn (add-to-list 'org-structure-template-alist (list '("m" "#+begin_src emacs-lisp\n?\n#+end_src"))) (add-to-list 'org-structure-template-alist (list '("j" "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote") = Which yeilds: = Debugger entered--Lisp error: (invalid-function (("j" "#+begin_quote ||Dr|Cr| |- |?|$|| |||$| #+end_quote"))) = I have also tried this: = (eval-after-load 'org (progn (add-to-list 'org-structure-template-alist '("m" "#+begin_src emacs-lisp\n?\n#+end_src")) (add-to-list 'org-structure-template-alist '("j" "#+begin_quote\n||Dr|Cr|\n|-\n|?|$||\n|||$|\n#+end_quote" = Which spits out a similar error. I am quoting the list, so I don't understand why elisp is interpteting it as a function. In the first case, I even quote it twice. Any help? Thanks. Dan Doherty
Re: [O] error "Capture abort: (void-function org-pop-to-buffer-same-window)"
Jeff, What I actually did is the following: 1. Define the following function in a file called ded-org-load.el == ded-org-load.el === (require 'cl) (defun ded-add-local-org-to-load-path (dir-list) "Add any org directory found in DIR-LIST to the front of the load-path" (let ((local-dirs dir-list) (org-dirs '()) (org-dir nil)) (dolist (dir (reverse local-dirs) org-dir) (when (setq org-dirs (remove* "^org" (directory-files (expand-file-name dir starter-kit-dir)) :test-not 'string-match)) (setq org-dir dir)) (when org-dirs ;; Sort org-dirs by date to get most recent to car position (setq org-dirs (sort org-dirs (lambda (x y) (string-lessp y x (setq org-dir (concat starter-kit-dir org-dir "/" (car org-dirs))) (add-to-list 'load-path org-dir) = 2. In the main init file, in my case ~/.emacs.d/init.el, I added the following line to load that function before any org-babel stuff takes place. init.el = ;; remember this directory (setq starter-kit-dir (file-name-directory (or load-file-name (buffer-file-name ;;; These lines added to Eric Schulte's starter-kit init.el ;; put package version of org to the front of the load path (load-file (concat starter-kit-dir "src/ded-org-load.el")) (ded-add-local-org-to-load-path '("src" "elpa" "el-get")) ;; load up the starter kit (org-babel-load-file (expand-file-name "starter-kit.org" starter-kit-dir)) ;;; init.el ends here (put 'narrow-to-page 'disabled nil) == 3. The effect of the function is to look for the most recent org distribution in the "src" "elpa" and "el-get" directories, in that order of preference and add that directory to the front of the load-path so it shadows the version that comes distributed with Emacs 24. Hope this helps. Dan At Thu, 5 Jan 2012 11:56:47 -0500, Jeff Horn wrote: > > This did not fix the issue for me. > > 1) Install org from ELPA. > 2) Place (package-initialize) in `init.el`. > 2.5) Remove .elc files. > 3) Restart emacs. > > On Sat, Dec 31, 2011 at 14:33, Eric Belpaire wrote: > > Daniel, > >> > >> One soultion proposed elsewhere on this list is to do > >> (package-initialize) in the primary init.el before starter-kit gets > >> going. That way, it picks up the elpa version of org from the git-go. > > > > > > I confirm that this solution fixed my issue. > > Thanks, Eric > > > > -- > Jeffrey Horn > http://www.failuretorefrain.com/jeff/
Re: [O] error "Capture abort: (void-function org-pop-to-buffer-same-window)"
Eric, I've seen this too. The problem is that the site-file version of org is loaded by starter-kit, then you load a local version in your init file. It looks like the local version is at the front of your load-path, but that's only after your init file runs. One soultion proposed elsewhere on this list is to do (package-initialize) in the primary init.el before starter-kit gets going. That way, it picks up the elpa version of org from the git-go. At Fri, 30 Dec 2011 12:05:55 +0100, Eric Belpaire wrote: > > Hello > > I'm trying to fix Lisp error: (error "Capture abort: (void-function > org-pop-to-buffer-same-window)"). > > I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on > MARVIN > started with the Emacs starter kit and using org-20111229. > > I've done the following analysis: > - function org-pop-to-buffer-same-window found in org-20111229/org-compat.el > - autoload "org-compat.el" in > ~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work > - (require 'org-autoloads) --> doesn't work > - verify load-path --> found "~/.emacs.d/elpa/org-20111229" before > "c:/Usr/emacs/lisp/org" > > What am I missing? > Can someone help me? > > Thanks, > Eric > >
Re: [O] error "Capture abort: (void-function org-pop-to-buffer-same-window)"
Eric, I've seen this too. The problem is that the site-file version of org is loaded by starter-kit, then you load a local version in your init file. It looks like the local version is at the front of your load-path, but that's only after your init file runs. One soultion proposed elsewhere on this list is to do (package-initialize) in the primary init.el before starter-kit gets going. That way, it picks up the elpa version of org from the git-go. At Fri, 30 Dec 2011 12:05:55 +0100, Eric Belpaire wrote: > > Hello > > I'm trying to fix Lisp error: (error "Capture abort: (void-function > org-pop-to-buffer-same-window)"). > > I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on > MARVIN > started with the Emacs starter kit and using org-20111229. > > I've done the following analysis: > - function org-pop-to-buffer-same-window found in org-20111229/org-compat.el > - autoload "org-compat.el" in > ~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work > - (require 'org-autoloads) --> doesn't work > - verify load-path --> found "~/.emacs.d/elpa/org-20111229" before > "c:/Usr/emacs/lisp/org" > > What am I missing? > Can someone help me? > > Thanks, > Eric > > >
Re: [O] Simple source block breaks LaTeX export
Thanks, Nick. That was it alright. Having the package manage in Emacs 24 makes this kind of fix really easy. Regards, At Tue, 13 Dec 2011 19:45:59 -0500, Nick Dokos wrote: > > Daniel E. Doherty wrote: > > > Nick, > > > > Oops, yeah, its version 7.7, as distributed with emacs 24.0.92. I've tried > > exporting to HTML also. It > > works. > > > > This was fixed shortly thereafter. You have to either upgrade or cherry-pick > the fix. The relevant commit is > > , > | $ git show c3631aae7e68565978433cad8c4a2b286e91dfac > | commit c3631aae7e68565978433cad8c4a2b286e91dfac > | Author: Nicolas Goaziou > | Date: Sat Jul 30 12:38:06 2011 +0200 > | > | org-footnote: prevent LaTeX export from catching footnotes in protect > environment > | > | * lisp/org-footnote.el (org-footnote-in-valid-context-p): check > | `org-protected' property before allowing to match a footnote. > | (org-footnote-at-reference-p): remove an obsolete test. It's now done > | in the previous function. > | > | diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el > | index 6fadd28..68b1412 100644 > | --- a/lisp/org-footnote.el > | +++ b/lisp/org-footnote.el > | @@ -171,8 +171,10 @@ (defun org-footnote-in-valid-context-p () > |(save-match-data > | (not (or (org-in-commented-line) > | (org-in-indented-comment-line) > | -(org-in-verbatim-emphasis) > | +;; Avoid protected environments (LaTeX export) > | +(get-text-property (point) 'org-protected) > | ;; Avoid literal example. > | +(org-in-verbatim-emphasis) > | (save-excursion > |(beginning-of-line) > |(looking-at "[ \t]*:[ \t]+")) > | @@ -223,8 +225,7 @@ (defun org-footnote-at-reference-p () > | ;; optional argument of the command. Thus, check > | ;; the `org-protected' property of that command. > | (or (not (org-inside-latex-macro-p)) > | -(and (get-text-property (1- beg) 'org-protected) > | - (not (get-text-property beg 'org-protected) > | +(get-text-property (1- beg) 'org-protected))) > | (list label beg end > | ;; Definition: ensure this is an inline footnote first. > | (and (or (not label) (match-string 1)) > ` > > Nick > > > At Tue, 13 Dec 2011 17:51:05 -0500, > > Nick Dokos wrote: > > > > > > Daniel E. Doherty wrote: > > > > > > > > > > > If I try to export the following org file to LaTeX, I get a stringp > > > > violation. > > > > > > > > == > > > > * Hello > > > > #+begin_src ruby > > > > $f = [] > > > > $f[0] = $f[1] = 1 > > > > #+end_src > > > > == > > > > > > > > Here is the traceback: > > > > == > > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > > > string-match("ORG-LIST-END-MARKER\\'" nil) > > > > > > What version? It works fine with Org-mode version 7.7 > > > (release_7.7.624.gda56) > > > which is not quite the latest, but it's close. I also took the opportunity > > > to pull latest (Org-mode version 7.8.02 (release_7.8.02.2.g490d6a)) and it > > > works fine there too. > > > > > > Nick > > > > >
[O] Simple source block breaks LaTeX export
If I try to export the following org file to LaTeX, I get a stringp violation. == * Hello #+begin_src ruby $f = [] $f[0] = $f[1] = 1 #+end_src == Here is the traceback: == Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("ORG-LIST-END-MARKER\\'" nil) org-export-latex-preprocess((:emph-multiline t :for-backend latex :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :tasks t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil)) org-export-preprocess-string(#("* Hello\n#+begin_src ruby\n $f = []\n $f[0] = $f[1] = 1\n#+end_src\n\n" 0 2 (fontified nil org-category "junk") 2 7 (fontified nil org-category "junk") 7 8 (fontified nil org-category "junk") 8 24 (font-lock-fontified t org-category "Notes" fontified nil) 24 25 (font-lock-fontified t org-category "Notes" fontified nil) 25 27 (font-lock-fontified t org-category "Notes" fontified nil) 27 28 (font-lock-fontified t org-category "Notes" fontified nil) 28 29 (font-lock-fontified t org-category "Notes" fontified nil) 29 30 (font-lock-fontified t org-category "Notes" fontified nil) 30 37 (font-lock-fontified t org-category "Notes" fontified nil) 37 38 (font-lock-fontified t org-category "Notes" fontified nil) 38 39 (font-lock-fontified t org-category "Notes" fontified nil) 39 40 (font-lock-fontified t org-category "Notes" fontified nil) 40 45 (font-lock-fontified t org-category "Notes" fontified nil) 45 46 (font-lock-fontified t org-category "Notes" fontified nil) 46 47 (font-lock-fontified t org-category "Notes" fontified nil) 47 48 (font-lock-fontified t org-category "Notes" fontified nil) 48 54 (font-lock-fontified t org-category "Notes" fontified nil) 54 55 (font-lock-fontified t org-category "Notes" fontified nil) 55 64 (font-lock-fontified t org-category "Notes" fontified nil) 64 65 (org-category "Notes" fontified nil rear-nonsticky t) 65 66 (fontified nil)) :emph-multiline t :for-backend latex :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil :timestamps t :todo-keywords t :tasks t :add-text nil :skip-before-1st-heading nil :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil) org-export-as-latex(nil nil nil nil nil nil) org-export-as-pdf(nil) call-interactively(org-export-as-pdf) org-export(nil) call-interactively(org-export nil nil) recursive-edit() debug(error (error "No window right from selected window")) signal(error ("No window right from selected window")) error("No window %s from selected window" right) windmove-do-window-select(right nil) windmove-right(nil) call-interactively(windmove-right nil nil) = Any ideas what may be causing it? Looks like something going wrong with org-export-footnotes-seen, but that's as much as I can tell. -- Law Offices of Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913.338.7164 (FAX) ded-...@ddoherty.net
Re: [O] Alignment Regexp Should Recognize Currencies
Bastien, I thought this issue was going to die. Thanks for reviving it. I am still interested and would love to hear Carsten's views. Maybe numeric fields could have the grouping character (,) and currency symbols stripped before being used for coumputation? Regards, At Sat, 22 Oct 2011 12:43:55 +0200, bzg wrote: > > Hi Daniel, > > Daniel E. Doherty writes: > > > I noticed that the regular expression for recognizing what columns are > > numeric in a table for purposes of right-aligning does not pick up > > dollar values with commas. > > > > For example, $23,821,415.18 would be treated as "text" and left-aligned, > > which I don't believe is what one would expect. > > To me, values that are right-aligned are those who are ready for further > computation, and letting $3 be right-aligned would be confusing. > > But I understand your need. > > Carsten, what do you think? > > -- > Bastien
[O] Alignment Regexp Should Recognize Currencies
All, I noticed that the regular expression for recognizing what columns are numeric in a table for purposes of right-aligning does not pick up dollar values with commas. For example, $23,821,415.18 would be treated as "text" and left-aligned, which I don't believe is what one would expect. It can be fixed by customizing the variable org-table-number-regexp, like so: ^\([<>]?\(\$ *\)?[-+^.,0-9]*[0-9][-+^.0-9eEdDx()%:]*\| ... \)$ ^ Adding the underlined parts. My question is should this not be the default, perhaps with the Euro symbol and other likely currency symbols added in? Regards, -- ============ Daniel E. Doherty Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland)
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Bastien, Just re-gitted (git pull && make clean && make) and applied your new 't' format specifier, and ... joy! Many thanks for following up on this. I will now retire my old Windows-based invoicing system in favor of org. Great work. Regards, Dan At Wed, 27 Jul 2011 13:25:46 +0200, bzg wrote: > > Hi Daniel, > > Daniel E.Doherty writes: > > > I am trying to take a duration output by CLOCKTABLE and multiply it by > > dollars-per-hour (or dollars-per-second, either way) and get an answer > > in units of dollars. > > I see, thanks for the explanation. > > > Can you suggest a way this can be done? > > Since latest git commit, you can now use ;t instead of ;T as a flag for > durations computations. ;t will output results according to the new > variable `org-table-duration-custom-format', which you can check. > > See this example: > > #+begin_src org > | Task 1 | Task 2 |Total | > |-+--+--| > |2:12 | 1:47 | 03:59:00 | > | 3:02:20 | -2:07:00 | 0.92 | > #+TBLFM: @2$3=$1+$2;T::@3$3=$1+$2;t > #+end_src > > .92 is a fraction of hours, because `org-table-duration-custom-format' > is set to 'hours. > > HTH, > > -- > Bastien
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
At Tue, 26 Jul 2011 11:47:25 -0500, Ryan, Thanks for chiming in. I'm still in the dark on this. I'm hoping a guru will ride to the rescue. Org is without question the best organizational tool I've ever used, and to use it for billing would be a real boon to me, but I'm stuck on this issue at the moment. Regards, Dan A Ryan Reynolds wrote: > > I've been quietly following this thread and I think I should chime in > and say that I'm having the same problem. Maybe it's my lack of > experience with Calc, but I just can't get any formula acting on time > columns formatted as HH:MM to parse it as a number of minutes rather > than a ratio of HH/MM. > > -- > A. Ryan Reynolds >
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Bastien, At Tue, 26 Jul 2011 02:41:51 +0200, bzg wrote: > > Hi Daniel, > > Daniel E.Doherty writes: > > > Bastien, I did not use the T specifier at all. > > Why? > > 'T' is needed for duration computation -- unless you use the > specific calc format for time and date manipulation. > I am trying to take a duration output by CLOCKTABLE and multiply it by dollars-per-hour (or dollars-per-second, either way) and get an answer in units of dollars. Can you suggest a way this can be done? I've tried several variations as set out im my prior posts with no luck. The manual uses the example of using T to add two durations to get a duration. A function like seconds() to convert the duration to an integer would do the trick. Perhaps I'm missing something obvious. Thanks for following this thread. Regards, Dan
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
At Mon, 25 Jul 2011 23:02:38 +0200, bzg wrote: > > The 'T' format does this: > > 1. it converts HH:MM:SS strings to integers (number of seconds) > 2. it applies the formulas to these integers > 3. it formats the output as HH:MM:SS > > So I guess you cannot combine it with "f2" -- let me know if > combining 'T' and 'f2' is the real problem at hand. > Bastien, I did not use the T specifier at all. Here is the table again. I use only the f2 specifier and I get the same result with no specifier. It looks like you are converting to H:M:S form (actually, H:M or M:S form, I can't tell which) even without any format specifier. I think that without the T format specifier, org is taking the time durations to be fractions again. If you look at the fourth line of the body of my table below, the 5:40, when multiplied by 50 yields 25:4. This only makes sense if these numbers are treated as fractions. This was the behaviour that prompted my original question. It looked like it was fixed when I went from org-version 7.5 to 7.6, but it looks like its back again in the latest git pull. | Headline | Time| | | | |---+-+---+--+---| | *Total time* | *28:09* | | | 0 | |---+-+---+--+---| | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 28:09 | | | 0 | | Activities| | 28:09 | | 0 | | DONE Activity Log | | | 0:05 | 0 | | DONE Draft Complaint for Damages | | | 5:40 | 25:4 | | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint | | | 0:32 | 0 | | DONE [#A] Motion for Appointment of Private Process Server| | | 1:24 | 25:12 | | DONE [#A] File Affidavit of Service with Court| | | 0:25 | 0 | | [2010-07-27 Tue 11:16] Phone call from Mark Sheister | | | 0:11 | 0 | | Research regarding compulsory counterclaim, res judicata | | | 1:23 | 50:23 | | Work on brief in opposition to motion to dismiss. | | | 3:03 |50 | | Prepared for Hearing | | | 0:24 | 0 | | Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>| | | 0:30 | 0 | | Hearing on Motion to Dismiss <2010-11-30 Tue 09:00> | | | 1:15 | 10:3 | | Hearing on Motion to Dismiss <2010-12-21 Tue 09:00> | | | 1:09 | 50:9 | | Status Hearing <2011-01-25 Tue 09:00> | | | 1:31 | 50:31 | | Status Hearing <2011-04-26 Tue 09:00> | | | 1:42 | 25:21 | | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | | | 0:04 | 0 | | DONE Call [[bbdb:Sheister]] with counter offer. | | | 0:06 | 0 | | [#B] Draft Interrogatories for Rose, Swords | | | 4:48 | 25:6 | | Argo Status Hearing <2011-06-28 Tue 09:00>| | | 1:09 | 50:9 | | Letter of Discovery Deficiencies | | | 2:48 | 25:12 | #+TBLFM: $5=$4*50;f2 Thanks, Dan.
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Bastien, Maybe I spoke too soon. When I try my original example with an 'f2' format after updating to the latest git, I get the following, so I cannot compute an invoice anymore. That, to me, is the most important application. Has the 'T' format specifier messed up the interpretation of column 4 as a number of minutes for calulation purposes? Regards, | Headline | Time| | | | |---+-+---+--+---| | *Total time* | *28:09* | | | 0 | |---+-+---+--+---| | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 28:09 | | | 0 | | Activities| | 28:09 | | 0 | | DONE Activity Log | | | 0:05 | 0 | | DONE Draft Complaint for Damages | | | 5:40 | 25:4 | | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint | | | 0:32 | 0 | | DONE [#A] Motion for Appointment of Private Process Server| | | 1:24 | 25:12 | | DONE [#A] File Affidavit of Service with Court| | | 0:25 | 0 | | [2010-07-27 Tue 11:16] Phone call from Mark Sheister | | | 0:11 | 0 | | Research regarding compulsory counterclaim, res judicata | | | 1:23 | 50:23 | | Work on brief in opposition to motion to dismiss. | | | 3:03 |50 | | Prepared for Hearing | | | 0:24 | 0 | | Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>| | | 0:30 | 0 | | Hearing on Motion to Dismiss <2010-11-30 Tue 09:00> | | | 1:15 | 10:3 | | Hearing on Motion to Dismiss <2010-12-21 Tue 09:00> | | | 1:09 | 50:9 | | Status Hearing <2011-01-25 Tue 09:00> | | | 1:31 | 50:31 | | Status Hearing <2011-04-26 Tue 09:00> | | | 1:42 | 25:21 | | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | | | 0:04 | 0 | | DONE Call [[bbdb:Sheister]] with counter offer. | | | 0:06 | 0 | | [#B] Draft Interrogatories for Rose, Swords | | | 4:48 | 25:6 | | Argo Status Hearing <2011-06-28 Tue 09:00>| | | 1:09 | 50:9 | | Letter of Discovery Deficiencies | | | 2:48 | 25:12 | #+TBLFM: $5=$4*50;f2 #+END: At Mon, 25 Jul 2011 00:58:24 +0200, bzg wrote: > > Hi Daniel, > > Daniel E. Doherty writes: > > > | Headline > > | Time| | | | > > |---+-+---+--+---| > > | *Total time* > > | *28:09* | | | 0 | > > |---+-+---+--+---| > > | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) > > | 28:09 | | | 0 | > > | Activities > > | | 28:09 | | 0 | > > | DONE Activity Log > > | | | 0:05 | 0 | > > | DONE Draft Complaint for Damages > > | | | 5:40 | 25:4 | > > | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint > > | | | 0:32 | 0 | > > | DONE [#A] Motion for Appointment of Private Process Server > > | | | 1:24 | 25:12 | > > | DONE [#A] File Affidavit of Service with Court > > | | | 0:25 | 0 | > > | [2010-07-27 Tue 11:16] Phone call from Mark Sheister > > | | | 0:11 | 0 | > > | Research regarding compulsory counterclaim, res jud
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Bastien, Here's what I get. This is a really nice feature! The times all look correct and correctly formatted. Thanks for all your work on org. Regards, | Headline | Time| | | | |---+-+---+--+---| | *Total time* | *28:09* | | | 00:00:00 | |---+-+---+--+---| | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 28:09 | | | 00:00:00 | | Activities| | 28:09 | | 00:00:00 | | DONE Activity Log | | | 0:05 | 04:10:00 | | DONE Draft Complaint for Damages | | | 5:40 | 283:20:00 | | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint | | | 0:32 | 26:40:00 | | DONE [#A] Motion for Appointment of Private Process Server| | | 1:24 | 70:00:00 | | DONE [#A] File Affidavit of Service with Court| | | 0:25 | 20:50:00 | | [2010-07-27 Tue 11:16] Phone call from Mark Sheister | | | 0:11 | 09:10:00 | | Research regarding compulsory counterclaim, res judicata | | | 1:23 | 69:10:00 | | Work on brief in opposition to motion to dismiss. | | | 3:03 | 152:30:00 | | Prepared for Hearing | | | 0:24 | 20:00:00 | | Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>| | | 0:30 | 25:00:00 | | Hearing on Motion to Dismiss <2010-11-30 Tue 09:00> | | | 1:15 | 62:30:00 | | Hearing on Motion to Dismiss <2010-12-21 Tue 09:00> | | | 1:09 | 57:30:00 | | Status Hearing <2011-01-25 Tue 09:00> | | | 1:31 | 75:50:00 | | Status Hearing <2011-04-26 Tue 09:00> | | | 1:42 | 85:00:00 | | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | | | 0:04 | 03:20:00 | | DONE Call [[bbdb:Sheister]] with counter offer. | | | 0:06 | 05:00:00 | | [#B] Draft Interrogatories for Rose, Swords | | | 4:48 | 240:00:00 | | Argo Status Hearing <2011-06-28 Tue 09:00>| | | 1:09 | 57:30:00 | | Letter of Discovery Deficiencies | | | 2:48 | 140:00:00 | #+TBLFM: $5=$4*50;T #+END: At Mon, 25 Jul 2011 00:58:24 +0200, bzg wrote: > > Hi Daniel, > > Daniel E. Doherty writes: > > > | Headline > > | Time| | | | > > |---+-+---+--+---| > > | *Total time* > > | *28:09* | | | 0 | > > |---+-+---+--+---| > > | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) > > | 28:09 | | | 0 | > > | Activities > > | | 28:09 | | 0 | > > | DONE Activity Log > > | | | 0:05 | 0 | > > | DONE Draft Complaint for Damages > > | | | 5:40 | 25:4 | > > | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint > > | | | 0:32 | 0 | > > | DONE [#A] Motion for Appointment of Private Process Server > > | | | 1:24 | 25:12 | > > | DONE [#A] File Affidavit of Service with Court > > | | | 0:25 | 0 | > > | [2010-07-27 Tue 11:16] Phone call from Mark Sheister > > | | | 0:11 | 0 | > > | Research regarding compulsory counterclaim, res judicata > > | | | 1:23 | 50:23 | > > | Work on brief in opposition to motion to dismiss.
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
Thanks, Jonathan. That was it. I updated to 7.6 and now all is well. At Thu, 21 Jul 2011 12:34:15 -0400, Jonathan Leech-Pepin wrote: > > Hi, > > Which version of Org are you using? > > 7.6 (archive from org) with very few org-related customizations > (Emacs-Starter-Kit > along with one or two small changes) behaved properly. > > I took your original table and updated the formulas and the values behaved as > whole > numbers rather than fractions > > | Headline | > Time | > | | | > | > ---+-+---+--+--- > | > | *Total time* | > *28:09* | > | | 0 | > | > ---+-+---+--+--- > | > | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | > 28:09 | > | | 0 | > | Activities > | | > 28:09 | | 0 | > | DONE Activity Log > | | > | 0:05 | 250 | > | DONE Draft Complaint for Damages > | | > | 5:40 | 17000 | > | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint > | | > | 0:32 | 1600 | > | DONE [#A] Motion for Appointment of Private Process Server > | | > | 1:24 | 4200 | > | DONE [#A] File Affidavit of Service with Court > | | > | 0:25 | 1250 | > | [2010-07-27 Tue 11:16] Phone call from Mark Sheister > | | > | 0:11 | 550 | > | Research regarding compulsory counterclaim, res judicata > | | > | 1:23 | 4150 | > | Work on brief in opposition to motion to dismiss. > | | > | 3:03 | 9150 | > | Prepared for Hearing > | | > | 0:24 | 1200 | > | Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00> > | | > | 0:30 | 1500 | > | Hearing on Motion to Dismiss <2010-11-30 Tue 09:00> > | | > | 1:15 | 3750 | > | Hearing on Motion to Dismiss <2010-12-21 Tue 09:00> > | | > | 1:09 | 3450 | > | Status Hearing <2011-01-25 Tue 09:00> > | | > | 1:31 | 4550 | > | Status Hearing <2011-04-26 Tue 09:00> > | | > | 1:42 | 5100 | > | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | > | | 0:04 | 200 | > | DONE Call [[bbdb:Sheister]] with counter offer. | > | | 0:06 | 300 | > | [#B] Draft Interrogatories for Rose, Swords > | | > | 4:48 | 14400 | > | Argo Status Hearing <2011-06-28 Tue 09:00> > | | > | 1:09 | 3450 | > | Letter of Discovery Deficiencies > | | > | 2:48 | 8400 | > #+TBLFM: $5=$4*50;Df2 > > Not sure where the issue might be in your case, however the formula should > behave > correctly. > > Jonathan > > On Thu, Jul 21, 2011 at 11:55, Daniel E. Doherty wrote: > > At Thu, 21 Jul 2011 15:37:55 +0200, > Giovanni Ridolfi wrote: > > > > Daniel E. Doherty writes: > > > > > That's certainly thinking outside the box, but I don't think it > > > works. > > > > Actually, Daniel you don't have to *think*, you've to demonstrate > > that it works or that it doesn't /tertium non datur/. > > > > > In your example, 1:09 represents 1/9th in calc's fraction mode, > > > not 1+9/60 which it would have to in order to compute with it. > > Not with GNU/Emacs 23.3 calc. > > > > If you bill 50 per 1 hour, you bill > > > > (/ 50 60.0 ) is 0.83 per minute. > > Agreed. > > > > > If you bill 1 hour + 9 minutes it is 69 minutes > > > > (* 0.83 69) 57.266 = 57.27 > > > > isn't it ? > > > > It is. > > > And the fifth column in my table (see be
Re: [O] CLOCKTABLE multiply time expended by hourly rate?
At Thu, 21 Jul 2011 15:37:55 +0200, Giovanni Ridolfi wrote: > > Daniel E. Doherty writes: > > > That's certainly thinking outside the box, but I don't think it > > works. > > Actually, Daniel you don't have to *think*, you've to demonstrate > that it works or that it doesn't /tertium non datur/. > > > In your example, 1:09 represents 1/9th in calc's fraction mode, > > not 1+9/60 which it would have to in order to compute with it. > Not with GNU/Emacs 23.3 calc. > > If you bill 50 per 1 hour, you bill > > (/ 50 60.0 ) is 0.83 per minute. Agreed. > > If you bill 1 hour + 9 minutes it is 69 minutes > > (* 0.83 69) 57.266 = 57.27 > > isn't it ? > It is. > And the fifth column in my table (see below) does compute 57.27 or not? > Not. At least when I do it. Here's what I get after recalcing your example. | Argo Status Hearing <2011-06-28 Tue 09:00> | | | 1:09 | 0.09 | | Letter of Discovery Deficiencies | | | 2:48 | 0.03 | #+TBLFM: $5=$4*0.83;Df2 Maybe I have a different mode setting or something. You seem to have the $4, or 1:09, being interpreted as 69, but I have it being interpreted as a calc fraction, i.e., 1/9 = 0.. So 0.83 * 0.11 gives me 0.9259, which rounds to 0.9. >You may say: "Ah but this is only one example, you've been lucky!" > I would. > I reply, what about the second line? > > (* (+ 120 48) 0.83) = 139.44 > > Calc is *really* smart, isn't it? Undoubtedly. Apart from Org, my favorite features of Emacs. I'm waiting for vi to duplicate that functionality. Thanks for taking the time to look at this. > > cheers, > Giovanni > > > > > Regards, > > > > At Thu, 21 Jul 2011 13:07:28 +0200, > > Giovanni Ridolfi wrote: > >> > >> Daniel E. Doherty writes: > >> > >> > Hi all, > >> > > >> > I am trying to use orgmode to bill for time. My idea is to add a column > >> > that multiplies the elapsed time column by an hourly rate. > >> > >> what about using a minute rate? > >> > >> (/ 50 60.0) 0.83 so: > >> > >> | Argo Status Hearing <2011-06-28 Tue 09:00> | | | 1:09 | 57.27 | > >> | Letter of Discovery Deficiencies | | | 2:48 | 139.44 | > >> #+TBLFM: $5=$4*0.83;Df2 > >> > >>
[O] CLOCKTABLE multiply time expended by hourly rate?
Hi all, I am trying to use orgmode to bill for time. My idea is to add a column that multiplies the elapsed time column by an hourly rate. Unfortunately, the elapsed time is interpreted (I believe) as a fraction in calc, so, for example, a time of 0:58 becomes a zero. Is there a way to make the elapsed time get formatted as a decimal, or a function to convert it to a decimal, so I can multiply the time by a decimal and get teh right answer. Here is what I'm getting now, using 50 as a multiplier: | Headline | Time| | | | |---+-+---+--+---| | *Total time* | *28:09* | | | 0 | |---+-+---+--+---| | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 28:09 | | | 0 | | Activities| | 28:09 | | 0 | | DONE Activity Log | | | 0:05 | 0 | | DONE Draft Complaint for Damages | | | 5:40 | 25:4 | | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint | | | 0:32 | 0 | | DONE [#A] Motion for Appointment of Private Process Server| | | 1:24 | 25:12 | | DONE [#A] File Affidavit of Service with Court| | | 0:25 | 0 | | [2010-07-27 Tue 11:16] Phone call from Mark Sheister | | | 0:11 | 0 | | Research regarding compulsory counterclaim, res judicata | | | 1:23 | 50:23 | | Work on brief in opposition to motion to dismiss. | | | 3:03 |50 | | Prepared for Hearing | | | 0:24 | 0 | | Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>| | | 0:30 | 0 | | Hearing on Motion to Dismiss <2010-11-30 Tue 09:00> | | | 1:15 | 10:3 | | Hearing on Motion to Dismiss <2010-12-21 Tue 09:00> | | | 1:09 | 50:9 | | Status Hearing <2011-01-25 Tue 09:00> | | | 1:31 | 50:31 | | Status Hearing <2011-04-26 Tue 09:00> | | | 1:42 | 25:21 | | Called Kevin [[bbdb:Stacy]]. Left voicemail to call re settlement offer. | | | 0:04 | 0 | | DONE Call [[bbdb:Sheister]] with counter offer. | | | 0:06 | 0 | | [#B] Draft Interrogatories for Rose, Swords | | | 4:48 | 25:6 | | Argo Status Hearing <2011-06-28 Tue 09:00>| | | 1:09 | 50:9 | | Letter of Discovery Deficiencies | | | 2:48 | 25:12 | #+TBLFM: $5=$4*50;Df2 #+END: Reagards, -- ============ Daniel E. Doherty Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland)
[Orgmode] datetree+file broken?
All, I have the following templates defined for org-capture: , | (setq org-capture-templates | '(("t" "Todo Item" entry | (file+headline org-default-notes-file "Tasks") | "* TODO %? %^G\n %a") | ("p" "Phone Call Log" entry | (file+headline org-default-notes-file "Phone calls") | "* %U Phone call with %:name %^G\n\n %?") | ("i" "Invoice" entry | (file+headline org-default-notes-file "Invoices") | "* %^T %^G\n %?") | ("j" "Journal Entry" entry | (file+datetree (concat org-directory "Journal.org")) | "* Entered on %U\n %i%?\n%a"))) ` But when I hit 'j' at the capture dispatch and make an entry, it goes into my defult notes file, Notes.org, rathern than Journal.org, like it should. Does anyone else get this? -- Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913,338.7164 (FAX) Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) ___ 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] .ics export w/Alarms. Possible?
>>>>> "David" == David A Gershman writes: David> Hello, David> I was wondering if there was a feature in OrgMode to provide David> 'VALARM's when exporting to .ics? David> A sample event created, for example, in Sunbird generated David> this code: David> BEGIN:VALARM TRIGGER;VALUE=DURATION:-PT5M David> DESCRIPTION:Mozilla Alarm: Lunch w/Bob ACTION:DISPLAY David> END:VALARM For what its worth, I vote aye on this too. I am hacking one-way sync with Google calander, and from there to my Windows Mobile phone. I really want my phone to yell at me when I have an appoinment coming up, and would like to use org mode exclusively for calendaring. This feature would be a really great addition to org-mode. Regards all, -- ======== Daniel E. Doherty Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Date Prompt Bug (or Anomoly)
On 06/08/2010 05:27 PM, Nick Dokos wrote: Carsten and Nick, Many thanks, that did it. (I wasn't re-making the .elc's---'Doh). Dan Daniel E. Doherty wrote: Carsten, When I tried this last Saturday, I was reluctant to reply since the git server appeared to be down and your message made me think I did not have the latest git version. I tried it again today, and still no joy. I am using org-mode version 6.36a on emacs 23.1 on ubuntu. The latest entry in the Changelog file is , | 2010-06-08 Christian Egli | | * org-taskjuggler.el (org-export-taskjuggler-old-level): | define local variable to avoid compiler warning. ` The following is straight from an org file: , | Attempted on:<2010-06-08 Tue>. | Entering "3/21":<2021-07-03 Sat>. | Entering "7/21":<2021-07-07 Wed>. ` I assume that the fix would be in the function org-read-date-analyze, but I see no recent Changelog entries mentioning it. Is it possible this got lost while the git server was down? No, it is fixed by the following commit, but 6.36a is too old to include it. Either you did not get the updates you thought you did, or you did not remake your org, or you did not reload the newly made org. Try git show 420dd96768262cb15c8bcf4fa6386361e0327add in your git repository to see whether you have the update. If you don't, pull again. If you do have it, do make clean; make and in emacs M-x org-reload Then M-x org-version should say something like: Org-mode version 6.36trans (release_6.36.155.g420d) HTH, Nick --- commit 420dd96768262cb15c8bcf4fa6386361e0327add Author: Carsten Dominik Date: Fri Jun 4 12:29:31 2010 +0200 Fix the date prompt for american-style dates * lisp/org.el (org-read-date-analyze): Fix regular expression for matching american dates Daniel E. Doherty writes: > In playing around with the date prompt (C-.), I ran across the following > puzzling behavior from rather simple inputs. > > I entered the following on June 1, 2010. Here is a date entered as > "3/15":<2011-03-15 Tue>. It interpreted it as the upcoming March 15 as > expected. > > But here is a date entered as "5/21":<2021-06-05 Sat>. Note how it > interpreted the "21" as the year 2021, not at all what I expected from > the documentation or the analogous "3/15" example. > > Maybe there is some underlying logic here that I'm not getting. Perhaps > it has to do with how 2-digit years are interpreted? > > What's going on here? I am using org-version 6.36trans on emacs 23.1. What was going on here is that the regular expression for matching american-style dates was wrong. It was looking for month numbers in the second field and day numbers in the first field - wrong, of course. diff --git a/lisp/org.el b/lisp/org.el index 64044b4..48fd215 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13942,10 +13942,15 @@ The prompt will suggest to enter an ISO date, but you can also enter anything which will at least partially be understood by `parse-time-string'. Unrecognized parts of the date will default to the current day, month, year, hour and minute. If this command is called to replace a timestamp at point, -of to enter the second timestamp of a range, the default time is taken from the -existing stamp. For example, +of to enter the second timestamp of a range, the default time is taken +from the existing stamp. Furthermore, the command prefers the future, +so if you are giving a date where the year is not given, and the day-month +combination is already past in the current year, it will assume you +mean next year. For details, see the manual. A few examples: + 3-2-5 --> 2003-02-05 feb 15--> currentyear-02-15 + 2/15 --> currentyear-02-15 sep 12 9 --> 2009-09-12 12:45 --> today 12:45 22 sept 0:34 --> currentyear-09-22 0:34 @@ -14191,7 +14196,7 @@ user." t nil ans))) ;; Help matching american dates, like 5/30 or 5/30/7 (when (string-match - "^ *\\([0-3]?[0-9]\\)/\\([0-1]?[0-9]\\)\\(/\\([0-9]+\\)\\)?\\([^/0-9]\\|$\\)" ans) + "^ *\\(0?[1-9]\\|1[012]\\)/\\(0?[1-9]\\|[12][0-9]\\|3[01]\\)\\(/\\([0-9]+\\)\\)?\\([^/0-9]\\|$\\)" ans) (setq year (if (match-end 4) (string-to-number (match-string 4 ans)) (progn (setq kill-year t) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Date Prompt Bug (or Anomoly)
Carsten, When I tried this last Saturday, I was reluctant to reply since the git server appeared to be down and your message made me think I did not have the latest git version. I tried it again today, and still no joy. I am using org-mode version 6.36a on emacs 23.1 on ubuntu. The latest entry in the Changelog file is , | 2010-06-08 Christian Egli | | * org-taskjuggler.el (org-export-taskjuggler-old-level): | define local variable to avoid compiler warning. ` The following is straight from an org file: , | Attempted on: <2010-06-08 Tue>. | Entering "3/21": <2021-07-03 Sat>. | Entering "7/21": <2021-07-07 Wed>. ` I assume that the fix would be in the function org-read-date-analyze, but I see no recent Changelog entries mentioning it. Is it possible this got lost while the git server was down? Regards, Dan Carsten> On Jun 5, 2010, at 7:43 PM, Daniel E. Doherty wrote: >> Carsten, >> >> I pulled the latest git, and it looks like "3/21" and "5/21" work >> as expected. But when I put in "7/21", a date in the near >> future, it is interpreting it a "2021-07-21" rather than the >> "2010-07-21" that one would expect. Carsten> I cannot reproduce this. ___ 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] Pretty org-entities in org-mode buffers
Eric and Carsten, This is a really swell feature, Mr. Cleaver. Just a reminder to those who might be reading this list, enabling CDLateX and org-pretty-entities make typing greek characters *really* easy. Backquote a (`a) is enough to give you alpha, `b beta, etc. These two features work really nicely together. Regards, Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913,338.7164 (FAX) Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) On 05/16/2010 12:51 AM, Carsten Dominik wrote: Hi everyone, a modified version of Eric's code is now included into Org, I just pushed it to the git repo. You can use the command `C-c C-x \' to toggle this feature. The variable `org-pretty-entities' determines if this mode is on by default. Finally, you can use #+STARTUP: entitiespretty #+STARTUP: entitiesplain to change things on a per-file base. Thanks to Eric for this great idea. - Carsten On May 5, 2010, at 6:19 PM, Eric Schulte wrote: Hi, Recently I've been making use of org-entites for exporting my greek/math heavy class notes to HTML. I'm really loving the results. This morning I've started playing around with the below function `org-pretty-entities', which is adapted from Phil Hagelberg's `pretty-lambdas'[1]. Calling this function in an org-mode buffer will have the effect of fontifying all org-entities text strings as the character which they represent, so \Delta is replaced with Δ, \lambda with λ, \in with ∈, and so forth. I've just started playing with this, and I make no guarantees as to it's safety or utility, but I was very pleasantly surprised by the simplicity of the function, and how nice it's been to see my special characters appear in org-mode buffers as I type. #+begin_src emacs-lisp :results silent (defun org-pretty-entities () (interactive) (font-lock-add-keywords nil (mapcar (lambda (el) (list (concat "(?\\(" (regexp-quote "\\") (nth 0 el) "[\s]" "\\)") `(0 (progn (compose-region (match-beginning 1) (- (match-end 1) 1) ,(nth 6 el)) nil org-entities))) (org-pretty-entities) #+end_src To try this out, just evaluate the above code block inside of an org-mode buffer, then starting typing out org-entities. Hope others find this useful. Best -- Eric Footnotes: [1] http://github.com/technomancy/emacs-starter-kit/blob/master/starter-kit-defuns.el#L135 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Date Prompt Bug (or Anomoly)
Carsten, I pulled the latest git, and it looks like "3/21" and "5/21" work as expected. But when I put in "7/21", a date in the near future, it is interpreting it a "2021-07-21" rather than the "2010-07-21" that one would expect. Regards, ============ Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913,338.7164 (FAX) Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) On 06/04/2010 06:00 AM, Carsten Dominik wrote: On Jun 4, 2010, at 11:39 AM, Mikael Fornius wrote: I do not know what version your info reference is but my latest git-versions info page documents the usage of 2/5 date format. Indeed. This was a but in the special regexp looking for american-style dates - I had the parts for day and month the wrong way round. Should be fixed now. Thanks to Daniel for the report, and to everyone else for following up. - Carsten (info "(org) The date/time prompt") Then the info page is wrong and the docstring to `org-read-date' states: "The prompt will suggest to enter an ISO date, but you can also enter anything which will at least partially be understood by `parse-time-string'." What `parse-time-string' understands I can not find well documented and it may be a bug or something there but who knows where its behavior is documented? (I get the same wrong result in my date prompt when trying 5/21. Org-mode version 6.36trans (release_6.36.154.g6bad) GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-01 on eee) -- Mikael Fornius ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Date Prompt Bug (or Anomoly)
Carsten, Thanks for the fix. All, thanks for the follow-up. Regards, Dan > Carsten Dominik writes: > On Jun 4, 2010, at 11:39 AM, Mikael Fornius wrote: >> >> I do not know what version your info reference is but my latest >> git-versions info page documents the usage of 2/5 date format. > Indeed. This was a but in the special regexp looking for > american-style dates - I had the parts for day and month the wrong > way round. > Should be fixed now. > Thanks to Daniel for the report, and to everyone else for > following up. > - Carsten >> >> (info "(org) The date/time prompt") >> >> Then the info page is wrong and the docstring to `org-read-date' >> states: >> >> "The prompt will suggest to enter an ISO date, but you can also >> enter anything which will at least partially be understood by >> `parse-time-string'." >> >> What `parse-time-string' understands I can not find well >> documented and it may be a bug or something there but who knows >> where its behavior is documented? >> >> (I get the same wrong result in my date prompt when trying 5/21. >> >> Org-mode version 6.36trans (release_6.36.154.g6bad) GNU Emacs >> 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-01 >> on eee) >> >> -- >> Mikael Fornius >> >> ___ Emacs-orgmode >> mailing list Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Date Prompt Bug (or Anomoly)
All, In playing around with the date prompt (C-.), I ran across the following puzzling behavior from rather simple inputs. I entered the following on June 1, 2010. Here is a date entered as "3/15": <2011-03-15 Tue>. It interpreted it as the upcoming March 15 as expected. But here is a date entered as "5/21": <2021-06-05 Sat>. Note how it interpreted the "21" as the year 2021, not at all what I expected from the documentation or the analogous "3/15" example. Maybe there is some underlying logic here that I'm not getting. Perhaps it has to do with how 2-digit years are interpreted? What's going on here? I am using org-version 6.36trans on emacs 23.1. Regards, -- ==== Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913,338.7164 (FAX) Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) ___ 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] Error on store-link in Normal File
All, In doing a C-c l in a normal .tex file, I get an error, similar to one I was getting earlier in dired. The dired error is fixed, but I just noticed today that I get a similar error when trying to store a link within an buffer for an open file. Here is the trace: , | Debugger entered--Lisp error: (wrong-type-argument stringp nil) | directory-file-name(nil) | (file-name-directory (directory-file-name dirpath)) | (let ((dirname ...) (basename ...)) (list dirname basename)) | org-git-split-dirpath(nil) | (let ((dirlist ...)) (when (string= ... "") (throw ... nil)) (setq dir (first dirlist) relpath (concat ... relpath))) | (while (not (file-exists-p ...)) (let (...) (when ... ...) (setq dir ... relpath ...))) | (catch (quote toplevel) (while (not ...) (let ... ... ...)) (list (expand-file-name ".git" dir) relpath)) | (let ((dir ...) (relpath ...)) (catch (quote toplevel) (while ... ...) (list ... relpath))) | org-git-gitrepos-p("~/tmfiles/Aegis Fire Protection/SunflowerFundingLLC/Petition.tex") | (if (org-git-gitrepos-p file) (progn (org-store-link-props :type "git" :link ...))) | (when (org-git-gitrepos-p file) (org-store-link-props :type "git" :link (org-git-create-git-link file))) | (let ((file ...)) (when (org-git-gitrepos-p file) (org-store-link-props :type "git" :link ...))) | (progn (let (...) (when ... ...))) | (if (buffer-file-name) (progn (let ... ...))) | (when (buffer-file-name) (let (...) (when ... ...))) | org-git-store-link() | run-hook-with-args-until-success(org-git-store-link) | org-store-link(nil) | call-interactively(org-store-link nil nil) ` Regards, -- =========== ,[ Law Offices ] | Daniel E. Doherty | 7300 W. 110th Street, Suite 930 | Overland Park, KS 66210 | 913.338.7182 (Phone) | 913,338.7164 (FAX) ` ___ 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] Shift-Arrow Pass Through for windmove?
Carsten, Many thanks. You 'da man! Sebastian, Not being adept at elisp, would you mind posting code to take advantage of these new hooks for windmove? Regards, Dan Sebastian Rose wrote: Carsten Dominik writes: OK, I have now 4 more hooks org-shiftup-final-hook org-shiftdown-final-hook org-shiftleft-final-hook org-shiftright-final-hook They will run *before* Org is trying to support shift-select. I do not think i makes sense to run the after Perfect. Thanks! Sebastian ___ 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] Shift-Arrow Pass Through for windmove?
Carsten, I'll second Sebastian on this one. I don't want to let windmove, or whatever, override anything if it would be useful in org-mode, so a hook at the end sounds like the right thing. Don't org-mode users strike you as really greedy? I'm afraid you've spoiled us. Regards, Dan Carsten Dominik wrote: On Apr 24, 2010, at 1:19 AM, Sebastian Rose wrote: Carsten Dominik writes: On Apr 23, 2010, at 6:12 PM, Sebastian Rose wrote: Daniel E. Doherty writes: All, I make *very* frequent use of the shift-arrow keys to move from window to window inside emacs via windmove. It is probably the most frequent key combination I access. Anyway, is there a way to make org-mode friendlier to it by passing the key along whenever org-mode would otherwise throw an error. For example, when not on a heading, when in the agenda, and wherever else? I really like Carsten's use of the arrow keys for structure editing and don't want to lose that, just whenever org-mode can't make use of the keys. Regards, And here all the arrow keys. It's somewhat inelegant, since you always need to keep track of new useful org-bindings. I would find an org-internal solution helpfull too. I use windmove. I have now added (defvar org-shiftup-hook nil "Hook for functions attaching themselves to `S-up'. See `org-ctrl-c-ctrl-c-hook' for more information.") (defvar org-shiftdown-hook nil "Hook for functions attaching themselves to `S-down'. See `org-ctrl-c-ctrl-c-hook' for more information.") (defvar org-shiftleft-hook nil "Hook for functions attaching themselves to `S-left'. See `org-ctrl-c-ctrl-c-hook' for more information.") (defvar org-shiftright-hook nil "Hook for functions attaching themselves to `S-right'. See `org-ctrl-c-ctrl-c-hook' for more information.") But I do not intend to attach specific functionality like windmove to them, and I'd like to reserve the possibility to make S-cursor do something in Org in more contexts. Hope this still helps. This could be perfect!!! But wouldn't the hook need to be called at the end of (e.g.) `org-shiftright'? I want to use windmove as the last resort, as does the OP: - (t (org-shiftselect-error + (t (if org-shiftright-hook + ((run-hook-with-args-until-success 'org-shiftright-hook)) + (org-shiftselect-error ;; end of org-shiftright ($otpional arg) Otherwise we would loose the org-mode specific functions. We want to 1. try to do somehing org-specific (if org-headline-p ) 2. else run the hook (i.e. windmove in this case) 3. erroronly if 1. and 2. failed We do use windmove but at the same time we do _not_ want to loose all those shift-right... features to come ;) Well, the idea is hat these hooks *can* overrule what org-mode wants to do, so whatever you put into the hook needs to decide if it wants to apply. We could add *another* hook at the end... - Carsten Sebastian - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Shift-Arrow Pass Through for windmove?
All, I make *very* frequent use of the shift-arrow keys to move from window to window inside emacs via windmove. It is probably the most frequent key combination I access. Anyway, is there a way to make org-mode friendlier to it by passing the key along whenever org-mode would otherwise throw an error. For example, when not on a heading, when in the agenda, and wherever else? I really like Carsten's use of the arrow keys for structure editing and don't want to lose that, just whenever org-mode can't make use of the keys. Regards, -- === ,[ Law Offices ] | Daniel E. Doherty | 7300 W. 110th Street, Suite 930 | Overland Park, KS 66210 | 913.338.7182 (Phone) | 913,338.7164 (FAX) ` ___ 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] Git Store Link Broken?
Carsten & David, I'm dumbfounded at good you guys are. Thanks to both of you for this fix and all the work on org-mode. Regards, Dan Doherty Carsten Dominik wrote: Applied, thanks. - Carsten On Feb 20, 2010, at 7:48 PM, David Maus wrote: Hi Daniel, Daniel E. Doherty wrote: Hello all, I noticed when I upgraded org from 6.21 (which comes with Emacs) to the git version (6.34trans), org-store-link stopped working. When I try to store a link from dired, I get a stringp nil error, with this debugger output: It's a small glitch in `org-git-store-link': Orgmode calls all registered store-link functions to see if one declares itself of being responsible for the particular file or buffer. `org-git-store-link' tries to make an assumption on whether the file that is currently visited is inside a git repository w/o taking into consideration that there are buffers that are not associated with a file -- like a dired buffer. Attached patch fixes this. HTH -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. maus.da...@gmail.com <0001-Avoid-trying-to-run-org-git-store-link-on-buffers-th.patch>___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Git Store Link Broken?
Hello all, I noticed when I upgraded org from 6.21 (which comes with Emacs) to the git version (6.34trans), org-store-link stopped working. When I try to store a link from dired, I get a stringp nil error, with this debugger output: ## Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("^/tmp_mnt/" nil) abbreviate-file-name(nil) org-git-store-link() run-hook-with-args-until-success(org-git-store-link) org-store-link(nil) call-interactively(org-store-link nil nil) ## It looks like something is going wrong when it enters org-git-store-link, even though it is not a git link that I'm storing. From what I can tell from the lisp code (I'm no lisper), it looks like it cycles trhough all the link types until one succeeds. Mine always chokes on the org-git-store-link. Is anyone else having this problem, or do I perhaps have something configured badly? By the way, Org-mode is fantastic. -- ============ Daniel E. Doherty 7300 W. 110th Street, Suite 930 Overland Park, KS 66210 913.338.7182 (Phone) 913,338.7164 (FAX) Up the airy mountain, Down the rushy glen, We daren't go a-hunting, For fear of little men. --- William Allingham (Donegal, Ireland) ___ 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