Re: [O] how to insert a source template
Piter_ writes: > Hi all. > I have no big knowlege of elisp. But I hope some one already done this. > I want to make a key binding which would insert a source code template > like this (I've got tired to type it every time): > > #+source: > #+begin_src > > #+end_src http://orgmode.org/manual/Easy-Templates.html#Easy-Templates Also look at org-structure-template-alist. > > Thanks. > Petro. > > --
Re: [O] Occurance property, or some similar name?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On 12/04/2011 00:42, Christopher Allan Webber wrote: > I was once one of the many people who apparently originally > misunderstood what "SCHEDULED" meant, and used to set it to like, an > appointment time. That's what I do. Maybe I lack background, but why do you think it's not appropriate for this use? - -- librement, theo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNo9N7AAoJECkgngj8k9TvL5YH+waA12eQ4S4Wg0NIa7r9Y4wq dUhhGE9HwpR+YTmrHTKwGY/PrmSYl+fyfbWkgFbaHS6DmQRPCqawzMLwQ6obmLqK I2i+ntYjHe2g8YWaYP1llDKYLofOx2HrqgrMdPex8M5OOtOuda6FqqZvKekZVwiU 8da4zPMqVd+W0IAGrDnsxNGNEZK2j++fZARHIQo4aEWhFfdmpi9AuZ2IVQH58Thy 1IZSVx3HObHaiIyU1BPr6fZpFWh6QG0Q5wjbb3GHqF3g2QIgylVfJsq7XXqDf2T2 SvIHqtP08nNUIuc/Tpw6+VJ8vPjmjy7pp9zJ/NJnWc8ebFwX6XXWEqka6PBtYfY= =MGmY -END PGP SIGNATURE- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
[O] Bug: Backtrace [7.5 (release_7.5.135.g7021f.dirty)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I had mistakenly un-scheduled a bunch of items. Then I marked them all in the agenda and tried to scatter over 20 weekdays (`C-u B S 2 0 RET') and got this backtrace: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) <(nil nil) (cond ((equal ... ...) (< ... ...)) (t (string< ... ...))) (lambda (a b) (cond (... ...) (t ...)))(# #) sort((#) (lambda (a b) (cond (... ...) (t ... (setq entries (sort entries (lambda ... ...))) (let* ((action ...) (org-log-refile ...) (entries ...) redo-at-end cmd rfloc state e tag pos (cnt 0) (cntskip 0)) (cond (... ...) (... ...) (... ... ... ...) (... ... ...) (... ... ...) (... ...) (... ...) (... ...) (t ...)) (setq entries (sort entries ...)) (while (setq e ...) (setq pos ...) (if ... ... ... ... ... ...)) (setq org-agenda-bulk-marked-entries nil) (org-agenda-bulk-remove-all-marks) (when redo-at-end (org-agenda-redo)) (message "Acted on %d entries%s" cnt (if ... "" ...))) org-agenda-bulk-action((4)) call-interactively(org-agenda-bulk-action nil nil) Emacs : GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-03-09 on black.porkrind.org Package: Org-mode version 7.5 (release_7.5.135.g7021f.dirty) current state: == (setq org-agenda-deadline-leaders '("D: " "D%d: ") org-clock-in-switch-to-state "STARTED" org-agenda-skip-scheduled-if-deadline-is-shown t org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-todo-keyword-faces '(("TODO" :foreground "medium blue" :weight bold) ("APPT" :foreground "medium blue" :weight bold) ("NOTE" :foreground "brown" :weight bold) ("STARTED" :foreground "dark orange" :weight bold) ("WAITING" :foreground "red" :weight bold) ("DELEGATED" :foreground "dark violet" :weight bold) ("DEFERRED" :foreground "dark blue" :weight bold) ("SOMEDAY" :foreground "dark blue" :weight bold) ("PROJECT" :height 1.5 :weight bold :foreground "black")) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-agenda-custom-commands '(("E" "Errands (next 3 days)" tags "Errand&TODO<>\"DONE\"&TODO<>\"CANCELLED\"&STYLE<>\"habit\"&SCHEDULED<\"<+3d>\"" ((org-agenda-overriding-header "Errands (next 3 days)"))) ("A" "Priority #A tasks" agenda "" ((org-agenda-ndays 1) (org-agenda-overriding-header "Today's priority #A tasks: ") (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]" ) ("B" "Priority #A and #B tasks" agenda "" ((org-agenda-ndays 1) (org-agenda-overriding-header "Today's priority #A and #B tasks: ") (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote regexp) "\\=.*\\[#C\\]" ) ("w" "Waiting/delegated tasks" tags "TODO=\"WAITING\"|TODO=\"DELEGATED\"" ((org-agenda-overriding-header "Waiting/delegated tasks:") (org-agenda-sorting-strategy (quote (todo-state-up priority-down category-up ) ("u" "Unscheduled tasks" tags "TODO<>\"\"&TODO<>\"DONE\"&TODO<>\"CANCELLED\"&TODO<>\"NOTE\"&CATEGORY<>{CEG\\|ABC\\|Bizcard\\|Adagio\\|EVAprint\\|\\}" ((org-agenda-overriding-header "Unscheduled tasks: ") (org-agenda-skip-function (quote
Re: [O] Completing with anything
> Because this one return (list start end completion-choies), and does not > do anything else. I can't do it myself using the current completion > mechanism, IIUC. Hmm... good point, doing it in completion-choices is not reliable, tho using as completion table something like: (lambda (string pred action) (let ((res (complete-with-action action completion-choices string pred))) (if (and (eq action nil) (assq (if (eq res t) string res) )) (cdr (assq (if (eq res t) string res) )) res))) should work OK for prefix completion, but that means using the expansion "by hand" rather than via expand-abbrev, which may not be an option. Stefan
Re: [O] LaTeX export: inline markup underscore problem
Aloha Mauro, It appears that the new link type is not defined. Have you executed the source block, define-citep-link? Also, version 6.21 is probably too old for at least some of the LaTeX export. It is probably not worth the trouble to try to set things up for that version of Org-mode. hth, Tom On Apr 11, 2011, at 8:54 AM, Mauro Rovezzi wrote: Hello Thomas, On Mon, Apr 11, 2011 at 6:58 PM, Thomas S. Dye wrote: Aloha Mauro, On my system I define a citep link: #+source: define-citep-link #+begin_src emacs-lisp :results silent (org-add-link-type "citep" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "citep:" desc))) (format "\\citep{%s}" path) (format "\\citep[%s]{%s}" desc path) ) #+end_src then the following Org-mode source: Hawaiian archaeology's response to the late Roger Green's call for an investigation of diachronic settlement patterns [[citep:green84:_settl_patter_studies_ocean]] has been slow and difficult. exports as: Hawaiian archaeology's response to the late Roger Green's call for an investigation of diachronic settlement patterns \citep{green84:_settl_patter_studies_ocean} has been slow and difficult. Perhaps you could post a minimal example that doesn't work for you? Note that this solution doesn't depend on ebib. It is perfectly OK to enter the bibliography key by hand if you prefer. Yes, I did the same but I get different behavior. If I put the same code in a .org file (the current file where the citation is or the #+SETUPFILE), the LaTeX export is \hyperref[citep:green84:_settl_patter_studies_ocean] {citep:green84:_settl_patter_studies_ocean}, while if I put the same in my .emacs, it is exported as \texttt{cite:green84:_settl_patter_studies_ocean}. This happens in Org version 6.21b (Ubuntu 10.10 version). while in the last version from Git it transforms to \hyperref[citep-green84-_settl_patter_studies_ocean] {citep:green84:_settl\_patter\_studies\_ocean} Well, something is going weird... On your other observation: I don't use underscores in headlines, so hadn't run across the limitation in the cross references that you mention. I don't know if there is any way around this. If you do find a way, please feel free to add the solution to the LaTeX export tutorial. OK, but for this is easier to just change the labels and remove underscores, so this is definitely a minor point. Anyway, thanks a lot for your help! M.
Re: [O] LaTeX export: inline markup underscore problem
Hello Thomas, On Mon, Apr 11, 2011 at 6:58 PM, Thomas S. Dye wrote: > Aloha Mauro, > On my system I define a citep link: > > #+source: define-citep-link > #+begin_src emacs-lisp :results silent > (org-add-link-type > "citep" 'ebib > (lambda (path desc format) > (cond > ((eq format 'html) > (format "(%s)" path)) > ((eq format 'latex) > (if (or (not desc) (equal 0 (search "citep:" desc))) > (format "\\citep{%s}" path) > (format "\\citep[%s]{%s}" desc path) > ) > #+end_src > > then the following Org-mode source: > > Hawaiian archaeology's response to the late Roger Green's call for an > investigation of diachronic settlement patterns > [[citep:green84:_settl_patter_studies_ocean]] has been slow and difficult. > > exports as: > > Hawaiian archaeology's response to the late Roger Green's call for an > investigation of diachronic settlement patterns > \citep{green84:_settl_patter_studies_ocean} has been slow and difficult. > > Perhaps you could post a minimal example that doesn't work for you? > Note that this solution doesn't depend on ebib. It is perfectly OK to enter > the bibliography key by hand if you prefer. Yes, I did the same but I get different behavior. If I put the same code in a .org file (the current file where the citation is or the #+SETUPFILE), the LaTeX export is \hyperref[citep:green84:_settl_patter_studies_ocean]{citep:green84:_settl_patter_studies_ocean}, while if I put the same in my .emacs, it is exported as \texttt{cite:green84:_settl_patter_studies_ocean}. This happens in Org version 6.21b (Ubuntu 10.10 version). while in the last version from Git it transforms to \hyperref[citep-green84-_settl_patter_studies_ocean]{citep:green84:_settl\_patter\_studies\_ocean} Well, something is going weird... > On your other observation: > I don't use underscores in headlines, so hadn't run across the limitation in the cross references that you mention. I don't know if there is any way around this. > If you do find a way, please feel free to add the solution to the LaTeX > export tutorial. OK, but for this is easier to just change the labels and remove underscores, so this is definitely a minor point. Anyway, thanks a lot for your help! M.
[O] Hide / expand tags
Hey list! Is it possible to hide tags? Rationale: Sometimes an item has so many tags, that it becomes kind of annoying visually. It'd be nice to have a command to hide/expand tags. What do you think? Cheers, Marcelo.
Re: [O] Reg Navigation keys in org mode presentation
Kumar Sadhu writes: > Hi, > I have recently created a presentation in orgmode. Mouse click is used > to navigate through the bullet points. How can I have this > functionality with space key. That is, when I press space bar, I > should get next bullet point. > How can I do this by changing the javascript? > If its not easy to do this by changing javascript, are there any other > ways to do this? I think you are going to have to give us more information. How have you "created" the presentation? From what you say, it sounds like you have exported the org file to html but this is not clear. If so, what javascript are you referring to as there is no default javascript included in html export. IMO, if you want to create a presentation, I would recommend going the beamer route instead (documentation in the manual and on Worg) which will create a PDF for you and then you have your choice of PDF viewer... -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.176.g2c8e9)
Re: [O] LaTeX export: inline markup underscore problem
Aloha Mauro, On my system I define a citep link: #+source: define-citep-link #+begin_src emacs-lisp :results silent (org-add-link-type "citep" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "citep:" desc))) (format "\\citep{%s}" path) (format "\\citep[%s]{%s}" desc path) ) #+end_src then the following Org-mode source: Hawaiian archaeology's response to the late Roger Green's call for an investigation of diachronic settlement patterns [[citep:green84:_settl_patter_studies_ocean]] has been slow and difficult. exports as: Hawaiian archaeology's response to the late Roger Green's call for an investigation of diachronic settlement patterns \citep{green84:_settl_patter_studies_ocean} has been slow and difficult. Perhaps you could post a minimal example that doesn't work for you? Note that this solution doesn't depend on ebib. It is perfectly OK to enter the bibliography key by hand if you prefer. On your other observation: I don't use underscores in headlines, so hadn't run across the limitation in the cross references that you mention. I don't know if there is any way around this. If you do find a way, please feel free to add the solution to the LaTeX export tutorial. All the best, Tom On Apr 11, 2011, at 3:55 AM, Mauro Rovezzi wrote: On Mon, Apr 11, 2011 at 3:44 AM, Nick Dokos wrote: Thomas S. Dye wrote: The code the OP cited passes desc to \cite{}. The code I pointed to passes path to \cite{}. It does this to get around the problem of escaped underscores, if I remember correctly. In any case, I use this code with bibliography keys that include underscores, so it should work for the OP. I still don't quite understand, so obviously I'm missing something fundamental - but I'll read your tutorial completely first (great tutorial btw!) and try some things out. Thomas, I also do not understand your reply, sorry. I have tried to implement your solution with ebib, but it is not working. Well, personally I do not use ebib, so it would be more elegant for me do not depend on it. Anyway, I think I have to invest more time to better understand this ebib-oriented solution to underscore. In addition, I also find out that the cross-references (http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-16) do not work either when the reference has underscore in it. Thanks, Mauro
Re: [O] Problem with [xxx] inside a footnote
On Mon, 11 Apr 2011 12:39:48 +0200 Giovanni Ridolfi wrote: > Alan L Tyree writes: > > > Hello Orgsters, > > > > [fn:1: Although this risk is usually negligible, bank cheques are > > not "the same as cash": see Sidney Raper Pty Ltd v Commonwealth > > Trading Bank of Australia [1975] 2 NSWLR 227; Justin Seward Pty Ltd > > v Commissioner of Rural and Industries Bank > > (1980) 60 FLR 51; and Yan v Post Office Bank Ltd [1994] 1 NZLR 150] > > > > > > The problem, of course, is that Org-mode thinks that the right > > bracket at the end of [1975] terminates the footnote. Part of the > > footnote becomes regular text. > > Please have a look at the thread: > > http://thread.gmane.org/gmane.emacs.orgmode/29463/focus=29474 Blush! I was even part of that thread! Sorry for the noise. Alan > > Giovanni
[O] org-gnus-follow-link and nnimap-request-scan
After switching to using gnus mail splitting, following links to nnimap messages has become very slow. I'm fairly familiar with the gnus source, but not org-mode's as much, after wading a bit in the source I landed on ,[ org-gnus-follow-link ] |(gnus-activate-group group t) ` ,[ C-h f gnus-activate-group RET ] | gnus-activate-group is a compiled Lisp function in `gnus-start.el'. | | (gnus-activate-group GROUP &optional SCAN DONT-CHECK METHOD DONT-SUB-CHECK) | | Check whether a group has been activated or not. | If SCAN, request a scan of that group as well. | | [back] ` which ends up invoking , | (deffoo nnimap-request-scan (&optional group server) | (when (and (nnimap-possibly-change-group nil server) |nnimap-inbox |nnimap-split-methods) | (nnheader-message 7 "nnimap %s splitting mail..." server) | (nnimap-split-incoming-mail))) ` Which is certainly dispensable for visiting articles via nnimap. Switching to ,[ org-gnus-follow-link ] |(gnus-activate-group group nil) ` Makes the linked articles appear nearly instantly. Am I missing something here? -- Eden Cardim Software Engineer edencardim.com +55 73 9986-3963
[O] Occurance property, or some similar name?
I was once one of the many people who apparently originally misunderstood what "SCHEDULED" meant, and used to set it to like, an appointment time. It seems the appropriate thing for what I actually meant was to just put a timestamp anywhere in the entry and that works out well. A lot of people put it on the header apparently, and that seems insane to me. I kind of miss how nice it was back when I misunderstood how events work (escept for all of those non-TODOs staying around forever on my agenda..) where I had a dedicated property for this, and pressing C-c C-s would always change that property. What I'm saying I guess is: - Is there a popular property name for when something should be happening, in a non-TODO way? I've thought of "OCCURANCE" but maybe that isn't the best (I suspect not) - Maybe if we formalize this property, we should make a command for it? Maybe C-c C-S-o? - It would be nice to formalize this so we could actually steer people in the right direction in the docs. -- 𝓒𝓱𝓻𝓲𝓼𝓽𝓸𝓹𝓱𝓮𝓻 𝓐𝓵𝓵𝓪𝓷 𝓦𝓮𝓫𝓫𝓮𝓻
[O] how to insert a source template
Hi all. I have no big knowlege of elisp. But I hope some one already done this. I want to make a key binding which would insert a source code template like this (I've got tired to type it every time): #+source: #+begin_src #+end_src Thanks. Petro.
[O] Re: How to display a diary entry in agenda week view only "today"
Bernt Hansen wrote: > Nick Dokos writes: > > > Suvayu Ali wrote: > > > >> On Mon, 11 Apr 2011 14:55:24 +0200 > >> Niels Giesen wrote: > >> > >> > On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele > >> > wrote: > >> > > Am 11.04.2011 10:36, schrieb Suvayu Ali: > >> > >> On Mon, 11 Apr 2011 08:52:52 +0200 > >> > >> > >> > >> %%(if (calendar-date-equal date (calendar-current-date)) > >> > >> (diary-sunrise-sunset)) > >> > >> > >> > > Perfect, thanks. > >> > > > >> > > I can find the other functions in calendar.el, > >> > > but where is "date" from? > >> > > > >> > > >> > date is a dynamically bound variable at the time of evaluation. > >> > > >> > >> I have a question I have been meaning to ask for a long time. How does > >> one test sexps with variables like these? I have tried the scratch > >> buffer but it gives errors like "(void-variable date)". I found the only > >> way I could test is to put it on one of the agenda files. > >> > >> Any suggestions? > >> > > > > Bind date explicitly in the scratch buffer and then evaluate: > > > > (setq date '(4 11 2011)) > > Wouldn't a > (let ((date '(4 11 2011))) > ) > > be better so date isn't permanently bound? > Sure - I tend to do these things in an isolated emacs, so I don't particularly care - I kill it and restart it, since it goes off the rails quite often - but if you use your main emacs, that is definitely a good idea. OTOH, using your main emacs for experiments is probably *not* a good idea anyway :-) Nick
Re: [O] Re: How to display a diary entry in agenda week view only "today"
On Mon, 11 Apr 2011 10:55:28 -0400 Nick Dokos wrote: > Suvayu Ali wrote: > > > On Mon, 11 Apr 2011 14:55:24 +0200 > > Niels Giesen wrote: > > > > > date is a dynamically bound variable at the time of evaluation. > > > > > > > I have a question I have been meaning to ask for a long time. How > > does one test sexps with variables like these? I have tried the > > scratch buffer but it gives errors like "(void-variable date)". I > > found the only way I could test is to put it on one of the agenda > > files. > > > > Any suggestions? > > > > Bind date explicitly in the scratch buffer and then evaluate: > > (setq date '(4 11 2011)) > > ... > > I think the format is (month day year) but be sure to check. > Works like a charm. Thanks a lot Nick. :) > Nick -- Suvayu Open source is the future. It sets us free.
[O] Re: How to display a diary entry in agenda week view only "today"
Nick Dokos writes: > Suvayu Ali wrote: > >> On Mon, 11 Apr 2011 14:55:24 +0200 >> Niels Giesen wrote: >> >> > On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele >> > wrote: >> > > Am 11.04.2011 10:36, schrieb Suvayu Ali: >> > >> On Mon, 11 Apr 2011 08:52:52 +0200 >> > >> >> > >> %%(if (calendar-date-equal date (calendar-current-date)) >> > >> (diary-sunrise-sunset)) >> > >> >> > > Perfect, thanks. >> > > >> > > I can find the other functions in calendar.el, >> > > but where is "date" from? >> > > >> > >> > date is a dynamically bound variable at the time of evaluation. >> > >> >> I have a question I have been meaning to ask for a long time. How does >> one test sexps with variables like these? I have tried the scratch >> buffer but it gives errors like "(void-variable date)". I found the only >> way I could test is to put it on one of the agenda files. >> >> Any suggestions? >> > > Bind date explicitly in the scratch buffer and then evaluate: > > (setq date '(4 11 2011)) Wouldn't a (let ((date '(4 11 2011))) ) be better so date isn't permanently bound? -Bernt
Re: [O] Re: How to display a diary entry in agenda week view only "today"
Or something like the following (not bullet-proof I guess): (defmacro test-diary-sexp (date &rest body) `(let ((date ,date)) ,@body)) (test-diary-sexp (calendar-current-date) (org-google-weather "De Bilt" "nl")) ... and in calendar-current-date lies your answer to the format question. I do not know however whether or not `date' is the only variable that is bound dynamically for sexps though; this is something that make me go crazy too, so (better) documentation might be in order for one. On Mon, Apr 11, 2011 at 4:55 PM, Nick Dokos wrote: > Suvayu Ali wrote: > >> On Mon, 11 Apr 2011 14:55:24 +0200 >> Niels Giesen wrote: >> >> > On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele >> > wrote: >> > > Am 11.04.2011 10:36, schrieb Suvayu Ali: >> > >> On Mon, 11 Apr 2011 08:52:52 +0200 >> > >> >> > >> %%(if (calendar-date-equal date (calendar-current-date)) >> > >> (diary-sunrise-sunset)) >> > >> >> > > Perfect, thanks. >> > > >> > > I can find the other functions in calendar.el, >> > > but where is "date" from? >> > > >> > >> > date is a dynamically bound variable at the time of evaluation. >> > >> >> I have a question I have been meaning to ask for a long time. How does >> one test sexps with variables like these? I have tried the scratch >> buffer but it gives errors like "(void-variable date)". I found the only >> way I could test is to put it on one of the agenda files. >> >> Any suggestions? >> > > Bind date explicitly in the scratch buffer and then evaluate: > > (setq date '(4 11 2011)) > > ... > > I think the format is (month day year) but be sure to check. > > Nick > -- http://pft.github.com
Re: [O] Re: How to display a diary entry in agenda week view only "today"
Suvayu Ali wrote: > On Mon, 11 Apr 2011 14:55:24 +0200 > Niels Giesen wrote: > > > On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele > > wrote: > > > Am 11.04.2011 10:36, schrieb Suvayu Ali: > > >> On Mon, 11 Apr 2011 08:52:52 +0200 > > >> > > >> %%(if (calendar-date-equal date (calendar-current-date)) > > >> (diary-sunrise-sunset)) > > >> > > > Perfect, thanks. > > > > > > I can find the other functions in calendar.el, > > > but where is "date" from? > > > > > > > date is a dynamically bound variable at the time of evaluation. > > > > I have a question I have been meaning to ask for a long time. How does > one test sexps with variables like these? I have tried the scratch > buffer but it gives errors like "(void-variable date)". I found the only > way I could test is to put it on one of the agenda files. > > Any suggestions? > Bind date explicitly in the scratch buffer and then evaluate: (setq date '(4 11 2011)) ... I think the format is (month day year) but be sure to check. Nick
Re: [O] Re: How to display a diary entry in agenda week view only "today"
On Mon, 11 Apr 2011 14:55:24 +0200 Niels Giesen wrote: > On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele > wrote: > > Am 11.04.2011 10:36, schrieb Suvayu Ali: > >> On Mon, 11 Apr 2011 08:52:52 +0200 > >> > >> %%(if (calendar-date-equal date (calendar-current-date)) > >> (diary-sunrise-sunset)) > >> > > Perfect, thanks. > > > > I can find the other functions in calendar.el, > > but where is "date" from? > > > > date is a dynamically bound variable at the time of evaluation. > I have a question I have been meaning to ask for a long time. How does one test sexps with variables like these? I have tried the scratch buffer but it gives errors like "(void-variable date)". I found the only way I could test is to put it on one of the agenda files. Any suggestions? -- Suvayu Open source is the future. It sets us free.
Re: [O] Re: Completing with anything
On 11 Apr 2011, Bastien wrote: > Julien Danjou writes: > >> On Sat, Apr 09 2011, Michael Markert wrote: >> >>> No, but if it's necessary (or helping) I'll do so. >> >> Well, since org-contacts is part of contrib I think it's not necessary, >> so I'll merge it as it is unless Bastien says I'm wrong. > > You're right. No need for FSF copyright assignment for code in the > contrib/ directory, as this directory does not go to the Emacs trunk. > > Still, it's always better to get the assignment process done in case > code from contrib has to move to Org's core. I'll do so then. Michael pgpGGXaGwHGzw.pgp Description: PGP signature
Re: [O] LaTeX export: inline markup underscore problem
On Mon, Apr 11, 2011 at 3:44 AM, Nick Dokos wrote: > Thomas S. Dye wrote: >> >> The code the OP cited passes desc to \cite{}. The code I pointed to >> passes path to \cite{}. It does this to get around the problem of >> escaped underscores, if I remember correctly. In any case, I use this >> code with bibliography keys that include underscores, so it should >> work for the OP. >> > > I still don't quite understand, so obviously I'm missing something > fundamental - but I'll read your tutorial completely first (great > tutorial btw!) and try some things out. Thomas, I also do not understand your reply, sorry. I have tried to implement your solution with ebib, but it is not working. Well, personally I do not use ebib, so it would be more elegant for me do not depend on it. Anyway, I think I have to invest more time to better understand this ebib-oriented solution to underscore. In addition, I also find out that the cross-references (http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-16) do not work either when the reference has underscore in it. Thanks, Mauro
[PATCH] Re: [O] Re: SOLVED Bug: :clock-keep...not kept [7.5__078c01]
Bastien writes: > It is indeed fixed in the latest git version. Bastien, The :clock-keep option now works, thanks. There's a little bug in the Customize interface of clock-keep. The :clock-keep *t* option can't be selected with the Customize interface 'C-c c C ', since its value is 'nil'. The following patch fixes it. cheers, Giovanni From: Giovanni Ridolfi Subject: [PATCH] Fix bug in customize interface of :clock-keep Date: Mon, 11 Apr 2011 15:07:11 +0200 * lisp/org-capture.el (org-capture-templates): set the value of :clock-keep to t. TinyChange --- --- org-capture.el 2011-04-11 00:29:00.0 +0200 +++ org-capture-2.el2011-04-11 14:41:30.465497600 +0200 @@ -323,5 +323,5 @@ ((const :format "%v " :empty-lines) (const 1)) ((const :format "%v " :clock-in) (const t)) - ((const :format "%v " :clock-keep) (const nil)) + ((const :format "%v " :clock-keep) (const t)) ((const :format "%v " :clock-resume) (const t)) ((const :format "%v " :unnarrowed) (const t))
Re: [O] Custom agenda view for specific time intervals
Hi Bastien, >> Is there a way to create custom agenda views for specific time intervals, >> such as "May 2011" or "the month following the current month"? > > A combination of `org-agenda-start-day' and `org-agenda-span' should do. org-agenda-start-day is exactly what I was looking for, thanks! Konrad.
Re: [O] Re: How to display a diary entry in agenda week view only "today"
date is a dynamically bound variable at the time of evaluation. On Mon, Apr 11, 2011 at 1:57 PM, Rainer Stengele wrote: > Am 11.04.2011 10:36, schrieb Suvayu Ali: >> On Mon, 11 Apr 2011 08:52:52 +0200 >> Rainer Stengele wrote: >> >>> Hi! >>> >>> In one of my org agenda files I have >>> >>> #+CATEGORY: Sunrise >>> &%%(diary-sunrise-sunset) >>> >>> Now, when I am in weekly agenda view the sunrise-sunset shows under >>> every day. This is kind of too much line noise and distracting for me >>> - I would like to only see the entry for "today". >>> >>> Is there a way to restrict the display of such a diary entry in the >>> weekly agenda view to only today? >>> >> >> How about this, >> >> %%(if (calendar-date-equal date (calendar-current-date)) >> (diary-sunrise-sunset)) >> >>> Regards, >>> Rainer >>> >> > Perfect, thanks. > > I can find the other functions in calendar.el, > but where is "date" from? > > Best, > Rainer > > -- http://pft.github.com
[O] Reg Navigation keys in org mode presentation
Hi, I have recently created a presentation in orgmode. Mouse click is used to navigate through the bullet points. How can I have this functionality with space key. That is, when I press space bar, I should get next bullet point. How can I do this by changing the javascript? If its not easy to do this by changing javascript, are there any other ways to do this? -- Regards, Kumar.
[O] outline numbering (similar to Orgmode manual)
Hi everyone, Is there any (easy) way to convert headlines to numbering? What I'm thinking of is similar to the Orgmode manual, where you have the numbered structure representing sections/paragraphs etc. Reasoning behind this: - easily export pdf or printed report material - orderly (sequential) execution of list Thanks for your help! Erwin
[O] Re: How to display a diary entry in agenda week view only "today"
Am 11.04.2011 10:36, schrieb Suvayu Ali: > On Mon, 11 Apr 2011 08:52:52 +0200 > Rainer Stengele wrote: > >> Hi! >> >> In one of my org agenda files I have >> >> #+CATEGORY: Sunrise >> &%%(diary-sunrise-sunset) >> >> Now, when I am in weekly agenda view the sunrise-sunset shows under >> every day. This is kind of too much line noise and distracting for me >> - I would like to only see the entry for "today". >> >> Is there a way to restrict the display of such a diary entry in the >> weekly agenda view to only today? >> > > How about this, > > %%(if (calendar-date-equal date (calendar-current-date)) > (diary-sunrise-sunset)) > >> Regards, >> Rainer >> > Perfect, thanks. I can find the other functions in calendar.el, but where is "date" from? Best, Rainer
Re: [O] Problem with [xxx] inside a footnote
Alan L Tyree writes: > Hello Orgsters, > > [fn:1: Although this risk is usually negligible, bank cheques are not > "the same as cash": see Sidney Raper Pty Ltd v Commonwealth Trading > Bank of Australia [1975] 2 NSWLR 227; Justin Seward Pty Ltd v > Commissioner of Rural and Industries Bank > (1980) 60 FLR 51; and Yan v Post Office Bank Ltd [1994] 1 NZLR 150] > > > The problem, of course, is that Org-mode thinks that the right bracket > at the end of [1975] terminates the footnote. Part of the footnote > becomes regular text. Please have a look at the thread: http://thread.gmane.org/gmane.emacs.orgmode/29463/focus=29474 Giovanni
Re: [O] Re: Completing with anything
Julien Danjou writes: > On Sat, Apr 09 2011, Michael Markert wrote: > >> No, but if it's necessary (or helping) I'll do so. > > Well, since org-contacts is part of contrib I think it's not necessary, > so I'll merge it as it is unless Bastien says I'm wrong. You're right. No need for FSF copyright assignment for code in the contrib/ directory, as this directory does not go to the Emacs trunk. Still, it's always better to get the assignment process done in case code from contrib has to move to Org's core. -- Bastien
Re: [O] Recurring events with ranges broken
Hello, recurring ranges with timestamps are not properly recognized in the agenda. This wont work: <2011-04-07 Thu +1w>--<2011-04-20 Wed> uh! Has it ever worked ?-) Could you please give us an idea approximately when it was working? Could you also, please, explain to me what's the rationale behind this kind of time range? Why do intend to use it? I'm not sure the intention of the original poster but I'd find that feature handy. This notation would mean: repeat event each week until the date 2011-04-20 - after that date stop. I know I wanted this in the past and it didn't work. Maybe there is other way - I was not motivated enough to dig deeper. Cheers, Radek.
Re: [O] Re: Completing with anything
On Sat, Apr 09 2011, Michael Markert wrote: > No, but if it's necessary (or helping) I'll do so. Well, since org-contacts is part of contrib I think it's not necessary, so I'll merge it as it is unless Bastien says I'm wrong. Thanks. -- Julien Danjou ❱ http://julien.danjou.info pgp2pZCu47Ffu.pgp Description: PGP signature
Re: [O] Re: Completing with anything
On Sun, Apr 10 2011, Stefan Monnier wrote: >> So now, I wonder: wouldn't it be a good idea to add a call to >> `expand-abbrev' just after `completion-at-point' is being called? > > After completing an abbrev name, yes, but otherwise I don't think so. > I.e. why don't you add such a call to > org-contacts-message-complete-function? Because this one return (list start end completion-choies), and does not do anything else. I can't do it myself using the current completion mechanism, IIUC. -- Julien Danjou ❱ http://julien.danjou.info pgpMKDSiwOF0L.pgp Description: PGP signature
Re: [O] How to display a diary entry in agenda week view only "today"
On Mon, 11 Apr 2011 08:52:52 +0200 Rainer Stengele wrote: > Hi! > > In one of my org agenda files I have > > #+CATEGORY: Sunrise > &%%(diary-sunrise-sunset) > > Now, when I am in weekly agenda view the sunrise-sunset shows under > every day. This is kind of too much line noise and distracting for me > - I would like to only see the entry for "today". > > Is there a way to restrict the display of such a diary entry in the > weekly agenda view to only today? > How about this, %%(if (calendar-date-equal date (calendar-current-date)) (diary-sunrise-sunset)) > Regards, > Rainer > -- Suvayu Open source is the future. It sets us free.
Re: [O] Recurring events with ranges broken
"Philipp M." writes: Hi, Philipp, > In the recent org-mode realease something could ou be more precise, please? > recurring ranges with timestamps > are not properly recognized in the agenda. > This wont work: > <2011-04-07 Thu +1w>--<2011-04-20 Wed> uh! Has it ever worked ?-) Could you please give us an idea approximately when it was working? Could you also, please, explain to me what's the rationale behind this kind of time range? Why do intend to use it? The _repeater interval_, indicates that the event applies not only on the given date, but again and again after a certain interval. > <2011-04-07 Thu +1w>--<2011-04-20 Wed> when the first date is passed e.g. 21st of April <2011-04-21 Thr> how can it match with a negative interval, since the second member is at the <2011-04-20 Wed> ? cheers, Giovanni