Re: [O] (org-insert-headline '(4)) should insert new headline before point
On 29 April 2014 15:20, Bastien b...@gnu.org wrote: I'm having a hard time finding out what you *did* exactly -- can you describe the way to reproduce the bug from an empty buffer, step by step? Sorry, I should have been more explicit about what I was doing. Step by step instructions would look something like this. If I type the following commands, 1. emacs -q -l ~/minimal-init.el 2. C-x C-f ~/test.org RET 3. bla 4. C-a 5. M-RET 6. C-e 7. RET 8. bla bla 9. C-a 10. M-RET I get: begin-example--- * bla * bla bla end-example--- If I perform the same commands without loading the minimal init file (Minimal-init just adds the most recent version org-mode to the load path, and says to debug on error), I get this begin example--- * bla * bla bla end-example--- It adds a new line before the first headline, but otherwise it acts as expected. I am not sure if it makes any difference. But I am running the the Homebrew version of emacs 24.3.1 on OS X Mavericks. All best, Leonard
Re: [O] [BUG] Formatting of bracketed numbers in included source files
Hello, Kyle Meyer k...@kyleam.com writes: I'm experiencing issues including a file during export if that file has a single number surrounded by brackets. [...] It seems that `org-export--prepare-file-contents' is treating [1] as a footnote. Bisecting this error suggests commit b8781c4c85f0d51cecb32e5192b5049e8f241939 introduced the issue. Indeed. This should be fixed. Thank you for reporting it. Regards, -- Nicolas Goaziou
[O] loading all agenda files at startup
I've got a few top-level user commands, related to org, that load at startup. Specifically org-agenda and org-ido-switchb are bound to keys that are available after emacs starts up. Before Org loads properly, however, things like the agenda file list and the list of valid tags and TODO keywords are unavailable. That makes it hard to boot emacs and go directly into a call to `org-todo-list': the TODO keywords aren't loaded yet. I've looked into this before but couldn't find a single function that would boot my local data. `org-agenda-files' reads the file list, but it doesn't actually parse the files and do all the setup routines. Is there a single-function entry point that I could put in my init files, that would get me where I want to be? ie, in a state as though `org-agenda' had already been called, though it hasn't yet? Thanks, Eric
Re: [O] loading all agenda files at startup
Eric Abrahamsen e...@ericabrahamsen.net writes: Hi Eric, I've got a few top-level user commands, related to org, that load at startup. Specifically org-agenda and org-ido-switchb are bound to keys that are available after emacs starts up. Before Org loads properly, however, things like the agenda file list and the list of valid tags and TODO keywords are unavailable. That makes it hard to boot emacs and go directly into a call to `org-todo-list': the TODO keywords aren't loaded yet. I've looked into this before but couldn't find a single function that would boot my local data. `org-agenda-files' reads the file list, but it doesn't actually parse the files and do all the setup routines. Is there a single-function entry point that I could put in my init files, that would get me where I want to be? ie, in a state as though `org-agenda' had already been called, though it hasn't yet? I call `org-agenda-list' in my `after-init-hook' but it is not silent, that is, it displays the agenda list. Best, -- Daimrod/Greg signature.asc Description: PGP signature
Re: [O] loading all agenda files at startup
Daimrod daim...@gmail.com writes: Eric Abrahamsen e...@ericabrahamsen.net writes: Hi Eric, I've got a few top-level user commands, related to org, that load at startup. Specifically org-agenda and org-ido-switchb are bound to keys that are available after emacs starts up. Before Org loads properly, however, things like the agenda file list and the list of valid tags and TODO keywords are unavailable. That makes it hard to boot emacs and go directly into a call to `org-todo-list': the TODO keywords aren't loaded yet. I've looked into this before but couldn't find a single function that would boot my local data. `org-agenda-files' reads the file list, but it doesn't actually parse the files and do all the setup routines. Is there a single-function entry point that I could put in my init files, that would get me where I want to be? ie, in a state as though `org-agenda' had already been called, though it hasn't yet? I call `org-agenda-list' in my `after-init-hook' but it is not silent, that is, it displays the agenda list. Best, Right, just calling the agenda directly will certainly solve the issue, and I suppose as a member of the Org faithful I should be booting to the agenda! But it would be nice to get the same effect, but be left in *scratch*...
Re: [O] (org-insert-headline '(4)) should insert new headline before point
Hi Leonard, Okay, I see now and this is fixed -- thanks for your patience, -- Bastien
Re: [O] loading all agenda files at startup
On 2014-04-30 10:44 Eric Abrahamsen wrote: Daimrod daim...@gmail.com writes: Eric Abrahamsen e...@ericabrahamsen.net writes: Hi Eric, I've got a few top-level user commands, related to org, that load at startup. Specifically org-agenda and org-ido-switchb are bound to keys that are available after emacs starts up. Before Org loads properly, however, things like the agenda file list and the list of valid tags and TODO keywords are unavailable. That makes it hard to boot emacs and go directly into a call to `org-todo-list': the TODO keywords aren't loaded yet. I've looked into this before but couldn't find a single function that would boot my local data. `org-agenda-files' reads the file list, but it doesn't actually parse the files and do all the setup routines. Is there a single-function entry point that I could put in my init files, that would get me where I want to be? ie, in a state as though `org-agenda' had already been called, though it hasn't yet? I call `org-agenda-list' in my `after-init-hook' but it is not silent, that is, it displays the agenda list. Best, Right, just calling the agenda directly will certainly solve the issue, and I suppose as a member of the Org faithful I should be booting to the agenda! But it would be nice to get the same effect, but be left in *scratch*... Maybe hacking around it with something like the following in 'org-agenda-after-show-hook' or some similar hook? #+begin_src emacs-lisp (defun my-switch-to-sratch () (switch-to-buffer *scratch*) (delete-other-windows)) #+end_src HTH, -- Alexander Baier
Re: [O] loading all agenda files at startup
On 2014-04-30 10:58 Alexander Baier wrote: #+begin_src emacs-lisp (defun my-switch-to-sratch () (switch-to-buffer *scratch*) (delete-other-windows) (remove-hook 'org-agenda-after-show-hook 'my-switch-to-scratch) ) #+end_src I forgot to remove this function again, so it is only run the first time the agenda is shown. -- Alexander Baier
Re: [O] Donations summary March 2014
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com writes: As of a few minutes ago, I have transferred the donations to Bastien who is taking over from here on, including switching the donations button. Thanks for the welcome back gift! The donation button is now set to my email address on orgmode.org. I'll continue the monthly reports as you did, manually first, programmatically next. All best, -- Bastien
Re: [O] org-mobile-pull not syncing back changes
On 29 April 2014 13:36, Bastien b...@gnu.org wrote: If you haven't already, perhaps you can fill an issue here: https://github.com/MobileOrg/mobileorg/issues Hi Bastien, Thanks for the suggestion. I've been digging around and found it was actually some code in my .emacs file causing this not to work (although it used to previously). The code was to automatically push/pull orgmode updates. I have since commented out the section that seemed to conflict, although I'm not sure why at the moment. As you'll see, I haz copy and paste... :-) I'm no elisp guru, although now that I have a little problem, it's good motivation to learn. ;; automatic org-mobile-push - ;; add hooks for org-mobile-push/pull ;; from: http://stackoverflow.com/questions/8432108/how-to-automatically-do-org-mobile-push-org-mobile-pull-in-emacs (add-hook 'after-init-hook 'org-mobile-pull) ;; but don't necessarily re-enable this, unless desired (last setting was: disabled) (add-hook 'kill-emacs-hook 'org-mobile-push) ;;; --- this section stopped org-mobile-pull picking up index.org changes and ;;; --- also stopped mobileorg.org from being emptied after items copied from it ;; in case I'm idle :) ;(defvar my-org-mobile-sync-timer nil) ;(defvar my-org-mobile-sync-secs (* 60 20)) ;(defun my-org-mobile-sync-pull-and-push () ; (org-mobile-pull) ; (org-mobile-push) ; (when (fboundp 'sauron-add-event) ;(sauron-add-event 'my 3 Called org-mobile-pull and org-mobile-push))) ;(defun my-org-mobile-sync-start () ; Start automated `org-mobile-push' ; (interactive) ; (setq my-org-mobile-sync-timer ;(run-with-idle-timer my-org-mobile-sync-secs t ; 'my-org-mobile-sync-pull-and-push))) ;(defun my-org-mobile-sync-stop () ; Stop automated `org-mobile-push' ; (interactive) ; (cancel-timer my-org-mobile-sync-timer)) ;; (my-org-mobile-sync-start) ; ;; add after saving an org file ; (add-hook ; 'org-mode-hook ; (lambda nil ;(add-hook 'after-save-hook ; (lambda nil (org-mobile-push)) ; nil 'local))) ;Only in the current buffer ;;; --- end troublesome section --- ;; end automatic org-mobile-push - Best wishes, -- Steve
Re: [O] Error with org-agenda-write
On 29/04/14 19:06, Bastien wrote: Ian Barton li...@wilkesley.net writes: The only version of the file I have on my disk is in /home/ian/.emacs.d/src/org-mode/contrib/lisp/htmlize.el Looks like a problem with one of your (customized?) face. Can you reproduce it with emacs -Q ? Well I had narrowed it down to this part of my init file: #+BEGIN_SRC emacs-lisp (defun my-adjoin-to-list-or-symbol (element list-or-symbol) (let ((list (if (not (listp list-or-symbol)) (list list-or-symbol) list-or-symbol))) (require 'cl-lib) (cl-adjoin element list))) (mapc (lambda (face) (set-face-attribute face nil :inherit (my-adjoin-to-list-or-symbol 'fixed-pitch (face-attribute face :inherit (list 'org-code 'org-block 'org-table 'org-block-background 'org-date 'org-link 'org-footnote)) #+END_SRC After removing this the error went away. However, just to confirm this was the problem I put that section back in my init file, to see if the error re-occurred, and now it all works perfectly with no errors. I blame the goblins in my computer:) Sorry for the noise. Ian.
[O] Bug: TAB cycling and narrowing to subtree [8.2.6 (release_8.2.6-903-ga1b4d9 @ /home/youngfrog/sources/org-mode/lisp/)]
Hi, With the following file named /tmp/test.org #+BEGIN_SRC org ,* love is all you need ,* in the air #+END_SRC Run : emacs -q -L /path/to/org/lisp/ -l org /tmp/test.org -f org-version I get: : Org-mode version 8.2.6 (release_8.2.6-6-gfc37d1 @ /path/to/org/lisp/) then narrow to subtree C-x n s and hit TAB to open the subtree : the last 'd' (of the word need) is kept hidden and replaced by org-ellipsis. If, instead, you first hit TAB (to open the subtree), then narrow to subtree and hit TAB again to fold, you get * love is followed by org-ellipsis followed by 'd' on the same line. The 'd' shouldn't be there. Not exactly a terrible bug, but I usually find it distracting. If org-cycle-separator-lines is non-zero it is possible to work around the problem by adding blank lines at the end of subtrees. (It is 2 --the default-- in the above example, but I like to set it to 0.) IIUC, the problem amounts to the fact that TAB cycling is not working well with buffers that don't end with a newline. -- Nico.
[O] Profiling capture input
Hello, I must have changed something in my configuration recently, since I'm noticing some lag when I type in an org capture window. I would like to figure out what slows things down, but I have no idea where to start. Is there a way of profiling what is going on as I type in that window, to find out the source of the lag? Thanks a lot, Alan
[O] Overlay in beamer?
Dear list, I am having some trouble in using the beamer export. First of all, I have problems in finding documentation on the exporter on-line. Is there an up-to-date manual of this exporter, and the list of options? By searching for a solution to my problem, I found many different notation around the web (the wiki, stackoverflow, etc.) but I could not find a solution to my very simple problem. I have three images to show in my slide, one after the other (or one on top of the other). In Latex beamer, I can write something like: - begin-snippet- \begin{figure} \begin{center} \includegraphics1[width=.7\textwidth]{figure1} \includegraphics2[width=.7\textwidth]{figure2} \includegraphics3-[width=.7\textwidth]{figure3} \end{center} \end{figure} - end-snippet- and it works. How do I do the same in org-beamer? I tried several options, for example this one: - begin-snippet- #+ATTR_BEAMER: :overlay 1 [[ file:figure1 ]] #+ATTR_BEAMER: :overlay 2 [[ file:figure2 ]] #+ATTR_BEAMER: :overlay 3 [[ file:figure3 ]] - end-snippet- or - begin-snippet- *** :B_ignoreheading: :PROPERTIES: :BEAMER_env: ignoreheading :BEAMER_act: + :END: [[file:figure1]] [[file:figure2]] [[file:figure3]] - end-snippet- and several other combinations of blocks, properties and attributes, but the generated latex output is always more or less the same: - begin-snippet- \includegraphics[width=.9\linewidth]{figure1} \includegraphics[width=.9\linewidth]{figure2} \includegraphics[width=.9\linewidth]{figure3} - end-snippet- Can someone help me to understand how to put overlays on figures? I am using org-mode version 8.2.5h (pulled from the git repository about one month ago I guess) on Emacs 24.3.1 Thanks in advance, Giuseppe Lipari -- Giuseppe Lipari RETIS Lab, CEIIC Scuola Superiore Sant'Anna via Moruzzi, 1 56127 Pisa tel: 050 882030 fax: 050 882003 web: http://feanor.sssup.it/~lipari/ blogs: http://scacciamennule.blogspot.com http://okpanico,wordpress.com http://algoland.wordpress.com
Re: [O] [babel][PATCHES] ob-R patches for review
Charles Berry ccbe...@ucsd.edu writes: Rainer M Krug Rainer at krugs.de writes: Hi Attached please find seven patches for review to implement the storing of org variables in their own environment and to make the org-issued R code look nicer in the R session. Rainer, I have suggestions and a concern. I suggest that you look at how ESS handles R objects and constructs calls in elisp to be executed in an R session. It uses a package and its NAMESPACE to provide that functionality and store objects. That makes the elisp interface a lot cleaner and keeps ESS variables out of the users way. The package is found at ESS/etc/ESSR/. That is effectively what I am doing as well, only that I am not using a package but an environment and add it to the search path. By doing this, the org variables are stored in this environment and do not overwrite existing R objects by the same name. If objects by the same name as the org variables are existing in the global R environment, they are still found first, but variables transferred from org can *always* be accessed by using , | .org_variables_$VARIABLE_NAME ` in R. As said, existing VARIABLE_NAME objects in R are *not* impacted on. If you use only , | VARIABLE_NAME ` in R it returns the first object in the R search path. So the only variable which can be overwritten when this patch is used is , | .org_variables_ ` which, I think, is quite unlikely to exist. Concerning package: I like the idea and thought about it with the aim of putting all R code into a package, to make it easier to maintain the code and to customize it. The org variables can then be injected in this package. But the problem of name clashes between user defined variables and the name of the namespace / environment of the package is the same - possible higher, as a package name (and therefore the namespace and environment) should have meaningful names. I also suggest that you introduce a customization variable to allow a user to turn off the functionality you have created. I don't think this is necessary as the behavior for the user does not change at all, only that it becomes safer to use org variables in R (see above). My concern is that you are injecting code into the R user session or script that the user may not want. If I already have an R object named 'org' your code will break my code. Please see my later patch, which renames this to .org_variables_ which sounds like an unlikely name to exist. Further, all of this is hard coded, so I can't change the variable/file names. OK - this can be added as a variable, and in regards to the file name this makes sense. For the moment I would leave it as it is and discuss what would be the useful approach, as there are some problems with the usefulness of saving the variables - imagining different variables passed to different code blocks. One option would be to have a variable, whose default is NIL, which contains the file name: - NIL :: no saving - string :: saving under the name given HTH, Yes definitely - discussions more then welcome, Rainer Chuck -- 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 PGP: 0x0F52F982 pgptoh2PSwrvW.pgp Description: PGP signature
[O] [RFC] Rewrite indentation functions
Hello, I would like to install the following patches on master. Basically, they consist of a full rewrite of all indentation related functions, with explicit rules in docstrings, comprehensive test suites, and backed-up by the parser. The following changes in `org-indent-line' are expected: 1. Indentation of the first line of an element should be, when applicable, relative to the /first line/ of the element before. Therefore, in the following example Some long paragraph with multiple line XAnother paragraph indenting line starting with X will align it with Some, not with. This is consistent with plain lists - A list with some long paragraph XAnother paragraph where last line should be indented like -, not long. 2. It should be possible to indent example block, verse block or export block contents, as `org-indent-line' usually happens on behalf of the user, who is assumed to know what he is doing. Though, this will not be the case in `org-indent-region', as changes could happen without the user knowing about it (e.g., when indenting a complete, mostly hidden, buffer). 3. It should be possible to indent fixed-width areas. `org-indent-region' also applies on hidden lines, with a few exceptions, as explained above. Also, it should be a lot faster when `org-src-tab-acts-natively' is non-nil, and complete without errors. It could be made faster, but the main bottleneck in this function is now `org-edit-src-code', which will need to be revamped at some point. Internally, `org-src-native-tab-command-maybe' is merged into `org-indent-line' since this should be a core feature, not something installed via a hook. WDYT? Regards, -- Nicolas Goaziou From 054e3e6e4d445da3e3c31283c7ed29dcb651b7ea Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Tue, 24 Dec 2013 14:04:17 +0100 Subject: [PATCH 1/3] Rewrite `org-indent-line' * lisp/org.el (org--get-expected-indentation): New function. (org-indent-line): Use new function. Also merge functionalities with `org-src-native-tab-command-maybe'. * lisp/org-src.el (org-src-native-tab-command-maybe): Remove function. * testing/lisp/test-org.el (test-org/indent-line): New test. --- lisp/org-src.el | 11 -- lisp/org.el | 267 --- testing/lisp/test-org.el | 136 3 files changed, 295 insertions(+), 119 deletions(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index 791f934..8d60f68 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -895,17 +895,6 @@ issued in the language major mode buffer. :version 24.1 :group 'org-babel) -(defun org-src-native-tab-command-maybe () - Perform language-specific TAB action. -Alter code block according to what TAB does in the language major mode. - (and org-src-tab-acts-natively - (org-in-src-block-p) - (not (equal this-command 'org-shifttab)) - (let ((org-src-strip-leading-and-trailing-blank-lines nil)) - (org-babel-do-key-sequence-in-edit-buffer (kbd TAB) - -(add-hook 'org-tab-first-hook 'org-src-native-tab-command-maybe) - (defun org-src-font-lock-fontify-block (lang start end) Fontify code block. This function is called by emacs automatic fontification, as long diff --git a/lisp/org.el b/lisp/org.el index 44a4e44..f70c9c2 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -22206,116 +22206,167 @@ hierarchy of headlines by UP levels before marking the subtree. ;;; Indentation +(defun org--get-expected-indentation (element contentsp) + Expected indentation column for current line, according to ELEMENT. +ELEMENT is an element containing point. CONTENTSP is non-nil +when indentation is to be computed according to contents of +ELEMENT. + (let ((type (org-element-type element)) + (start (org-element-property :begin element))) +(org-with-wide-buffer + (cond + (contentsp + (case type + (footnote-definition 0) + ((headline inlinetask nil) + (if (not org-adapt-indentation) 0 + (let ((level (org-current-level))) + (if level (1+ level) 0 + ((item plain list) + (org-list-item-body-column + (or (org-element-property :post-affiliated element) start))) + (otherwise + (goto-char start) + (org-get-indentation + ((memq type '(footnote-definition headline inlinetask nil)) 0) + ;; First paragraph of a footnote definition or an item. + ;; Indent like parent. + (( (line-beginning-position) start) + (org--get-expected-indentation + (org-element-property :parent element) t)) + ;; At first line: indent according to previous sibling, if + ;; any, or to parent's contents. + ((= (line-beginning-position) start) + (if (= (point-min) start) 0 + (goto-char (1- start)) + (let ((previous (org-element-at-point))) + (while (let ((parent (org-element-property :parent previous))) + (and parent
Re: [O] [BUG] Formatting of bracketed numbers in included source files
Nicolas Goaziou n.goaz...@gmail.com wrote: [...] Indeed. This should be fixed. Thank you for reporting it. Yes, the fix works well on my end. Thank you. -- Kyle
Re: [O] Overlay in beamer?
[...] I tried several options, for example this one: - begin-snippet- #+ATTR_BEAMER: :overlay 1 [[ file:figure1 ]] [...] The following works for me: #+beamer: \only1{ [[file:figure1.png]] #+beamer: }\only2{ [[file:figure2.png]] #+beamer: }\only3-{ [[file:figures3.png]] #+beamer: } Not pretty but... HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] [Orgmode] POLL: the 40 variables project
Manish mailtomanish.sharma at gmail.com writes: On Thu, Jan 29, 2009 at 3:49 AM, Carsten Dominik wrote: Hi, yesterday I did this command in my org-mode git repo: grep defcustom lisp/*el |wc -l and got 378 as an answer. 378 user-customizable variables, no kidding. It's been almost 5 years since that last check and about time to do it again. And it's even crazier now. :) manishsharma:org-mode/ (master) $ git --no-pager log --pretty=format:'%aD %H' -1 Fri, 17 Jan 2014 12:45:21 +0100 bf304c34854e2f07001e8180508f0c833d17307f% manishsharma:org-mode/ (master) $ grep defcustom lisp/*el |wc -l 808 A big thanks to everyone. --Manish 808 options. That is Scary, and daunting and amazing. Any possibility to get a update on the survey on which configuration are in use as well? http://orgmode.org/worg/org-configs/org-customization-survey.html contains excellent information. But how have things evolved? I have just started to scratch on the surface of orgmode. Maybe 8 months of usage. For me it would help me understand what I should look into next. Thank you every one for all of your contributions.
Re: [O] [Orgmode] POLL: the 40 variables project
On Wednesday, 30 Apr 2014 at 15:29, Sungmin wrote: [...] 808 options. That is Scary, and daunting and amazing. I have just started to scratch on the surface of orgmode. Maybe 8 months of usage. For me it would help me understand what I should look into next. Although I am not in general a big fan of emacs's customize feature, it can be very useful for exploring options in packages. I would suggest you do M-x customize-group RET org RET and browse... -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] org-table-copy-down incrementor
Hi Bastien On Thu, Apr 17, 2014 at 6:06 PM, Bastien b...@gnu.org wrote: The idea came up earlier on to let org-table-copy-down increment by using a table formula -- which is my TODO list for Org 8.3. I'll let the list know when it's ready, but I think it would be a useful feature. For me it would be already enough and preferred when the increment would be the same as in the two fields above point. Like in other well known spreadsheet applications. Without new Org custom variables and without the possibility or requirement of providing a table formula: | 2 | | 5 | SHIFT-RET = | 2 | | 5 | | 8 | or | 1.1 | | -0.5 | SHIFT-RET = | 1.1 | | -0.5 | | -2.1 | or | [2014-04-30 Wed] | | [2014-05-07 Wed] | SHIFT-RET = | [2014-04-30 Wed] | | [2014-05-07 Wed] | | [2014-05-14 Wed] | etc. Michael
[O] Contacts/Resources/People
I have been using orgmode for the last couple of months, guided by Sasha Chua's blog, and the material I have found on internet. Now I am started to be satisfied with my setup. But I there is one thing I would like to improve. I would like to have people as first class citizens. I want to easily add people to the appointment. I want to be able to add people to tasks easily. I want to track with whom I spend time with. i want to be able to add people to meeting logs, with professional titles easily, and other selected contact information easily I want to be able to mange the contact data centrally,so if I add a person to a task/appoinment I can easily get to his contact information. I want to easily look up what I have ongoing with a specific person before I meet him to remind me if there is anything I should bring up to him. Sacha speaks about BBDB but it does not not really seem to do what I want. Julien Danjou have made contacts.el, might to be a better fit. Does anyone have this kind of setup? Or good pointers in how to set it up? I would be interested in learning Elisp if necessary to implement this. Thank you in advance Sungmin
Re: [O] Overlay in beamer?
Dear Eric, thank you for your very fast answer! I solved by using directly latex code, but I will also consider your solution. Since overlays are very much used in beamer, I was just wondering if it would be easy (or even desirable) to add one more property to ATTR_LATEX (or ATTR_BEAMER), so to specify overlays for figures ... something like #+ATTR_BEAMER: :overlay 1- (Was it available before? I just found this old thread: http://stackoverflow.com/questions/6974560/how-do-i-use-overlay-specifications-for-lists-in-org-modes-beamer-export-featur ) Thanks again, Giuseppe Lipari 2014-04-30 17:10 GMT+02:00 Eric S Fraga e.fr...@ucl.ac.uk: [...] I tried several options, for example this one: - begin-snippet- #+ATTR_BEAMER: :overlay 1 [[ file:figure1 ]] [...] The following works for me: #+beamer: \only1{ [[file:figure1.png]] #+beamer: }\only2{ [[file:figure2.png]] #+beamer: }\only3-{ [[file:figures3.png]] #+beamer: } Not pretty but... HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11 -- Giuseppe Lipari RETIS Lab, CEIIC Scuola Superiore Sant'Anna via Moruzzi, 1 56127 Pisa tel: 050 882030 fax: 050 882003 web: http://feanor.sssup.it/~lipari/ blogs: http://scacciamennule.blogspot.com http://okpanico,wordpress.com http://algoland.wordpress.com
Re: [O] Overlay in beamer?
On Wednesday, 30 Apr 2014 at 18:31, Giuseppe Lipari wrote: Since overlays are very much used in beamer, I was just wondering if it would be easy (or even desirable) to add one more property to ATTR_LATEX (or ATTR_BEAMER), so to specify overlays for figures ... something like There is the BEAMER_ACT property that can be used to apply overlay information on blocks but I don't think it's possible on individual figures. Of course, you could put each figure in a separate block. The following/attached will match what you had originally. #+options: H:1 * The slide ** figure 1 :PROPERTIES: :beamer_act: 1 :END: [[file:chromosome.png]] ** figure 2 :PROPERTIES: :beamer_act: 2 :END: [[file:diagram.png]] ** figure 3 :PROPERTIES: :beamer_act: 3- :END: [[file:equation1.png]] What may not be easy or possible is to use the \only directive, which is what I used in my previous response to you. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] (org-insert-headline '(4)) should insert new headline before point
Hi Bastien, Thanks for the fix, and sorry to be the bearer of bad news, but there seems to be a new issue. Now, if you press M-RET in a lower level tree anywhere but in the headline, it will produce a new first level headline. So, given buffer contents as in example (a), if i press M-Ret at the end of `two', I get (b) which is what I would expect, but if i press RET, then M-RET, I get (c) which is certainly not what I would expect. --example-a-- * Level one ** Level two --end-example-a-- --example b-- * Level one ** Level two ** --end-example-b-- example-c-- * Level one ** Level two * end-example-c- Thanks again. All best, Leonard
Re: [O] [RFC] Rewrite indentation functions
1. Indentation of the first line of an element should be, when applicable, relative to the /first line/ of the element before. Therefore, in the following example Some long paragraph with multiple line XAnother paragraph It is almost surely something that you must have thought of. You seem to be using X as a special character. What if a paragraph starts with X? Would you want to use a double X? It does not seem very elegant to use X. Would it break ispell? Can we have a space between X and the actual first word of the paragraph (as we do with *s for headlines and -/+ for lists)? And could one use another character? Vikas
Re: [O] Keeping up to date
Hi everyone, So, yes, that's a bit of a headache as well and I think if you are doing a bunch with extra Emacs add-ons, it would be worth syncing. Rather than Dropbox, you could use a version control system. My entire .emacs.d is under git control, I can try out a library, and if I like it, check it in. That way, I don't really care if my elisp directory is dirty, I only take home what I like. Now, that works well for lonely .el files. Two problems arise if : 1. The library is a clone of another git repository (like org) 2. The library comes from melpa (also like org) For the first one, technically, you could checkout org git repository inside your .emacs, and manage it as a submodule, but they are a huge pain. If you pull it out you can keep everything in sync though, and still be able to play around with org branches. For the second one, melpa packages change too often to make it practical to check them in. One solution is use cask, as recommended by Grant, the other one (a bit more simplistic), is to make sure that the library is installed on every box you use, so the sync happens at the (m)elpa level. I have the following code in my init.el (it comes from emacs prelude I think) : (require 'cl) (package-initialize) (add-to-list 'package-archives '(melpa . http://melpa.milkbox.net/packages/;)) (unless package-archive-contents (package-refresh-contents) (defvar my-packages '(org auctex ess) A list of packages to ensure are installed at launch.) (dolist (pack my-packages) (when (not (package-installed-p pack)) (package-install pack) This makes sure org from melpa is installed when emacs starts. It doesn't check whether it's the last version though. Clément
Re: [O] Contacts/Resources/People
On 2014-04-30 18:28 Sungmin wrote: Julien Danjou have made contacts.el, might to be a better fit. If you are referring to org-contacts than this might just be your solution. Or at least the best way possible to integrate your contacts with other org-related things. With org-contacts your address book is just a plain old org-mode formatted file, where headlines with a certain property (the default is EMAIL I think) are treated as contacts. For example: #+begin_src org * Person A :PROPERTIES: :EMAIL: a...@example.com :END: ** Notes Meeting - foo - bar... * Person B :PROPERTIES: :EMAIL: b...@example.com :END: #+end_src As you can see, notes are easily added as you are just editing your plain old org-file. Adding people to a certain event may just be as simple as linking to the headline corresponding to the person. About tracking time, there should be functionality for this built in - I am no expert there. HTH, -- Alexander Baier
[O] #+BEGIN_SRC export in Latex
The following example is not being exported in Latex as a code block. However it is exported correctly in HTML export. org-mode version 8.2.6 #+BEGIN_SRC emacs-lisp -n -r (save-excursion (ref:sc) (goto-char (point-min))) (ref:jump) #+END_SRC
Re: [O] [RFC] Rewrite indentation functions
Vikas Rawal wrote: 1. Indentation of the first line of an element should be, when applicable, relative to the /first line/ of the element before. Therefore, in the following example Some long paragraph with multiple line XAnother paragraph It is almost surely something that you must have thought of. You seem to be using X as a special character. What if a paragraph starts with X? Would you want to use a double X? It does not seem very elegant to use X. Would it break ispell? Can we have a space between X and the actual first word of the paragraph (as we do with *s for headlines and -/+ for lists)? And could one use another character? IIUC, you miss the legend X = position of cursor... Best regards, Seb -- Sebastien Vauban
Re: [O] #+BEGIN_SRC export in Latex
On Wednesday, 30 Apr 2014 at 18:00, Luke Crook wrote: The following example is not being exported in Latex as a code block. However it is exported correctly in HTML export. org-mode version 8.2.6 #+BEGIN_SRC emacs-lisp -n -r (save-excursion (ref:sc) (goto-char (point-min))) (ref:jump) #+END_SRC What do you actually get in your latex export? I have just tried this and it works just fine. Mind you, my org is not quite up to date but it *is* 8.2.6. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] #+BEGIN_SRC export in Latex
Eric S Fraga e.fraga at ucl.ac.uk writes: On Wednesday, 30 Apr 2014 at 18:00, Luke Crook wrote: The following example is not being exported in Latex as a code block. However it is exported correctly in HTML export. org-mode version 8.2.6 #+BEGIN_SRC emacs-lisp -n -r (save-excursion (ref:sc) (goto-char (point-min))) (ref:jump) #+END_SRC What do you actually get in your latex export? I have just tried this and it works just fine. Mind you, my org is not quite up to date but it *is* 8.2.6. Found the culprit. I have the following in my emacs.org file ** Fontify source blocks in Latext #+BEGIN_SRC emacs-lisp (setq org-latex-listings t) #+END_SRC Setting org-latex-listings back to NIL fixed the problem.
[O] org-ref code
Greetings, All the talk about citations in org-mode inspired me to finish and polish some code I have been working on for my group for a while on bibtex/reftex/org-mode integration. I packaged it up in a literate programming org-file here: https://github.com/jkitchin/jmax/blob/master/org-ref.org. You can tangle the org-ref.el code out of the org-file. There are probably still some bugs in it, but it does pretty amazing things. Mostly, it defines several new functional links for labels, references to labels, citations, bibliography, list of tables and figures, and a handful of utility functions I find useful. I think it is a standalone package now. I would be grateful if anyone tried it, and let me know if it does not work as advertised ;) John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
Re: [O] #+BEGIN_SRC export in Latex
On Wednesday, 30 Apr 2014 at 20:28, Luke Crook wrote: [...] Found the culprit. I have the following in my emacs.org file ** Fontify source blocks in Latext #+BEGIN_SRC emacs-lisp (setq org-latex-listings t) #+END_SRC Setting org-latex-listings back to NIL fixed the problem. I have this variable set to t. Of course, I also have this: #+begin_src emacs-lisp (add-to-list 'org-latex-packages-alist '( listings)) #+end_src If you have the variable set to t, does the LaTeX export work but maybe not PDF export? That is, do you get a LaTeX source file that has the source code block in it using the listings package? -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11
Re: [O] [babel][PATCHES] ob-R patches for review
On Wed, 30 Apr 2014, Rainer M Krug wrote: Charles Berry ccbe...@ucsd.edu writes: Rainer M Krug Rainer at krugs.de writes: Hi Attached please find seven patches for review to implement the storing of org variables in their own environment and to make the org-issued R code look nicer in the R session. Rainer, I have suggestions and a concern. I suggest [...] That is effectively what I am doing as well, only that I am not using a package but an environment and add it to the search path. [...] OK. I did not study your patches closely enough. Sorry. I also suggest that you introduce a customization variable to allow a user to turn off the functionality you have created. I don't think this is necessary as the behavior for the user does not change at all, only that it becomes safer to use org variables in R (see above). All you have to do is add this: (defvar org-babel-R-assign-elisp-function 'org-babel-R-assign-elisp Name or definition of function to handle `:var name=value' header args. ) and change one line in org-babel-variable-assignments:R from (org-babel-R-assign-elisp to (funcall org-babel-R-assign-elisp-function and the user can provide her own elisp assignment function. This gives users who want special behavior like creating something other than a data.frame the option of providing their own function. Best, Chuck
[O] org-babel, lilypond, tables
I'm wondering if someone could tell me if this idea is impossible. I'm trying to find a way to leverage org-tables in a document containing lilypond markup for a piano part such that both staves occupy the same line, visually (instead of the lefthand notes occupying the top of the doc and the righthand notes occupying the bottom). Right now I'm accomplishing this with a vertical split in the buffer, which works, but is clunky. I'd love to do something like: left hand | right hand | measure --+-+-- a16 b c d e f g a | a8 b d f e4~ | %m1 c e gs4 a8 g| e g c'4 g d b | %m2 et cetera. This is easy enough to lay out in org mode, and it would look terrific, but I can't imagine how to accomplish it such that the lilypond markup would respond correctly to ly-tangle without bracketing every cell in #+BEGIN_SRC LILYPOND #END_SRC (and even then, I doubt what would happen.) Maybe the answer is You just have to get used to the way things are, which is fine--even that would at least get me thinking about other problems. Thank you! Steven Arntson
[O] Is org-protocol working on Fedora?
Hi, I was curious if anyone had org-protocol working on Fedora. I have had it working when I tried Ubuntu some months ago, and I have it working now in Windows with Firefox. But I have not been able to get it to work in Fedora. (It has worked in Fedora on Emacs' w3m.) Brady