[Orgmode] org-datetree Some Suggestions
This is a really nice addition to org. However, I have a couple of suggestions which I think might improve it. At the moment dates are inserted as plain text. It would nice to have an option to insert the date as either an active or inactive date. Perhaps if there was a remember variable the user could simply surround it with either [ or as appropriate. Or maybe there is a better way? At the moment the date formats are hard coded. It would be nice if there was a date format variable that the user could set, with some sensible default (like the current one). Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Release 6.33
Carsten Dominik wrote: I still cannot get the test file to work, that Uwe posted here lately: This is strange, that *did* work before I pushed the release. Anyway, not it no longer does OK, fixed again, hope it works now. - Carsten Carsten, thanks again for the latest org! Here's what I get when I'm exporting a contacts-file with drawers, using orgmode 6.33c: 1. Exporting to html works perfectly! 2. Exporting to pdf has a little flaw: When there is an anniversary-line just before the drawer this line is omitted during pdf export. Here's my test file: *begin of file** #+DRAWERS: ADRESSE #+LANGUAGE: de #+OPTIONS: toc:nil f:t *:t :t d:t * Musterfrau, Gerda Irgendein Text. %%(diary-anniversary 11 14 2009) Geburtstag: Gerda %d Jahre alt :ADRESSE: :Stadt:Frankfurt am Main :Telephon: 069--7511--2660 (direkt) :Telephon: 069--7511--1666 (Sekretärin) :E-Post: mailto:g.musterf...@web.de :END: *End of file ** I'm pondering whether the omitted anniversary-line in the pdf-export is something desirable: the %% are looking ugly, and the information can be stored in the drawer itself. But the price for this is to double the information: the diary-entry-like sexps is necessary to show the information in the agenda view, and the doubled anniversary information in a drawer is necessary to have a nice looking output. Herzliche Grüße, Uwe ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-datetree Some Suggestions
Ian Barton li...@manor-farm.org writes: Hi Ian, At the moment dates are inserted as plain text. It would nice to have an option to insert the date as either an active or inactive date. Perhaps if there was a remember variable the user could simply surround it with either [ or as appropriate. Or maybe there is a better way? You can use the %U escape in any remember template, which inserts the inactive timestamp for this item's creation time. Bye, Tassilo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Speed commands
Hey Dan, Dan Davison davi...@stats.ox.ac.uk writes: Here are simplified versions of the forward- and backward-scroll speed commands that I'm suggesting. I love it! Dan br, benny ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Howto install from git under XEmacs (org-freemind problem)
Hi Andreas, thanks for the additional information. It seems that Lennart is using calls to `rx' to make his regular expressions, and that function does not seem to exist in your XEmacs installation. I believe all these rx calls could be just substituted by a regexp string. Maybe you can contact Lennart about this issue? I am putting him into the CC. And I have no idea if there will be additional issues with XEmacs compatibility with this new module. - Carsten On Nov 14, 2009, at 12:36 AM, Andreas Gösele wrote: Carsten Dominik carsten.dominik at gmail.com writes: I don't know what you are missing, but your Email is missing a backtrace. Well, xemacs -debug-init didn't give one. But I now tried manually to evaluate the org-mode related lines in my init.el and the offending line was: (require 'org-freemind) Debugger entered--Lisp error: (void-variable bol) byte-code(... [eol nonl space bol current-load-list org-freemind-node-pattern default-boundp set-default rx submatch * *\?] 9) load-internal(org-freemind nil t nil binary) load(org-freemind nil t nil) require(org-freemind) eval((require (quote org-freemind))) eval-interactive((require (quote org-freemind))) eval-last-sexp(nil) call-interactively(eval-last-sexp) I think I don't need that line in my init.el. But without it, trying to use for instance org-freemind-to-org-mode gives: Debugger entered--Lisp error: (void-variable bol) byte-code(... [eol nonl space bol current-load-list org-freemind-node-pattern default-boundp set-default rx submatch * *\?] 9) load-internal(org-freemind nil nil nil binary) load(org-freemind nil nil nil) command-execute(org-freemind-to-org-mode t) execute-extended-command(nil) call-interactively(execute-extended-command) Thanks again! Andreas Gösele ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Release 6.33
Carsten Dominik domi...@uva.nl writes: On Nov 14, 2009, at 12:03 AM, Sebastian Rose wrote: Drawers are now exported properly == Drawers are now exported when the configuration requires it, i.e. if the variable `org-export-with-drawers' is t or a list containing the drawers to export. I still cannot get the test file to work, that Uwe posted here lately: This is strange, that *did* work before I pushed the release. Anyway, not it no longer does OK, fixed again, hope it works now. Yeah! It does! Thanks Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Speed commands
Hi Dan, these are nice, but somehow I find the n command logical and the p command confusing :-) - Carsten On Nov 15, 2009, at 3:44 AM, Dan Davison wrote: Dan Davison davi...@stats.ox.ac.uk writes: Carsten Dominik domi...@uva.nl writes: ... I am happy to have a discussion what additional commands should be present by default. I thought a speed command for scrolling through an org document might be good -- move from heading to heading, displaying the next entry while keeping all others hidden, and close subtrees as you leave them. Here are simplified versions of the forward- and backward-scroll speed commands that I'm suggesting. - (defun ded/org-show-next-heading-tidily () Show next entry, keeping other entries closed. (if (save-excursion (end-of-line) (outline-invisible-p)) (progn (org-show-entry) (show-children)) (outline-next-heading) (unless (and (bolp) (org-on-heading-p)) (org-up-heading-safe) (hide-subtree) (error Boundary reached)) (org-overview) (org-reveal t) (org-show-entry) (show-children))) (defun ded/org-show-previous-heading-tidily () Show previous entry, keeping other entries closed. (let ((pos (point))) (outline-previous-heading) (unless (and ( (point) pos) (bolp) (org-on-heading-p)) (goto-char pos) (hide-subtree) (error Boundary reached)) (org-overview) (org-reveal t) (org-show-entry) (show-children))) (setq org-use-speed-commands t) (add-to-list 'org-speed-commands-user '(n ded/org-show-next-heading-tidily)) (add-to-list 'org-speed-commands-user '(p ded/org-show-previous-heading-tidily)) - Dan Or is there already an org command that does something like this? (Try starting with everything closed.) -- (defun ded/org-show-next-heading-tidily () Show next entry, keeping other entries closed. (if (save-excursion (end-of-line) (outline-invisible-p)) (org-cycle) (let ((level (org-current-level))) (unless (org-heading-has-child-p) (org-cycle)) (outline-next-heading) (if ( (org-current-level) level) (save-excursion (outline-backward-same-level 1) (org-cycle))) (if (and (bolp) (org-on-heading-p)) (org-cycle) (outline-up-heading 1 t) (org-cycle) (error Boundary reached) (setq org-use-speed-commands t) (add-to-list 'org-speed-commands-user '(s ded/org-show-next-heading-tidily)) -- (space might be quite natural for this one, it seems to get used for scrolling e.g. in dired and gnus) Dan - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Request: org-display-outline-path report full file path even when narrowed
Fixed, thanks. - Carsten On Nov 14, 2009, at 6:58 PM, Gregory J. Grubbs wrote: When the following file is narrowed to the Sub Two tree, org-display-outline reports the path relative to Sub Two. It would be more useful to report, e.g. Top One/Sub Two/Blah Obviously, if you are narrowed further down the hierarchy, the current function becomes even less useful. --8---cut here---start-8--- * Top One ** Sub One *** Sub Sub One *** Sub Sub Two ** Sub Two *** Blah Forget following this pattern *** Blah Blah * Top Two --8---cut here---end---8--- I would have submitted a patch, but my naive attempts to use (widen) within a (save-excursion) did not work! Cheers, -Greg ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Typo
Applied, thanks. - Carsten On Nov 14, 2009, at 5:10 PM, Noorul Islam wrote: Hi, I do not have public repository so I am attaching the patch. It is very small though! Thanks Noorul org-mode.typo.diff___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Release 6.33
Hi Uwe, it i OK to just put the diary-anniversary line into the drawer. Alternative: #+DRAWERS: ADRESSE #+LANGUAGE: de #+OPTIONS: toc:nil f:t *:t :t d:t #+CATEGORY: Geburtstag * Musterfrau, Gerda Irgendein Text. :ADRESSE: :Stadt: Frankfurt am Main 2009-11-15 Sun +1y :Telephon: 069--7511--2660 (direkt) :Telephon: 069--7511--1666 (Sekretärin) :E-Post: mailto:g.musterf...@web.de :Geburtstag: 1997-11-15 Sat +1y :END: - HTH - Carsten On Nov 15, 2009, at 11:02 AM, Uwe Jochum wrote: Carsten Dominik wrote: I still cannot get the test file to work, that Uwe posted here lately: This is strange, that *did* work before I pushed the release. Anyway, not it no longer does OK, fixed again, hope it works now. - Carsten Carsten, thanks again for the latest org! Here's what I get when I'm exporting a contacts-file with drawers, using orgmode 6.33c: 1. Exporting to html works perfectly! 2. Exporting to pdf has a little flaw: When there is an anniversary- line just before the drawer this line is omitted during pdf export. Here's my test file: *begin of file** #+DRAWERS: ADRESSE #+LANGUAGE: de #+OPTIONS: toc:nil f:t *:t :t d:t * Musterfrau, Gerda Irgendein Text. %%(diary-anniversary 11 14 2009) Geburtstag: Gerda %d Jahre alt :ADRESSE: :Stadt:Frankfurt am Main :Telephon: 069--7511--2660 (direkt) :Telephon: 069--7511--1666 (Sekretärin) :E-Post: mailto:g.musterf...@web.de :END: *End of file ** I'm pondering whether the omitted anniversary-line in the pdf-export is something desirable: the %% are looking ugly, and the information can be stored in the drawer itself. But the price for this is to double the information: the diary-entry-like sexps is necessary to show the information in the agenda view, and the doubled anniversary information in a drawer is necessary to have a nice looking output. Herzliche Grüße, Uwe ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: org-wl: from property not set as expected [6.33]
Applied, thanks. - Carsten On Nov 14, 2009, at 12:43 PM, David Maus wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. When storing a link to a Wanderlust message the link's :from property is not set to the full address field (i.e. Name email) if the Wanderlust customization variable `wl-use-petname' is set to 't, what is it's default value. This causes unexpected behavior when `org-store-link' is called for a remember template as the template's :fromname and :fromaddress properties are not set correctly: %:fromname is empty and :fromaddress contains the senders name and not the address. This misbehaviour is caused because `org-wl-store-link' calls `wl-summary-line-from' which respects `wl-use-petname' and returns the senders name only if this variable is set to 't. Attached patch changes this issue by simply make `org-wl-store-link' use the same code to get the from field as it does for the to field. Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-10-23 on elegiac, modified by Debian Package: Org-mode version 6.33 current state: == (setq org-clock-in-switch-to-state STARTED org-todo-keyword-faces '((TODO :foreground red :weight bold) (STARTED :foreground orange red :weight bold) (DONE :foreground light green) (MAYBE :foreground tomato) (WAITING :foreground tan2 :weight bold) (CANCELLED :foreground firebrick) (APPT :foreground DeepSkyBlue1 :weight bold) (DEFERRED :foreground light slate gray)) org-agenda-custom-commands '((r Refile New Notes and Tasks tags LEVEL=1+REFILE ((org-agenda-todo-ignore-with-date nil))) (s Started Tasks todo STARTED ((org-agenda-todo-ignore-scheduled nil) (org-agenda-todo- ignore-deadlines nil) (org-agenda-todo-ignore-with-date nil)) ) ) org-agenda-files '(/home/david/Org/pg.org /home/david/Org/ work.org /home/david/Org/tec.org /home/david/Org/priv.org /home/david/Org/refile.org) org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-agenda-tags-column -120 org-checklist-export-function 'org-export-as-ascii org-completion-use-ido t org-after-todo-state-change-hook '(org-clock-out-if-current org- checklist) org-agenda-todo-ignore-scheduled t org-todo-state-tags-triggers '((todo (NOTE)) ( (NOTE . t))) org-log-redeadline 'time org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO(t) STARTED(s) | DONE(D@)) (sequence MAYBE(m) WAITING(w@/!) | CANCELLED(C@)) (sequence APPT(a) DEFERRED(d@/!) | DONE(D@) CANCELLED(C@))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-directory ~/Org org-log-reschedule 'time org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-project-alist '((private-dynamic :base-directory ~/ Org/www :base-extension org :publishing-directory ~/www/private :publishing-function (org-publish-org-to- html) :recursive t :author David Maus :email maus.da...@gmail.com) (private-static :base-directory ~/Org/www :base- extension css :publishing-directory ~/www/private :publishing-function org-publish- attachment :recursive t) (private :components (private-dynamic private-static))) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5]) org-refile-targets '((org-agenda-files :maxlevel . 3)) org-confirm-elisp-link-function 'yes-or-no-p org-refile-use-outline-path 'file org-log-into-drawer LOGBOOK org-agenda-todo-ignore-with-date t org-enforce-todo-dependencies t org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\David Maus\\ org-tags-column -120 org-remember-templates '((todo 116 * TODO %^{Description} %^G\n :PROPERTIES:\n :Created: %U \n :Ref: %a\n :END:\n\n %? refile.org bottom nil) (appt 97 * APPT %^{Description} %^G\n %^T\n :PROPERTIES: \n :Created: %U\n :Ref: %a\n :END:\n\n %? refile.org bottom nil) (note 110 * %^{Description} :NOTE:%^G\n :PROPERTIES:\n :Created: %U \n :Ref: %a\n :END:\n\n %?
Re: [Orgmode] Folding last plain list entry
Hi Dan, the folding implementation of plain lists is limited - it works by assuming, for the duration of the org-cycle instance, that these lines are just normal headlines. I believe it would be an awful lot of work to fix this. - Carsten On Nov 13, 2009, at 7:44 PM, Dan Davison wrote: Org-cycle (tab) on the last item of a plain list folds all the rest of the contents in the current heading, despite org-empty-line-terminates-plain-lists being t. It shouldn't do that, right? For example (setq org-empty-line-terminates-plain-lists t) , | * h1 | - item 1 | item 1 contents | - item 2 | item 2 contents | | Non-list stuff ` Now if I hit tab at the start of the 'item 2' line it folds like this , | * h1 | - item 1 | item 1 contents | - item 2 | item 2... ` Dan ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Proposal: org-protocol handles redirects (finally)
Applied, thanks. - Carsten On Nov 13, 2009, at 6:56 PM, Sebastian Rose wrote: Hi, here is a little patch for org-protocol.el, I always wanted to have. It enhances `org-protocol-open-source' to handle rewritten URLs to some extend. I tested it successfully with my projects here and on the web and it's exactly what I've been missing. If you find it breaks something, or know it how it could be implemented better, report back. * This is how it works: Each project in `org-protocol-project-alist' may now have a new element `:rewrites'. `:rewrites' is a list of cons cells, that maps regular expressions to relative paths. * Example: (setq org-protocol-project-alist '((http://fairposter.de/; :base-url http://example-web-shop.de/; :working-directory /path/to/working/directory/ :online-suffix .php :working-suffix .php :rewrites ((example-web-shop.de/cars/ . products.php) (example-web-shop.de/$ . index.php) )) ;; more projects here )) Today, if I visit http://www.example-web-shop.de/, the URL would not match a path to any of the files below my working directory. Tomorrow, /path/to/working/directory/index.php is opened, because there's a matching rewrite. Today, a rewritten URL like http://example-web-shop.de/cars/lamborghini/Gallardo_LP560-4_MY09 would not match a path to any of the files below my working directory, because URLS like `/cars/' would be rewritten on the server and served through http://example-web-shop.de/products.php. Tomorrow, that URL will be mapped to /path/to/working/directory/products.php, because there's a matching rewrite defined. Best wishes Sebastian diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 30d2dd3..a2bc6af 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -185,6 +185,8 @@ Possible properties are: Last slash required. :working-directory - the local working directory. This is, what base-url will be replaced with. + :redirects - A list of cons cells, each of which maps a regular + expression to match to a path relative to :working-directory. Example: @@ -198,7 +200,12 @@ Example: :online-suffix \.html\ :working-suffix \.org\ :base-url \http://localhost/org/\; - :working-directory \/home/user/org/\))) + :working-directory \/home/user/org/\ + :rewrites ((\org/?$\ . \index.php\) + + The last line tells `org-protocol-open-source' to open + /home/user/org/index.php, if the URL cannot be mapped to an existing + file, and ends with either \org\ or \org/\. Consider using the interactive functions `org-protocol-create' and `org-protocol-create-for-org' to help you filling this variable with valid contents. @@ -504,10 +511,35 @@ The location for a browser's bookmark should look like this: (let* ((wdir (plist-get (cdr prolist) :working-directory)) (strip-suffix (plist-get (cdr prolist) :online- suffix)) (add-suffix (plist-get (cdr prolist) :working- suffix)) - (start-pos (+ (string-match wsearch f) (length base-url))) + ;; Strip [?#].*$ if `f' is a redirect with another + ;; ending than strip-suffix here: + (f1 (substring f 0 (string-match \\([\\?#].*\\)?$ f))) + (start-pos (+ (string-match wsearch f1) (length base-url))) (end-pos (string-match - (concat (regexp-quote strip-suffix) \\ ([?#].*\\)?$) f)) - (the-file (concat wdir (substring f start-pos end-pos) add-suffix))) +(regexp-quote strip-suffix) f1)) + ;; We have to compare redirects without suffix below: + (f2 (concat wdir (substring f1 start-pos end-pos))) + (the-file (concat f2 add-suffix))) + + ;; Note: the-file may still contain `%C3' et al here because browsers + ;; tend to encode `auml;' in URLs to `%25C3' - `%25' being ` %'. + ;; So the results may vary. + + ;; -- start redirects -- + (unless (file-exists-p the-file) + (message File %s does not exist.\nTesting for rewritten URLs. the-file) + (let ((rewrites (plist-get (cdr prolist) :rewrites))) + (when rewrites + (message Rewrites found: %S rewrites) + (mapc +(lambda (rewrite) + Try to match a rewritten URL and map it to a real file. + ;; Compare redirects without suffix: + (if (string-match (car rewrite) f2) + (throw 'result (concat wdir (cdr rewrite) +rewrites + ;; -- end of
Re: [Orgmode] Proposal: org-protocol handles redirects (finally)
Carsten Dominik carsten.domi...@gmail.com writes: Applied, thanks. - Carsten Thank you Carsten. I'll go now and document the new feature on worg. Sebastian On Nov 13, 2009, at 6:56 PM, Sebastian Rose wrote: Hi, here is a little patch for org-protocol.el, I always wanted to have. It enhances `org-protocol-open-source' to handle rewritten URLs to some extend. I tested it successfully with my projects here and on the web and it's exactly what I've been missing. If you find it breaks something, or know it how it could be implemented better, report back. * This is how it works: Each project in `org-protocol-project-alist' may now have a new element `:rewrites'. `:rewrites' is a list of cons cells, that maps regular expressions to relative paths. * Example: (setq org-protocol-project-alist '((http://fairposter.de/; :base-url http://example-web-shop.de/; :working-directory /path/to/working/directory/ :online-suffix .php :working-suffix .php :rewrites ((example-web-shop.de/cars/ . products.php) (example-web-shop.de/$ . index.php) )) ;; more projects here )) Today, if I visit http://www.example-web-shop.de/, the URL would not match a path to any of the files below my working directory. Tomorrow, /path/to/working/directory/index.php is opened, because there's a matching rewrite. Today, a rewritten URL like http://example-web-shop.de/cars/lamborghini/Gallardo_LP560-4_MY09 would not match a path to any of the files below my working directory, because URLS like `/cars/' would be rewritten on the server and served through http://example-web-shop.de/products.php. Tomorrow, that URL will be mapped to /path/to/working/directory/products.php, because there's a matching rewrite defined. Best wishes Sebastian diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el index 30d2dd3..a2bc6af 100644 --- a/lisp/org-protocol.el +++ b/lisp/org-protocol.el @@ -185,6 +185,8 @@ Possible properties are: Last slash required. :working-directory - the local working directory. This is, what base-url will be replaced with. + :redirects - A list of cons cells, each of which maps a regular + expression to match to a path relative to :working-directory. Example: @@ -198,7 +200,12 @@ Example: :online-suffix \.html\ :working-suffix \.org\ :base-url \http://localhost/org/\; - :working-directory \/home/user/org/\))) + :working-directory \/home/user/org/\ + :rewrites ((\org/?$\ . \index.php\) + + The last line tells `org-protocol-open-source' to open + /home/user/org/index.php, if the URL cannot be mapped to an existing + file, and ends with either \org\ or \org/\. Consider using the interactive functions `org-protocol-create' and `org-protocol-create-for-org' to help you filling this variable with valid contents. @@ -504,10 +511,35 @@ The location for a browser's bookmark should look like this: (let* ((wdir (plist-get (cdr prolist) :working-directory)) (strip-suffix (plist-get (cdr prolist) :online- suffix)) (add-suffix (plist-get (cdr prolist) :working- suffix)) - (start-pos (+ (string-match wsearch f) (length base-url))) + ;; Strip [?#].*$ if `f' is a redirect with another + ;; ending than strip-suffix here: + (f1 (substring f 0 (string-match \\([\\?#].*\\)?$ f))) + (start-pos (+ (string-match wsearch f1) (length base-url))) (end-pos (string-match - (concat (regexp-quote strip-suffix) \\ ([?#].*\\)?$) f)) - (the-file (concat wdir (substring f start-pos end-pos) add-suffix))) + (regexp-quote strip-suffix) f1)) + ;; We have to compare redirects without suffix below: + (f2 (concat wdir (substring f1 start-pos end-pos))) + (the-file (concat f2 add-suffix))) + + ;; Note: the-file may still contain `%C3' et al here because browsers + ;; tend to encode `auml;' in URLs to `%25C3' - `%25' being ` %'. + ;; So the results may vary. + + ;; -- start redirects -- + (unless (file-exists-p the-file) +(message File %s does not exist.\nTesting for rewritten URLs. the-file) +(let ((rewrites (plist-get (cdr prolist) :rewrites))) + (when rewrites +(message Rewrites found: %S rewrites) +(mapc + (lambda (rewrite) + Try to match a rewritten URL and map it to a real file. + ;; Compare redirects without suffix: +
[Orgmode] Re: Re: Release 6.33
Carsten Dominik wrote: Alternative: :ADRESSE: :Stadt: Frankfurt am Main 2009-11-15 Sun +1y :Telephon: 069--7511--2660 (direkt) :Telephon: 069--7511--1666 (Sekretärin) :E-Post: mailto:g.musterf...@web.de :Geburtstag: 1997-11-15 Sat +1y :END: Carsten, wow! I hadn't tried this before, but that is wunderbar again! Thanks a lot for the hint! With this there is really no need for maintaining contact files in another system apart from orgmode! Herzlichen Gruß, Uwe ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-agenda-diary-entry without date tree
Carsten Dominik carsten.domi...@gmail.com writes: On Nov 14, 2009, at 1:33 PM, Matt Lundin wrote: Hi Carsten, The new org-agenda-diary-entry looks quite convenient. Would it be possible to add an option to bypass the date tree so as to add each new appointment as a simple first level heading? I prefer to keep my appointments organized by project and/or category and have no real use for the date tree. Ideally, new appointments would appear as first level headlines in the org-agenda-diary-file (i.e., my inbox), ready to be refiled. Hi Matt, why are you not simply using your remember template for this? Hi Carsten, My org-remember template only works for single dates. I'd very much like to be able to create block and anniversary events quickly from the calendar and the agenda (but without the date tree and special anniversary heading). In other words, my remember template is only a partial solution. The new feature, on the other hand, offers all the convenient keybindings I remember from my erstwhile days of using the emacs diary. If it's too much trouble, no worries. Best, Matt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: org-datetree Some Suggestions
Tassilo Horn wrote: Ian Barton li...@manor-farm.org writes: Hi Ian, At the moment dates are inserted as plain text. It would nice to have an option to insert the date as either an active or inactive date. Perhaps if there was a remember variable the user could simply surround it with either [ or as appropriate. Or maybe there is a better way? You can use the %U escape in any remember template, which inserts the inactive timestamp for this item's creation time. Thanks Tassilo, but it doesn't do what I want. This is an example of what org-datetree produces: ** 2009 *** 2009-11 November - I would like to customize this format. 2009-11-14 Saturday - I would like to choose to make this a timestamp * Test1 * Another Test. Ian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Removes obsolete functions, variable and fix typos.
Hello all, Attached is the patch which has following changes. * lisp/org-agenda.el: - Removed obsolete functions, org-highlight-until-next-command and org-unhighlight-once. - Removed obsolete variable org-agenda-remove-date. * lisp/org.el - Fixed some typos. Thanks and Regards, Noorul diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 2619914..9ebe2d2 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2970,7 +2970,6 @@ When EMPTY is non-nil, also include days without any entries. (defvar org-starting-day nil) ; local variable in the agenda buffer (defvar org-agenda-span nil) ; local variable in the agenda buffer (defvar org-include-all-loc nil) ; local variable -(defvar org-agenda-remove-date nil) ; dynamically scoped FIXME: not used??? ;;;###autoload (defun org-agenda-list (optional include-all start-day ndays) @@ -5536,16 +5535,6 @@ so that the date SD will be in that range. Detach overlay INDEX. (funcall (if (featurep 'xemacs) 'detach-extent 'delete-overlay) org-hl)) -;; FIXME this is currently not used. -(defun org-highlight-until-next-command (beg end optional buffer) - Move the highlight overlay to BEG/END, remove it before the next command. - (org-highlight beg end buffer) - (add-hook 'pre-command-hook 'org-unhighlight-once)) -(defun org-unhighlight-once () - Remove the highlight from its position, and this function from the hook. - (remove-hook 'pre-command-hook 'org-unhighlight-once) - (org-unhighlight)) - (defun org-agenda-follow-mode () Toggle follow mode in an agenda buffer. (interactive) diff --git a/lisp/org.el b/lisp/org.el index bf6573b..73117c8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13111,7 +13111,7 @@ user. deltadef (nth 2 delta))) ;; Check if there is an iso week date in there -;; If yes, sore the info and postpone interpreting it until the rest +;; If yes, store the info and postpone interpreting it until the rest ;; of the parsing is done (when (string-match (?:\\([0-9]+\\)-\\)?[wW]\\([0-9]\\{1,2\\}\\)\\(?:-\\([0-6]\\)\\)?\\([ \t]\\|$\\) ans) (setq iso-year (if (match-end 1) (org-small-year-to-year (string-to-number (match-string 1 ans @@ -13119,7 +13119,7 @@ user. iso-week (string-to-number (match-string 2 ans))) (setq ans (replace-match t t ans))) -;; Help matching ISO dates with single digit month ot day, like 2006-8-11. +;; Help matching ISO dates with single digit month or day, like 2006-8-11. (when (string-match ^ *\\(\\([0-9]+\\)-\\)?\\([0-1]?[0-9]\\)-\\([0-3]?[0-9]\\)\\([^-0-9]\\|$\\) ans) (setq year (if (match-end 2) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Proposal: org-protocol handles redirects (finally)
Sebastian Rose sebastian_r...@gmx.de writes: Carsten Dominik carsten.domi...@gmail.com writes: Applied, thanks. - Carsten Thank you Carsten. I'll go now and document the new feature on worg. DONE. Will be http://orgmode.org/worg/org-contrib/org-protocol.php#open-source-rewritten-urls once it's exported. Best wishes Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: org-datetree Some Suggestions
On Nov 15, 2009, at 4:35 PM, Ian Barton wrote: Tassilo Horn wrote: Ian Barton li...@manor-farm.org writes: Hi Ian, At the moment dates are inserted as plain text. It would nice to have an option to insert the date as either an active or inactive date. Perhaps if there was a remember variable the user could simply surround it with either [ or as appropriate. Or maybe there is a better way? You can use the %U escape in any remember template, which inserts the inactive timestamp for this item's creation time. Thanks Tassilo, but it doesn't do what I want. This is an example of what org-datetree produces: ** 2009 *** 2009-11 November - I would like to customize this format. 2009-11-14 Saturday - I would like to choose to make this a timestamp * Test1 * Another Test. The structure of the tree is also for parsing - in order to put in entries at the right place, the tree leaves must be easy to find and interpolate. So I do want the tree the way it is - we can negotiate about what comes after the date, ant that can also be a timestamp or anything. Ian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Colors for pre elem. on orgmode.org
Hi, the colors on orgmode.org are made from an Emacs setup with a dark background. Because of the light background on the Web, code examples with syntax highlighting are hard to read. I even avoid #+BEGIN_SRC and use #+BEGIN_EXAMPLE instead. I played a little locally, and found, that the following simple change makes highlighted source code readable. Just put this in an exported HTML file, just before the `/head' tag and keep the original styles in place, to see the results: style type=text/css pre { background-color:#33; color:white; } /pre These are just the changed values. Unfortunately, this changes the appearance significantly. Dark background for all code. As an alternative, we could change all foreground colors, in that we keep the tint, but reduce the brightness of each. That way we would keep the appearance and have readable code. I've changed the background to be slightly lighter. Just put this in an exported HTML file, just before the `/head' tag and keep the original styles in place, to see the results: style type=text/css pre { /* only the changed values for pre again */ background-color:#fafafa; /* Use bigger font? courier is soo small on my system: */ font-size:110%; } .org-string { color:#BC2020; } .org-builtin { color:#5C2659; } .org-keyword { color:#5C128A; } .org-doc { color:#754C4C; } .org-constant { color:#385D5E; } .org-variable-name { color:#805F11; } .org-function-name { color:#CC; } /style What do you think? How is the font-size of code on Windows and MAC (Safari)? Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Info: clarify all allowed values of PROPERTY in COLUMN definition
Add cross reference to Special properties/Column atrributes node to clarify what may be used in the PROPERTY definition --8---cut here---start-8--- index d2b4d3c..3c6fe1a 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -4589,6 +4589,7 @@ optional. The individual parts have the following meaning: @var{width} @r{An integer specifying the width of the column in characters.} @r{If omitted, the width will be determined automatically.} @var{property}@r{The property that should be edited in this column.} +@r{Special properties may be used here (@pxref{Special properties})} (title) @r{The header text for the column. If omitted, the} @r{property name is used.} @{...@var{summary-type}@} @r{The summary type. If specified, the column values for} --8---cut here---end---8--- ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: contact management in org-mode?
Matt Lundin m...@imapmail.org writes: I'd agree with Russell's conclusion that if one does not use an emacs mail client, then there is not much point to using BBDB. But if one uses Gnus or the like, the integration BBDB offers (e.g., automated addition of new addresses, auto-notes, TAB completion for addresses, etc.) is still difficult to surpass. Until someone codes some nice integration between an org-mode address database and emacs mail clients, switching to an org database would require one to forgo all the nice automation that BBDB offers. (Do you really want to enter all new email addresses manually in an org file?) I've found BBDB to be incredibly convenient. But I use Gnus for email. If I were using Gmail or Thunderbird or Mutt, I wouldn't use BBDB at all. I do not like the telephone and BBDB eases the displeasure. I guess it's the same with writing checks and addressing envelopes. So I keep important phone numbers and addresses at my fingertips with BBDB and all Internet related business in my Gmail Contacts and Labels. Gnus I use for reading news. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] the great^n grand-daddy of orgmode? :)
Awesome indeed, and amusing. As is the picture of the occasional struggle between Man and his Interface, which perhaps never will go away. (Appreciations however, for those who try to minimize it). Thanks. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: html export - howto change UP|HOME link style?
This patch fixes it. I've put the LINK_UP and ..._HOME directly after the body tag: body - HERE --- div id=content How can I now style them with css ...without messing with the other links? By defining links in body for UP and HOME and defining links again in content for rest? Eraldo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] sha1 hash of latex fragments to avoid regeneration
Hi, The attached patch changes the latex fragment image generation so that it saves images into files named by the sha1 hash of the latex source code. By checking for the existence of image files before image generation the regeneration of identical images is avoided. In practice I find that this greatly speeds up export to html and the `org-preview-latex-fragment' command. Cheers -- Eric From 13e1c48fa6cac43b0c87ca0fbc8e349f7a9fa864 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Sun, 15 Nov 2009 17:00:09 -0700 Subject: [PATCH] latex fragment images cached using sha1 hash keys Latex fragment images are now saved in files named by the sha1 hash of the latex text used to create the image. By checking if files exist before images generation the regeneration of identical latex images is avoided. --- lisp/ChangeLog |6 ++ lisp/org.el| 18 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 339f248..f18755c 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2009-11-16 Eric Schulte schulte.e...@gmail.com + + * org.el (org-format-latex): Latex images are now saved to files + named by the sha1 hash of the latex source text avoiding + regeneration of identical images. + 2009-11-15 Carsten Dominik carsten.domi...@gmail.com * org-wl.el (org-wl-store-link): Handle the case that diff --git a/lisp/org.el b/lisp/org.el index bf6573b..46348fc 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14550,15 +14550,9 @@ Some of the options can be changed using the variable (opt org-format-latex-options) (matchers (plist-get opt :matchers)) (re-list org-latex-regexps) - (cnt 0) txt link beg end re e checkdir + (cnt 0) txt hash link beg end re e checkdir executables-checked m n block linkfile movefile ov) -;; Check if there are old images files with this prefix, and remove them -(when (file-directory-p todir) - (mapc 'delete-file - (directory-files - todir 'full - (concat (regexp-quote prefixnodir) _[0-9]+\\.png$ ;; Check the different regular expressions (while (setq e (pop re-list)) (setq m (car e) re (nth 1 e) n (nth 2 e) @@ -14576,9 +14570,10 @@ Some of the options can be changed using the variable (setq txt (match-string n) beg (match-beginning n) end (match-end n) cnt (1+ cnt) - linkfile (format %s_%04d.png prefix cnt) - movefile (format %s_%04d.png absprefix cnt) link (concat block [[file: linkfile ]] block)) +(setq hash (sha1 txt) + linkfile (format %s_%s.png prefix hash) + movefile (format %s_%s.png absprefix hash)) (if msg (message msg cnt)) (goto-char beg) (unless checkdir ; make sure the directory exists @@ -14592,8 +14587,9 @@ Some of the options can be changed using the variable dvipng needed to convert LaTeX fragments to images) (setq executables-checked t)) - (org-create-formula-image - txt movefile opt forbuffer) +(unless (file-exists-p movefile) + (org-create-formula-image + txt movefile opt forbuffer)) (if overlays (progn (mapc (lambda (o) -- 1.6.4.73.gc144 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Ignore some lines when using org-plot/gnuplot
Don't worry about a late reply. Sometimes I need a lot of time just to read the E-Mails here in the list (this is one of the most active lists I have ever seen and a really good one to follow) and I wonder how you guys not only read it but also fix bugs and implement new features. Thanks for this Eric. It sure opens a lot of possibilities. - Darlan At Sat, 14 Nov 2009 20:34:55 -0700, Eric Schulte wrote: Darlan Cavalcante Moreira darc...@gmail.com writes: Hi everybody, Is there a way to ignore some lines when using org-plot/gnuplot to plot a table in Org? I have a table with some expenses, but the last two lines are the total calculated from the previous lines. I'd like to plot only the expenses and ignore the last two lines. In the docs there is the option deps to specify which columns should be plotted but I can't find an equivalent for lines (there is a line option but I understand that it is used to send some extra command to gnuplot). Hi Darlan, Sorry about the extremely delayed reply. I don't believe that what you've described is possible in the current implementation of org-plot. It is possible however using org-babel which supports gnuplot. Org-babel now allows indexing into the values of variable assignments. So for example a simple gnuplot example could graph the contents of a table by assigning that table to a variable #+tblname: squares | 1 | 1 | | 2 | 4 | | 3 | 9 | | 4 | 16 | | 5 | 25 | | 6 | 36 | #+begin_src gnuplot :var data=squares :results silent plot data using 1:2 with lines #+end_src with this new change it is possible to assign only part of the table to a variable as you've described above. For example #+tblname: squares-with-sum | 1 | 1 | | 2 | 4 | | 3 | 9 | | 4 | 16 | | 5 | 25 | | 6 | 36 | |+| | 21 | 91 | #+begin_src gnuplot :var data=squares-with-sum[0:-3] :results silent plot data using 1:2 with lines #+end_src For more information on indexing see the documentation of the `org-babel-ref-index-list' function. Thanks for motivating this new feature -- Eric - Darlan ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Minor buglet in orgmode Makefile
I just pulled an update from git for the first time in a long while, and when I tried to build org-mode, it failed with an undefined function error for the function org-float-time in org-ascii. It only took me a moment to find the fix --- it seems like we just need to push org-compat up the list of lisp files ahead of org-ascii, since org-compat provides the function definition org-ascii craves. Cheers, R ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Request for advice on OrgMobile
I just installed OrgMobile and I'm delighted with it. But I was wondering --- it seems to create only my custom agendas by default. Is there any way to persuade it to create the daily and weekly agendas on export? I'd really like to have those at my fingertips. Thanks! ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] More on GTD, browse todos by priority or creation date
Hi, I just found out this wonderful tool, and have gone through all the tutorials. What I haven't figured out is how to browse todo items by priority or creation date. Let me explain in details. On reading the tutorials, I just found that that I've developed a methodology to handle things I need to do almost exactly as David Allen's Getting Things Done. Moreover, the methodology is backed up with my home- grown simple emacs todo-mode (~200 lines), which allows me, - track everything that need to be done - track their logged/creation time - assign priority to each todo item - put arbitrary amount of info under each item All these are important to me, because most of the todo items are unrelated and belongs to the Someday/Maybe class, which get mind swept into my huge todo file, for me to recall all the things that I thought about doing. What to do next is not only decided based on context, how much time available and my energy level, but also most importantly, their priorities. My todo-mode allows arbitrary priority levels, and todo item's priority can be changed with a single click. Ok, enough off-track babbling, what I want to know is that weather org- mode can somewhat allows me to assign arbitrary levels of priority to my todo list, and let me browse them in their priority order (so that high priority items get done first). The creation date is another way for me to browse my todo items to see what have been on the list for too long. Thanks for your feedbacks -- Tong (remove underscore(s) to reply) http://xpt.sourceforge.net/techdocs/ http://xpt.sourceforge.net/tools/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Request for advice on OrgMobile
Robert P. Goldman rpgoldman at sift.info writes: I just installed OrgMobile and I'm delighted with it. But I was wondering --- it seems to create only my custom agendas by default. Is there any way to persuade it to create the daily and weekly agendas on export? I'd really like to have those at my fingertips. OK, I see --- never mind! I just create custom agenda commands that mirror what the normal 1-day and 7-day agendas (C-c a a) do, using the org-agenda-ndays to control them. This seems like a normal enough thing to want to do that one might simply add it as an option to org-mobile's configuration (in org-mobile-push, I assume). I might have a whack at providing a patch if no one better does it first ;-) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Minor buglet in orgmode Makefile
On Mon, Nov 16, 2009 at 7:49 AM, Robert P. Goldman rpgold...@sift.info wrote: I just pulled an update from git for the first time in a long while, and when I tried to build org-mode, it failed with an undefined function error for the function org-float-time in org-ascii. It only took me a moment to find the fix --- it seems like we just need to push org-compat up the list of lisp files ahead of org-ascii, since org-compat provides the function definition org-ascii craves. I got the same error. This is what I did. $ make clean make Everything went fine. Thanks and Regards Noorul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Search in headings before searching in leaves
I thought it would be a rather useful behavior for isearch to search only in the displayed text. That is to say, if I have a structure such as cursor is here * Folded Heading 1... * Folded Heading 2... [ whose body has 1 bazillion occurrences of SearchTerm ] * Folded Heading With SearchTerm... * Folded Heading 4... when I do an isearch I would like to jump to the heading (and if I continue pressing C-s cycle back to the occurrences of SearchTerm within Heading 2. Are there existing hacks for org mode or outline mode that would result in such behavior?.. If not, consider this a feature request :) --Leo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: Enabling Flyspell mode gave an error [6.33trans]
I get this error everytime I fire up org-mode. I just upgraded to Emacs 23 yesterday, and started seeing this error. I searched around for fixed, and tried a few things but I can't seem to get flyspell to work. Emacs : GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-08-16 on black.local Package: Org-mode version 6.33trans current state: == (setq org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local)) ) ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) ) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] sha1 hash of latex fragments to avoid regeneration
Hi Eric, this is fantastic, thank you for implementing it. I have wanted some speedup for this for a long time. I think your implementation still suffers from one issue: The produced image also depends on the variables org-format-latex- options, org-format-latex-header, org-export-latex-package-alist, and on the `forbuffer' flag (because images made for display in the buffer and fo HTML export generaly need different resolution). One way to deal with this would be to make a list containing the values of these four variables and using prin1-to-string to convert this list into a string, and then to prepend this string to TXT when creating the hash. Now, I am sure that you are already planning to do the same for ditaa images etc? That would be a treat, because ditaa can be terribly slow for complex figures, and this would speed up the cycle when writing document by quite a bit. There is one further issue: Cleaning up images that are no longer used. With the LaTeX fragments it is not a big problem, because there live in a special directory. This would be a bigger concern for ditaa images etc which tend to live in the same directory as the source. Maybe that could be solved by 1. Making sure that each image still have a name like blue, so that the name now would be blus_loonghashvalue.png or so. 2. Maybe creating a command that will look for orphaned images and remove them, by looking for the hash in the name and checking access times. I am not sure if this is needed, and not sure what would be the best way to implement it. After looking at these things, I would be *very* happy to accept this patch. - Carsten On Nov 16, 2009, at 1:07 AM, Eric Schulte wrote: Hi, The attached patch changes the latex fragment image generation so that it saves images into files named by the sha1 hash of the latex source code. By checking for the existence of image files before image generation the regeneration of identical images is avoided. In practice I find that this greatly speeds up export to html and the `org-preview-latex-fragment' command. Cheers -- Eric From 13e1c48fa6cac43b0c87ca0fbc8e349f7a9fa864 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Sun, 15 Nov 2009 17:00:09 -0700 Subject: [PATCH] latex fragment images cached using sha1 hash keys Latex fragment images are now saved in files named by the sha1 hash of the latex text used to create the image. By checking if files exist before images generation the regeneration of identical latex images is avoided. --- lisp/ChangeLog |6 ++ lisp/org.el| 18 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 339f248..f18755c 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2009-11-16 Eric Schulte schulte.e...@gmail.com + + * org.el (org-format-latex): Latex images are now saved to files + named by the sha1 hash of the latex source text avoiding + regeneration of identical images. + 2009-11-15 Carsten Dominik carsten.domi...@gmail.com * org-wl.el (org-wl-store-link): Handle the case that diff --git a/lisp/org.el b/lisp/org.el index bf6573b..46348fc 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14550,15 +14550,9 @@ Some of the options can be changed using the variable (opt org-format-latex-options) (matchers (plist-get opt :matchers)) (re-list org-latex-regexps) -(cnt 0) txt link beg end re e checkdir +(cnt 0) txt hash link beg end re e checkdir executables-checked m n block linkfile movefile ov) -;; Check if there are old images files with this prefix, and remove them -(when (file-directory-p todir) - (mapc 'delete-file - (directory-files -todir 'full -(concat (regexp-quote prefixnodir) _[0-9]+\\.png$ ;; Check the different regular expressions (while (setq e (pop re-list)) (setq m (car e) re (nth 1 e) n (nth 2 e) @@ -14576,9 +14570,10 @@ Some of the options can be changed using the variable (setq txt (match-string n) beg (match-beginning n) end (match-end n) cnt (1+ cnt) - linkfile (format %s_%04d.png prefix cnt) - movefile (format %s_%04d.png absprefix cnt) link (concat block [[file: linkfile ]] block)) +(setq hash (sha1 txt) + linkfile (format %s_%s.png prefix hash) + movefile (format %s_%s.png absprefix hash)) (if msg (message msg cnt)) (goto-char beg) (unless checkdir ; make sure the directory exists @@ -14592,8 +14587,9 @@ Some of the options can be changed using the variable dvipng needed to convert LaTeX fragments to images) (setq executables-checked t)) - (org-create-formula-image -txt movefile opt