[Orgmode] Re: Only show a certain weekday in the agenda view
Björn Steffen writes: > Hi Manish, > >> I am guessing you probably want to see items related to your classes. > > Exactly. To get an overview for the next couple of weeks. > >> In that case if you tag the items related to classes, then you can >> filter based on the tag ('/' in agenda or timeline view or 'C-c a m >> "tag"'). > > Good idea. > All events specific to my classes are in a file with #+CATEGORY: MNG. > So I first tried to filter with '/' in agenda view on 'CATEGORY="MNG"' > but that didn't work. > > Probably this works only with tags. Therefore I changed my org-file > such that I have now a single headline as a parent for all these > events. I gave this parent headline the tag :MNG:. Now I can filter in > the agenda view based on this tag. You could add a #+FILETAGS: MNG to the file and then all tasks in that file will have an MNG tag you can filter on. -Bernt ___ 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 insert apostrophe (') into code and verbatim text?
So I guess it's too complicated for the gurus. :-) I'm already doing '=life= but I thought perhaps there was a quick hack to get ='life= to work. Oh well, not a biggie, life moves on... On Thu, 04 Feb 2010 11:53:30 -0500 Nick Dokos wrote: > Uriel Avalos wrote: > > > Here's an easy one for the guru's, why does an apostrophe at the beginning > > of a =code= not work? When I export the following text to HTML, the "'life" > > variable isn't set as code (and the = symbols show up): > > > > Select ='life= for the x variable. > > > > If I escape the apostrophe, I course get back the escape character in the > > HTML: > > > > Select =\'life= for the x variable. > > > > Emphasis is applied by matching against a regular expression stored in the > variable > org-emph-re. I get > > , > | org-emph-re is a variable defined in `org.el'. > | Its value is > | "\\([ ('\"{]\\|^\\)\\(\\([*/_=~+]\\)\\([^ > \n,\"']\\|[^ > \n,\"'].*?\\(?:\n.*?\\)\\{0,1\\}[^ > \n,\"']\\)\\3\\)\\([- .,:!?;'\")}\\]\\|$\\)" > | > | Documentation: > | Regular expression for matching emphasis. > ` > > which is way too complicated for my simple mind to wrap around without > some guidance. But the doc for org-export-with-emphasize says: > > , > | org-export-with-emphasize is a variable defined in `org-exp.el'. > | Its value is t > | > | Documentation: > | Non-nil means, interpret *word*, /word/, and _word_ as emphasized text. > | If the export target supports emphasizing text, the word will be > | typeset in bold, italic, or underlined, respectively. Works only for > | single words, but you can say: I *really* *mean* *this*. > | Not all export backends support this. > | > | This option can also be set with the +OPTIONS line, e.g. "*:nil". > ` > > so *words* are emphasized[1]. > > Can you write > > Select '=life= for the x variable. > > instead? The quote is not part of the block, but does that > make much difference? And if it does, a little postprocessing on the > HTML might be all that is needed[2]. > > HTH, > Nick > > [1] although after staring at it for a while and with the hindsight > provided by the org-export-with-emphasize doc, the part that goes [^ > ^M\n,\"'] > specifically excludes spaces, tabs, carriage returns, newlines, > commas, double quotes and single quotes as components of words. > > [2] You might try changing the RE (it is constructed in > org.el:org-set-emph-re()) - but regular expressions are very unforgiving > beasts: you forget one character or add one too many and the whole thing > goes to hell in a handbasket, faster than a bat out of hell - choose > your own cliche' :-) -- --Thanks! 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] How to insert apostrophe (') into code and verbatim text?
Uriel Avalos wrote: > So I guess it's too complicated for the gurus. :-) > > I'm already doing '=life= but I thought perhaps there was a quick hack > to get ='life= to work. Oh well, not a biggie, life moves on... > Too complicated for me, perhaps: I'm no guru :-) Carsten had a suggestion of playing around with the various components of the RE (see the variable org-emphasis-regexp-components) - did you see that? But you will have to experiment and set them for *your* purposes. Cheers, Nick ___ 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] Any instructions on using bibtex with org?
Can anyone please provide me with a link to instructions on using bibtex with org? I've been searching for a while and I found the stuff on worg about org-exp-bibtex.el but I can't see from that how to set this up. Thanks, Paul. ___ 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: org-archive-subtree keep structure
Nathaniel Flath writes: > Hello, Is there a way to get org-archive-subtree to keep the tree > structure in the archive file? this information is currently just > added to the :ARCHIVE_OLPATH in the archive file; is there an option > to get it to construct the tree instead? I do this 'manually'. Each of my level 1 tasks is a heading and I archive level 2 tasks. I put properties in the level 1 task to say where to archive to. http://doc.norang.ca/org-mode.html#sec-2.4 -Bernt ___ 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] Any instructions on using bibtex with org?
Are you trying to export to BibTeX or simply integrate orgmode with a BibTeX database? http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ is the blog post I used to set up orgmode with RefTex so that I can very easily insert BibTeX citations into my org documents and export fairly seamlessly. On Fri, Feb 5, 2010 at 10:55 AM, Paul Mead wrote: > Can anyone please provide me with a link to instructions on using bibtex > with org? I've been searching for a while and I found the stuff on worg > about org-exp-bibtex.el but I can't see from that how to set this up. > > Thanks, Paul. > > > > ___ > 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] [OT] See available keybindings?
I've defined a list of org-mode shortcuts that start with f6. Example: f6 i = clock in f6 o =clock out Is there a way to see all the available keybindings that begin with f6? Sometimes I'm not sure what key I need to type. When I press f6, then appears in the minibuffer, waiting for another key -- is there a key I can press to see the available choices? If not, how do I pass to the 'describe-bindings' command when invoking it using M-x from the minibuffer? That command takes optional arguments, but I don't know how to pass arguments to commands from the minibuffer. Thanks, --Nate ___ 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: Any instructions on using bibtex with org?
Raffi R writes: > Are you trying to export to BibTeX or simply integrate orgmode with a > BibTeX database? > > http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ > is the blog post I used to set up orgmode with RefTex so that I can > very easily insert BibTeX citations into my org documents and export > fairly seamlessly. Thanks Raffi, that's what I wanted to do - insert citations whilst in org for later export as LaTeX --> pdf. I'll give that a look. Paul ___ 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: Any instructions on using bibtex with org?
Raffi R writes: > Are you trying to export to BibTeX or simply integrate orgmode with a > BibTeX database? > > http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ > is the blog post I used to set up orgmode with RefTex so that I can > very easily insert BibTeX citations into my org documents and export > fairly seamlessly. > OK, I just tried the setup descripbed in that site, but there doesn't appear to be any way of telling org where to look for a .bib file. So when I type C-c ), I get the following error: byte-code: No valid bibliography in this document, and no default available Did you follow the instructions exactly, or is there a step that I'm missing? Paul ___ 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: Any instructions on using bibtex with org?
I'm not at the computer with most of my BibTeX/orgmode stuff right now, but I suspect you may still have to include something along the lines of: \bibliography{my_bibliography_filename}{} \bibliographystyle{plain} at the end of your orgmode document. HTH, - Raffi. On Fri, Feb 5, 2010 at 1:36 PM, Paul Mead wrote: > Raffi R writes: > >> Are you trying to export to BibTeX or simply integrate orgmode with a >> BibTeX database? >> >> http://www.mfasold.net/blog/2009/02/using-emacs-org-mode-to-draft-papers/ >> is the blog post I used to set up orgmode with RefTex so that I can >> very easily insert BibTeX citations into my org documents and export >> fairly seamlessly. >> > > OK, I just tried the setup descripbed in that site, but there doesn't > appear to be any way of telling org where to look for a .bib file. So > when I type C-c ), I get the following error: > > byte-code: No valid bibliography in this document, and no default > available > > Did you follow the instructions exactly, or is there a step that I'm > missing? > > Paul > ___ 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: [OT] See available keybindings?
Nathan Neff writes: > I've defined a list of org-mode shortcuts that start with f6. > > Example: > f6 i = clock in > f6 o =clock out > > Is there a way to see all the available keybindings that begin > with f6? Sometimes I'm not sure what key I need to type. > > When I press f6, then appears in the minibuffer, waiting for > another key -- is there a key I can press to see the available choices? > > If not, how do I pass to the 'describe-bindings' command when > invoking it using M-x from the minibuffer? > That command takes optional arguments, but I don't know how to > pass arguments to commands from the minibuffer. f6 C-h -Bernt ___ 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: [OT] See available keybindings?
Use C-h to see all keybindings. -- Mikael Fornius ___ 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] [OT] See available keybindings?
Try pressing f6 and then C-h. Generally, pressing any prefix followed by C-h lists the bindings for that prefix. On Fri, Feb 5, 2010 at 10:48 AM, Nathan Neff wrote: > I've defined a list of org-mode shortcuts that start with f6. > > Example: > f6 i = clock in > f6 o =clock out > > Is there a way to see all the available keybindings that begin > with f6? Sometimes I'm not sure what key I need to type. > > When I press f6, then appears in the minibuffer, waiting for > another key -- is there a key I can press to see the available choices? > > If not, how do I pass to the 'describe-bindings' command when > invoking it using M-x from the minibuffer? > That command takes optional arguments, but I don't know how to > pass arguments to commands from the minibuffer. > > Thanks, > --Nate > > > > ___ > 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] Resolving Idle Time - Wow
http://orgmode.org/org.html#Resolving-idle-time I just discovered this, and it was one of those 'wow, org-mode already does this' moments. I really like being able to get distracted from some task, then apply the lapsed minutes to *more than one* other task. All I have to do is keep running M-x org-resolve-clocks Thanks! --Nate ___ 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: Any instructions on using bibtex with org?
Raffi R writes: > I'm not at the computer with most of my BibTeX/orgmode stuff right > now, but I suspect you may still have to include something along the > lines of: > > \bibliography{my_bibliography_filename}{} > \bibliographystyle{plain} > > at the end of your orgmode document. > > HTH, > - Raffi. Raffi, that worked with a bit of tweaking! The documents always seem to assume far too much knowledge - in this case, I eventually figured out that I had to reload org-mode before it could scan my document and so figure out which bibtex file to use. Go there eventually, now just got to build up my bibtex file. Thanks for your help with this. Paul ___ 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] org-goto + Aquamacs
Hi, I like using org-goto to jump to headings in an org file. When I press C-c C-j, Aquamacs displays the contents of the defconst org-goto-help in a different frame. Then, I have to switch back to my main frame. This is a minor annoyance. Is there a way to get Aquamacs not to show this, or to show it in the same frame? I tried (setq org-goto-help nil) but the window still pops up and focuses, but has the word 'nil' instead of the help :-/ Thanks, --Nate ___ 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: interacting with word processors (opeonffice, word)
On Fri, 2010-02-05 at 01:44 +, Shelagh Manton wrote: > On Thu, 04 Feb 2010 15:10:51 +, Eric S Fraga wrote: > > > At Thu, 04 Feb 2010 09:43:31 -0500, > > Matt Price wrote: > > > > [...] > > > >> get documentsl ooking about how I want them to -- the default output of > >> the latex export has way too much whitespace for my tastes -- but I > >> guess I hsould be able to figure those issues out somehow. thanks > >> again! > >> matt > >> > >> > > If it's the margins giving you too much white space (a common complaint > > from people moving to latex from other types of word or document > > procssors), you could try something along these lines: > > > > --8<---cut here---start->8--- > > #+latex_header: \usepackage[letterpaper]{geometry} #+latex-header: > > \geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm} > > --8<---cut here---end--->8--- > > > > untested. change "letterpaper" to your actual paper size, of course. > > > > HTH, > > eric > > > Also the fullpage.sty package will do this for you too. Of course you > need to name the size of your paper in the documentclass. > > \usepackage[options](fullpage) thanks for this. i'll give it a go -- and can i set this permanently somewhere in my org conf file -- is it something like: (setq latex_header ("\usepackage[letterpaper]{geometry}", "\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm}" )) anyway thanks so much for all your help thus far! matt signature.asc Description: This is a digitally signed message part ___ 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] Atomized completion list for multi-value property keys
For example, the key sequence "C-c / p " yields the following completion list: colon colon_rss oesoph colon_colosc prost_echogrvitdvitd prost_psa vitd prost_tr In _addition_ to this, I need a completion list where all multi-values are atomized: colon colon_colosccolon_rss oesoph prost_echogrprost_psa prost_trvitd A practical key sequence could use instead of . Is there an ``easy'' way to achieve this or is it a major job ? Thank you in advance. Harald Weis ___ 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: can't clock out
For a few weeks or so, most of the time when I clock out, I get an error. Cannot narrow it down further. (setf org-clock-modeline-total 'today) (setq org-clock-into-drawer t) Clock in. Wait a few hours, doing stuff in org in the meantime. signal(error ("Clock start time is gone")) error("Clock start time is gone") (if fail-quietly (throw (quote exit) nil) (error "Clock start time is gone")) (if (and (looking-at ...) (equal ... org-clock-string)) (setq ts (match-string 2)) (if fail-quietly (throw ... nil) (error "Clock start time is gone"))) (save-restriction (widen) (goto-char org-clock-marker) (beginning-of-line 1) (if (and ... ...) (setq ts ...) (if fail-quietly ... ...)) (goto-char (match-end 0)) (delete-region (point) (point-at-eol)) (insert "--") (setq te (org-insert-time-stamp ... ... ...)) (setq s (- ... ...) h (floor ...) s (- s ...) m (floor ...) s (- s ...)) (insert " => " (format "%2d:%02d" h m)) (when (setq remove ...) (beginning-of-line 1) (delete-region ... ...) (and ... ... ...)) (move-marker org-clock-marker nil) (move-marker org-clock-hd-marker nil) (when org-log-note-clock-out (org-add-log-setup ... nil nil nil nil ...)) (when org-clock-mode-line-timer (cancel-timer org-clock-mode-line-timer) (setq org-clock-mode-line-timer nil)) (when org-clock-idle-timer (cancel-timer org-clock-idle-timer) (setq org-clock-idle-timer nil)) (setq global-mode-string (delq ... global-mode-string)) (when org-clock-out-switch-to-state (save-excursion ... ...)) (force-mode-line-update) (message (concat "Clock stopped at %s after HH:MM = " org-time-clocksum-format "%s") te h m (if remove " => LINE REMOVED" "")) (run-hooks (quote org-clock-out-hook))) (save-excursion (set-buffer (marker-buffer org-clock-marker)) (save-restriction (widen) (goto-char org-clock-marker) (beginning-of-line 1) (if ... ... ...) (goto-char ...) (delete-region ... ...) (insert "--") (setq te ...) (setq s ... h ... s ... m ... s ...) (insert " => " ...) (when ... ... ... ...) (move-marker org-clock-marker nil) (move-marker org-clock-hd-marker nil) (when org-log-note-clock-out ...) (when org-clock-mode-line-timer ... ...) (when org-clock-idle-timer ... ...) (setq global-mode-string ...) (when org-clock-out-switch-to-state ...) (force-mode-line-update) (message ... te h m ...) (run-hooks ...))) (let (ts te s h m remove) (save-excursion (set-buffer ...) (save-restriction ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))) (catch (quote exit) (if (not ...) (if fail-quietly ... ...)) (let (ts te s h m remove) (save-excursion ... ...))) org-clock-out() call-interactively(org-clock-out) -- Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied ME/"CFS" for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.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: [Orgmode] From comments in code to org-mode
Ideally we could put tasks in comments, but there are regexps that need refactoring. On 2010-01-16, andrea wrote: > I had an idea which would be really nice if I'm able to implement it. > I write very often in code comments like > // FIXME: infinite loop > for example, now is a good thing they're in the code, but I also would > like to centralize the error management per project in some way. > > So I thought something like, adding a hook in after-save-hook that > checks all the FIXME|TODO... and adds it to an org-mode file. > > That org-mode should be like > > * FIXME [[file:error.c:20][error.c]] (don't remember the syntax) > > Maybe also including the date when this has been written the first time. > Then if the error is corrected or the nice thing would be adding a > CLOSED at [date] > > line. > > The only problem I see is if you change the text but leave the FIXME, > in that case maybe the other thing is not CLOSED but it's just changed, > and we should remove the old and create a new entry. > > What do you think, could that be a good idea? > Is there maybe a way to do it? > > PS. sorry for the crossposting but here is more appropriate I guess > > > > ___ > 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 ME/"CFS" for 25 years] == Retrovirus: http://www.wpinstitute.org/xmrv/index.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: [Orgmode] Re: Integrating ctags & org mode (patch)
Hi Paul, I think I haven't been following this closely enough, because I don't understand why an external program is necessary for <>. Can you just have a variable to hold the files that need searching? Then use the existing org ID mechanism. The targets would hold org IDs. I realize it would have been better to suggest this earlier (actually I did, but many months earlier :)). Samuel -- Q: How many CDC "scientists" does it take to change a lightbulb? A: You only think it's dark. [CDC has denied ME/CFS for 25 years] = Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.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: [Orgmode] performance problems with drawers
On 2009-08-02, Carsten Dominik wrote: > P.S. Unfortunatey, I cannot fix the performance issues > regarding vertical cursor motion, this is in the guts of > Emacs. `C-c C-f' and `C-c C-b' do help a bit... It is funny that outline-previous-visible-heading is faster than previous-line when the previous subtree is folded. I wonder if Emacs searches for bol when it should be searching for visible text first, then bol, or something. In any case, thanks for the speedups. ___ 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] file location
Hello, Is there a command (or two) that will identify the locations of the below-listed files/folders? I am using Ubuntu and it seems that there is more than one emacs install on this computer and multiple files that *could* The following is from the #makefile# found in the org.mode folder downloaded from the repository. ##-- ## YOU MUST EDIT THE FOLLOWING LINES ##-- # Name of your emacs binary EMACS=?? # Where local software is found prefix=/usr/local # Where local lisp files go. lispdir = $(prefix)/share/emacs/site-lisp # Where info files go. infodir = $(prefix)/share/infos Thanks, Shawn ___ 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] [PATCH] Close calendar buffer after scheduling an item
If you schedule an item with org-schedule, the *Calendar* buffer will stay around. This also occurs with org-deadline, and any other functions that use org-read-date. The patch attached just closes this buffer once the date is read. I've filled out the FSF forms already, so copyright shouldn't be a problem. Thanks, Nathaniel Flath diff --git a/lisp/org/org.el b/lisp/org/org.el index 325a524..8206cf2 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -12970,125 +12970,127 @@ the user. PROMPT can overwrite the default prompt. DEFAULT-TIME is the time/date that is used for everything that is not specified by the user." (require 'parse-time) - (let* ((org-time-stamp-rounding-minutes - (if (equal with-time '(16)) '(0 0) org-time-stamp-rounding-minutes)) - (org-dcst org-display-custom-times) - (ct (org-current-time)) - (def (or org-overriding-default-time default-time ct)) - (defdecode (decode-time def)) - (dummy (progn - (when (< (nth 2 defdecode) org-extend-today-until) - (setcar (nthcdr 2 defdecode) -1) - (setcar (nthcdr 1 defdecode) 59) - (setq def (apply 'encode-time defdecode) - defdecode (decode-time def) - (calendar-frame-setup nil) - (calendar-move-hook nil) - (calendar-view-diary-initially-flag nil) - (view-diary-entries-initially nil) - (calendar-view-holidays-initially-flag nil) - (view-calendar-holidays-initially nil) - (timestr (format-time-string - (if with-time "%Y-%m-%d %H:%M" "%Y-%m-%d") def)) - (prompt (concat (if prompt (concat prompt " ") "") - (format "Date+time [%s]: " timestr))) - ans (org-ans0 "") org-ans1 org-ans2 final) - -(cond - (from-string (setq ans from-string)) - (org-read-date-popup-calendar - (save-excursion - (save-window-excursion - (calendar) - (calendar-forward-day (- (time-to-days def) - (calendar-absolute-from-gregorian -(calendar-current-date - (org-eval-in-calendar nil t) - (let* ((old-map (current-local-map)) - (map (copy-keymap calendar-mode-map)) - (minibuffer-local-map (copy-keymap minibuffer-local-map))) - (org-defkey map (kbd "RET") 'org-calendar-select) - (org-defkey map (if (featurep 'xemacs) [button1] [mouse-1]) - 'org-calendar-select-mouse) - (org-defkey map (if (featurep 'xemacs) [button2] [mouse-2]) - 'org-calendar-select-mouse) - (org-defkey minibuffer-local-map [(meta shift left)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-backward-month 1 - (org-defkey minibuffer-local-map [(meta shift right)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-forward-month 1 - (org-defkey minibuffer-local-map [(meta shift up)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-backward-year 1 - (org-defkey minibuffer-local-map [(meta shift down)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-forward-year 1 - (org-defkey minibuffer-local-map [?\e (shift left)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-backward-month 1 - (org-defkey minibuffer-local-map [?\e (shift right)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-forward-month 1 - (org-defkey minibuffer-local-map [?\e (shift up)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-backward-year 1 - (org-defkey minibuffer-local-map [?\e (shift down)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-forward-year 1 - (org-defkey minibuffer-local-map [(shift up)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-backward-week 1 - (org-defkey minibuffer-local-map [(shift down)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-forward-week 1 - (org-defkey minibuffer-local-map [(shift left)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-backward-day 1 - (org-defkey minibuffer-local-map [(shift right)] - (lambda () (interactive) - (org-eval-in-calendar '(calendar-forward-day 1 - (org-defkey minibuffer-local-map ">" - (lambda () (interactive) - (org-eval-in-calendar '(scroll-calendar-left 1 - (org-defkey minibuffer-local-map "<" - (lambda () (interactive) - (org-eval-in-calendar '(scroll-calendar-right 1 - (run-hooks 'org-read-date-minibuffer-setup-hook) - (unwind-protect - (progn - (use-local-map map) - (add-hook 'post-command-hook 'org-read-date-display) - (setq org-ans0 (read-string prompt default-input - 'org-read-date-history nil)) - ;; org-ans0: from prompt - ;; org-ans1: from mouse click - ;; org-ans2: from calendar motion - (setq ans (concat org-ans0 " " (or org-ans1 org-ans2 - (remove-hook 'post-command-hook 'org-read-date-display) - (use-local-map old-map) - (when org-read-date-overlay - (org-delete-overlay org-read-date-overlay) - (setq org-read-date-overlay nil))) - - (t ;
[Orgmode] Re: [PATCH] Close calendar buffer after scheduling an item
Nathaniel Flath writes: > If you schedule an item with org-schedule, the *Calendar* buffer will > stay around. This also occurs with org-deadline, and any other > functions that use org-read-date. The patch attached just closes this > buffer once the date is read. Might I ask why it is necessary to kill the *Calendar* buffer? AFAICT, the default behavior of M-x calendar is to keep the *Calendar* buffer alive even after "quitting" the calendar view with "q". With this patch, if one creates a *Calendar* buffer with M-x calendar, org-mode will subsequently kill it. I would prefer that the behavior of org-mode remain consistent with that of emacs calendar. Best, Matt ___ 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: [PATCH] Close calendar buffer after scheduling an item
On Feb 6, 2010, at 5:11 AM, Matt Lundin wrote: Nathaniel Flath writes: If you schedule an item with org-schedule, the *Calendar* buffer will stay around. This also occurs with org-deadline, and any other functions that use org-read-date. The patch attached just closes this buffer once the date is read. Might I ask why it is necessary to kill the *Calendar* buffer? AFAICT, the default behavior of M-x calendar is to keep the *Calendar* buffer alive even after "quitting" the calendar view with "q". With this patch, if one creates a *Calendar* buffer with M-x calendar, org-mode will subsequently kill it. I would prefer that the behavior of org-mode remain consistent with that of emacs calendar. I agree with Matt. - Carsten ___ 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] performance problems with drawers
On Feb 6, 2010, at 1:14 AM, Samuel Wales wrote: On 2009-08-02, Carsten Dominik wrote: P.S. Unfortunatey, I cannot fix the performance issues regarding vertical cursor motion, this is in the guts of Emacs. `C-c C-f' and `C-c C-b' do help a bit... It is funny that outline-previous-visible-heading is faster than previous-line when the previous subtree is folded. I wonder if Emacs searches for bol when it should be searching for visible text first, then bol, or something. WHen Emacs does `previous-line', it does line by line, moving on when the line is invisible. C-c C-b search headlines by regexp and check only the headlines for visibilitiy. - Carsten ___ 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