Re: [Orgmode] Re: What license for Worg?
On 04/08/10 06:36, Bastien wrote: > Or we might also consider CC0: > > http://creativecommons.org/publicdomain/zero/1.0/ > > It looks way more simple to me. > > It also circumvents the problem of people having to sign the FSF papers > if the Org/Emacs manuals include part of the code they contributed to > Worg as examples. > > What people think? > Hi Bastien, The Software Freedom Law Centre has some good guidelines on licensing. Specificall you might want to look at: http://www.softwarefreedom.org/resources/2008/foss-primer.html#x1-120002.4 and http://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html Ian. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: MathJax - use Tex/LaTeX/MathML in HTML pages
ASCIIMathML http://www1.chapman.edu/~jipsen/mathml/asciimath.html might also be an alternative, for that you need fonts on the client (Firefox, I don't think IE supports MathML out of the box), and it uses MathML so it is standard compliant. Regards Chris. On 4 August 2010 06:24, Bastien wrote: > Hi Dan, > > Dan Davison writes: > > > It's quite convenient already (see below), so what exactly would the > > option involve? Can the javascript and fonts be located remotely? > > From what I understand, no, the javascript and fonts have to be on the > server. > > I just installed an instance on orgmode.org: > > http://orgmode.org/mathjax/test/ > > > - Darlan Cavalcante has written a Worg article[1] on using jsMath with > > org > > - Basically, to use jsMath all you need is > > > > #+options: latex:verbatim > > #+style: > > Great! So to use mathjax on orgmode.org (Worg etc.) : > > #+options: latex:verbatim > #+style: src="/mathjax/MathJax.js"> > > > - Mathjax was considerably slower to render the maths. (I think that > > under the hood it converts to mathML which jsMath does not do (?)) > > I'm not sure. Maybe MathJax is faster once reasonably tweaked. > > > As I said the other day[2], one reason I am excited about these > > technologies is that we can produce a pdf with pretty source code > > fontification via htmlize (rather than ugly[3] latex listings output) > > and genuine mathematical fonts rather than ugly dvipng images. I do this > > via CUPS print to file under linux, which allows the web browser to > > produce a .ps or .pdf. I'd be interested to know how we can make this a > > more "genuine" org export path. > > You mean org -> HTML -> ps? > > Is it not possible to call firefox (or Xulrunner) in batch mode to > convert an HTML page into .ps? > > If so, we can have two ways of producing org->pdf, one through LaTeX, > one through HTML... > > -- > Bastien > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Postdoctoral Research Fellow Molecular Imaging Group Leibniz-Institut für Molekulare Pharmakologie (FMP) Campus Berlin-Buch Robert-Roessle-Str. 10 13125 Berlin, Germany Phone: 00493094793-279 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] How to change plain text face in Org Mode?
Nick Dokos writes: > Water Lin wrote: > >> >> I want to change the text color in my Org file. >> >> I tried to use M-x customize-group RET org-faces RET to adjust text >> color settings. >> >> By using this way, I can adjust color of headline leve 1 & 2 &3 and >> something else. But I just don't know how to change plain text in my >> notes. The plain text means the body of my ordinary text entries. >> >> I want to change it into yellow or something else. So I can protect my >> eyes. >> > > Put your cursor on the text that you are interested in and say > > M-x describe-face > > That's the face that you'll need to customize. > > AFAIK, ordinary text is in the default face: org does not define a face > for it. So if you change it, you'll change the appearance of text all > through emacs. > > HTH, > Nick > > thanks for the detail explanation. Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: water...@ymail.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Proposed command: org-agenda-clock-goto
Bastien writes: >>From the agenda, I often want to jump to the currently clocking task > without leaving the agenda buffer. > > The attached patch contains a function that does so. > > Would that be useful to anyone else? > > If so, any suggestion for a keybinding? I'm thinking of using "J" as a keybinding for the following command in the agenda buffer: --8<---cut here---start->8--- (defun org-agenda-clock-goto () "Jump to the currently clocked in task within the agenda." (interactive) (let (pos) (mapc (lambda (o) (if (eq (overlay-get o 'type) 'org-agenda-clocking) (setq pos (overlay-start o (overlays-in (point-min) (point-max))) (if pos (goto-char pos --8<---cut here---end--->8--- For now `J' and `C-c C-x C-j' do the same thing: they jump to the location of the current/last running clock. After this change `J' would jump on the entry in the agenda buffer while `C-c C-x C-j' would jump to the entry itself. Does that break anyone habit? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] how to show all subheadings of "current level +1", then all of "current level +2" etc.
Hi all, on any heading in an org file I can easily see all sub headings with C-c C-k. Is there a possibility to easily see only the sub headings of the next level and nothing more? And then all headings of the next sub level? And so on?! Motivation: C-c C-k can easily show far too many headings. It would be good to be able to incrementally step into the heading tree ... Thanks, Rainer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: What license for Worg?
Hi Bastien, Bastien writes: > Hi all, > > what is the most suitable license (or licensing scheme) for Worg? > > Here is the best solution I can think of: dual-licensing[1] under the > GNU Free Documentation License 1.3[2] and the Creative Commons BY-SA > 3.0[3] license. This solution would make it possible to take excerpts > from Worg and put them into Org manual for later inclusion in Emacs, > which uses GFDL 1.3 for the Emacs manual. I'm OK with wathever licensing is neccessary to support Org mode and Emacs. Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [ANN] org-protocol-httpd
Hello Torsten, Torsten Wagner writes: > Hi Andreas, > > this sounds very interesting and I would like to look further inside. > The following idea just came to my mind: > Might it be possible to use org-protocol-httpd as a server for > mobileorg? Because this would allow to have a light-weight client on a > smartphone (only to display the requested results) and to do all the > magic within org-mode and emacs on the server side. > E.g. I could ask the server to generate dynamically a particular > html-export of an agenda and display it in a browser like application on > my phone. Sure there need to be something like https and some other > security measures if it operates as an public accessible server. It is technically possible to make Emacs serve html exports of Org files and Org agendas through http and provide functionality to edit them through http requests. I thought of that too, but I'm not sure this has real advantages over using a plain web server or Dropbox and the likes, as MobileOrg does. After all not everybody has his own server. The only remotely sensible thing I can think of at the moment is having javascript code for viewing and sending changes to an Emacs server that updates the html accordingly. That would be a platform independent port of MobileOrg, without third-party services for syncing involved and with an UI that is not really native to the device. Anyway, I'm interested in your elaborations on this. Andreas > > However, by using the original export functions of org-mode, there would > be no need to parse org-files throw other programs to extract the > necessary information. > > Running a emacs session on a server might be strange for some, but the > smartphone application might even provide a way to connect over ssh to > the emacs session. With this you would have easy viewing and simple > editing of org-mode files and if needed a full featured org-mode session > on your smartphone (yep I'm aware some here run emacs natively on there > phone). > > Best regards > > Torsten > > > > On 08/04/2010 07:12 AM, Andreas Burtzlaff wrote: >> Hello all, >> >> org-protocol-httpd is an Http-server running in Emacs that responds to >> requests where the path is: >> >> - an org-protocol action. >>In this case the associated handler from org-protocol is executed. >> - an org-protocol-httpd action. >>In this case the associated handler is executed >>and its return value is passed back to the client. >> >> My reason for writing this is that I needed a proper way to retrieve >> information from Emacs for use in Fireforg, but it might be interesting >> for those of you having problems configuring protocols in Firefox as >> well. For details on how to use it from a Firefox bookmark please refer >> to the in-file documentation. >> >> org-protocol-httpd.el is available in the lisp/ directory from the >> 'org-protocol-httpd' branch on: >> >> git://github.com/atheb/org-mode.git >> >> (Please note, that the small change to org-protocol.el in that branch is >> needed.) >> >> Although I deem it stable, testing is very appreciated. >> >> Andreas >> >> ___ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [BABEL] Output with octave [PATCH]
Dan Davison stats.ox.ac.uk> writes: > > Hi Juan and d.tchin, > > One thing I'd like to ask for advice about is the behaviour of tabular > data structures containing strings. For example > > #+begin_src octave > ans = [['a','b'];['c','d']] > #+end_src > > #+results: > : acbd > > I don't know if my syntax above is correct, but it seems to me that this > is a 2x2 table of some sort and so it would seem natural to me for that > to return > > | a | b | > | c | d | > > however, if you look at the code we are using below, you'll see that > ischar() returns 1 for this object and so it gets written as a > string. Can you suggest how we should alter the octave/matlab code > below? Or perhaps people don't use tabular data structures containing > strings in these languages? > > if ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans); fclose (fid); > else, dlmwrite('%s', ans, '\\t') > end" > > Dan > I use typeinfo defined in Octave to see what kind of object Octave would consider as output. You can see that [["a',"b"];["c","d"]] is considered as string and not a matrix. And the output in Octave is ans = ab cd See tests below done with character and number. Hope that can help. --8<---cut here---start->8--- * Output typeinfo ** Character #+begin_src octave typeinfo("a") #+end_src #+results: : string #+begin_src octave ["c","d"] #+end_src #+results: : cd #+begin_src octave [["a","b"];["c","d"]] #+end_src #+results: : acbd #+begin_src octave typeinfo([["a","b"];["c","d"]]) #+end_src #+results: : string ** Number #+begin_src octave typeinfo(1) #+end_src #+results: : scalar #+begin_src octave [1,2] #+end_src #+results: : 1.e+000 2.e+000 #+begin_src octave typeinfo([1,2]) #+end_src #+results: : matrix #+begin_src octave ([[1,2];[3,4]]) #+end_src #+results: : 1.e+000 2.e+000 : 3.e+000 4.e+000 #+begin_src octave typeinfo([[1,2];[3,4]]) #+end_src #+results: : matrix --8<---cut here---end--->8--- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] bug in dynamic block for clock table using :tags
Dear Experts, There seems to be a bug in the tags feature for clock tables. When I try to generate a dynamic block for a clock-table in the following example file it goes into an infinite loop. *** 2010-08-04 Wednesday This illustrates a bug in org-clock.el. When you Do C-c C-x C-r using org-mode version 7.01g on Windows of GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON. #+BEGIN: clocktable :maxlevel 8 :scope subtree :tags "{DAILY}" #+END: TODO PLAN <2010-08-04 Wed> :PLAN:DAILY: SCHEDULED: <2010-08-04 Wed 09:20-09:40> CLOCK: [2010-08-04 Wed 09:20]--[2010-08-04 Wed 09:31] => 0:11 foo SCHEDULED: <2010-08-04 Wed 08:30-09:20> CLOCK: [2010-08-04 Wed 08:30]--[2010-08-04 Wed 09:30] => 1:00 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] hiding PROPERTIES line
> to 100% hide the :PROPERTIES: drawer while giving the user a hint that > there is one... What about a command to hide/unhide _all_ :PROPERTY: lines? Then they're out-of-the-way in ordinary use, and you can do the command and see if there's a property drawer on a given entry. Better, you would hide all :PROPERTY: drawers that contain only specified properties. Then you could have tree-wide properties (such as entry creation or modification times) for every entry, without cluttering the tree. You could set the entry creation property at creation time, and entry modification property at save time (by seeing which entries have changed since last save). Then you could quickly find recently-modified entries either globally or in a given subtree. Also, it would be good to have a command to hide :LOGBOOK: lines in the same way. Usually they're only needed for computing time totals spent under each tree branch, but you don't care about the details recorded in a given :LOGBOOK: drawer. More generally, you could have a list of "hideable" drawers that are completely hidden/revealed by the command, unless they meet a condition specified by a callback function. Would that be hard to add? thanks, ilya On Wed, Aug 4, 2010 at 12:47 AM, Bastien wrote: > Ilya Shlyakhter writes: > >> Is there a way to hide/show the :PROPERTIES: line representing the >> properties locker, either globally or for a subtree? > > Nope. > > Well, every UI element you hide must be partly visible, so that the user > knows how to unhide (or unfold) it. I cannot think of a reasonable way > to 100% hide the :PROPERTIES: drawer while giving the user a hint that > there is one... > > -- > Bastien > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] how to combine times in clocktable
Dear Experts, Is there a way to combine times for lines in the clocktable? For example, I'd like to have everything with a tag of say FOO combined into one entry. So if I spend 1 hour on a node called X with tag FOO and 2 hours on a node Y with tag FOO and 3 hours on a node Z with no tags, I'd like to see that I spent 3 hours on stuff tagged with FOO and 3 hours on other stuff. Any suggestions? Thanks, -I.S. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Change resolution of LaTeX formulas in HTML output?
Is there a way to control the resolution of PNG LaTeX formulas when you export to HTML? You can control the font size directly in the header but there doesn't seem to be a way to use org-mode to control the resolution... BTW, I'm not exporting to LaTeX directly because I'm using PrinceXML to convert the HTML file to a PDF. --Uriel ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org file rendering/manipulation too slow
Hi Bastien, Here it is: http://github.com/celoserpa/emacs-starter-kit/blob/master/fullofcaffeine/org.el I'm using it on OSX Snow Leopard (latest updates applied). Marcelo. On Sat, Jul 31, 2010 at 3:56 AM, Bastien wrote: > Hi Marcelo, > > Marcelo de Moraes Serpa writes: > >> I've got a plenty of very big org files (~50KB). When it reaches >> ~30KB, org struggles to handle it -- it becomes very slow to navigate >> through the file, the response time is far from smooth. >> >> release_7.01g-20-gdd484 and GNU Emacs 23.2.1 (x86_64-apple-darwin, NS >> apple-appkit-1038.29) of 2010-05-08 on black.local > > Maybe you could share (or link to) your Org configuration file? > > That would help digg the issue. > > Thanks, > > PS: I live in one Org files of ~700K and I've no problem with it. > > -- > Bastien > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Printing Multiple Lines For Agenda Export
I have some task that have/need more descriptive text, but I am not able to get the text to show up when I export the view. I have set the command : Org Agenda Add Entry Text Maxlines to display more than 0, but then the program hangs and I have to force it to quit. This is the custom command that I would like to add the function to: ("@" "Print for the day" ((agenda "" ((org-agenda-ndays 2) (org-agenda-overriding-header "Today List") (org-agenda-sorting-strategy '(time-up priority-down tag-up)) (org-deadline-warning-days 2) (org-agenda-filter-preset '("-Personal" (todo "DELEGATE") (todo "WAITING" ((org-agenda-filter-preset '("-Personal" (tags-todo "REPORTS" ((org-agenda-overriding-header "Report Detail") )) (tags-todo "Order") (tags-todo "Repair") ) nil ("~/Documents/Magic Briefcase/Mobile Folders/notes/@.txt") ) I am using Emacs 23 for Windows and Aquamacs for OSX Any help will be appreciated, Andre ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] request for comments on org icon theme standards
There's been some interest in embedding graphical icons and other indicators into org-mode buffers to increase readability and reduce clutter. One nice icon set based on the Tango color scheme has been released, and it would be useful to define icon themes for org so that the eventual org-icons contrib can support loading different icon sets. I suppose we could just inventory the existing icons and make that into an icon themes standard, perhaps I will do that tonight and write up a short document. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] MobileOrg for Android...issues
Hello All, I have a Droid and am anxious to use MobileOrg for it. I have it installed but it won't sync. Probably because I require SSL on my WebDav server and I remember reading there is an SSL sync issue with Android. Any news on that? Also, I selected to store the .org files on my SD card. Is there a way I can *manually* copy org files to the SD card (just need a location really) so that I can at least read/reference them? I don't have a need to edit/capture at this point, but would like to at least view them. Thanks! --C64Whiz ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] MobileOrg for Android...issues
There are certificate issues with some versions of Android that affect connecting to an SSL webdav server... what version are you using? There's no way to manually copy the files and parse them just yet, there was some work done on this on Dushistov's branch at: http://github.com/Dushistov/mobileorg-android but this isn't clean enough to import into the main codebase and is several months behind my current HEAD. In order to support synchronizing from sources other than webdav I have had to overhaul the way that files are parsed and I'm doing this as part of the effort to edit/change org file entries (see my commits from the last 48 hours). Once that has baked out then I will modularize synchronization and import the code needed to synchronize from other sources. 73, Matthew W. Jones (KI4ZIB) http://matburt.net On Wed, Aug 4, 2010 at 2:35 PM, C64 Whiz wrote: > Hello All, > > I have a Droid and am anxious to use MobileOrg for it. I have it > installed but it won't sync. Probably because I require SSL on my > WebDav server and I remember reading there is an SSL sync issue with > Android. Any news on that? > > Also, I selected to store the .org files on my SD card. Is there a > way I can *manually* copy org files to the SD card (just need a > location really) so that I can at least read/reference them? I don't > have a need to edit/capture at this point, but would like to at least > view them. > > Thanks! > > --C64Whiz > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] custom sorting of agenda items
I'd like to sort agenda entries in a custom agenda view by the value of a text property that I put on the headlines. Is there a way to do that? thanks, ilya ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] request for comments on org icon theme standards
Hi David, "David O'Toole" writes: > One nice icon set based on the Tango color scheme has been released, Do you have any link to this set? > and it would be useful to define icon themes for org so that the > eventual org-icons contrib can support loading different icon sets. Sure. > I suppose we could just inventory the existing icons and make that > into an icon themes standard, perhaps I will do that tonight and write > up a short document. Thanks! -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] how to show all subheadings of "current level +1", then all of "current level +2" etc.
Hi Rainer, On Wed, Aug 4, 2010 at 2:23 PM, Rainer Stengele wrote: > Hi all, > > on any heading in an org file I can easily see all sub headings with C-c > C-k. > Is there a possibility to easily see only the sub headings of the next > level and nothing more? > And then all headings of the next sub level? And so on?! > > Motivation: > C-c C-k can easily show far too many headings. > It would be good to be able to incrementally step into the heading tree ... > I use TAB for digging down hierarchy. But this is so obvious that you probably mean something else? Greetings Juri ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] camel.el, for CamelCase links
Hi. Le mardi 03 août 2010 à 18:27 +0200, Bastien a écrit : > "David O'Toole" writes: > > > http://github.com/dto/folio/blob/master/camel.el > > > > Someone asked about this recently, i have some partially working code. > Looks promising. Thanks. > I'm willing to test. > > Can you provide the handlers so that the code works for Org? > I'd too like to be able to test too... provided I knew how to ;) ... any hints on how to integrate it ? Thanks in advance. Best regards, P.S. what's the Folio project ? -- Olivier BERGER http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingénieur Recherche - Dept INF Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] how to show all subheadings of "current level +1", then all of "current level +2" etc.
Use show-children with a prefix argument. >From the docs: show-children is an interactive compiled Lisp function in `outline.el'. (show-children &optional level) Show all direct subheadings of this heading. Prefix arg level is how many levels below the current level should be shown. Fernando Náufel, D.Sc. fnau...@ic.uff.br http://fnaufel.wordpress.com http://www.uff.br/llarc Professor Adjunto (~Professor Doctor -- see http://en.wikipedia.org/wiki/Professor#Brazil) LLaRC - Laboratório de Lógica e Representação do Conhecimento DCT - Depto. de Ciência e Tecnologia PURO - Pólo Universitário de Rio das Ostras UFF - Universidade Federal Fluminense Brazil -- On Wed, Aug 4, 2010 at 5:45 PM, Juri Krivov wrote: > Hi Rainer, > > On Wed, Aug 4, 2010 at 2:23 PM, Rainer Stengele > wrote: >> >> Hi all, >> >> on any heading in an org file I can easily see all sub headings with C-c >> C-k. >> Is there a possibility to easily see only the sub headings of the next >> level and nothing more? >> And then all headings of the next sub level? And so on?! >> >> Motivation: >> C-c C-k can easily show far too many headings. >> It would be good to be able to incrementally step into the heading tree >> ... > > I use TAB for digging down hierarchy. But this is so obvious that you > probably > mean something else? > Greetings > Juri > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: skip entry with inherited tags
Hi Carsten, On 22.07.2010 09:38, Carsten Dominik wrote: > Hi Martin, > > On Jul 21, 2010, at 4:32 PM, Carsten Dominik wrote: > >> Hi Martin, >> >> I just looked at your patch. >> >> If I have a normal agenda (i.e. *not* a block agenda), then your >> patch will cause the preset filter *not* to be applied. > > OK, that was obviously incorrect, sorry about that. > > However, it still does not work correctly, here is the counter example: > > - > * TODO test 1 :a: > * TODO test 2 :b: > > * at 1 > :a: >SCHEDULED: <2010-07-22 Thu> > * at 1 > :b: >SCHEDULED: <2010-07-22 Thu> > -- Here is what I found to be incorrect. * For unmodified org-mode, this ignores the org-agenda-filter-preset. Is this what you mean or is anything else broken? * For my patched version, too much is hidden and only revealed after clearing the global filter. Did you mean anything else? > With this custom command: > > (setq org-agenda-custom-commands >'(("x" "testmartin" >((agenda "" ((org-agenda-filter-preset '("+a" > (alltodo "" ((org-agenda-filter-preset '("+b") >nil nil))) > > the result is incorrect, both with and without your patch. But in different ways, as state above. > The internal logic of the filter and the preset filter is such that > it applies to the entire view, and you should not set in the local > options for a command that is part of a block agenda view. Well, it is already partly there in that local filters are stored in text properties for each line. Maybe we can extend this a bit to remove this limitation? I will look into it if I have more time. Cheers, Martin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] camel.el, for CamelCase links
On Aug 3,2010, at 9:27 AM, Bastien wrote: > "David O'Toole" writes: > >> http://github.com/dto/folio/blob/master/camel.el >> Someone asked about this recently, i have some partially working code. > > I'm not a big fan of CamelCase links because it encourages the habit of > creating many files -- but that may be useful for some. I'm on the fence about that one. I would definitely love an easier way to create remote files and headings. This might help with the file end of that. A question for people people on the list: I'm not sure of the conventions with CamelCase and wikis (and a quick search didn't reveal the answer), but I'm wondering what might work to complete the model — that is to say include creation of remote headings as well as remote files. For example, perhaps using the # sign convention, we would write 'CamelCase#usage' and the first part would act as has been described. The second part (after the # sign) would reference a (top level?) heading in that file. If the heading existed, then great. If not, then it's created as part of the same trigger. Perhaps this is all old hat, but I couldn't dig up answers for myself, so I thought I would run it by you all. — Michael ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] hiding PROPERTIES line
Hi Ilya, Ilya Shlyakhter writes: > Would that be hard to add? IMHO it would be both hard to implement and confusing for the user. I'd be glad to be proved wrong on both points, but please tackle the first one first :) -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Change resolution of LaTeX formulas in HTML output?
amscopub-m...@yahoo.com writes: > Is there a way to control the resolution of PNG LaTeX formulas when > you export to HTML? I've implemented this. You can define the :html-resolution in `org-format-latex-options'. Please test and report any problem. -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] custom sorting of agenda items
Hi Ilya, Ilya Shlyakhter writes: > I'd like to sort agenda entries in a custom agenda view by the value > of a text property that I put on the headlines. > Is there a way to do that? Well, no. Maybe playing around with org-map-entries could yield some result. -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] custom sorting of agenda items
When giving a user-defined function for org-agenda-cmp-user-defined, the function gets two agenda entries. Is there a way from an agenda entry to get to the original org entry? Best would be if, besides a user-defined sort function, you could also provide a function that takes the org entry and the agenda item (i.e. is run with point on the org entry and is passed the agenda item), and can then store anything it wants about the org entry as text properties on the agenda item. The companion user-defined sorting function could then use these stored text properties for ordering the agenda items. Could you add such a hook? thanks, ilya On Wed, Aug 4, 2010 at 6:51 PM, Bastien wrote: > Hi Ilya, > > Ilya Shlyakhter writes: > >> I'd like to sort agenda entries in a custom agenda view by the value >> of a text property that I put on the headlines. >> Is there a way to do that? > > Well, no. > > Maybe playing around with org-map-entries could yield some result. > > -- > Bastien > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] hiding PROPERTIES line
I believe that what Ilya wants is already implemented as a bug (IMO). With certain settings, going to an entry from the agenda causes it to look like this: * test ... ** subtree The ellipses hide all body text. IMO this should not be allowed to happen, because the user cannot achieve that state using TAB alone. That is just my preference. But Ilya wants it, so maybe by investigating the bug he can investigate how to do it the way he wants. All of the above is IIRC. Please take a look at a recent post from me for details. Samuel On 2010-08-04, Bastien wrote: > Hi Ilya, > > Ilya Shlyakhter writes: > >> Would that be hard to add? > > IMHO it would be both hard to implement and confusing for the user. > > I'd be glad to be proved wrong on both points, but please tackle the > first one first :) > > -- > Bastien > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied a deadly disease for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE === PNAS must publish the original Lo and Alter NIH/FDA XMRV paper verbatim along with the new paper. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] question about chaining function calls in org-babel
Dear Experts, I think org-babel is awesome but I'm having some trouble chaining together multiple function calls. Specifically, I would like to do something like the following #+tblname: fancier | mean | || | #ERROR | #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size (sbe "square" (x 4)) but it doesn't work. Can someone help me understand: 1. How to make this work? 2. How to debug things like this (e.g., how do I make something appearing in a table get its own session so I can use org-babel-pop-to-session)? Supporting code and building up examples to try to make the above work are shown below. The following builds up examples for multiple function calls. Save this in org-mode and see what happens. Create a block to generate random data: #+srcname: tbl-example-data(seed=2, size=3) #+begin_src python : import random random.seed(seed) return [i+random.gauss(0,.1) for i in range(size)] #+end_src Create a block to compute the mean #+srcname: python-mean(x) #+begin_src python return sum(x)/float(len(x)) #+end_src Create a table to use the data. To update the table do "C-u C-c *" in the table. #+tblname: summaries | mean | |---| | 1.06900574831 | #+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data")) Create a table to use the data where we pass arguments to tbl-example-data. To update the table do "C-u C-c *" in the table. #+tblname: fancy | mean | |---| | 3.53014887192 | #+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data(seed=4,size=8)")) Define a square function: #+srcname: square(x) #+begin_src python return x*x #+end_src Test squaring: #+tblname: testSquaring | mean | |--| | 16 | #+TBLFM: @2$1='(sbe "square" (x 4)) Try to do something even fancier and it doesn't work: #+tblname: fancier | mean | |--| | | #+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data(seed=4,size=square(4))")) Try to do something even fancier with sbe and it doesn't work. #+tblname: fancier | mean | |--| | | #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size square(4) One more try: #+tblname: fancier | mean | || | #ERROR | #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size (sbe "square" (x 4)) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: question about chaining function calls in org-babel
Hi I.S., Inquisitive Scientist writes: > Dear Experts, > > I think org-babel is awesome but I'm having some trouble chaining > together multiple function calls. > > Specifically, I would like to do something like the following > #+tblname: fancier > | mean | > || > | #ERROR | > #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size > (sbe "square" (x 4)) > but it doesn't work. OK, first off, personally I would use a dedicated src block to construct the complex chain of calls. So your most complex example can be done with #+tblname: | mean | |---| | 7.52617964952 | #+TBLFM: @2$1='(sbe "chain") #+srcname: chain #+begin_src emacs-lisp :var x=python-mean(x=tbl-example-data(seed=4, size=square(x=4))) x #+end_src [...] > Try to do something even fancier and it doesn't work: > #+tblname: fancier > | mean | > |--| > | | > #+TBLFM: @2$1='(sbe "python-mean" (x > "tbl-example-data(seed=4,size=square(4))")) This one works if we name the argument to square: #+tblname: fancier | mean | |---| | 7.52617964952 | #+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data(seed=4,size=square(x=4))")) Beyond that, your examples feature one sbe nested inside another. For example | mean | || | #ERROR | #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size 16 I *believe* that there is no expectation for this to work, because sbe is an elisp function (well, a macro), and not a source block. In other words, the first sbe is expecting a source block reference, whereas what it gets is this lisp form: (sbe "tbl-example-data" (seed 4) (size 16)) My guess is that sbe does not undertake to evaluate a lisp form occurring in that context. But I admit that I still find these complicated macros more or less incomprehensible, so we could do with Eric's input here. As for debugging, all I know of is to place print statements inside the macro. The docstring says , | (defmacro sbe (source-block &rest variables) | "Return the results of calling SOURCE-BLOCK with VARIABLES. | Each element of VARIABLES should be a two | element list, whose first element is the name of the variable and | second element is a string of its value. | [...] | NOTE: by default string variable names are interpreted as | references to source-code blocks. To force interpretation of a | cell's value as a string, | [...] ` Dan > > Try to do something even fancier with sbe and it doesn't work. > #+tblname: fancier > | mean | > |--| > | | > #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size > square(4) > > One more try: > #+tblname: fancier > | mean | > || > | #ERROR | > #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size > (sbe "square" (x 4)) > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: inline image display not working when org-indent-mode active, follow-up
Hello, I am using the latest org pulled from git. In the past few weeks, I found that the overlays of inline images in my org-mode files would flash quickly and then be deleted when using org-indent-mode. This also happened when re-running an org-babel source block that generates graphical output, even without org-indent-mode turned on. [1] I believe I've tracked this down to the following patch, http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25738.html What I think is happening, is that org-indent-mode (or alternatively, the org-babel result insertion process) must be triggering the org-display-inline-modification-hook, which deletes the overlay. This intuitively makes sense to me in both cases. I do not know how to fix this unfortunately, but I think this is the correct diagnosis. For now, I've simply removed the function hook from the ov modification-hooks, and all seems well. [1] http://www.mail-archive.com/emacs-orgmode@gnu.org/msg27500.html ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: Prompts again WAS Re: [Orgmode] avoiding source block prompts
On Wed, 28 Jul 2010, Eric Schulte wrote: Thanks Chuck, I've just swapped in your new and improved regexp. I share your concern both that there could be cases where prompts aren't matched, or more seriously where the actual output looks like a prompt (e.g. user returns a prompt-like string). Before taking this explicit prompt removal approach I tried automatically removing comment lines from the input before passing it to the inferior R process, however that ran into similar problems of users potentially inputting valid strings which look like comments -- which would be hard to catch without implementing a fairly sophisticated R parser as part of Babel. This new regexp looks like the best option for now. Thanks! -- Eric Eric (and anyone else listening in), I've put together a revised org-babel-R-evaluate. With "R :session :results ouput" it will gracefully handle commands like: cat("\n > > + > \n") leaving the output in place, but trimming out the prompts and gratuitous lines. The code appears below along with a couple of test cases. I did not touch anything in org-babel-R-evaluate above the second '(output'; it looks like the ':session :results value' case will have trouble when a block ends with something like this cat( "no newline" );invisible(1+1) (say) and (inferior-ess-send-input) does not result in a newline, but I am not sure how to engineer that. Maybe just eval( parse( text=..ob.body ) ), but I don't know how to get the text in body sent to R as ..ob.body. If the elisp looks peculiar, it is because I am just picking it up. Criticism and pointers welcome. Chuck #+begin_src emacs-lisp (setq org-babel-R-initiate-sink "..ob.tcon <- textConnection(\"..ob.tcon.txt\",\"w\") ..ob.eol <- \"\n\" sink( ..ob.tcon ) \n") (setq org-babel-R-finish-sink "\nsink() close( ..ob.tcon ) cat( ..ob.eol ) cat(..ob.tcon.txt, sep=..ob.eol) rm( ..ob.tcon.txt )") (defmacro sinkout (bd) (list 'concat org-babel-R-initiate-sink bd org-babel-R-finish-sink)) (defun drop-two-lines (linestring) "Search for second '\\n' and delete all characters up to an including it." (substring linestring (progn (string-match "\n.*\n" linestring) (match-end 0 (defun org-babel-R-evaluate (session body result-type column-names-p row-names-p) "Pass BODY to the R process in SESSION. If RESULT-TYPE equals 'output then return a list of the outputs of the statements in BODY, if RESULT-TYPE equals 'value then return the value of the last statement in BODY, as elisp." (if (not session) ;; external process evaluation (case result-type (output (org-babel-eval org-babel-R-command body)) (value (let ((tmp-file (make-temp-file "org-babel-R-results-"))) (org-babel-eval org-babel-R-command (format org-babel-R-wrapper-method body tmp-file (if row-names-p "TRUE" "FALSE") (if column-names-p (if row-names-p "NA" "TRUE") "FALSE"))) (org-babel-R-process-value-result (org-babel-import-elisp-from-file (org-babel-maybe-remote-file tmp-file)) column-names-p ;; comint session evaluation (case result-type (value (let ((tmp-file (make-temp-file "org-babel-R")) broke) (org-babel-comint-with-output (session org-babel-R-eoe-output) (insert (mapconcat #'org-babel-chomp (list body (format org-babel-R-wrapper-lastvar tmp-file (if row-names-p "TRUE" "FALSE") (if column-names-p (if row-names-p "NA" "TRUE") "FALSE")) org-babel-R-eoe-indicator) "\n")) (inferior-ess-send-input)) (org-babel-R-process-value-result (org-babel-import-elisp-from-file (org-babel-maybe-remote-file tmp-file)) column-names-p))) (output (drop-two-lines (mapconcat #'org-babel-chomp (butlast (delq nil (mapcar #'identity (org-babel-comint-with-output (session org-babel-R-eoe-output) (insert (mapconcat #'org-babel-chomp (list (sinkout body) org-babel-R-eoe-indicator) "\n")) (inferior-ess-send-input 2) "\n")) #+end_src #+results: : org-babel-R-evaluate #+begin_src R :session :results output cat(" >\n") 1+1 #+end_src #+results: : > : [1] 2 #+begin_src R :session :results output cat(" > start o
Re: [Orgmode] camel.el, for CamelCase links
Hi. Le mercredi 04 août 2010 à 15:28 -0700, Michael Gilbert a écrit : > A question for people people on the list: I'm not sure of the > conventions with CamelCase and wikis (and a quick search didn't reveal > the answer), but I'm wondering what might work to complete the model — > that is to say include creation of remote headings as well as remote > files. For example, perhaps using the # sign convention, we would > write 'CamelCase#usage' and the first part would act as has been > described. The second part (after the # sign) would reference a (top > level?) heading in that file. If the heading existed, then great. If > not, then it's created as part of the same trigger. > I think that's the way I would expect it to work in most wikis (or with [[CamelCase#usage]] maybe for some. Best regards, -- Olivier BERGER http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingénieur Recherche - Dept INF Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode