Re: [O] [OT] open url in emacs was: Re: Using Org/babel for Emacs config files
Hi Jambu, Jambunathan K writes: > Bastien writes: > >> Andreas Leha writes: >> >>> ^^ that is something I'd not expect to hear when it comes to >>> emacs >> >> (when (switch-to-buffer-other-window >>(url-retrieve-synchronously >> >> "https://raw.github.com/eschulte/emacs24-starter-kit/master/starter-kit.org";)) >> (write-file (read-from-minibuffer "File: ")) >> (org-mode)) > > M-x browse-url-emacs RET thanks, I tried that, but that does not seem to work for me: (sorry for the German messaeges) , | Contacting host: raw.github.com:443 [3 times] | Note: file is write protected | Contacting host: raw.github.com:443 | Loading reftex...done | Contacting host: raw.github.com:443 | Compiling label environment definitions...done | Contacting host: raw.github.com:443 | Scanning entire document... | No such file: https://raw.github.com/eschulte/emacs24-starter-kit/master/starter-kit.org (ignored) | Scanning file https://raw.github.com/eschulte/emacs24-starter-kit/master/starter-kit.org | Scanning document... done | Local Ispell dictionary set to english | Contacting host: raw.github.com:443 [3 times] | open-network-stream: /443 Zu diesem Hostnamen gehört keine Adresse ` if you tell me how to make it work, that would be even simpler. Cheers, Andreas
Re: [O] Minor footnote suggestion
Hello, Alan L Tyree writes: > When positioned in footnote text, the function jumps back *to the > beginning* of the footnote reference. It would be more convenient to > jump to the end of the reference since that is where the author is > likely to pick up typing the text. It was done this way because, if point at the end of the reference, you cannot use C-c C-c another time to jump back to the definition. Also, if the buffer ends with the footnote reference, there is no such place. So, sometimes, you will move after the reference, and other times, it will be on its last character. I'm not sure which behaviour is the less annoying. Regards, -- Nicolas Goaziou
Re: [O] keymap for read-date-minibuffer
Hi Mark, Mark Edgington writes: > I recently spent a while figuring out how to add custom-keybindings to > the read-date-minibuffer which appears when org-read-date is called. > The only way to do it currently is to use the > org-read-date-minibuffer-setup hook, and add keybindings to the > minibuffer-local-map there. I'm wondering if it wouldn't be more > natural to just define an "org-read-date-minibuffer-map" that the end > user can modify, and to overlay this on top of the > minibuffer-local-map when org-read-date is called. Thoughts? I think this is a good idea. There is now `org-read-date-minibuffer-local-map'. You can go and configure it as normal keymap. `org-read-date-minibuffer-setup-hook' is not used anymore, so users relying on this and using HEAD of the master Git branch need to update their configuration to use `org-read-date-minibuffer-local-map' instead. Thanks for suggesting this, -- Bastien
Re: [O] org-plus-contrib: Invalid function: org-no-popups
Hi Achim, Achim Gratz writes: > My reading comprehension may be at an all-time low, but this is what you > wrote in another thread: > This [removing Org from ELPA -ed] is using Org users as hostages, I don't want to do this. > >> I think this is an option. > > Hm… I'm obviously missing some piece. Yes :) This is were misunderstanding started: , | > I've to admit that I've had that thought too, but it seems that doing | > this would perhaps even lower the attention that Emacs' maintainers give | > to that problem. | | This is using Org users as hostages, I don't want to do this. ` What I meant is this: "Using the fact that Org/ELPA users suffer from a bug in package.el in hope that this will make Emacs maintainers fix the package.el bug is using Org/ELPA users as hostages." (Obviously my "this" where not equivalent to your "that" in the passage quoted above.) >> How can you make sure that Org-mode has not been used before people >> want to install an updated version through GNU/Org ELPA? > > That's what the patch does that you didn't like. I don't like it for at least these reasons: - it introduces an advice in the code -- we should work toward removing them, not adding them. - it advices `require', which is a very core function in Emacs. This is completely hackish. >> I can't think of any good way. >> >> Until someone have an idea about this, I'm very serious about removing >> the possibility of installing Org through ELPA. But as I said I won't >> do this before getting a sense of what the users use and expect. > > There are exactly two possibilities to get into this situation: > > The first is using Org anything before opening the package manager. I > think it should be possible to educate users that it's better t use a > fresh Emacs instance for updating or installing packages until this has > been fixed in package manager. This is like telling Windows users to reboot their system so that it can works correctly (remember the old days?). It feels wrong. And I doubt we can educate the users -- there are many of them, and many don't have the time to tell they have a problem. > The second are things like starter-kit. I'm thinking that it should be > the responsibility of such software to load and unload Org if they > really need to use it before activating packages and ask for support > from Emacs devs in how to do this properly. Package manager is a first > class citizen of Emacs by now which means any add-on has to cope with > its existence. It's interesting to see that the bugs seem to get > chalked up to the packages that are in ELPA rather than the mechanisms > that install them (or prevent proper initialization of Emacs) and it > kind of seems to fly under the radar for this reason even though it > seems to affect many users and has had for quite some time already. I'm not sure what solution you suggest here. In general, I think the benefit of having several ELPA distributions of Org is not worth the trouble of dealing with installation issues. -- Bastien
Re: [O] Bug: manual for table column width and alignment [7.9.3a (7.9.3a-elpa @ /home/joost/.emacs.d/elpa/org-20130108/)]
Hi Joost, Joost Helberg writes: > The manual states that the width and alignment values can be > combined. The example uses a combination of and <10>. The `l' is > not the best way to demonstrate this, as it looks like a `1'. The > scanning reader may see <110> instead of . If the manual reads > , the example is a lot more valuable. Done. > Also, in order to not rely > on an example only, the text `may also combine alignment and field > width' will be better if it reads `may also combine alignment and > field width as a single multi letter specification within pointy > brackets' I don't find this necessary, the sentence is too heavy like this. Thanks, -- Bastien
Re: [O] How to track down "No heading for this item in buffer or region."?
Hi Nick, Nick Dokos writes: > Not quite: the file *is* opened in a buffer (the agenda code opens all the > files, I presume with find-file-noselect), but the text properties are > not up to date. It's only when I explicitly visit the buffer > that they get updated. I updated the commit using the `font-lock-comment-face' for skipping commented scheduled/deadline lines -- it now uses comment-start-skip to skip those lines. No need to put the # at the beginning of the line, the optimization here is not significant enough IMHO. Org now relies on the general font-lock mechanism for comments, and defines comment-start etc. See `org-setup-comments-handling'. Yes, the text properties from font-lock are not always present when the buffer is not visited, you're right... things seem a bit unpredictable in this area. Thanks, -- Bastien
Re: [O] no pdf-output in lilypond code blocks
Hi Florian, Florian Beck writes: >> If so, I'll fix ly-process-basic so that it depends on >> ly-gen-png/pdf/html/svg. >> >> Thanks for confirming, > > Thanks for fixing. Done -- please have a try and let me know. -- Bastien
Re: [O] Wish: iCalendar export with free/busy only
Hi Karl, Karl Voit writes: > I'd love to have my agenda exported (for now I am using the snippet > below[1]) to an ics file which only contains (anonymized) events > optionally still containing (a set of allowed) tags. The new iCalendar exporter allows filters -- so you should be able to filter out the entries that you don't want. Best, -- Bastien
Re: [O] Wish: switch active time-stamps to inactive when CANCELED
Hi Karl, Karl Voit writes: > I tend to keep events that I do not attend in my calendar for > archiving reasons. But I switch their status to CANCELED. > Unfortunately, those events still appear on my Google calendar and > so forth. I get my usual reminders and it messes up my free/busy > list. > > Therefore, I am thinking that canceled events should turn their > active time-stamps into inactive with an Org-mode option. This way, > I can recall them in my agenda by typing ']' (show inactive > time-stamps) but they do not interfere with my daily workflow. > > What do you think of such an option for Org-mode? I think this is what `org-after-todo-state-change-hook' is for :) -- Bastien
Re: [O] About range references in the spreadsheet
Hi Xue, Xue Fuqiao writes: > In (info "(org) References"), there is an example explaining the range > references: > > @-1$-2..@-1 3 numbers from the column to the left, 2 up to > current row > > What does `2 up to current row' mean? I don't understand. IIRC `@' > represents row, it should be `1 up to current row'. No. The whole sentence expands to this: This range takes 3 numbers: the first one from the column to the left (and the row above), the 2 others up to current row. I agree this might not be obvious but I don't have a better proposal. Maybe a native english speaker can help here. Best, -- Bastien
[O] No heading for this item in buffer or region
Hello, Since the latest pull I did today (Org-mode release_7.9.3d-882-geab0cd), I now have errors "No heading for this item in buffer or region" when generating the agenda view. They all are related to the fact I have a time-stamp (automagically updated by Emacs when saving the file, if found in the first 8 lines) in my Org files: --8<---cut here---start->8--- #+TITLE: Work #+AUTHOR:Seb Vauban #+Time-stamp: <2013-01-26 Sat 12:53> #+DESCRIPTION: Work-related tasks #+OPTIONS: H:4 num:t toc:2 --8<---cut here---end--->8--- I know it looks like an Org active timestamp. Is that forbidden now? Best regards, Seb -- Sebastien Vauban
Re: [O] 24.2.92; `electirc-indent-mode' isn't compatible with `org-footnote-action'
Hi Xue, Xue Fuqiao writes: > I don't know where it should be post (bug-gnu-emacs or > emacs-orgmode), so I'll post it on both of them. Please don't post to both. Post it to bug-gnu-emacs when this is with Org's from Emacs, to emacs-orgmode otherwise. > To reproduce: > > emacs -Q test.org > M-x electric-indent-mode RET > TAB > C-e C-c C-x f The recipe is not correct, but I found the bug anyway. > The `* footnotes' should be in the left margin. Fixed in the Git repository of Org. It will be fixed in Emacs with the next merge. Thanks! -- Bastien
Re: [O] org-plus-contrib: Invalid function: org-no-popups
Bastien writes: > I don't like it for at least these reasons: > > - it introduces an advice in the code -- we should work toward > removing them, not adding them. That's the mechanism Emacs provides for dealing with those situations. I could do it without an advice, but it would still do the same things, namely unload all features that have been shadowed by changing load-path so that they can be re-loaded from the correct place. It may have escaped your attention, but the advice is de-activated at the earliest possible moment and will not affect any later uses of require. > - it advices `require', which is a very core function in Emacs. Which has been discussed on Emacs devel and has been pronounced safe in this case. > This is completely hackish. Like a few hundred other places in Emacs and Org. Also, when some day Emacs will perhaps solve the problem, the solution will likely be something very similar: renaming the require primitive and creating a wrapper in Lisp that does what the advice is doing. > This is like telling Windows users to reboot their system so that it > can works correctly (remember the old days?). It feels wrong. And I > doubt we can educate the users -- there are many of them, and many > don't have the time to tell they have a problem. So why are you trying to educate users not to use ELPA when you think it's a waste of time? > I'm not sure what solution you suggest here. A problem produced by a certain piece of software should be fixed by that same software. For example, if starter-kit insists on loading Org before things are ready, it should also unload Org after it is finished using it and before the actual initialization commences. > In general, I think the benefit of having several ELPA distributions > of Org is not worth the trouble of dealing with installation issues. You're confusing me. Do you want to remove Org from ELPA or not? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] 24.2.92; `electirc-indent-mode' isn't compatible with `org-footnote-action'
On Sat, 26 Jan 2013 13:42:10 +0100 Bastien wrote: > Please don't post to both. Post it to bug-gnu-emacs when this is with > Org's from Emacs, to emacs-orgmode otherwise. I see, thanks for your advice. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao
Re: [O] [OT] open url in emacs was: Re: Using Org/babel for Emacs config files
Andreas Leha writes: > Hi Jambu, > > Jambunathan K writes: > >> Bastien writes: >> >>> Andreas Leha writes: >>> ^^ that is something I'd not expect to hear when it comes to emacs >>> >>> (when (switch-to-buffer-other-window >>>(url-retrieve-synchronously >>> >>> "https://raw.github.com/eschulte/emacs24-starter-kit/master/starter-kit.org";)) >>> (write-file (read-from-minibuffer "File: ")) >>> (org-mode)) >> >> M-x browse-url-emacs RET It works for me here without any extra props. I would assume it has something to do with 's' in https. It is possible that that your local Emacs is not able to do TLS. Change `https://' to `http://'. I run Emacs from trunk. May be your Emacs is old - for some values of old. > thanks, I tried that, but that does not seem to work for me: > > (sorry for the German messaeges) > , > | Contacting host: raw.github.com:443 [3 times] > | Note: file is write protected > | Contacting host: raw.github.com:443 > | Loading reftex...done > | Contacting host: raw.github.com:443 > | Compiling label environment definitions...done > | Contacting host: raw.github.com:443 > | Scanning entire document... > | No such file: > | https://raw.github.com/eschulte/emacs24-starter-kit/master/starter-kit.org > | (ignored) > | Scanning file > | https://raw.github.com/eschulte/emacs24-starter-kit/master/starter-kit.org > | Scanning document... done > | Local Ispell dictionary set to english > | Contacting host: raw.github.com:443 [3 times] > | open-network-stream: /443 Zu diesem Hostnamen gehört keine Adresse > ` > if you tell me how to make it work, that would be even simpler. > > Cheers, > Andreas > > > --
Re: [O] org-plus-contrib: Invalid function: org-no-popups
Hi Achim, Achim Gratz writes: >> - it advices `require', which is a very core function in Emacs. > > Which has been discussed on Emacs devel and has been pronounced safe in > this case. No. Stefan just said it was safe to *experiment* with it. > Like a few hundred other places in Emacs and Org. Also, when some day > Emacs will perhaps solve the problem, the solution will likely be > something very similar: renaming the require primitive and creating a > wrapper in Lisp that does what the advice is doing. Feel free to push into that direction in Emacs. >> This is like telling Windows users to reboot their system so that it >> can works correctly (remember the old days?). It feels wrong. And I >> doubt we can educate the users -- there are many of them, and many >> don't have the time to tell they have a problem. > > So why are you trying to educate users not to use ELPA when you think > it's a waste of time? I'm not educating anyone. For users who have problems when installing Org through ELPA, I advise them to use another method. > You're confusing me. Do you want to remove Org from ELPA or not? I think this is a good option, but I will ping users before, as I already said. Please don't waste your time and mine arguing about this. -- Bastien
Re: [O] heads up: mode hooks not executed for agenda files
Hi Eric, Eric S Fraga writes: > a problem I have had for a long time is that agenda files are opened > without =org-mode-hook= and =text-mode-hook= being processed. This is a > problem because I work within the agenda view all the time, writing notes > by accessing entries from the agenda view. > > If I open an org file directly, both hooks are executed just fine. Because your are opening the org file for the first time, so org-mode and text-mode are run along with the associated hooks. > However, if I hit =RET= on an agenda view line, I get put into the org > file, at the correct point, but without those hooks having been executed. > This means that the behaviour is different depending on how I ended up in > the org file. Because the files are already opened (check this with C-x C-b) so org-mode and text-mode are not run. > This is confusing! > > The solution is to add the same processing to =org-agenda-after-show-hook= > as is included in =text-mode=hook= and =org-mode=hook=. This works. > However, it seems clumsy to me. This is the way to go. The idea is to have different hooks when *opening* an org-mode file, and when *visiting* an entry from the agenda, in a file that is already opened in Emacs. > Bastien: enjoy your two week break and don't you dare read this email > before then! ;-) :) Thanks, -- Bastien
Re: [O] Issue with org-link and %
Hi Russell, Russell Carden writes: > Is there a known issue with org-links if they having the encoded special > character %25 in a link. Is this something that may have been fixed > elsewhere. Any links that have %25, never make it to my link > handler. Please provide an example so that we can better understand your problem. Thanks, -- Bastien
Re: [O] How to export results to latex?
Hi Seweryn, Seweryn Kokot writes: > I have test1.org file (see below [1]) which I want to export to latex. However > when exporting to latex (both using org-export and org-export-dispatch), the > content of RESULTS is missing in the resulting test1.tex (see below [2]). > What is the reason for that? That's because the default value for `org-export-with-drawers' is nil. You need to use (setq org-export-with-drawers t) or (setq org-export-with-drawers '("RESULTS")) So that the drawer gets exported. > One year ago when exporting the same file with ":results org replace" the > output > was wrapped with "begin_org ... end_org" now it is wrapped with "begin_src org > ..." then the export to latex gives verbatim or lstlisting environments... Any > hints what to do to get the previous behaviour? :results raw should be fine, no? (#+begin_org was too confusing -- see the many discussions about this on the list, so we are not supporting this anymore.) Best, -- Bastien
Re: [O] TeX-master: TeX-master is let-bound
Christopher Schmidt writes: > Bastien writes: >> Can you provide a reproducible recipe? > > I already did, check <87390w5...@ch.ristopher.com>. The issue I > described will only occur if one uses AUCTeX and AUCTeX has not been > loaded already. Nick did not follow the recipe so he was not able to > reproduce. Christopher Schmidt writes: > Recipe: > > emacs -q # + AUCTeX > C-x b rms RET > M-x org-mode RET > M-: (insert "a") RET > C-x h > M-x org-export-region-as-latex RET > > # In buffer *Org LaTeX Export* > C-c C-c > > TeX-command-master: Symbol's value as variable is void: TeX-master For the record, the first step of my recipe, "emacs -q # + AUCTeX", goes like this: $ cd /tmp $ export HOME=/tmp $ emacs -q --eval "(progn (package-refresh-contents) (package-install 'auctex) (kill-emacs))" $ emacs -q --eval "(package-initialize)" Is there anything I can do to help you to help me - i.e. fixing that bug upstream? Christopher
Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification
Nick Dokos writes: [...] > Use a light background emacs for the presentation. And don't tell > anybody that you switched. Street creds intact, you can switch back to > the cool dark background afterwards. If you get caught, you can argue > that you switched for projection purposes (assuming that you are going > to use a projector): studies show that dark letters on a light > background are easier to see from a distance (citation: J.WhlClthFab, > Vol. 3.14159, p. 2.7182818, Apr. 1, 1999) Love the citation... may try to pass this by some reviewer at some point. ;-) -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc
Re: [O] TeX-master: TeX-master is let-bound
Christopher Schmidt writes: > $ emacs -q --eval "(progn (package-refresh-contents) (package-install > 'auctex) (kill-emacs))" I can't install auctex through package-install. Can you give more directions? Thanks, -- Bastien
Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification
Nick Dokos writes: > Eric S Fraga wrote: >> fragments is the most appealing mechanism. When I try to use >> org-preview-latex-fragment, the latex image is >> generated. Unfortunately, as I use a black background on my display, I >> cannot see the fragment as it is being generated with black text on a >> transparent background by default. Note, I am using dvipng for the >> image conversion. >> > > I tried the imagemagick setting, set the options variable to black background > and red foreground - lo and behold, that's what I get in the preview. Thanks for the suggestion. Should have tried that! However, it's not working for me; very strange. I have tried switching from dvipng to imagemagick but I get the same result (having cleaned out the ltxpng directory, restarted emacs, tried both #+OPTIONS: and direct variable setting, ...). Mind you, it's very late at night so I'm probably doing something stupid... I'm going to bed; I'll check again in the morning and will follow this up. Thanks again, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc
[O] Problems with org-caldav (wrong-type-argument stringp 47)
Hi Thank you very much for org-caldav. I've waited for it since years. However, I have problems on my first sync. I think I have done everything correctly: (setq load-path (cons "~/elisp/org-caldav" load-path)) (require 'org-caldav) (setq org-caldav-url "https://www.google.com/calendar/dav";) (setq org-caldav-calendar-id "##@group.calendar.google.com") (setq org-caldav-inbox "/home/sven/Dropbox/myconf/testcal.org") (setq org-caldav-files "/home/sven/Dropbox/myconf/testlocalcal.org") ;(setq org-icalendar-timezone "Europe/Berlin") I also replaced url-dav.el by the patched version (I'm using Emacs 23.4.1 under Ubuntu). Find below an error report, that comes after some seconds (sometimes a minute) during the initial sync. The minibuffer displays "Reading 543 Bytes" for some time, then it breaks with the error-message. Neither the files, nor GoogleCalendar show any changes afterwards (e.g. no IDs are created in testlocalcal.org). I'm hoping that I can get this to work. Thanks for help, Sven Debugger entered--Lisp error: (wrong-type-argument stringp 47) file-exists-p(47) (not (file-exists-p file)) (if (not (file-exists-p file)) (progn (message "non-existent agenda file %s. [R]emove from list or [A]bort?" ...) (let ... ...))) (when (not (file-exists-p file)) (message "non-existent agenda file %s. [R]emove from list or [A]bort?" (abbreviate-file-name file)) (let (...) (cond ... ...))) org-check-agenda-file(47) (if (bufferp file) (set-buffer file) (org-check-agenda-file file) (set-buffer (org-get-agenda-file-buffer file))) (catch (quote nextfile) (if (bufferp file) (set-buffer file) (org-check-agenda-file file) (set-buffer ...)) (widen) (setq bmp (buffer-modified-p)) (org-refresh-category-properties) (setq org-todo-keywords-for-agenda (append org-todo-keywords-for-agenda org-todo-keywords-1)) (setq org-done-keywords-for-agenda (append org-done-keywords-for-agenda org-done-keywords)) (setq org-todo-keyword-alist-for-agenda (append org-todo-keyword-alist-for-agenda org-todo-key-alist)) (setq org-drawers-for-agenda (append org-drawers-for-agenda org-drawers)) (setq org-tag-alist-for-agenda (append org-tag-alist-for-agenda org-tag-alist)) (save-excursion (remove-text-properties ... ... pall) (when org-agenda-skip-archived-trees ... ...) (goto-char ...) (setq re ...) (while ... ...)) (set-buffer-modified-p bmp)) (while (setq file (pop files)) (catch (quote nextfile) (if ... ... ... ...) (widen) (setq bmp ...) (org-refresh-category-properties) (setq org-todo-keywords-for-agenda ...) (setq org-done-keywords-for-agenda ...) (setq org-todo-keyword-alist-for-agenda ...) (setq org-drawers-for-agenda ...) (setq org-tag-alist-for-agenda ...) (save-excursion ... ... ... ... ...) (set-buffer-modified-p bmp))) (save-restriction (while (setq file ...) (catch ... ... ... ... ... ... ... ... ... ... ... ...))) (save-excursion (save-restriction (while ... ...))) (let ((pa ...) (pc ...) (pall ...) (inhibit-read-only t) (rea ...) bmp file re) (save-excursion (save-restriction ...)) (setq org-todo-keywords-for-agenda (org-uniquify org-todo-keywords-for-agenda)) (setq org-todo-keyword-alist-for-agenda (org-uniquify org-todo-keyword-alist-for-agenda) org-tag-alist-for-agenda (org-uniquify org-tag-alist-for-agenda))) org-agenda-prepare-buffers((47 104 111 109 101 47 115 118 101 110 47 68 114 111 112 98 111 120 47 109 121 99 111 110 102 47 116 101 115 116 108 111 99 97 108 99 97 108 46 111 114 103 "/home/sven/Dropbox/myconf/testcal.org")) (save-excursion (org-agenda-prepare-buffers files) (let* (... file ical-file ical-buffer category started org-agenda-new-buffers) (and ... ...) (when combine ... ... ...) (while ... ...) (org-release-buffers org-agenda-new-buffers))) org-export-icalendar(t 47 104 111 109 101 47 115 118 101 110 47 68 114 111 112 98 111 120 47 109 121 99 111 110 102 47 116 101 115 116 108 111 99 97 108 99 97 108 46 111 114 103 "/home/sven/Dropbox/myconf/testcal.org") apply(org-export-icalendar t (47 104 111 109 101 47 115 118 101 110 47 68 114 111 112 98 111 120 47 109 121 99 111 110 102 47 116 101 115 116 108 111 99 97 108 99 97 108 46 111 114 103 "/home/sven/Dropbox/myconf/testcal.org")) (let ((org-combined-agenda-icalendar-file ...) (org-icalendar-store-UID t) (org-icalendar-date-time-format ...)) (org-caldav-debug-print (format "Generating ICS file %s." org-combined-agenda-icalendar-file)) (apply (quote org-export-icalendar) t (append org-caldav-files ...)) (find-file-noselect org-combined-agenda-icalendar-file)) org-caldav-generate-ics() (setq org-caldav-ics-buffer (org-caldav-generate-ics)) (if (and org-caldav-event-list (y-or-n-p "Last sync seems to have been aborted. Should I try to resume? ")) nil (setq org-caldav-ics-buffer (org-caldav-generate-ics)) (setq org-caldav-event-list nil) (setq org-caldav-sync-result nil) (org-caldav-load-sync-state) (dolist (cur org-caldav-event-list) (org-caldav-event-set-status cur nil)) (org
Re: [O] Wish: iCalendar export with free/busy only
* Bastien wrote: > Hi Karl, Hi! > Karl Voit writes: > >> I'd love to have my agenda exported (for now I am using the snippet >> below[1]) to an ics file which only contains (anonymized) events >> optionally still containing (a set of allowed) tags. > > The new iCalendar exporter allows filters -- so you should be able to > filter out the entries that you don't want. Cool feature! However, I don't want to filter out whole events, my goal ist to replace detailed information with less detailed information about my events. In the meantime, I created [2] which filters a given ICS file according to my (detailed) requirements. I very much like it so far. 2. https://github.com/novoid/convert_iCal_to_free-busy-only -- Karl Voit
Re: [O] TeX-master: TeX-master is let-bound
Bastien writes: > Christopher Schmidt writes: > >> $ emacs -q --eval "(progn (package-refresh-contents) (package-install >> 'auctex) (kill-emacs))" > > I can't install auctex through package-install. Why is that? What's failing? ( "export HOME=/tmp" makes Emacs use /tmp/.emacs.d as it's user-directory, forcing package.el to not touch your real configuration in ~/.emacs.d.) > Can you give more directions? There is nothing special about my AUCTeX installation. Vanilla AUCTeX should produce the same results. The only things one needs to take care of before executing my recipe is that AUCTeX is autoloaded but not loaded. Christopher
Re: [O] Contrib missing from (Cygwin) Emacs
Hi Sébastien, "Sebastien Vauban" writes: > So, the problem comes down to the fact that the following... > > #+begin_src emacs-lisp > (require 'find-func) > (find-library-name "org") > #+end_src > > ... does fail with the latest Cygwin [1]: > > Debugger entered--Lisp error: (error "Can't find library org") > signal(error ("Can't find library org")) > error("Can't find library %s" "org") > find-library-name("org") Please report the problem to Cygwin people. They can either upgrade to a more recent version of Emacs, or try to sort out the problem with (find-library-name "org"). I cannot do anything from here, `find-library-name' is not in latest Org. Best, -- Bastien
Re: [O] No heading for this item in buffer or region
"Sebastien Vauban" writes: > I know it looks like an Org active timestamp. Is that forbidden now? Fixed, thanks. -- Bastien
Re: [O] Contrib missing from (Cygwin) Emacs
Sebastien Vauban writes: > Wait, wait, wait... > > When reading the backtrace even more carefully, this 3rd observation is not > what's said by the error message: "../contrib" is not (I guess Achim is right) > the problem here, but the fact that `find-library-name' fails to find "org". > > So, the problem comes down to the fact that the following... > > #+begin_src emacs-lisp > (require 'find-func) > (find-library-name "org") > #+end_src > > ... does fail with the latest Cygwin [1]: I remember... that bug has since been fixed in Org. As a workaround, install the emacs-el package which contains the source files to prevent this from happening with that particular version of Emacs/Org on Cygwin. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
[O] Problems with TODO and agenda command
Hello I cannot get agenda command to include any of my TODO's. I followed the tutorial http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html My .emacs file copied directly from the tutorial on a Linux system (require 'org-install) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) (setq org-log-done t) (setq org-agenda-files (list "~/org/orgtutorial_dto.org" "~/org/work-recover.org")) This first task in this tutorial did not work for me. When I closed the task using C-c C-t I did not receive a time stamp. I have scheduled tasks and set deadlines for tasks but when I execute the command "C-c a a" I do not see any tasks in the agenda. I am doing this on two computers one using a portable version of emacs for windows and the second is a Opensuse both are using emacs 24.2 and org-mode 7.8.11 Aaron
Re: [O] TeX-master: TeX-master is let-bound
Hi Christopher, Christopher Schmidt writes: > Bastien writes: >> Christopher Schmidt writes: >> >>> $ emacs -q --eval "(progn (package-refresh-contents) (package-install >>> 'auctex) (kill-emacs))" >> >> I can't install auctex through package-install. > > Why is that? What's failing? Generating autoloads for tex-jp.el... forward-sexp: Scan error: "Unbalanced parentheses", 8785, 28213 When compiling. I'm off for the week-end, I'll dig this further later on next week. -- Bastien
[O] Agenda optimization: new option `org-agenda-inhibit-startup'
Hi all, in the maint and master branch, there is `org-agenda-inhibit-startup', a new option defaulting to t which prevent the agenda buffers to run some startup initialization when called for generating an agenda -- e.g. opening the buffer with a specific cycling state is not honored. This will speed up agenda generation *a lot*, especially for people who have lots of agenda files. Please check and let me know. For those who want the previous behavior, simply set it to nil. I want the default to be t so newbies enjoy a fast agenda early on. All best, -- Bastien
Re: [O] TeX-master: TeX-master is let-bound
Bastien writes: > Generating autoloads for tex-jp.el... > forward-sexp: Scan error: "Unbalanced parentheses", 8785, 28213 > > When compiling. I have no idea. emacs-24 (GNU Emacs 24.2.90.1) works fine. > I'm off for the week-end, I'll dig this further later on next week. Thank you very much. Here is a minimal recipe that produces the effects of the bug. (progn (let ((TeX-master t)) ;; require external TeX library (defvar TeX-master nil) (defun TeX-func () TeX-master) ;; do stuff with TeX library ;; ... ) ;; now do other stuff with TeX library (TeX-func)) Christopher
Re: [O] How to track down "No heading for this item in buffer or region."?
Bastien wrote: > > Not quite: the file *is* opened in a buffer (the agenda code opens all the > > files, I presume with find-file-noselect), but the text properties are > > not up to date. It's only when I explicitly visit the buffer > > that they get updated. > > I updated the commit using the `font-lock-comment-face' for skipping > commented scheduled/deadline lines -- it now uses comment-start-skip > to skip those lines. No need to put the # at the beginning of the > line, the optimization here is not significant enough IMHO. > > Org now relies on the general font-lock mechanism for comments, and > defines comment-start etc. See `org-setup-comments-handling'. Yes, > the text properties from font-lock are not always present when the > buffer is not visited, you're right... things seem a bit unpredictable > in this area. > I experimented a bit and came up with the following hack (which is probably too heavy-handed to be acceptable as a genuine fix). Let's assume that there is a way to force lazy properties (there must be one since visiting the buffer does force them). Then anywhere where org-agenda-skip is called, we make sure that the force function is called beforehand. There's a few code paths that enter here but they are all (?) of the form: loop over files (setq buf (find-file-noselect file)) (with-current-buffer buf ;;; do things that eventually call org-agenda-skip) Replacing the ;;; with a call to the forcing function should do the trick. So here's my elephant-gun-to-kill-a-mosquito forcing function: --8<---cut here---start->8--- (defun org-force-lazy-text-properties () (jit-lock-function 1)) --8<---cut here---end--->8--- It seems to work at least for small files. There seem to be limits to how much fontification it does, so if the file is bigger, it might miss things. The more likely misfeature however is that it will slow down the agenda to a crawl. It's an existence proof, not a solution. Nick
Re: [O] no pdf-output in lilypond code blocks
Bastien writes: > Hi Florian, > > Florian Beck writes: > >>> If so, I'll fix ly-process-basic so that it depends on >>> ly-gen-png/pdf/html/svg. >>> >>> Thanks for confirming, >> >> Thanks for fixing. > > Done -- please have a try and let me know. Minor hitch: the variable is called `ly-use-eps' not `ly-gen-eps'. However, as far as I understand these variables are intended for tangled files. The original bug was that exporting or evaluating a code block doesn't respect the extension of the :file directive. I can live with setting `ly-gen-pdf', but maybe something like (pcase (file-name-extension out-file) ("pdf" "--pdf ") ("ps" "--ps ") ("png" "--png ") (t "--png ")) would be even better? -- Florian Beck
Re: [O] Problems with org-caldav (wrong-type-argument stringp 47)
Sven Bretfeld writes: > (setq org-caldav-files "/home/sven/Dropbox/myconf/testlocalcal.org") No, that's wrong. It has to be a list of files: (setq org-caldav-files '("/home/sven/Dropbox/myconf/testlocalcal.org")) -David
Re: [O] Still Wishing for Snooze
Hi Andrew ! Sorry, but I forgot to include one line: (setq org-date-state-wait-state "PENDING") to define the state, that the node should be changed to (I have "PENDING" among my org-states). Now if I have a node like this: * TODO Foo and invoke org-date-state, I get asked for a date (lets assume, that I answer tomorrow) and the node changes like this: * PENDING Foo CLOSED: [2013-01-26 Sa 18:36] :PROPERTIES: :DATE_STATE: [2013-01-27 So] TODO :END: Now, if on sunday or later I invoke org-date-state with a prefix argument, the node changes back to its original state. Hope you can reproduce that behaviour and find it useful ... best regards, Marc Am 24.01.2013 21:09, schrieb Marc-Oliver Ihm: Hi Andrew, some time ago I did somethin similar (see below), it works with properties and might come close, to what you want ... best regards, Marc (defun org-date-state (arg) "Save away state for current node; with prefix restore for all nodes if time has passed." (interactive "P") (if arg (progn (let ((today (format-time-string (substring (car org-time-stamp-formats) 1 -1))) (nvisited 0) (nchanged 0)) (message "Scanning...") (org-map-entries (lambda () (let ((date_state (org-entry-get nil "DATE_STATE")) date state) (incf nvisited) (when date_state (unless (string-match (concat "\\[" org-ts-regexp1 "\\] \\(" (regexp-opt org-todo-keywords-1) "\\)") date_state) (error "Property DATE_STATE ('%s') does not consist of date and todo keyword !" date_state)) (setq date (match-string 1 date_state)) (setq state (match-string 9 date_state)) (unless (string< today date) (org-todo state) (org-delete-property "DATE_STATE") (search-forward-regexp org-property-start-re) (org-remove-empty-drawer-at "PROPERTIES" (point)) (incf nchanged) nil 'agenda) (message "Visited %d entries and changed %d of them" nvisited nchanged))) (org-entry-put nil "DATE_STATE" (concat (format-time-string (org-time-stamp-format nil t) (org-read-date nil t)) " " (org-get-todo-state))) (org-todo org-date-state-wait-state))) Am 21.01.2013 19:20, schrieb Andrew M. Nuxoll: A while ago I posted for help in adding an ability to "snooze" a to-do item: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg20114.html At the time, the only solution available was to create a manual copy of the item. This approach creates as many problems as it solves for me. I've gotten so frustrated with this that I'm really to knuckle under and fix it myself. I'd like to modify the org-mode code to support the following: 1. Add a date tag to an entry that indicates that it is "inactive" until a certain date. I'm picturing something like this: * TODO [#B] Verify login to the virtual machines SCHEDULED: <2013-01-11 Tue +1w> DELAY: <2013-01-24 Thu> 2. Add a command similar to org-deadline that I can use to attach a delay date to a to-do item 3. When I display my agenda, items that are delayed are not displayed. My e-lisp is pretty rusty so *any* advice or help is great. Could someone help point me to the right files and functions I'll need to modify to accomplish this? Thanks, Andrew
[O] Bug when exporting as html with (org-narrow-to-subtree)
Hi, I'm not sure how to file bug reports but: When exporting to html with (org-narrow-to-subtree) headlines deeper than 2 levels won't get exported. Expected behavior: All subheadings should be exported to a level set by headline-levels in my org init, or H: in the #+OPTIONS: line. Steps to reproduce: Suppose the buffer contains: #+BEGIN_EXAMPLE * Daily Entries ** <2013-01-14 Mon> Dated Entry 1:export: This is exported *** Lorem ipsom: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Subheadings and further nesting isn't... Not Exported Still not exported... ** <2013-01-15 Tue> Another Dated entry :export: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. *** Not Exported #+END_EXAMPLE Placing the cursor at line 2 and calling (org-narrow-to-subtree) results in: #+BEGIN_EXAMPLE ** <2013-01-14 Mon> Dated Entry 1:export: This is exported *** Lorem ipsom: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Subheadings and further nesting isn't... Not Exported Still not exported... #+END_EXAMPLE Then calling any of (org-export-as-html-*) results in only the "This is exported" text, the remaining text is missing. Cheers, Dave
Re: [O] Bug when exporting as html with (org-narrow-to-subtree)
Aloha David, David Bjergaard writes: > Hi, > > I'm not sure how to file bug reports but: See http://orgmode.org/org.html#Feedback I can't answer your main question, but I'm confident someone else on the list will be able to respond. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Minor footnote suggestion
Nicolas Goaziou writes: > Hello, > > Alan L Tyree writes: > >> When positioned in footnote text, the function jumps back *to the >> beginning* of the footnote reference. It would be more convenient to >> jump to the end of the reference since that is where the author is >> likely to pick up typing the text. > > It was done this way because, if point at the end of the reference, you > cannot use C-c C-c another time to jump back to the definition. > > Also, if the buffer ends with the footnote reference, there is no such > place. So, sometimes, you will move after the reference, and other > times, it will be on its last character. > > I'm not sure which behaviour is the less annoying. > > > Regards, OK, I can see that. For my own use, the suggested behaviour would be better and the two situations you mention would only be a very occasional annoyance. The current behaviour has annoyed me 250 times so far in the one document :-). But I see your point -- it would be a compromise either way. Thanks for the answer. Cheers, Alan -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172...@iptel.org
[O] Info: (org)Customizing tables in ODT export
Aloha all, Section 12.8.11.4 of the info version of the Org mode manual is truncated in the middle of an emacs-lisp code block. (setq org-export-odt-table-styles (append org-export-odt-table-styles *--- truncated here ---* '(("TableWithHeaderRowAndColumn" "Custom" ((use-first-row-styles . t) (use-first-column-styles . t))) ("TableWithFirstRowandLastRow" "Custom" ((use-first-row-styles . t) (use-last-row-styles . t)) Org-mode version 7.9.3d (release_7.9.3d-874-gf11acc @ /Users/dk/.emacs.d/src/org-mode/lisp/), using 'make update' option in the build system. Both the html and pdf versions are OK. Only the info version is truncated. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] #+headers: :tangle doesn't work
Myles English writes: > Hi, > > I'd just like to record a minor inconsistency in case anyone is looking > at the code and decides they can change it. The tangle variable can't > go in the #+headers line: > > #+headers: :tangle a.sh > #+begin_src sh > echo "this won't be tangled" > #+end_src > > #+begin_src sh :tangle a.sh > echo "this will be tangled" > #+end_src > > Thanks, > > Myles > Hi Myles, Please ensure that you have the latest version of Org-mode loaded. When I tangle a file containing the above two code blocks both are tangled correctly to a.sh. If I then remove the #+headers: line only the second block is tangled, so it appears everything is working as expected. Best, -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] BUG? table output despite "#+begin_src sh :results verbatim"
"Cook, Malcolm" writes: > THanks Thomas, I see we are running same version of org > > Has anyone else reading this got an idea what would cause org to > table-ize shell output despite a `:results verbatim` in the source > block header? > > Thanks! > Hi Malcolm, Try starting emacs without any of your personalized configuration loaded using the -Q option. If the problem disappears, then it is due to something in your personal config. If you still experience the problem you may want to ensure that you aren't using `org-babel-execute-src-block' from an old version of Org-mode by executing the following from your scratch buffer ;; emacs-lisp (when (require 'find-func) (find-function 'org-babel-execute-src-block)) and then ensuring that the file is in the current Org-mode installation directory. Cheers, > > ~Malcolm > > > .-Original Message- > .From: Thomas S. Dye [mailto:t...@tsdye.com] > .Sent: Friday, January 25, 2013 2:31 PM > .To: Cook, Malcolm > .Cc: 'emacs-orgmode@gnu.org' > .Subject: Re: BUG? table output despite "#+begin_src sh :results verbatim" > . > ."Cook, Malcolm" writes: > . > .> Thomas, > .> > .> Thanks for checking. > .> > .> What does > .> > .> meta-x org-version > .> > .> tell you > .> > .> ?? > . > .Org-mode version 7.9.3d (release_7.9.3d-830-g780b45 @ > /Users/dk/.emacs.d/src/org-mode/lisp/) > . > .-- > .T.S. Dye & Colleagues, Archaeologists > .735 Bishop St, Suite 315, Honolulu, HI 96813 > .Tel: 808-529-0866, Fax: 808-529-0884 > .http://www.tsdye.com > -- Eric Schulte http://cs.unm.edu/~eschulte
[O] [PATCH] Add `org-reverse-string'
I needed a `reverse-string' function and I've found two in Org Mode. `org-babel-reverse-string' and `org-id-reverse-string'. So instead of rolling my own (I'm playing with `org-contacts.el'), I think it would be better to unify those functions into one. From e058c4fac767a5faffd8debaabc489c174eef583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= Date: Sat, 26 Jan 2013 21:12:54 +0100 Subject: [PATCH] Unify `org-id-reverse-string' and `org-babel-reverse-string' into `org-reverse-string' * lisp/org.el (org-reverse-string): Add `org-reverse-string' to reverse a string. * lisp/org-id.el: Replace `org-id-reverse-string' by `org-reverse-string'. * lisp/ob-core.el: Replace `org-babel-reverse-string' by `org-reverse-string' TINYCHANGE --- lisp/ob-core.el |8 ++-- lisp/org-id.el |7 ++- lisp/org.el |4 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 9e4c8b1..0a495d0 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2495,10 +2495,6 @@ If the table is trivial, then return it as a scalar." (match-string 1 cell)) cell) t)) -(defun org-babel-reverse-string (string) - "Return the reverse of STRING." - (apply 'string (reverse (string-to-list string - (defun org-babel-chomp (string &optional regexp) "Strip trailing spaces and carriage returns from STRING. Default regexp used is \"[ \f\t\n\r\v]\" but can be @@ -2513,8 +2509,8 @@ overwritten by specifying a regexp as a second argument." "Strip leading and trailing spaces and carriage returns from STRING. Like `org-babel-chomp' only it runs on both the front and back of the string." - (org-babel-chomp (org-babel-reverse-string -(org-babel-chomp (org-babel-reverse-string string) regexp)) + (org-babel-chomp (org-reverse-string +(org-babel-chomp (org-reverse-string string) regexp)) regexp)) (defvar org-babel-org-babel-call-process-region-original nil) diff --git a/lisp/org-id.el b/lisp/org-id.el index b35ea5e..bb503bd 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -343,7 +343,7 @@ So a typical ID could look like \"Org:4nd91V40HI\"." (unless (org-uuidgen-p unique) (setq unique (org-id-uuid ((eq org-id-method 'org) - (let* ((etime (org-id-reverse-string (org-id-time-to-b36))) + (let* ((etime (org-reverse-string (org-id-time-to-b36))) (postfix (if org-id-include-domain (progn (require 'message) @@ -376,9 +376,6 @@ So a typical ID could look like \"Org:4nd91V40HI\"." (substring rnd 18 20) (substring rnd 20 32 -(defun org-id-reverse-string (s) - (mapconcat 'char-to-string (nreverse (string-to-list s)) "")) - (defun org-id-int-to-b36-one-digit (i) "Turn an integer between 0 and 61 into a single character 0..9, A..Z, a..z." (cond @@ -432,7 +429,7 @@ and time is the usual three-integer representation of time." (if (= 2 (length parts)) (setq prefix (car parts) time (nth 1 parts)) (setq prefix nil time (nth 0 parts))) -(setq time (org-id-reverse-string time)) +(setq time (org-reverse-string time)) (setq time (list (org-id-b36-to-int (substring time 0 4)) (org-id-b36-to-int (substring time 4 8)) (org-id-b36-to-int (substring time 8 12 diff --git a/lisp/org.el b/lisp/org.el index 5033cbf..65c8c60 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21038,6 +21038,10 @@ for the search purpose." (error "Unable to create a link to here" (org-occur-in-agenda-files (regexp-quote link +(defun org-reverse-string (string) + "Return the reverse of STRING." + (apply 'string (reverse (string-to-list string + (defun org-uniquify (list) "Remove duplicate elements from LIST." (let (res) -- 1.7.10.4 -- Daimrod/Greg pgp4CXAjio3Ft.pgp Description: PGP signature
Re: [O] #+headers: :tangle doesn't work
Hi Eric, Thanks for taking a look at this. Eric Schulte writes: > Myles English writes: >> >> I'd just like to record a minor inconsistency in case anyone is looking >> at the code and decides they can change it. The tangle variable can't >> go in the #+headers line: >> >> #+headers: :tangle a.sh >> #+begin_src sh >> echo "this won't be tangled" >> #+end_src >> >> #+begin_src sh :tangle a.sh >> echo "this will be tangled" >> #+end_src >> > Please ensure that you have the latest version of Org-mode loaded. Using a very recent git. > When I tangle a file containing the above two code blocks both are > tangled correctly to a.sh. If I then remove the #+headers: line only > the second block is tangled, I get that too. > so it appears everything is working as expected. Not so fast, if I try to tangle each block separately C-u C-c C-v t then the one with #+headers: doesn't tangle and there is the message: "tangled 0 code blocks from x.org" Myles
Re: [O] [PATCH] Add `org-reverse-string'
This patch looks fine to me, although you'll need to add a `declare-function' call to the top of ob-core.el (and maybe to org-id as well) or the compiler will complain. Daimrod writes: > I needed a `reverse-string' function and I've found two in Org Mode. > `org-babel-reverse-string' and `org-id-reverse-string'. So instead of > rolling my own (I'm playing with `org-contacts.el'), I think it would > be better to unify those functions into one. > > > From e058c4fac767a5faffd8debaabc489c174eef583 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= > Date: Sat, 26 Jan 2013 21:12:54 +0100 > Subject: [PATCH] Unify `org-id-reverse-string' and `org-babel-reverse-string' > into `org-reverse-string' > > * lisp/org.el (org-reverse-string): Add `org-reverse-string' to > reverse a string. > * lisp/org-id.el: Replace `org-id-reverse-string' by > `org-reverse-string'. > * lisp/ob-core.el: Replace `org-babel-reverse-string' by `org-reverse-string' > > TINYCHANGE > --- > lisp/ob-core.el |8 ++-- > lisp/org-id.el |7 ++- > lisp/org.el |4 > 3 files changed, 8 insertions(+), 11 deletions(-) > > diff --git a/lisp/ob-core.el b/lisp/ob-core.el > index 9e4c8b1..0a495d0 100644 > --- a/lisp/ob-core.el > +++ b/lisp/ob-core.el > @@ -2495,10 +2495,6 @@ If the table is trivial, then return it as a scalar." > (match-string 1 cell)) >cell) t)) > > -(defun org-babel-reverse-string (string) > - "Return the reverse of STRING." > - (apply 'string (reverse (string-to-list string > - > (defun org-babel-chomp (string &optional regexp) >"Strip trailing spaces and carriage returns from STRING. > Default regexp used is \"[ \f\t\n\r\v]\" but can be > @@ -2513,8 +2509,8 @@ overwritten by specifying a regexp as a second > argument." >"Strip leading and trailing spaces and carriage returns from STRING. > Like `org-babel-chomp' only it runs on both the front and back > of the string." > - (org-babel-chomp (org-babel-reverse-string > -(org-babel-chomp (org-babel-reverse-string string) > regexp)) > + (org-babel-chomp (org-reverse-string > +(org-babel-chomp (org-reverse-string string) regexp)) > regexp)) > > (defvar org-babel-org-babel-call-process-region-original nil) > diff --git a/lisp/org-id.el b/lisp/org-id.el > index b35ea5e..bb503bd 100644 > --- a/lisp/org-id.el > +++ b/lisp/org-id.el > @@ -343,7 +343,7 @@ So a typical ID could look like \"Org:4nd91V40HI\"." >(unless (org-uuidgen-p unique) > (setq unique (org-id-uuid > ((eq org-id-method 'org) > - (let* ((etime (org-id-reverse-string (org-id-time-to-b36))) > + (let* ((etime (org-reverse-string (org-id-time-to-b36))) >(postfix (if org-id-include-domain > (progn > (require 'message) > @@ -376,9 +376,6 @@ So a typical ID could look like \"Org:4nd91V40HI\"." > (substring rnd 18 20) > (substring rnd 20 32 > > -(defun org-id-reverse-string (s) > - (mapconcat 'char-to-string (nreverse (string-to-list s)) "")) > - > (defun org-id-int-to-b36-one-digit (i) >"Turn an integer between 0 and 61 into a single character 0..9, A..Z, > a..z." >(cond > @@ -432,7 +429,7 @@ and time is the usual three-integer representation of > time." > (if (= 2 (length parts)) > (setq prefix (car parts) time (nth 1 parts)) >(setq prefix nil time (nth 0 parts))) > -(setq time (org-id-reverse-string time)) > +(setq time (org-reverse-string time)) > (setq time (list (org-id-b36-to-int (substring time 0 4)) >(org-id-b36-to-int (substring time 4 8)) >(org-id-b36-to-int (substring time 8 12 > diff --git a/lisp/org.el b/lisp/org.el > index 5033cbf..65c8c60 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -21038,6 +21038,10 @@ for the search purpose." > (error "Unable to create a link to here" > (org-occur-in-agenda-files (regexp-quote link > > +(defun org-reverse-string (string) > + "Return the reverse of STRING." > + (apply 'string (reverse (string-to-list string > + > (defun org-uniquify (list) >"Remove duplicate elements from LIST." >(let (res) > -- > 1.7.10.4 -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] #+headers: :tangle doesn't work
>> so it appears everything is working as expected. > > Not so fast, if I try to tangle each block separately C-u C-c C-v t then > the one with #+headers: doesn't tangle and there is the message: > > "tangled 0 code blocks from x.org" > I just pushed up a fix. Thanks for finding this bug. -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] [PATCH] Add `org-reverse-string'
Eric Schulte writes: > This patch looks fine to me, although you'll need to add a > `declare-function' call to the top of ob-core.el (and maybe to org-id as > well) or the compiler will complain. I've added a `declare-function' call to `ob-core.el' but I think I don't need to add it to `org-id.el' because it already require `org.el'. Thanks for taking time to review this patch. From 91c4d0fde589e23de3bebbc4d8f95f90e85dbc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Jadi?= Date: Sat, 26 Jan 2013 22:27:51 +0100 Subject: [PATCH] Unify `org-id-reverse-string' and `org-babel-reverse-string' into `org-reverse-string' * lisp/org.el (org-reverse-string): Add `org-reverse-string' to reverse a string. * lisp/org-id.el(org-id-new, org-id-decode): Replace `org-id-reverse-string' by `org-reverse-string'. * lisp/ob-core.el(org-babel-trim): Replace `org-babel-reverse-string' by `org-reverse-string' and declare it. TINYCHANGE --- lisp/ob-core.el |9 +++-- lisp/org-id.el |7 ++- lisp/org.el |4 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 9e4c8b1..7453955 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -91,6 +91,7 @@ (declare-function org-escape-code-in-region "org-src" (beg end)) (declare-function org-unescape-code-in-string "org-src" (s)) (declare-function org-table-to-lisp "org-table" (&optional txt)) +(declare-function org-reverse-string "org" (string)) (defgroup org-babel nil "Code block evaluation and management in `org-mode' documents." @@ -2495,10 +2496,6 @@ If the table is trivial, then return it as a scalar." (match-string 1 cell)) cell) t)) -(defun org-babel-reverse-string (string) - "Return the reverse of STRING." - (apply 'string (reverse (string-to-list string - (defun org-babel-chomp (string &optional regexp) "Strip trailing spaces and carriage returns from STRING. Default regexp used is \"[ \f\t\n\r\v]\" but can be @@ -2513,8 +2510,8 @@ overwritten by specifying a regexp as a second argument." "Strip leading and trailing spaces and carriage returns from STRING. Like `org-babel-chomp' only it runs on both the front and back of the string." - (org-babel-chomp (org-babel-reverse-string -(org-babel-chomp (org-babel-reverse-string string) regexp)) + (org-babel-chomp (org-reverse-string +(org-babel-chomp (org-reverse-string string) regexp)) regexp)) (defvar org-babel-org-babel-call-process-region-original nil) diff --git a/lisp/org-id.el b/lisp/org-id.el index b35ea5e..bb503bd 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -343,7 +343,7 @@ So a typical ID could look like \"Org:4nd91V40HI\"." (unless (org-uuidgen-p unique) (setq unique (org-id-uuid ((eq org-id-method 'org) - (let* ((etime (org-id-reverse-string (org-id-time-to-b36))) + (let* ((etime (org-reverse-string (org-id-time-to-b36))) (postfix (if org-id-include-domain (progn (require 'message) @@ -376,9 +376,6 @@ So a typical ID could look like \"Org:4nd91V40HI\"." (substring rnd 18 20) (substring rnd 20 32 -(defun org-id-reverse-string (s) - (mapconcat 'char-to-string (nreverse (string-to-list s)) "")) - (defun org-id-int-to-b36-one-digit (i) "Turn an integer between 0 and 61 into a single character 0..9, A..Z, a..z." (cond @@ -432,7 +429,7 @@ and time is the usual three-integer representation of time." (if (= 2 (length parts)) (setq prefix (car parts) time (nth 1 parts)) (setq prefix nil time (nth 0 parts))) -(setq time (org-id-reverse-string time)) +(setq time (org-reverse-string time)) (setq time (list (org-id-b36-to-int (substring time 0 4)) (org-id-b36-to-int (substring time 4 8)) (org-id-b36-to-int (substring time 8 12 diff --git a/lisp/org.el b/lisp/org.el index 5033cbf..65c8c60 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21038,6 +21038,10 @@ for the search purpose." (error "Unable to create a link to here" (org-occur-in-agenda-files (regexp-quote link +(defun org-reverse-string (string) + "Return the reverse of STRING." + (apply 'string (reverse (string-to-list string + (defun org-uniquify (list) "Remove duplicate elements from LIST." (let (res) -- 1.7.10.4 -- Daimrod/Greg pgpWxZ54NpGGd.pgp Description: PGP signature
Re: [O] BUG? table output despite "#+begin_src sh :results verbatim"
Eric Schulte writes: > If you still experience the problem you may want to ensure that you > aren't using `org-babel-execute-src-block' from an old version of > Org-mode by executing the following from your scratch buffer > > ;; emacs-lisp > (when (require 'find-func) > (find-function 'org-babel-execute-src-block)) Unless you really want to open the source file of course, I'd rather use (symbol-file 'org-babel-execute-src-block) for this check. If the result is nil, then the function wasn't defined at all. If the function is currently defined as an autoload (but the defining library has not been loaded), then you'll get a relative filename that will resolve via load-path at the point of first use. If the library that defines the function has been loaded already, then you'll get the absolute path to the file it has been loaded from. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs
Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification
Nick Dokos writes: > I tried the imagemagick setting, set the options variable to black background > and red foreground - lo and behold, that's what I get in the preview. I was correct in my conclusion last night that I needed to go to bed... I was making a silly mistake (and I won't go into details ;-). This does indeed work! Thanks again. -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc
Re: [O] About range references in the spreadsheet
Bastien writes: > Hi Xue, > > Xue Fuqiao writes: > >> In (info "(org) References"), there is an example explaining the range >> references: >> >> @-1$-2..@-1 3 numbers from the column to the left, 2 up to >> current row >> >> What does `2 up to current row' mean? I don't understand. IIRC `@' >> represents row, it should be `1 up to current row'. > > No. The whole sentence expands to this: > > This range takes 3 numbers: the first one from the column to the > left (and the row above), the 2 others up to current row. > > I agree this might not be obvious but I don't have a better proposal. > Maybe a native english speaker can help here. > > Best, I think the current description is wrong and that rows and columns have been interchanged? The entries defined by this range are all in the row above (@-1) the current row. The columns chosen are two to the left of the current column up to the current column. If you wish to re-word, maybe: This range expands to three elements, all on the row above the current row, starting with the column two to the left of the current column. -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc
Re: [O] Problems with org-caldav (wrong-type-argument stringp 47)
Hi David David Engster writes: > Sven Bretfeld writes: >> (setq org-caldav-files "/home/sven/Dropbox/myconf/testlocalcal.org") > > No, that's wrong. It has to be a list of files: > > (setq org-caldav-files '("/home/sven/Dropbox/myconf/testlocalcal.org")) Yes, that did it. Thank you. Now syncing works but with error messages that appear sometimes: - progn: Could not find UID emacs207403667799062360. And at other times: - void-function pop-to-buffer-same-window Could the last one be a function not implemented in my 23 version of Emacs? See a full debugg below. The first one is strange to me too. That's a nice package. I'm trying to automatize the sync process by a cronjob and tell you my experiences. Sven Debugger entered--Lisp error: (void-function pop-to-buffer-same-window) (pop-to-buffer-same-window (current-buffer)) (save-current-buffer (set-buffer (get-buffer-create "*org caldav sync result*")) (setq buffer-read-only nil) (erase-buffer) (insert "CalDAV Sync finished.\n\n") (if (null org-caldav-sync-result) (insert "Nothing was done.") (insert "== Sync errors: \n\n") (let ... ...) (insert "\n== Successful syncs: \n\n") (org-caldav-sync-result-print-entries ...)) (pop-to-buffer-same-window (current-buffer)) (setq buffer-read-only t) (goto-char (point-min)) (use-local-map org-caldav-sync-results-mode-map)) (with-current-buffer (get-buffer-create "*org caldav sync result*") (setq buffer-read-only nil) (erase-buffer) (insert "CalDAV Sync finished.\n\n") (if (null org-caldav-sync-result) (insert "Nothing was done.") (insert "== Sync errors: \n\n") (let ... ...) (insert "\n== Successful syncs: \n\n") (org-caldav-sync-result-print-entries ...)) (pop-to-buffer-same-window (current-buffer)) (setq buffer-read-only t) (goto-char (point-min)) (use-local-map org-caldav-sync-results-mode-map)) org-caldav-display-sync-results() (progn (org-caldav-display-sync-results)) (if org-caldav-show-sync-results (progn (org-caldav-display-sync-results))) (when org-caldav-show-sync-results (org-caldav-display-sync-results)) org-caldav-sync() call-interactively(org-caldav-sync t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) Debugger entered--Lisp error: (void-function pop-to-buffer-same-window) (pop-to-buffer-same-window (current-buffer)) (save-current-buffer (set-buffer (get-buffer-create "*org caldav sync result*")) (setq buffer-read-only nil) (erase-buffer) (insert "CalDAV Sync finished.\n\n") (if (null org-caldav-sync-result) (insert "Nothing was done.") (insert "== Sync errors: \n\n") (let ... ...) (insert "\n== Successful syncs: \n\n") (org-caldav-sync-result-print-entries ...)) (pop-to-buffer-same-window (current-buffer)) (setq buffer-read-only t) (goto-char (point-min)) (use-local-map org-caldav-sync-results-mode-map)) (with-current-buffer (get-buffer-create "*org caldav sync result*") (setq buffer-read-only nil) (erase-buffer) (insert "CalDAV Sync finished.\n\n") (if (null org-caldav-sync-result) (insert "Nothing was done.") (insert "== Sync errors: \n\n") (let ... ...) (insert "\n== Successful syncs: \n\n") (org-caldav-sync-result-print-entries ...)) (pop-to-buffer-same-window (current-buffer)) (setq buffer-read-only t) (goto-char (point-min)) (use-local-map org-caldav-sync-results-mode-map)) org-caldav-display-sync-results() (progn (org-caldav-display-sync-results)) (if org-caldav-show-sync-results (progn (org-caldav-display-sync-results))) (when org-caldav-show-sync-results (org-caldav-display-sync-results)) org-caldav-sync() call-interactively(org-caldav-sync t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil)
[O] [BUG] org-mode fontification error [11 times]
In an empty org buffer, type #+tit Then M-TAB to complete. You should observe: org-mode fontification error Org-mode version 7.9.3d (release_7.9.3d-892-gdfa07a) Leo
[O] org-tree-slide: some small changes
Dear Takaaki, I have been playing with your org tree slide mode. I really like it. It didn't quite do what I wanted so I have played around with it. I've made a couple of simple changes which you may wish to consider incorporating. Specifically, I have added two hooks, one run just before playing the slide show and one run when the slide show is stopped. This allows me to, for instance, turn off flyspell mode, increase the text scale etc. for the actual slide show but revert these back after I am finished showing the slides. I realise that the play hook may duplicate the mode-hook you already had defined but I couldn't get the latter to work. It turns out that there was a typographical error in =org-tree-slide-mode= in that it tried to run the wrong hook (=org-mode-slide-mode-hook= instead of =org-tree-slide-mode-hook=) but I only figured that out once I had added my own hooks. I have fixed that error as well but decided to leave the hooks in place for the moment (I have to work on an actual talk now...). Please see attached the slightly modified version of your code and an example slide show which shows a couple of example hooks. Please feel free to incorporate any of the changes you wish, if any. Thanks for an excellent little tool that is proving to be very useful to me! eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc #+TITLE: Demonstration of org tree slide presentation #+AUTHOR:Eric S Fraga #+EMAIL: e.fr...@ucl.ac.uk #+DATE: 2013-01-26 Sat Start by executing (=C-c C-c=) this emacs lisp code which will set things up correctly. To play the slide, hit =F8=, aka =M-x org-tree-slide-mode RET=. To finish the slide show, hit =F8= again. Use =C-F8= to see the table of contents at any time; the table of contents supports navigation. Hit == to resume presentation with any given slide. #+begin_src emacs-lisp :results none (require 'org-tree-slide) (defun esf/play-org-tree-slide () (auto-fill-mode t) (evil-emacs-state) (flyspell-mode-off) (org-preview-latex-fragment) (org-toggle-pretty-entities) (setq sentence-highlight-mode nil) (text-scale-set 5) (delete-other-windows) (message "ESF playing org tree slide")) (add-hook 'org-tree-slide-mode-play-hook 'esf/play-org-tree-slide) (defun esf/stop-org-tree-slide () (auto-fill-mode t) (evil-normal-state) (flyspell-mode-on) (setq sentence-highlight-mode t) (text-scale-set 1) (message "ESF stopping org tree slide")) (add-hook 'org-tree-slide-mode-stop-hook 'esf/stop-org-tree-slide) (local-set-key (kbd "") 'org-tree-slide-mode) (local-set-key (kbd "C-") 'org-tree-slide-content) (local-set-key (kbd "S-") 'org-tree-slide-skip-done-toggle) (setq org-format-latex-options '(:foreground "white" :background "black" :scale 3 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) org-latex-create-formula-image-program 'imagemagick org-tree-slide-heading-emphasis t ) ;;(org-tree-slide-mode) #+end_src Execute the following code when wanting to edit the slides in a more normal environment: #+begin_src emacs-lisp :results none (evil-normal-state) (flyspell-mode-on) (text-scale-set 1) #+end_src * Introduction - this is short. - but could be longer. * Equations - probably do not work: \begin{align} y & = \sqrt {x} \\ z &= \int_0^\infty t \, dt \end{align} - actually, they do work but I cannot seem to get the right background colour: FIXED! Used ImageMagick in lieu of dvipng. - What about a different latex fragment, such as $x \in [0,1)$? - they even work inline if we look at \alpha and \beta. * Images [[./mip.png]] * Actions - Do something - And something else * Assignments - Joe does this - Jill does something else org-tree-slide.el Description: application/emacs-lisp
[O] Footnote export question
G'day, My publisher wants footnotes to look like this: --- * Section title Here is some text.^1 And some more.^2 1. First footnote 2. Second footnote * New title Text for the new title.^1 And some more.^2 1. first footnote of second section. 2. second footnote of second section. --- Is there some way to achieve the result required? I only need the finished product in an export file, preferably ODT (since the publisher only takes Word files.) I have exported with f:nil in order to maintain the structure (without footnote linkage, of course), but the numbering remains a problem. The manuscript is about 100 pages, so it's not impossible to do it by hand, and I suppose an awk script would do it, but ... Thanks for any help, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:172...@iptel.org
Re: [O] [BUG] org-mode fontification error [11 times]
Leo Liu writes: > In an empty org buffer, type > > #+tit > > Then M-TAB to complete. You should observe: > > org-mode fontification error > > Org-mode version 7.9.3d (release_7.9.3d-892-gdfa07a) Does not reproduce, this must be dependent on some customization of yours (completion etc.) — can you provide a recipe from 'emacs -Q'? FWIW, the line is fontified as a comment when typing the first "t". Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] Agenda optimization: new option `org-agenda-inhibit-startup'
Bastien writes: > Hi all, > > in the maint and master branch, there is `org-agenda-inhibit-startup', > a new option defaulting to t which prevent the agenda buffers to run > some startup initialization when called for generating an agenda -- > e.g. opening the buffer with a specific cycling state is not honored. > > This will speed up agenda generation *a lot*, especially for people > who have lots of agenda files. > > Please check and let me know. Seems to work fine and it does seem to speed things up significantly (although this is a non-quantitative assessment). Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc