Re: [O] bbdb or bbdb3 or org-contacts
Dieter Wilhelm die...@duenenhof-wilhelm.de writes: Hi list, I just took up again the Gnus newsreader! Formerly I used it in conjunction with bbdb. It would be nice if I had the possibility to (re)use my contacts from gmail. What do you advise, what is already usable and what is the way ahead, still bbdb or bbdb3 or already org-contacts? Hi Dieter One possibility is google-contacts, which allows you to access Google contacts from Gnus, written by the same person as org-contacts, and found here: http://julien.danjou.info/projects/emacs-packages#google-contacts Also look at ASynK, which can synchronize between Google and bbdb3: https://karra-asynk.appspot.com/ -- David R
Re: [O] LaTeX source block problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/01/13 18:35, Thomas S. Dye wrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: - C-c c results in org-babel-execute-src-block: No org-babel-execute function for LaTeX! Do you have something like this in .emacs? (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) I have (require 'ob-latex) which I remember reading somewhere is equivalent. I also only have (require 'ob-R) to enable language execution and R works. Rainer hth, Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRBjuuAAoJENvXNx4PUvmC76kIAJHjI9IODCWT1MynK3k8qxbK POWEywC6SeUR36tS+t2zEbY7VtqgjFhUQL7lyqfcAxEwjCsHrNDxFXyhGbkVZ6Ip k4vpMJ4j7Uq0nvPM2h75wBspFhrJ5B0jDcKB0RaX8UXLwYIPmKzzkKa8OR2g/+Wa DlXw15UezDP77THCiya8BFsbLYFACraWmjIZRUjsaeLlIikAzAf6audBaD4xpmAN s3qVQN9D0/VjvhNNh4ZTiWEJRfG5e+YF6fnGTbHhApS9eR3iLWPajYRpsX1YdPk3 +qQSAcLBgdP79fTrksKL/+o0odbm+q52lNuq+vqdX2WrWeBDEI3Qp7ZdahpOSaY= =zh9E -END PGP SIGNATURE-
[O] can babel results show time of evaluation?
hi I would like to overlay the hash info in results lines of this type #+RESULTS[6e22789c4866716ffb3d0966cbb07c80cacf2d3c]: [1] 1 by a description which shows the evaluation time, e.g. like this #+RESULTS[[6e22789c4866716ffb3d0966cbb07c80cacf2d3c][ evaluated 2013-01-28 Mon 09:33]]: as far as I can see it would require to modify one line in ob-core.el (when hash (concat [hash])) e.g. by some polished version of this hack: (when hash (concat [[hash][ (with-temp-buffer (org-insert-time-stamp (current-time) 'hm)) ]])) but, not sure if that is a good idea and what other changes this would require. best Thomas -- sent from Nil
Re: [O] [OT] open url in emacs was: Re: Using Org/babel for Emacs config files
Jambunathan K kjambunat...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Jambu, Jambunathan K kjambunat...@gmail.com writes: Bastien b...@altern.org writes: Andreas Leha andreas.l...@med.uni-goettingen.de 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. I finally tracked this down. Disabling egg (from https://github.com/byplayer/egg.git) solved my problem with browse-url-emacs. There seems to be a(nother) problem in egg... Thank to all looking into this. Regards, Andreas
Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification
Myles English mylesengl...@gmail.com writes: Hi Eric, Eric S Fraga writes: Nick Dokos nicholas.do...@hp.com 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. Please could you clarify a couple of things for me? From your investigations can you say if there is a bug in the orgmode use of dvipng, or has dvipng changed so that the expected behaviour is no longer supported? I too use a dark display (emacs theme zenburn-emacs), get the black fragments in normal latex blocks in org files (i.e. not beamer), and org-format-latex-options has no visible effect, how can I have white formulae again? Thanks, Myles Hi Myles, Thanks for prompting me on this. I've explored the code a bit further. The two approaches, i.e. dvipng vs imagemagick, differ not only in the tool used to create the image and the source of the image (dvi versus pdf) but also in the latex code actually created to generate the image in the first place. The dvipng route does not specify any colours in the latex and relies on dvipng to change explicitly the background and foreground colours. The imagemagick route, however, creates a latex file that has the colour specifications directly and the conversion does change any colours. So, it could be that dvipng has changed and no longer changes the colours correctly or it may be that latex has changed in how the dvi file specifies colours? However, I have verified that dvipng will work just fine, without asking for colour changes, if the dvi is created using the latex code used for the imagemagick case. This leads me to suggest that both cases (dvipng and imagemagick) use the same latex code and, in fact, it may be possible to fold both functions org-create-formula-image-with-dvipng and org-create-formula-image-with-imagemagick into one... but maybe this has other repercussions. One such repercussion could be the use of transparent colour specifications: dvipng would appear to support this but imagemagick might not (as org appears to use white when transparent is specified for a background colour, if I understood the code. eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-891-gf52600
Re: [O] org-tree-slide: some small changes
Takaaki ISHIKAWA tak...@ieee.org writes: Dear Eric, Thank you for your feedback! You're very welcome. And I'm so glad to hear you like org-tree-slide.el. I've just updated my code in Github. The code includes the two hooks. On the other hand, I deleted =org-mode-slide-mode-hook= because it did not work well. I had to check the typo more carefully, sorry for that. Thanks! I'm glad you are happy with my suggested changes. If you don't mind, I would like to add your name into the source code as a contributor. Sure, that would be fine. I Hope for the success of your talk ;-) Thanks again! I'm facilitating a workshop discussion and need to update slides as I go along, hence my desire to use something more interactive than my usual org-beamer-pdf route for talks. Your org-tree-slide mode seems to be ideal for this! And I would hate to have to struggle with powerpoint or its equivalent... -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-891-gf52600
Re: [O] Problems with org-caldav (wrong-type-argument stringp 47)
David Engster d...@randomsample.de writes: Sven Bretfeld writes: Hi David and all I've got it. By try and error I found out that entries like these in an org-file cause the problem: %%(diary-anniversary 6 8 1969) Christian is %d years old Ah OK. Thanks for looking into this. Those entries apparently produce events during export but don't seem to get an ID. I'll look into this issue during the next week, when my sinuses have calmed down a bit... Yes, this is the same problem I was having when I started using org-caldav-sync. I currently have all my sexp based diary entries commented out so would definitely appreciate getting this working! Hope you get better soon! Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-891-gf52600
[O] disable html-preambler per file
I see that there is the option `html-preamble' but apparently it is not applicable on a per file basis. How can set org-export-html-preamble to nil for single files? cheers, henry
[O] Bug in org-bibtex (patch attached)
Hi, There is a small bug in org-bibtex which prevents org-bibtex-search to work correctly when org-bibtex-prefix is nil. Patch attached. Matthieu--- /home/ml213213/git/ext/org-mode/lisp/org-bibtex.el 2013-01-28 13:28:21.910313351 +0100 +++ /home/ml213213/.emacs.d/elpa/org-plus-contrib-20121231/org-bibtex.el 2013-01-28 13:23:26.786308753 +0100 @@ -708,7 +679,7 @@ (org-agenda-search-view-always-boolean t)) (org-search-view nil (format %s +{:%s%s:} - string org-bibtex-prefix + string (or org-bibtex-prefix ) org-bibtex-type-property-name (provide 'org-bibtex)
[O] org-archive-add-header-to-new-files
Hi Org, here is a patch to master that allows one to inhibit the addition of the header line to newly created archive files. 2013-01-28 Christopher Schmidt christop...@ch.ristopher.com * org-archive.el (org-archive-add-header-to-new-files): New option. (org-archive-subtree): Honour org-archive-add-header-to-new-files. --- a/lisp/org-archive.el +++ b/lisp/org-archive.el @@ -71,6 +71,12 @@ This variable is obsolete and has no effect anymore, instead add or remove :group 'org-archive :type 'boolean) +(defcustom org-archive-add-header-to-new-files t + Non-nil means to add a header line (\Archived entries from +file FILE-NAME\) to newly created archive files. + :group 'org-archive + :type 'boolean) + (defcustom org-archive-subtree-add-inherited-tags 'infile Non-nil means append inherited tags when archiving a subtree. :group 'org-archive @@ -278,7 +284,8 @@ this heading. (let ((org-insert-mode-line-in-empty-file t) (org-inhibit-startup t)) (call-interactively 'org-mode))) - (when newfile-p + (when (and newfile-p + org-archive-add-header-to-new-files) (goto-char (point-max)) (insert (format \nArchived entries from file %s\n\n (buffer-file-name this-buffer Christopher
Re: [O] LaTeX source block problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/01/13 14:10, John Hendy wrote: On Jan 28, 2013 2:50 AM, Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com wrote: On 25/01/13 18:35, Thomas S. Dye wrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com writes: - C-c c results in org-babel-execute-src-block: No org-babel-execute function for LaTeX! Do you have something like this in .emacs? (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) I have (require 'ob-latex) This is the old style. Could you try re-defining your Babel setup according to the current manual/Worg instructions to see if that helps? Ok - I have changed it, but still the same. Rainer John which I remember reading somewhere is equivalent. I also only have (require 'ob-R) to enable language execution and R works. Rainer hth, Tom - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRBn18AAoJENvXNx4PUvmCmJUH/RnQvWLyIpb9cWcvtiayR9MU UEoLrY8Szgtd+arYtJQCgYf19tNrT/MJDg7QI5/5DSDBml5WrDTWdyCMpbR1FOJN 47p/T6642BGMjUWwvDhncnWdFMWBhnrTDaAl7lWdXQe+Gz/3nJu+s+bTkbbhTz5t AyME9G9AZlDgb8RNKoqgM+myzS2or6FrhKrnUa6dRoxwIeZePZ3SlnIwGmULvZyT uw+j6nCImd3Je+6TaOsyzB/yMy7HJS0AEag+dqyUqCJ4ml8EUnWCu0W1QRD9g/Us madMp+a+bgj46o1qZG7gFo23vgZMVyI6EB0+qDYOoPNX8YpxPEJLLoEvAniBiuk= =X3Td -END PGP SIGNATURE-
[O] SOLVED: LaTeX source block problems
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I solved it bu using the examples on http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html especially the tkz example. So it looks no as follow: * The gantt chart #+header: :fit yes :noweb yes :headers '(\\usepackage{pgfgantt}) #+BEGIN_SRC latex :exports results :file timeline.pdf \begin {ganttchart} [hgrid=true, % vgrid={ *{11}{blue, dotted}, *1{red} } % ]{36} \gantttitlelist {1,...,3}{12} \\ \gantttitlelist {1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12}{1} \\ %%% \ganttgroup [inline, group label inline anchor/.style=above right, group label shape anchor=left] {Modelling}{1}{36} \\ \end {ganttchart} #+END_SRC and C-c in latex gives me: #+RESULTS: #+BEGIN_LaTeX [[file:timeline.pdf]] #+END_LaTeX Thanks, Rainer On 28/01/13 14:30, Rainer M Krug wrote: On 28/01/13 14:10, John Hendy wrote: On Jan 28, 2013 2:50 AM, Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com wrote: On 25/01/13 18:35, Thomas S. Dye wrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com writes: - C-c c results in org-babel-execute-src-block: No org-babel-execute function for LaTeX! Do you have something like this in .emacs? (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) I have (require 'ob-latex) This is the old style. Could you try re-defining your Babel setup according to the current manual/Worg instructions to see if that helps? Ok - I have changed it, but still the same. Rainer John which I remember reading somewhere is equivalent. I also only have (require 'ob-R) to enable language execution and R works. Rainer hth, Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRBod6AAoJENvXNx4PUvmCJBgH/3i6vVVz1KmUCDDYz/ybuphR mflp67kaaxzUs2yIacTruG2jP/5UpuaAUYN/Y88UwvWjANHb+B/B2QSFNwwaWcjN +oco756zMmtfDlARQm/ZlIgpJSl522d5lufnGPCy0mtIHfFFfbdVmDyYmiRp56kO aCEtJ6+7Gy1AYaAQAJHCmnnPIaBdSxWltifCMe+pEkVG5ZnMhMGv3iFCpF2kLikP 2s/gcDGIfzF0Ez1TI+Rj/n8c0+tSKsu0x69+kRmAR/0ksV+EC+D0lUZljwzSzvp9 ZPvMjxiVAjN3k5XwKjERzyM372/wL+1eLZT/of5ktYg7NoprxsYFrtrLiypKC20= =bV2F -END PGP SIGNATURE-
Re: [O] colorg: Weekly status!
François, Have a look at https://github.com/ether/etherpad-lite/blob/master/doc/easysync/easysync-full-description.tex and other nearby documents/code. Implementing easysync in elisp would be valuable, not just for org-mode, I think. Cheers, and thanks for your work! --Dave -Original Message- From: emacs-orgmode-bounces+david.loyall=nebraska@gnu.org [mailto:emacs-orgmode-bounces+david.loyall=nebraska@gnu.org] On Behalf Of François Pinard Sent: Monday, January 28, 2013 0:36 AM To: emacs-orgmode@gnu.org Cc: Jean Schurger; Aurélien Bondis Subject: [O] colorg: Weekly status! [snip] ...the resolution clashing code in the server still has to be implemented... [snip]
[O] org-tree-slide as default, sort of
I tried to make org-tree-slide work on every startup of an org file. Though I did not figure it for the best idea I set an orgmode hook. Now knowing some of the unwanted side effects this involves I know it actually is a bad idea. Is or will it be possible to set this on a per file basis? henry -- http://literaturlatenight.de
[O] Bug in org-insert-heading-after-current?
Hi List, having added a property drawer with two entries: ,- | * Definitions | :PROPERTIES: | :exports: both | :results: replace | :END: `- I evaluate: ,--- | (outline-previous-heading) | (org-insert-heading-after-current) `--- and get: , | * Definitions | :PROPERTIES: | :exports: both | :results: replace | * | [2013-01-28 Mo 17:48] | :END: ` while the new heading should be below the :END: PS Org-mode version 7.9.3d (release_7.9.3d-826-gbe0d87 @ /usr/share/emacs/24.2/lisp/org/lisp/) GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.2) of 2012-11-18 on eric -- cheers, Thorsten
[O] org-md fixed-width filter problems
The :translate-alist for the md backend has no entry for fixed-width, so it defaults to the parent org-e-html-fixed-width which uses (format pre class=\example\\n%s/pre ... So elements , | : like | : this ` get the html style markup. Some of the markdown processors I use don't like this. pandoc ignores the element entirely. The github blob generator copies it as verbatim. I have been using (fixed-width . org-md-verbatim) instead, but I think this is still not quite right. (IIUC, proper markdown uses four spaces at bol for such elements while org-md-verbatim uses surrounding backtics.) ? Chuck
Re: [O] colorg: Weekly status!
Loyall, David david.loy...@nebraska.gov writes: https://github.com/ether/etherpad-lite/blob/master/doc/easysync/easysync-full-description.tex Thanks for the link! Implementing easysync in elisp would be valuable, not just for org-mode, I think. Likely! Yet maybe later for colorg, I want a working solution first. :-) François
Re: [O] org-tree-slide as default, sort of
Dear Henry, How about the following setting? (add-hook 'org-mode-hook 'org-tree-slide-mode) If you have already tried the setting with the latest version of org-tree-slide, and also encountered issues, please let me know the details. I'll try to reproduce and fix it. Best, Takaaki -- Takaaki ISHIKAWA tak...@ieee.org GITI, Waseda University ( ' -')b http://about.me/takaxp On 2013年1月29日Tuesday at 1:18, henry atting wrote: I tried to make org-tree-slide work on every startup of an org file. Though I did not figure it for the best idea I set an orgmode hook. Now knowing some of the unwanted side effects this involves I know it actually is a bad idea. Is or will it be possible to set this on a per file basis? henry -- http://literaturlatenight.de
Re: [O] org-md fixed-width filter problems
cbe...@tajo.ucsd.edu writes: The :translate-alist for the md backend has no entry for fixed-width, so it defaults to the parent org-e-html-fixed-width which uses (format pre class=\example\\n%s/pre ... So elements , | : like | : this ` get the html style markup. Some of the markdown processors I use don't like this. pandoc ignores the element entirely. The github blob generator copies it as verbatim. I have been using (fixed-width . org-md-verbatim) instead, but I think this is still not quite right. (IIUC, proper markdown uses four spaces at bol for such elements while org-md-verbatim uses surrounding backtics.) ? I see now that org-md-example-block formats with the leading spaces. So I guess my question should have been 'should (fixed-width . org-md-example-block) be used?' Chuck --
Re: [O] [bug] latex fragment preview with dvipng ignores :foreground specification
Eric S Fraga writes: Myles English mylesengl...@gmail.com writes: Please could you clarify a couple of things for me? From your investigations can you say if there is a bug in the orgmode use of dvipng, or has dvipng changed so that the expected behaviour is no longer supported? I too use a dark display (emacs theme zenburn-emacs), get the black fragments in normal latex blocks in org files (i.e. not beamer), and org-format-latex-options has no visible effect, how can I have white formulae again? Thanks for prompting me on this. I've explored the code a bit further. The two approaches, i.e. dvipng vs imagemagick, differ not only in the tool used to create the image and the source of the image (dvi versus pdf) but also in the latex code actually created to generate the image in the first place. The dvipng route does not specify any colours in the latex and relies on dvipng to change explicitly the background and foreground colours. The imagemagick route, however, creates a latex file that has the colour specifications directly and the conversion does change any colours. So, it could be that dvipng has changed and no longer changes the colours correctly or it may be that latex has changed in how the dvi file specifies colours? However, I have verified that dvipng will work just fine, without asking for colour changes, if the dvi is created using the latex code used for the imagemagick case. This leads me to suggest that both cases (dvipng and imagemagick) use the same latex code and, in fact, it may be possible to fold both functions org-create-formula-image-with-dvipng and org-create-formula-image-with-imagemagick into one... but maybe this has other repercussions. One such repercussion could be the use of transparent colour specifications: dvipng would appear to support this but imagemagick might not (as org appears to use white when transparent is specified for a background colour, if I understood the code. Thanks for looking into it. Until a conclusion is reached with dvipng this gets things back to normal for me: (setq org-latex-create-formula-image-program 'imagemagick) Myles
Re: [O] org-md fixed-width filter problems
Hello, cbe...@tajo.ucsd.edu writes: cbe...@tajo.ucsd.edu writes: The :translate-alist for the md backend has no entry for fixed-width, so it defaults to the parent org-e-html-fixed-width which uses (format pre class=\example\\n%s/pre ... So elements , | : like | : this ` get the html style markup. Some of the markdown processors I use don't like this. pandoc ignores the element entirely. The github blob generator copies it as verbatim. I have been using (fixed-width . org-md-verbatim) instead, but I think this is still not quite right. (IIUC, proper markdown uses four spaces at bol for such elements while org-md-verbatim uses surrounding backtics.) ? I see now that org-md-example-block formats with the leading spaces. So I guess my question should have been 'should (fixed-width . org-md-example-block) be used?' Indeed. I have fixed it. Thanks for the suggestion. Regards, -- Nicolas Goaziou
Re: [O] org-tree-slide: some small changes
Dear Eric, If you don't mind, I would like to add your name into the source code as a contributor. Sure, that would be fine. Thank you! I'll add your name when I release the next version. I Hope for the success of your talk ;-) Thanks again! I'm facilitating a workshop discussion and need to update slides as I go along, hence my desire to use something more interactive than my usual org-beamer-pdf route for talks. Your org-tree-slide mode seems to be ideal for this! And I would hate to have to struggle with powerpoint or its equivalent... Yes, that's the point. In my case, I did not wanted to create a PPT/Keynote for short presentations such as meeting report, brain storming, and programming lecture. I believe that Org + org-tree-slide is very useful for collaboration works and saving time. Feel free to request additional features. Best, Takaaki -- Takaaki ISHIKAWA tak...@ieee.org GITI, Waseda University ( ' -')b http://about.me/takaxp
Re: [O] BUG? table output despite #+begin_src sh :results verbatim
Eric, Mucho Kudos indeed I had an old patch to org-babel-execute:sh tucked away masking your released version. 'nuff said, except Thanks, again, very much, Mea culpa, ~Malcolm .-Original Message- .From: Eric Schulte [mailto:schulte.e...@gmail.com] .Sent: Saturday, January 26, 2013 1:37 PM .To: Cook, Malcolm .Cc: 'Thomas S. Dye'; Blanchette, Marco; 'emacs-orgmode@gnu.org' .Subject: Re: [O] BUG? table output despite #+begin_src sh :results verbatim . .Cook, Malcolm m...@stowers.org 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 m...@stowers.org 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
Re: [O] org-tree-slide as default, sort of
Hi Takaaki, [...] How about the following setting? (add-hook 'org-mode-hook 'org-tree-slide-mode) If you have already tried the setting with the latest version of org-tree-slide, and also encountered issues, please let me know the details. I'll try to reproduce and fix it. [...] Yes, this was exactly my setting. At first it breaks org-publish. If I export a file the resulting html file will only contain the first top level headline and the second, 3rd ... level headlines. All other top level headlines are ignored. Secondly it breaks gnus/message mode when started with a hook to load orgstruct mode like this: (add-hook 'message-mode-hook 'turn-on-orgstruct) When I want to write a new mail only an empty buffer opens with an error message something like `before first heading'. Thirdly I think org-tree-slide should ignore org-agenda or vice versa. When I open org-agenda frequently the org-tree-slide greeting message appears in the echo area. Maybe it slows it down... henry -- http://literaturlatenight.de
[O] orgstruct-mode with custom headline prefix
Hi Org, here is a patch for master that enables the use of a custom headline prefix file locally in conjunction with orgstruct-mode. 2013-01-28 Christopher Schmidt christop...@ch.ristopher.com * org.el (org-outline-regexp, org-heading-regexp): Make them safe local variables. (org-outline-regexp-bol): Remove variable, new function. All users of org-outline-regexp-bol changed. (org-cycle-global-status, org-cycle-subtree-status): Set state property. (org-heading-components): Use org-heading-regexp in orgstruct-mode. (orgstruct-mode): Simplify docstring. (orgstruct-setup): Simplify implementation. Translate keys to their most general equivalent. (orgstruct-make-binding): Generate index on the fly, discard alternative keys. (org-get-local-variables): Honour state property. (org-run-like-in-org-mode): Do not override variables with non-default values. (org-forward-heading-same-level): Use org-outline-regexp-bol. Do not skip to parent heading. (org-backward-heading-same-level): Use org-forward-heading-same-level. --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -4437,9 +4437,9 @@ in `org-agenda-text-search-extra-files'. regexps+)) (setq regexps+ (sort regexps+ (lambda (a b) ( (length a) (length b) (if (not regexps+) - (setq regexp org-outline-regexp-bol) + (setq regexp (org-outline-regexp-bol)) (setq regexp (pop regexps+)) - (if hdl-only (setq regexp (concat org-outline-regexp-bol .*? + (if hdl-only (setq regexp (concat (org-outline-regexp-bol) .*? regexp (setq files (org-agenda-files nil 'ifmode)) (when (eq (car org-agenda-text-search-extra-files) 'agenda-archives) @@ -5018,10 +5018,10 @@ of what a project is and how to check if it stuck, customize the variable \\)\\)) (tags (nth 2 org-stuck-projects)) (tags-re (if (member * tags) - (concat org-outline-regexp-bol + (concat (org-outline-regexp-bol) (org-re .*:[[:alnum:]_@#%]+:[ \t]*$)) (if tags - (concat org-outline-regexp-bol + (concat (org-outline-regexp-bol) .*:\\( (mapconcat 'identity tags \\|) (org-re \\):[[:alnum:]_@#%:]*[ \t]*$) @@ -5547,7 +5547,7 @@ Do we have a reason to ignore this TODO entry because it has a time stamp? category (org-get-category b0) category-pos (get-text-property b0 'org-category-position)) (save-excursion - (if (not (re-search-backward org-outline-regexp-bol nil t)) + (if (not (re-search-backward (org-outline-regexp-bol) nil t)) (throw :skip nil) (goto-char (match-beginning 0)) (if (and (eq t org-agenda-skip-timestamp-if-deadline-is-shown) @@ -5785,7 +5785,7 @@ please use `org-class' instead. (clockp (and (looking-at .*\n[ \t]*-[ \t]+\\([^-\n \t].*?\\)[ \t]*$) (match-string 1) - (if (not (re-search-backward org-outline-regexp-bol nil t)) + (if (not (re-search-backward (org-outline-regexp-bol) nil t)) (throw :skip nil) (goto-char (match-beginning 0)) (setq hdmarker (org-agenda-new-marker) @@ -6249,7 +6249,7 @@ FRACTION is what fraction of the head-warning time has passed. (setq marker (org-agenda-new-marker (point))) (setq category (org-get-category) category-pos (get-text-property (point) 'org-category-position)) - (if (not (re-search-backward org-outline-regexp-bol nil t)) + (if (not (re-search-backward (org-outline-regexp-bol) nil t)) (throw :skip nil) (goto-char (match-beginning 0)) (setq hdmarker (org-agenda-new-marker (point)) --- a/lisp/org-ascii.el +++ b/lisp/org-ascii.el @@ -422,7 +422,7 @@ publishing directory. (org-init-section-numbers) (while (setq line (pop lines)) - (when (and link-buffer (string-match org-outline-regexp-bol line)) + (when (and link-buffer (string-match (org-outline-regexp-bol) line)) (org-export-ascii-push-links (nreverse link-buffer)) (setq link-buffer nil)) (setq wrap nil) --- a/lisp/org-colview-xemacs.el +++ b/lisp/org-colview-xemacs.el @@ -858,7 +858,7 @@ around it. (save-restriction (narrow-to-region beg end) (org-clock-sum - (while (re-search-forward org-outline-regexp-bol end t) + (while (re-search-forward (org-outline-regexp-bol) end t) (if (and org-columns-skip-archived-trees (looking-at (concat .*: org-archive-tag :))) (org-end-of-subtree t) @@ -1093,7 +1093,7 @@ Don't set this, this is meant for dynamic scoping.) (defun org-columns-compute (property) Sum the values of property PROPERTY hierarchically, for the entire buffer. (interactive) - (let* ((re org-outline-regexp-bol) + (let* ((re (org-outline-regexp-bol)) (lmax 30) ; Does anyone use deeper levels??? (lvals (make-vector lmax nil)) (lflag
Re: [O] org-tree-slide as default, sort of
Hi Henry, I reproduced the first and the 3rd case you reported. I think the following setting is better than using org-mode-hook. (add-hook 'find-file-hook '(lambda () (when (eq major-mode 'org-mode) (org-tree-slide-mode When you call org-agenda, it will visit many org-files listed in org-agenda-files. This is why multiple displaying of greeting message is occurred. But actually, the message should be a custom variable. I'll change it, thanks! In my environment, I cannot reproduce the 2nd case. Could you test again with the above setting? Finally, when org-tree-slide is active, org-publish will export the narrowed tree only. If you want to export whole trees, please turn off org-tree-slide temporarily. Best, Takaaki On 2013年1月29日Tuesday at 3:37, henry atting wrote: Hi Takaaki, [...] How about the following setting? (add-hook 'org-mode-hook 'org-tree-slide-mode) If you have already tried the setting with the latest version of org-tree-slide, and also encountered issues, please let me know the details. I'll try to reproduce and fix it. [...] Yes, this was exactly my setting. At first it breaks org-publish. If I export a file the resulting html file will only contain the first top level headline and the second, 3rd ... level headlines. All other top level headlines are ignored. Secondly it breaks gnus/message mode when started with a hook to load orgstruct mode like this: (add-hook 'message-mode-hook 'turn-on-orgstruct) When I want to write a new mail only an empty buffer opens with an error message something like `before first heading'. Thirdly I think org-tree-slide should ignore org-agenda or vice versa. When I open org-agenda frequently the org-tree-slide greeting message appears in the echo area. Maybe it slows it down... henry -- http://literaturlatenight.de -- Takaaki ISHIKAWA tak...@ieee.org GITI, Waseda University ( ' -')b http://about.me/takaxp
[O] Macro question with new texinfo exporter
Aloha all, I have the following two macros: #+MACRO: markup @@info:@$1{@@$2@@info:}@@ #+MACRO: kbd {{{markup(kbd,$1)}}} When I export to texinfo using the new exporter, the following macro call triggers an error (byte-code: Wrong type argument: consp, nil): {{{kbd(C-,)}}} and so does this: {{{kbd(C-\,)}}} In fact, any number of backslashes appears to trigger the same error. I'm hoping to find @kbd{C-,} in the .texi output. All the best, Tom -- 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
Re: [O] org-tree-slide as default, sort of
Hi Takaaki, I reproduced the first and the 3rd case you reported. I think the following setting is better than using org-mode-hook. (add-hook 'find-file-hook '(lambda () (when (eq major-mode 'org-mode) (org-tree-slide-mode When you call org-agenda, it will visit many org-files listed in org-agenda-files. This is why multiple displaying of greeting message is occurred. But actually, the message should be a custom variable. I'll change it, thanks! Great, thanks. In my environment, I cannot reproduce the 2nd case. Could you test again with the above setting? With the above setting it works fine now. Finally, when org-tree-slide is active, org-publish will export the narrowed tree only. If you want to export whole trees, please turn off org-tree-slide temporarily. This is what I currently do. However the problem is if you publish a project with let's say 10 files then you will have to open all 10 and toggle org-tree-slice mode manually, given that you made changes on all 10 files. Or you evaluate (remove-hook 'find-file-hook ...) That said since I have no project with 10 files which I change all at once turning off org-tree-slide manually is sufficient for me. Thanks, henry -- http://literaturlatenight.de
Re: [O] Problems with org-caldav (wrong-type-argument stringp 47)
Hi, @David hope you feel better soon. On a side note, I had trouble getting url-dav.el loaded. There was a version in the system which was favoured all time. I couldn't find a way to tell emacs to use the local version instead. I ended up deleting the system version, possibly making my package management system upsetting later. Maybe the readme can cover how to replace the file in a good valid way. Torsten On Jan 27, 2013 4:07 PM, David Engster d...@randomsample.de wrote: Sven Bretfeld writes: - progn: Could not find UID emacs207403667799062360. I'm currently struck with a nasty cold, so I have trouble thinking. But this means that it tries to find this ID in your Org files, and it does not seem to be there. You can try to go there by calling M-x org-id-goto and yank the above ID. Does this get you anywhere? If not, could you grep through your Org files and see if there's maybe an ID which at least is similar? Maybe some special character was stripped while putting the event. Also, the *org-caldav-debug* buffer might contain more information. - void-function pop-to-buffer-same-window Could the last one be a function not implemented in my 23 version of Emacs? Yes. I will have to add some compatibility code for older Emacsen. -David
[O] copy file from link into agenda
Hi, I am trying to set up a class notes system using Org (based on my Nexus 7 w/BT Keyboard, but that's another story) I mostly have things they way I would like (I think), with each day's class notes as an org file, and a capture template to insert an entry into a date tree with some information + a link to the file name. This is all working great. What I would like is an agenda view that will pull the date tree entries matching a certain tag (IE class name) *AND* the linked file, and combine them into an agenda file For example, * 2013 ** 2013-01 January *** 2013-01-21 Monday NOTE [2013-01-21 Mon 1410] :class1: filename.c *** 2013-01-28 Monday NOTE [2013-01-28 Mon 14:51]:class1: filename.a NOTE [2013-01-28 Mon 14:51]:class2: filename.9 *** 2013-01-29 Tuesday NOTE [2013-01-29 Mon 14:51]:class1: filename.b Would like to transform this to something like: :class1: 2013-01-21 Monday contents of filename.c 2013-01-28 Monday contents of filename.a 2013-01-29 Tuesday contents of filename.b Any ideas? I'm an avid org user in some ways but pretty new to agenda file customization Subhan -- Subhan Michael Tindall | Software Developer | s...@rentrakmail.com RENTRAK | www.rentrak.com | NASDAQ: RENT
Re: [O] How to use org-capture with dynamic ID targets?
At Thu, 24 Jan 2013 20:01:47 +0100, Bastien wrote: Hi Darlan, Darlan Cavalcante Moreira darc...@gmail.com writes: everything works as expected and a table in the headline with ID someIDstring is used. However, if I try (f The template description table-line (id some_variable) this is the template content :table-line-pos II-1 :immediate-finish t) Can you provide the full (setq org-capture-templates ...) s-expression? Hi Bastien, First I created an org-mode file with the following content to act as the target. --8---cut here---start-8--- * Test table :PROPERTIES: :ID: MyTestID :END: | | Nome | Valor | |---++---| | | something | 12.00 | | | something else | 23.45 | |---++---| | # | Total | 35.45 | #+TBLFM: @4$3=vsum(@2..@-1);%.2f --8---cut here---end---8--- The capture template is something as simple as --8---cut here---start-8--- (setq org-capture-templates '( (f Add a new product and value) (ff Table table-line (id MyTestID) || %^{Product} | %^{Value} | :table-line-pos II-1 :immediate-finish t))) --8---cut here---end---8--- This works as expected, but for my use case each month the target should be a different table (which I create with a different ID). Obviously manually changing the capture template each month is error prone and easy to forget. Therefore, tried to change the ID to a function providing the new target or a variable. For instance the code below. --8---cut here---start-8--- (setq myIDVar MyTestID) (setq org-capture-templates '( (f Add a new product and value) (ff Table table-line (id myIDVar) || %^{Product} | %^{Value} | :table-line-pos II-1 :immediate-finish t))) --8---cut here---end---8--- When I try to capture with this second template Emacs complains that it cannot find the target ID myIDVar. What I expected is that it would search for the ID MyTestID that is the value of myIDVar and not for an ID myIDVar I have also tried the code below and it does not work either --8---cut here---start-8--- (defun some-function-return-the-id () DOCSTRING (interactive) MyTestID) (setq org-capture-templates '( (f Add a new product and value) (ff Table table-line (id (some-function-return-the-id)) || %^{Product} | %^{Value} | :table-line-pos II-1 :immediate-finish t))) --8---cut here---end---8--- Did you tried this? (setq org-capture-templates `((f The template description table-line (id ,some_variable) this is the template content :table-line-pos II-1 :immediate-finish t))) then it does not work even if some_variable or (some_function) provides the correct ID value. It seems that (id something) will always interpret something as a string (no matter if I put it inside quotes or not). Yes, it expects a string. Is it possible to achieve what I want with the current org-capture implementation? See above. The problem being, of course, that the capture template for f will use some_variable *statically* -- if the value of the some_variable variable changed after you evaluated the s-expression (setq org-capture-templates ...) then the new value will not be known. This is something I'll have to keep in mind. However, I don't expect this to be a problem since I start Emacs everyday. It is enough for me if I can set the ID to a variable (before setting org-capture-templates) and it uses the variable value as the ID, instead of trying to interpret the variable name as the ID. In fact, even if I ever need to change the variable value after org-capture-templates was set I'm fine by just reevaluating (setq org-capture-templates ...) again so that it sees the new value. If not, consider this as a feature request. What feature exactly? To allow a function here that would dynamically set the id? Exactly. Simple using the value of whatever list object I put there. Be it a variable value or a function that provides the. I'm fine if the value provided by a variable or a function is only read when org-capture-templates is set. The reason behind this is that each month I want a different target table for this capture template and I already implemented a function that returns the correct ID. If I can somehow make the ID target type use the return value of this function then this capture template will use the correct table each month. If not, I would be forced to manually change the capture template in the beginning of each month
Re: [O] Info: (org)Customizing tables in ODT export
t...@tsdye.com (Thomas S. Dye) writes: 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. I have trouble understanding what is it that is truncated. Would you like to share a screenshot that highlights the difference between what you see in Info manual and what you see with PDF outputs. ps: I see that what I see in Info manual matches what is there in org.texi. (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 --
Re: [O] How to use org-capture with dynamic ID targets?
Darlan Cavalcante Moreira darc...@gmail.com writes: At Thu, 24 Jan 2013 20:01:47 +0100, Bastien wrote: Did you tried this? (setq org-capture-templates `((f The template description table-line (id ,some_variable) this is the template content :table-line-pos II-1 :immediate-finish t))) This is something I'll have to keep in mind. However, I don't expect this to be a problem since I start Emacs everyday. It is enough for me if I can set the ID to a variable (before setting org-capture-templates) and it uses the variable value as the ID, instead of trying to interpret the variable name as the ID. In fact, even if I ever need to change the variable value after org-capture-templates was set I'm fine by just reevaluating (setq org-capture-templates ...) again so that it sees the new value. Exactly. Simple using the value of whatever list object I put there. Be it a variable value or a function that provides the. I'm fine if the value provided by a variable or a function is only read when org-capture-templates is set. My lisp knowledge is very limited to what I have seen in my Emacs initialization (and a lot of trying and error). But I have never seen @ used in lisp nor I know what terms to search for it.. All this above is pretty much exactly what you're looking for. Check out the Backquote section of the elisp manual for a pretty good introduction. If you quote using a backtick (`) rather than an apostrophe ('), you can use the comma (,) later on to evaluate variable values, see the example at top. I don't believe you need the @ here, but the manual section I mentioned explains it. I used to do this in my agenda commands, but it wasn't really practical because of the only evaluate once problem. If you restart emacs every day, that won't really be an issue for you. E
Re: [O] Info: (org)Customizing tables in ODT export
Thomas S. Dye tsd at tsdye.com writes: 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. I see the full file in pdf and html. I get the complete section shown in Emacs and standalone info reader no problem. What version of TeXinfo are you using and is there any warning/error when generating the info file from the texinfo sources? Regards, Achim.