Re: [Orgmode] Custom agenda question
On Wed, Aug 19, 2009 at 8:14 AM, Anthony Fairchild wrote: Hi, Is there a way to get the text underneath a todo heading to show up in the agenda screen? I like to put extra info there, like driving directions, and it would be nice to have that info when I print out the agenda. I don't think that's possible. You can display display information stored in a drawer by switching to column view while in agenda. You will need to customize org-drawers and org-columns-default-format. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-mac-protocol
On Tue, 18 Aug 2009 15:29:43 -0700, Samuel Wales samolog...@gmail.com wrote: I am thinking of trying org-mac-protocol, but I have questions, and perhaps Worg can be updated with the answers to my questions. First, is org-protocol.el required? Does org-mac-protocol build on it or replace it? Yes, org-protocol.el is required. As org-protocol.el ships with org-mode and org-mac-protocol contains (require 'org-protocol), no additional user intervention is required to install org-protocol (but make sure you're using org-mode 6.28 or later). org-protocol.el provides an extendable method of handling links sent to emacsclient. org-mac-protocol is a suite of AppleScripts that sends links from various applications and an org-protocol.el handler to process them. So org-mac-protocol builds on org-protocol.el How does it relate to fireforg? Should I install both if I want Firefox tabs to be savable? No relation to fireforg. I haven't had an opportunity to try fireforg, but they should coexist happily. Unfortunately, Firefox doesn't support AppleScript so Firefox is not compatible with org-mac-protocol. Safari is the only browser supported. I mostly want to bookmark tabs from Safari and Firefox on Mac (and later when I get a Debian machine on that). Ideally this would be done without any typing. Can org-mac-protocol be set to just click and make the title and url from a tab go into a single remember location? Safari: yes-ish, although not quite the workflow you describe. If all you want is title and URL, then calling the org-link AppleScript will send a link to *org-links* list. These still have to be inserted into org page of your choice with C-c C-l Alternatively, you could call the org-remember AppleScript that will pop up a small remember frame with remember template of your creation. That can contain title, URL and selected content. A quick C-c C-c will file the link, destroy the frame and return you to Safari. Are there reports that it works on Tiger? No one has reported. I don't think I used any Leopard specific AppleScript, so I doubt there will be any problems. Finally, I found that the comment about URI escape not being available in the git repository is confusing. Is this a necessary feature? I have no idea why it would not be in git or whether I need it. Absolutely necessary. The git repository was only created at somebodies request. It's not the right place to distribute an AppleScript extension written by another author. I followed the link, and I get what URI escaping is, but don't know whether it is necessary for org-mac-protocol. Should I use the dmg? If you're on Tiger, your best bet is to download my dmg and follow the manual install procedure (the installer package is the only Leopard specific but - Tiger doesn't allow one to automatically install to the user's home directory). HTH, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-ido-completing-read not defined
Hi.With latest org-mode (release_6.29c.47.gc7c1.dirty): 1. There are still many calls to org-ido-completing-read (ex: „e“ at column view) which won't work because commit 5acac25dc17916fb850c31a715e95ce50de216d0 (All completing-read behavior for iswitchb users) renamed that function. 2. Other functions were renamed, like org-completing-read-no-ido → org-completing-read-no-i. I don't know how that's better. 3. I don't understand why Org has to hard-code references to a specific implementation of completion. I stopped using ido long ago and started using icicles; therefore it feels strange to know that I might be using different engines at the same time, one for Org, the other for the rest of Emacs. Isn't there a completion interface in Emacs? (I think CEDET will provide one, but for normal buffers, not minibuffer). -- Daniel ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org agenda search goes to wrong target location
On Aug 19, 2009, at 6:40 AM, Samuel Wales wrote: Another bug, probably unrelated, is that if the outline buffer is nonexistent and you RET on an agenda line, you get wrong type argument integer of marker p, nil. goto-char(nil) (let* ((marker ...) (buffer ...) (pos ...)) (switch-to-buffer buffer) (and delete-other-windows (delete-other-windows)) (widen) (goto-char pos) (when (org-mode-p) (org-show-context ...) (save-excursion ...))) org-agenda-switch-to() call-interactively(org-agenda-switch-to) Perhaps it could be fixed by loading the file? Or is the agenda buffer useless when the buffer is not there? The agenda uses markers, and these marker become useless when you remove a buffer. - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-ido-completing-read not defined
On Aug 19, 2009, at 9:19 AM, Daniel Clemente wrote: Hi.With latest org-mode (release_6.29c.47.gc7c1.dirty): 1. There are still many calls to org-ido-completing-read (ex: „e“ at column view) which won't work because commit 5acac25dc17916fb850c31a715e95ce50de216d0 (All completing-read behavior for iswitchb users) renamed that function. Ooops, looks like this patch was incomplete. Fixed now. 2. Other functions were renamed, like org-completing-read-no-ido → org-completing-read-no-i. I don't know how that's better. Because his now covers both ido and iswitchb-like completion 3. I don't understand why Org has to hard-code references to a specific implementation of completion. I stopped using ido long ago and started using icicles; therefore it feels strange to know that I might be using different engines at the same time, one for Org, the other for the rest of Emacs. Isn't there a completion interface in Emacs? (I think CEDET will provide one, but for normal buffers, not minibuffer). ido and iswitchb do not cover normal completion, only buffer switching and file selection. Org-mode can be made to use these interfaces also for other completion prompts by setting the appropriate options. I am not an icicles user, but I believe it will automatically affect almost all completion prompts. So just don't set the variables selection ido or iswitchb support in Org, and you should automatically have your favorite completion setup. HTH - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Is this a bug in orgstruct-mode
On Aug 18, 2009, at 11:02 PM, Leo wrote: On 2009-08-18 19:59 +0100, Carsten Dominik wrote: Hi Leo, this is actually in the FAQ: http://orgmode.org/worg/org-faq.php#blank-line-after-headlines-and-list-items - Carsten The bug I am reporting is that when there is a blank line preceding the FIRST heading or list item, the second one will have a blank line. The FAQ seems to address when there is a blank line preceding the second heading or list item, the third one will have a blank line. The behaviour in the FAQ is smart and desirable. In my view the blank line preceding the FIRST heading or list item is not part of that heading or list item and base behaviour on that is wrong. I don't think it is either wrong or right. When creating the second headline, Org has no way of guessing what you want, to it makes a choice, and I opted for a simple algorithm that looks only above the previous sibling, in this case the first list item. I don't see why the other choice would be any better. Anyone else want to weigh in on tis issue? - Carsten Do you still think this is a non-bug? Thanks. Leo -- Emacs uptime: 1 day, 7 hours, 39 minutes, 7 seconds ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Custom agenda question
On Aug 19, 2009, at 3:44 AM, Anthony Fairchild wrote: Hi, Is there a way to get the text underneath a todo heading to show up in the agenda screen? No this is not possible. I like to put extra info there, like driving directions, and it would be nice to have that info when I print out the agenda. This, on the other hand *is* possible. (setq org-agenda-add-entry-text-maxlines 10) I believe you can also set this variable in the options section of the custom command. - Carsten Here is an example: *** TODO Potluck at Sally's :next: Drive north on 405 Turn left at the barn Blah blah blah, more stuff I want to include And my custom agenda currently looks like this: (setq org-agenda-custom-commands '((p Print List ((tags-todo NEXT ((org-agenda-prefix-format [ ] %T: ) (org-agenda-sorting-strategy '(tag-up priority-down)) (org-agenda-todo-keyword-format ) (org-agenda-overriding-header \nNext Actions\n--\n))) (tags-todo buy ((org-agenda-prefix-format [ ] %T: ) (org-agenda-sorting-strategy '(tag-up priority-down)) (org-agenda-todo-keyword-format ) (org-agenda-overriding-header \nShopping List\n--\n ((org-agenda-sorting-strategy '(priority-down)) (org-agenda-with-colors nil) (org-agenda-todo-keyword-format ) (org-agenda-compact-blocks t) (org-agenda-remove-tags t) (ps-number-of-columns 2) (ps-landscape-mode t) Thanks! Anthony ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-ido-completing-read not defined
El dc, ago 19 2009 a les 11:10, Carsten Dominik va escriure: Ooops, looks like this patch was incomplete. Fixed now. Thanks, it works now. 2. Other functions were renamed, like org-completing-read-no-ido → org-completing-read-no-i. I don't know how that's better. Because his now covers both ido and iswitchb-like completion Ok, I didn't understand the -i and thought that some letters went missing (ido→i)… 3. I don't understand why Org has to hard-code references to a specific implementation of completion. I stopped using ido long ago and started using icicles; therefore it feels strange to know that I might be using different engines at the same time, one for Org, the other for the rest of Emacs. Isn't there a completion interface in Emacs? (I think CEDET will provide one, but for normal buffers, not minibuffer). ido and iswitchb do not cover normal completion, only buffer switching and file selection. Org-mode can be made to use these interfaces also for other completion prompts by setting the appropriate options. I am not an icicles user, but I believe it will automatically affect almost all completion prompts. So just don't set the variables selection ido or iswitchb support in Org, and you should automatically have your favorite completion setup. Yes, icicles affects all minibuffer prompts, and apparently ido and iswitchb don't; therefore ido and iswitchb need „registering“ and custom code in Org, and icicles doesn't. I think I understand; thanks ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Custom agenda question
On Wed, Aug 19, 2009 at 3:04 PM, Carsten Dominik wrote: On Aug 19, 2009, at 3:44 AM, Anthony Fairchild wrote: Hi, Is there a way to get the text underneath a todo heading to show up in the agenda screen? No this is not possible. It would be real nice to be able to toggle the effect of org-agenda-add-entry-text-maxlines even in agenda view. Follow mode is not exactly the same thing because when turning it off it leaves the window behind which has to be killed with C-x 1. But since we have it already working for printing agenda and not for screen display, I am sure there are sufficient reasons behind it. But then it's Org mode -- anything is possible. :) -- Manish I like to put extra info there, like driving directions, and it would be nice to have that info when I print out the agenda. This, on the other hand *is* possible. (setq org-agenda-add-entry-text-maxlines 10) I believe you can also set this variable in the options section of the custom command. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Is this a bug in orgstruct-mode
On 2009-08-19 10:31 +0100, Carsten Dominik wrote: The bug I am reporting is that when there is a blank line preceding the FIRST heading or list item, the second one will have a blank line. The FAQ seems to address when there is a blank line preceding the second heading or list item, the third one will have a blank line. The behaviour in the FAQ is smart and desirable. In my view the blank line preceding the FIRST heading or list item is not part of that heading or list item and base behaviour on that is wrong. I don't think it is either wrong or right. When creating the second headline, Org has no way of guessing what you want, to it makes a choice, and I opted for a simple algorithm that looks only above the previous sibling, in this case the first list item. I don't see why the other choice would be any better. Anyone else want to weigh in on tis issue? I think it is completely fine to leave it as it is. -- Emacs uptime: 1 day, 19 hours, 42 minutes, 30 seconds ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 12:45 AM, Carsten Dominik wrote: On Aug 18, 2009, at 8:10 PM, Bernt Hansen wrote: I don't know if that will work on Windows (with git). I've only tested it on Linux here. You may want to test drive it before including it. I have already included it, please test M-x org-version on your system and let me know if it causes problems anywhere. It doesn't work on Windows (at least in my setup.) My git is from Cygwin and Windows native Emacs from GNU. - GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON - Windows XP - Cygwin git version 1.6.1.2 -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Use remember to file an item to a list
Hi there, I want to use a special org file to collect quotes. The file is special in that it contains only a plain list. I want to use remember to quickly file a quote to it but it seems this is not yet possible to do in orgmode. I wonder if this feature is useful to have? Thanks. Leo -- Emacs uptime: 1 day, 19 hours, 50 minutes, 24 seconds ___ Emacs-orgmode mailing list Remember: 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: proposed improvements to org-src-mode
Dan Davison davi...@stats.ox.ac.uk writes: Carsten Dominik carsten.domi...@gmail.com writes: Hi Dan, thank you for studying and describing these issues, and for proposing a patch. I have noticed a bug in the patch I proposed: the configuration of the edit buffer for saving must be done only after C-c ', and not for example when entering org-src-mode during HTML export. Here's the revised patch (again, assuming org-edit-src-from-org-mode is a valid test that C-c ' has just been done). Dan --8---cut here---start-8--- diff --git a/lisp/org-src.el b/lisp/org-src.el index 2a6c087..6ba58f5 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -113,7 +113,6 @@ but which mess up the display of a snippet in Org exported files.) (defvar org-src-mode-map (make-sparse-keymap)) (define-key org-src-mode-map \C-c' 'org-edit-src-exit) -(define-key org-src-mode-map \C-x\C-s 'org-edit-src-save) (defvar org-edit-src-force-single-line nil) (defvar org-edit-src-from-org-mode nil) (defvar org-edit-src-picture nil) @@ -168,7 +167,8 @@ the edited version. (if (boundp 'org-edit-src-overlay) (org-delete-overlay org-edit-src-overlay))) (kill-buffer buffer)) - (setq buffer (generate-new-buffer *Org Edit Src Example*)) + (setq buffer (generate-new-buffer + (concat *Org Src (file-name-nondirectory buffer-file-name) [ lang ]*))) (setq ovl (org-make-overlay beg end)) (org-overlay-put ovl 'face 'secondary-selection) (org-overlay-put ovl 'edit-buffer buffer) @@ -186,8 +186,7 @@ the edited version. '(display nil invisible nil intangible nil)) (org-do-remove-indentation) (let ((org-inhibit-startup t)) - (funcall lang-f) - (org-src-mode)) + (funcall lang-f)) (set (make-local-variable 'org-edit-src-force-single-line) single) (set (make-local-variable 'org-edit-src-from-org-mode) org-mode-p) (when lfmt @@ -201,6 +200,7 @@ the edited version. (org-set-local 'org-edit-src-end-marker end) (org-set-local 'org-edit-src-overlay ovl) (org-set-local 'org-edit-src-nindent nindent) + (org-src-mode) (and org-edit-src-persistent-message (org-set-local 'header-line-format msg))) (message %s msg) @@ -400,12 +400,13 @@ the language, a switch telling of the content should be in a single line. (defun org-edit-src-exit () Exit special edit and protect problematic lines. (interactive) - (unless (string-match \\`*Org Edit (buffer-name (current-buffer))) -(error This is not an sub-editing buffer, something is wrong...)) + (unless org-edit-src-from-org-mode +(error This is not a sub-editing buffer, something is wrong...)) (let ((beg org-edit-src-beg-marker) (end org-edit-src-end-marker) (ovl org-edit-src-overlay) (buffer (current-buffer)) + (buffer-file-name nil) (nindent org-edit-src-nindent) code line) (untabify (point-min) (point-max)) @@ -444,7 +445,6 @@ the language, a switch telling of the content should be in a single line. (switch-to-buffer (marker-buffer beg)) (kill-buffer buffer) (goto-char beg) -(org-delete-overlay ovl) (delete-region beg end) (insert code) (goto-char beg) @@ -464,6 +464,19 @@ the language, a switch telling of the content should be in a single line. (goto-char (min p (point-max))) (message (or msg +(defun org-src-mode-configure-edit-buffer () + (when org-edit-src-from-org-mode +(setq buffer-offer-save t) +(setq buffer-file-name + (concat (buffer-file-name (marker-buffer org-edit-src-beg-marker)) + [ (buffer-name) ])) +(set (if (featurep 'xemacs) 'write-contents-hooks 'write-contents-functions) +'(org-edit-src-save)) +(org-add-hook 'kill-buffer-hook + '(lambda () (org-delete-overlay org-edit-src-overlay)) nil 'local))) + +(org-add-hook 'org-src-mode-hook 'org-src-mode-configure-edit-buffer) + (provide 'org-src) ;; arch-tag: 6a1fc84f-dec7-47be-a416-64be56bea5d8 --8---cut here---end---8--- * Notes on patch *** write-contents-functions A good start seems to be to use org-src-mode-hook to add org-edit-src-save to the write-contents-functions list. This means that when it comes to saving, org-edit-src-save will be called and no subsequent attempt will be made to save the buffer in the normal way. (This should obviate the remapping of C-x C-s to org-edit-src-save in org-src.el) *** buffer-offer-save We also want to set this to t. *** Where does this get us? - C-x s still does *not* offer to save the edit buffer. That's because buffer-file-name is nil. - C-x C-c does ask us whether we want to save the edit buffer. However, since buffer-file-name is nil it asks us
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 12:45 AM, Carsten Dominik wrote: On Aug 18, 2009, at 8:10 PM, Bernt Hansen wrote: I don't know if that will work on Windows (with git). I've only tested it on Linux here. You may want to test drive it before including it. I have already included it, please test M-x org-version on your system and let me know if it causes problems anywhere. It doesn't work on Windows (at least in my setup.) My git is from Cygwin and Windows native Emacs from GNU. - GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON - Windows XP - Cygwin git version 1.6.1.2 Does it crash and cause an error or report the old org version as before? -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 4:54 PM, Bernt Hansen wrote: Manish writes: On Wed, Aug 19, 2009 at 12:45 AM, Carsten Dominik wrote: On Aug 18, 2009, at 8:10 PM, Bernt Hansen wrote: I don't know if that will work on Windows (with git). I've only tested it on Linux here. You may want to test drive it before including it. I have already included it, please test M-x org-version on your system and let me know if it causes problems anywhere. It doesn't work on Windows (at least in my setup.) My git is from Cygwin and Windows native Emacs from GNU. - GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON - Windows XP - Cygwin git version 1.6.1.2 Does it crash and cause an error or report the old org version as before? It just reports the version as before; no crashing or error of any sort. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 4:54 PM, Bernt Hansen wrote: Does it crash and cause an error or report the old org version as before? It just reports the version as before; no crashing or error of any sort. Okay that's good. I don't have Emacs on windows here. If you have time to step through the org-version function in debug and figure out where it fails we might be able to get it working on windows too. My guess is that determining the location of the .git directory fails so it acts just like it's not running from a git repository. What do you get when evaluating the following form? (file-name-directory (locate-library org)) I need to move up one directory from what that returns to see if the .git directory exists and I append '../' to the path to move up on *nix systems. That probably doesn't work for windows. Maybe there's a better way to strip off the last directory from the path that file-name-directory returns. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 5:38 PM, Bernt Hansenbe...@norang.ca wrote: Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 4:54 PM, Bernt Hansen wrote: Does it crash and cause an error or report the old org version as before? It just reports the version as before; no crashing or error of any sort. Okay that's good. I don't have Emacs on windows here. If you have time to step through the org-version function in debug and figure out where it fails we might be able to get it working on windows too. I'll find out how to do this and let you know the results. My guess is that determining the location of the .git directory fails so it acts just like it's not running from a git repository. What do you get when evaluating the following form? (file-name-directory (locate-library org)) I need to move up one directory from what that returns to see if the .git directory exists and I append '../' to the path to move up on *nix systems. That probably doesn't work for windows. Maybe there's a better way to strip off the last directory from the path that file-name-directory returns. It returns d:/home/zms/elisp/org-mode.git/lisp/ cd'ing into d:/home/zms/elisp/org-mode.git/lisp/.. works in Cygwin but fails in Windows shell due to front slahes. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Presentation... and first question
Hello. I am Godo, and I am working with org-mode from one year ago. I would like to congratulate developers on their great effort. The question: I used to work with a black background on emacs, but now, I would like to change to a white background... I have seen the capture screen on the site: http://orgmode.org/, so... does anyone know which color theme is that? Thanks. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com wrote: On Wed, Aug 19, 2009 at 12:45 AM, Carsten Dominik wrote: On Aug 18, 2009, at 8:10 PM, Bernt Hansen wrote: I don't know if that will work on Windows (with git). I've only tested it on Linux here. You may want to test drive it before including it. I have already included it, please test M-x org-version on your system and let me know if it causes problems anywhere. It doesn't work on Windows (at least in my setup.) My git is from Cygwin and Windows native Emacs from GNU. - GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON - Windows XP - Cygwin git version 1.6.1.2 Does it break? Or does it just not provide the git information? Thanks, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish, Could you try this patch - does it work? -Bernt From 1b26a9ef0a9105d3e855c242fce3a44d1b8cd9c7 Mon Sep 17 00:00:00 2001 From: Bernt Hansen be...@norang.ca Date: Wed, 19 Aug 2009 08:26:43 -0400 Subject: [PATCH] Fix org-version so the git version report works on windows too --- lisp/org.el |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index bd32b70..de971e2 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -104,10 +104,10 @@ With prefix arg HERE, insert it at point. (interactive P) (let* ((org-version org-version) (git-version) -(dir (concat (file-name-directory (locate-library org)) ../ ))) +(dir (file-truename (concat (file-name-directory (locate-library org)) ../ (if (file-exists-p (expand-file-name .git dir)) (progn -(shell-command (concat cd dir git describe --abbrev=4 HEAD)) +(shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) (save-excursion (set-buffer *Shell Command Output*) (goto-char (point-min)) @@ -115,7 +115,7 @@ With prefix arg HERE, insert it at point. (goto-char (point-min)) (re-search-forward [^\n]+) (setq git-version (match-string 0)) - (shell-command (concat cd dir git diff-index --name-only HEAD --)) + (shell-command (concat GITDIR= dir git diff-index --name-only HEAD --)) (unless (eql 1 (point-max)) (setq git-version (concat git-version .dirty))) (setq org-version (concat org-version ( git-version )) -- 1.6.4 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 5:51 PM, Nick Dokos wrote: Manish wrote: On Wed, Aug 19, 2009 at 12:45 AM, Carsten Dominik wrote: On Aug 18, 2009, at 8:10 PM, Bernt Hansen wrote: I don't know if that will work on Windows (with git). I've only tested it on Linux here. You may want to test drive it before including it. I have already included it, please test M-x org-version on your system and let me know if it causes problems anywhere. It doesn't work on Windows (at least in my setup.) My git is from Cygwin and Windows native Emacs from GNU. - GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON - Windows XP - Cygwin git version 1.6.1.2 Does it break? Or does it just not provide the git information? It continues to work the way it used to work with no error or breakage. Although I have reloaded and restarted org a few times, I will report again after rebooting Emacs. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 6:00 PM, Bernt Hansenbe...@norang.ca wrote: Manish, Could you try this patch - does it work? Patch application fails. I tried with patch -p1 as well. , | [Wed 19 18:47] (2118) ~/elisp/org-mode.git $ git apply org-version-patch-by-bernt.patch | error: patch failed: lisp/org.el:104 | error: lisp/org.el: patch does not apply ` -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 5:38 PM, Bernt Hansen wrote: Manish writes: On Wed, Aug 19, 2009 at 4:54 PM, Bernt Hansen wrote: Does it crash and cause an error or report the old org version as before? It just reports the version as before; no crashing or error of any sort. Okay that's good. I don't have Emacs on windows here. If you have time to step through the org-version function in debug and figure out where it fails we might be able to get it working on windows too. I had not compiled the latest git and hence an older copy was getting loaded because of which it kept working without any errors. Now it returns: Org-mode version 6.29trans (The system cannot find the path specified..dirty) Sorry about that. When I tried to run the function under debug the *Shell Command Output* buffer displays this message The system cannot find the path specified. Perhaps this is because of the slashes since Windows shell does not understand them? Could we detect if we are on Windows and use \ instead of /? Thanks -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Presentation... and first question
On Wed, Aug 19, 2009 at 5:50 PM, Godofredo Fdez. Requena wrote: Hello. I am Godo, and I am working with org-mode from one year ago. I would like to congratulate developers on their great effort. The question: I used to work with a black background on emacs, but now, I would like to change to a white background... I have seen the capture screen on the site: http://orgmode.org/, so... does anyone know which color theme is that? I guess that is default theme with Monaco size 10 font. You may want to take a look at http://bc.tech.coop/blog/070615.html if you switch between light and dark color themes. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 6:00 PM, Bernt Hansenbe...@norang.ca wrote: Manish, Could you try this patch - does it work? Patch application fails. I tried with patch -p1 as well. , | [Wed 19 18:47] (2118) ~/elisp/org-mode.git $ git apply org-version-patch-by-bernt.patch | error: patch failed: lisp/org.el:104 | error: lisp/org.el: patch does not apply ` -- Manish Can you try evaluating this? and then M-x org-version and report the results? (defun org-version (optional here) Show the org-mode version in the echo area. With prefix arg HERE, insert it at point. (interactive P) (let* ((org-version org-version) (git-version) (dir (file-truename (concat (file-name-directory (locate-library org)) ../ (if (file-exists-p (expand-file-name .git dir)) (progn (shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) (save-excursion (set-buffer *Shell Command Output*) (goto-char (point-min)) (replace-regexp - .) (goto-char (point-min)) (re-search-forward [^\n]+) (setq git-version (match-string 0)) (shell-command (concat GITDIR= dir git diff-index --name-only HEAD --)) (unless (eql 1 (point-max)) (setq git-version (concat git-version .dirty))) (setq org-version (concat org-version ( git-version )) (let ((version (format Org-mode version %s org-version))) (if here (insert version)) (message version) version))) -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Bernt Hansen be...@norang.ca writes: Can you try evaluating this? and then M-x org-version and report the results? Nevermind - that version is broken. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 5:38 PM, Bernt Hansen wrote: Manish writes: When I tried to run the function under debug the *Shell Command Output* buffer displays this message The system cannot find the path specified. Perhaps this is because of the slashes since Windows shell does not understand them? Could we detect if we are on Windows and use \ instead of /? I'm not sure how to determine if we're on windows vs something else. Any suggestions? -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Bernt Hansen be...@norang.ca wrote: Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 5:38 PM, Bernt Hansen wrote: Manish writes: When I tried to run the function under debug the *Shell Command Output* buffer displays this message The system cannot find the path specified. Perhaps this is because of the slashes since Windows shell does not understand them? Could we detect if we are on Windows and use \ instead of /? I'm not sure how to determine if we're on windows vs something else. Any suggestions? Check the variable system-type. HTH, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 7:02 PM, Bernt Hansen wrote: Manish writes: On Wed, Aug 19, 2009 at 6:00 PM, Bernt Hansen wrote: Manish, Could you try this patch - does it work? Patch application fails. I tried with patch -p1 as well. , | [Wed 19 18:47] (2118) ~/elisp/org-mode.git $ git apply org-version-patch-by-bernt.patch | error: patch failed: lisp/org.el:104 | error: lisp/org.el: patch does not apply ` -- Manish Can you try evaluating this? and then M-x org-version and report the results? (defun org-version (optional here) Show the org-mode version in the echo area. With prefix arg HERE, insert it at point. (interactive P) (let* ((org-version org-version) (git-version) (dir (file-truename (concat (file-name-directory (locate-library org)) ../ (if (file-exists-p (expand-file-name .git dir)) (progn (shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) (save-excursion (set-buffer *Shell Command Output*) (goto-char (point-min)) (replace-regexp - .) (goto-char (point-min)) (re-search-forward [^\n]+) (setq git-version (match-string 0)) (shell-command (concat GITDIR= dir git diff-index --name-only HEAD --)) (unless (eql 1 (point-max)) (setq git-version (concat git-version .dirty))) (setq org-version (concat org-version ( git-version )) (let ((version (format Org-mode version %s org-version))) (if here (insert version)) (message version) version))) -Bernt Results follows: Org-mode version 6.29trans ('GITDIR' is not recognized as an internal or external command,.dirty) Sorry for the delay.. had to step away for sometime. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Bernt Hansen be...@norang.ca wrote: ... (shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) ... Disclaimer: I touch Windows once a day to check a mail account and possibly surf the web - other than that, I'm pretty much at sea in it (and I've never used emacs on Windows, let alone install git on it.) Please excuse the elementary questions. How does shell-command work under Windows? What shell is it using? Is cygwin a prerequisite for it? Is cygwin a prerequisite for git? Thanks, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 7:32 PM, Nick Dokosnicholas.do...@hp.com wrote: Bernt Hansen be...@norang.ca wrote: ... (shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) ... Disclaimer: I touch Windows once a day to check a mail account and possibly surf the web - other than that, I'm pretty much at sea in it (and I've never used emacs on Windows, let alone install git on it.) Please excuse the elementary questions. How does shell-command work under Windows? No idea. What shell is it using? Windows has it's own CMD shell (CMD.exe). Is cygwin a prerequisite for it? Prerequisite for CMD? No. CMD is native and comes with Windows. Is cygwin a prerequisite for git? Native git on Windows was reported to have issues quite sometime back. I read somewhere that the situation is much better now. Cygwin git has always worked for me without any issues. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Nick Dokos nicholas.do...@hp.com writes: Bernt Hansen be...@norang.ca wrote: ... (shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) ... Disclaimer: I touch Windows once a day to check a mail account and possibly surf the web - other than that, I'm pretty much at sea in it (and I've never used emacs on Windows, let alone install git on it.) Please excuse the elementary questions. How does shell-command work under Windows? What shell is it using? Is cygwin a prerequisite for it? Is cygwin a prerequisite for git? Thanks, Nick Nick, You use windows more than me :) I have no idea what shell it uses - but if it's the DOS shell the above is never going to work. I have GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26 on LENNART-69DE564 (patched) here which I can try. I think this version uses the DOS shell and git which is installed on the system isn't available from this shell. Maybe I should just disable the git version for now on ms-dos, windows-nt, and cygwin since I don't know how to make it work reliably on windows. Opinions? -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com wrote: On Wed, Aug 19, 2009 at 7:32 PM, Nick Dokosnicholas.do...@hp.com wrote: Bernt Hansen be...@norang.ca wrote: ... (shell-command (concat GITDIR= dir git describe --abbrev=4 HEAD)) ... Disclaimer: I touch Windows once a day to check a mail account and possibly surf the web - other than that, I'm pretty much at sea in it (and I've never used emacs on Windows, let alone install git on it.) Please excuse the elementary questions. How does shell-command work under Windows? No idea. What shell is it using? Windows has it's own CMD shell (CMD.exe). Is cygwin a prerequisite for it? Prerequisite for CMD? No. CMD is native and comes with Windows. Is cygwin a prerequisite for git? Native git on Windows was reported to have issues quite sometime back. I read somewhere that the situation is much better now. Cygwin git has always worked for me without any issues. Manish, Thanks! IIUC, there are then multiple forks in the decision tree: o running on Windows or on something else? o if on Windows, running native or under cygwin? o what shell am I using? cmd.exe and bash under cygwin accept different syntax - in particular, the GITDIR=foo solution of setting env variables has no hope of working under cmd.exe - is that correct? Sounds complicated. Maybe the best solution for now is to punt on the git information on Windows? (when (not (member system-type '(ms-dos windows-nt cygwin))) ...add git info...) What about system-type == darwin? Does Bernt's code work there? Thanks, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 7:47 PM, Bernt Hansen wrote: [snip: attempting to make git reporting functionality in org-version (29 lines)] Maybe I should just disable the git version for now on ms-dos, windows-nt, and cygwin since I don't know how to make it work reliably on windows. Opinions? It appears there are very few Windows users on the list so I guess the effort involved does not benefit a lot of people anyways. I am okay if you would like to disable the functionality on Windows. -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Nick Dokos nicholas.do...@hp.com writes: Thanks! IIUC, there are then multiple forks in the decision tree: o running on Windows or on something else? o if on Windows, running native or under cygwin? o what shell am I using? cmd.exe and bash under cygwin accept different syntax - in particular, the GITDIR=foo solution of setting env variables has no hope of working under cmd.exe - is that correct? Sounds complicated. Maybe the best solution for now is to punt on the git information on Windows? (when (not (member system-type '(ms-dos windows-nt cygwin))) ...add git info...) What about system-type == darwin? Does Bernt's code work there? Yes it'll be complicated. Right now I think we should punt and just go back to the old org-version reporting for windows until we can get a better working solution since the current version breaks on windows. I'll try to provide a patch for this. Manish: What value do you have for system-type? I expect it says 'windows-nt' If that's true then the problem is determining if - git is installed - what version? Msysgit? cygwin git? - what shells are available (since CMD.exe has little hope of working) - msysgit bash - cygwin shell - cmd (won't work if msysgit was installed with git in the msysgit bash shell only) - running some other shell (git-bash, cygwin) so the git executable is available and provide the right syntax for each to Do The Right Thing(tm) Right now I'm inclined to skip the git-version magic if system-type is windows-nt just to stop it from breaking on that platform. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 7:47 PM, Bernt Hansen wrote: [snip: attempting to make git reporting functionality in org-version (29 lines)] Maybe I should just disable the git version for now on ms-dos, windows-nt, and cygwin since I don't know how to make it work reliably on windows. Opinions? It appears there are very few Windows users on the list so I guess the effort involved does not benefit a lot of people anyways. I am okay if you would like to disable the functionality on Windows. If you want to work with me off-list we can pursue this and see if we can cobble something together that works. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 8:12 PM, Bernt Hansen wrote: Nick Dokos writes: Thanks! IIUC, there are then multiple forks in the decision tree: o running on Windows or on something else? o if on Windows, running native or under cygwin? o what shell am I using? cmd.exe and bash under cygwin accept different syntax - in particular, the GITDIR=foo solution of setting env variables has no hope of working under cmd.exe - is that correct? Sounds complicated. Maybe the best solution for now is to punt on the git information on Windows? (when (not (member system-type '(ms-dos windows-nt cygwin))) ...add git info...) What about system-type == darwin? Does Bernt's code work there? Yes it'll be complicated. Right now I think we should punt and just go back to the old org-version reporting for windows until we can get a better working solution since the current version breaks on windows. I'll try to provide a patch for this. Manish: What value do you have for system-type? I expect it says 'windows-nt' Yes, it does. If that's true then the problem is determining if - git is installed - what version? Msysgit? cygwin git? - what shells are available (since CMD.exe has little hope of working) - msysgit bash - cygwin shell - cmd (won't work if msysgit was installed with git in the msysgit bash shell only) - running some other shell (git-bash, cygwin) so the git executable is available and provide the right syntax for each to Do The Right Thing(tm) Do we test if git is installed if we are on a non-Windows system or show whatever error shell returns in case git is not installed? I tried calling cygwin git from CMD shell and it seems to work okay. So I am guessing we need to figure out how to correctly pass git command from Emacs to Windows shell. I will try to find examples from Org's PDF processing code. Right now I'm inclined to skip the git-version magic if system-type is windows-nt just to stop it from breaking on that platform. Sure. I will share some information/examples if I can find anything to make it work. Thanks -- Manish ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Use remember to file an item to a list
Hi Leo, Leo sdl@gmail.com writes: I want to use a special org file to collect quotes. The file is special in that it contains only a plain list. I want to use remember to quickly file a quote to it but it seems this is not yet possible to do in orgmode. I wonder if this feature is useful to have? For this I would have two files: the one with usual headlines, where you can remember your quotes, and another one where those headings are converted to list items. It shouldn't be hard to automate. Otherwise I don't understand how remembering a plain list would work, since remembering heavily relies on the target structure. -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com wrote: ... Do we test if git is installed if we are on a non-Windows system or show whatever error shell returns in case git is not installed? I tried calling cygwin git from CMD shell and it seems to work okay. So I am guessing we need to figure out how to correctly pass git command from Emacs to Windows shell. I will try to find examples from Org's PDF processing code. Bernt's code checks for the existence of the .git subdirectory in the parent directory of wherever emacs get the org.el[c] library: if it's present, then the assumption is that git is installed. HTH, Nick ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] missing :END: error message is not very helpful (patch)
Friedrich Delgado Friedrichs frie...@nomaden.org writes: I had a missing :END: line in a long file due to some editing screwups and the (error :END: line missing)) wasn't too helpful. I propose the following patch: Applied, thanks. -- Bastien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Nick Dokos nicholas.do...@hp.com writes: Manish mailtomanish.sha...@gmail.com wrote: ... Do we test if git is installed if we are on a non-Windows system or show whatever error shell returns in case git is not installed? I tried calling cygwin git from CMD shell and it seems to work okay. So I am guessing we need to figure out how to correctly pass git command from Emacs to Windows shell. I will try to find examples from Org's PDF processing code. Bernt's code checks for the existence of the .git subdirectory in the parent directory of wherever emacs get the org.el[c] library: if it's present, then the assumption is that git is installed. Well maybe. I have an older version of Emacs 23 installed on my windows Eee PC system and I have msysGit installed (not cygwin git) but it's not available to the shell as a command. Nothing prevents me from running org-mode from a git repository there. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
On Wed, Aug 19, 2009 at 8:46 PM, Bernt Hansen wrote: Nick Dokos writes: [...] Bernt's code checks for the existence of the .git subdirectory in the parent directory of wherever emacs get the org.el[c] library: if it's present, then the assumption is that git is installed. Well maybe. I have an older version of Emacs 23 installed on my windows Eee PC system and I have msysGit installed (not cygwin git) but it's not available to the shell as a command. It should be, I think. May be it's not added to PATH environment variable? You can set it up like so: 1. Right-click on My Computer, click Properties 2. Click on Advanced tab 3. Click Environment Variables button 4. Add the path to git binary under System or User PATH variable. 5. Restart Emacs and test again. -- Manish Nothing prevents me from running org-mode from a git repository there. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information
Manish mailtomanish.sha...@gmail.com writes: On Wed, Aug 19, 2009 at 8:46 PM, Bernt Hansen wrote: Nick Dokos writes: [...] Bernt's code checks for the existence of the .git subdirectory in the parent directory of wherever emacs get the org.el[c] library: if it's present, then the assumption is that git is installed. Well maybe. I have an older version of Emacs 23 installed on my windows Eee PC system and I have msysGit installed (not cygwin git) but it's not available to the shell as a command. It should be, I think. May be it's not added to PATH environment variable? You can set it up like so: 1. Right-click on My Computer, click Properties 2. Click on Advanced tab 3. Click Environment Variables button 4. Add the path to git binary under System or User PATH variable. 5. Restart Emacs and test again. The msysGit installation gives a choice to include the git executables in the path or not. I'm not sure what the current state of that is but they used to recommend _not_ installing it for cmd.exe so we can't assume that it's available. I can probably find the msysgit shell if it's available and run that instead. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Merge tables
Hi, I've just discovered Org and are truly impressed with it; using it for more and more tasks. Here's what I want to do: I have 2 tables with the same number of rows (one row per subject). I would like to make just one big table by copying the second table to the right of the first one. This is a no-brainer in a spreadsheet but my attempts in Org have failed. Any ideas? By the way, thanks for this great piece of software! -- hector ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Merge tables
Hector Villafuerte hecto...@gmail.com writes: Hi, I've just discovered Org and are truly impressed with it; using it for more and more tasks. Here's what I want to do: I have 2 tables with the same number of rows (one row per subject). I would like to make just one big table by copying the second table to the right of the first one. This is a no-brainer in a spreadsheet but my attempts in Org have failed. Any ideas? Rectangular cut and paste maybe? -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] broken link
The link from orgmode.org to http://sachachua.com/wp/2008/01/18/outlining-your-notes-with-org/ is broken. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] broken link
works for me On Wed, Aug 19, 2009 at 2:24 PM, Ilya Shlyakhter ilya_...@alum.mit.eduwrote: The link from orgmode.org to http://sachachua.com/wp/2008/01/18/outlining-your-notes-with-org/ is broken. ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] broken link
hmm, works now, must have been a transient problem on my end -- sorry. On Wed, Aug 19, 2009 at 2:29 PM, Greg Newmang...@20seven.org wrote: works for me On Wed, Aug 19, 2009 at 2:24 PM, Ilya Shlyakhter ilya_...@alum.mit.edu wrote: The link from orgmode.org to http://sachachua.com/wp/2008/01/18/outlining-your-notes-with-org/ is broken. ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH 1/2] Use lisp cd function to change directories to avoid shell dependencies
This fixes git version determination on windows for cygwin and for msysGit where git is installed in the user's PATH for the windows command shell. --- lisp/org.el | 38 -- 1 files changed, 20 insertions(+), 18 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index e2cdce8..63ce2de 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -104,25 +104,27 @@ With prefix arg HERE, insert it at point. (interactive P) (let* ((org-version org-version) (git-version) -(dir (concat (file-name-directory (locate-library org)) ../ ))) +(dir (concat (file-name-directory (locate-library org)) ../ )) +(version)) (if (file-exists-p (expand-file-name .git dir)) - (progn -(shell-command (concat cd dir git describe --abbrev=4 HEAD)) -(save-excursion - (set-buffer *Shell Command Output*) - (goto-char (point-min)) - (replace-regexp - .) - (goto-char (point-min)) - (re-search-forward [^\n]+) - (setq git-version (match-string 0)) - (shell-command (concat cd dir git diff-index --name-only HEAD --)) - (unless (eql 1 (point-max)) -(setq git-version (concat git-version .dirty))) - (setq org-version (concat org-version ( git-version )) -(let ((version (format Org-mode version %s org-version))) - (if here (insert version)) - (message version) - version))) + (let ((pwd (substring (pwd) 10))) + (cd dir) + (shell-command git describe --abbrev=4 HEAD) + (save-excursion + (set-buffer *Shell Command Output*) + (goto-char (point-min)) + (re-search-forward [^\n]+) + (setq git-version (match-string 0)) + (subst-char-in-string ?- ?. git-version t) + (shell-command git diff-index --name-only HEAD --) + (unless (eql 1 (point-max)) + (setq git-version (concat git-version .dirty))) + (setq org-version (concat org-version ( git-version + (cd pwd))) +(setq version (format Org-mode version %s org-version)) +(if here (insert version)) +(message version) +version)) ;;; Compatibility constants -- 1.6.4 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH 2/2] Skip git-version determination if git command fails
This removes errors generated on a windows system where msysGit is installed in git bash only and not available from cmd.exe in the user's PATH. --- lisp/org.el | 27 ++- 1 files changed, 14 insertions(+), 13 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 63ce2de..2f3cfb1 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -106,21 +106,22 @@ With prefix arg HERE, insert it at point. (git-version) (dir (concat (file-name-directory (locate-library org)) ../ )) (version)) -(if (file-exists-p (expand-file-name .git dir)) +(if (and (file-exists-p (expand-file-name .git dir)) +(executable-find git)) (let ((pwd (substring (pwd) 10))) (cd dir) - (shell-command git describe --abbrev=4 HEAD) - (save-excursion - (set-buffer *Shell Command Output*) - (goto-char (point-min)) - (re-search-forward [^\n]+) - (setq git-version (match-string 0)) - (subst-char-in-string ?- ?. git-version t) - (shell-command git diff-index --name-only HEAD --) - (unless (eql 1 (point-max)) - (setq git-version (concat git-version .dirty))) - (setq org-version (concat org-version ( git-version - (cd pwd))) + (if (eql 0 (shell-command git describe --abbrev=4 HEAD)) + (save-excursion + (set-buffer *Shell Command Output*) + (goto-char (point-min)) + (re-search-forward [^\n]+) + (setq git-version (match-string 0)) + (subst-char-in-string ?- ?. git-version t) + (shell-command git diff-index --name-only HEAD --) + (unless (eql 1 (point-max)) + (setq git-version (concat git-version .dirty))) + (setq org-version (concat org-version ( git-version + (cd pwd (setq version (format Org-mode version %s org-version)) (if here (insert version)) (message version) -- 1.6.4 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH 0/2] org-version fix for windows
Here are two patches which fix org-version for windows. This should handle cygwin and msysGit where git is installed for use by the default Windows command shell. This does not currently support msysGit where git is not installed in the user's PATH. The series is available at git://git.norang.ca/org-mode for-carsten Bernt Hansen (2): Use lisp cd function to change directories to avoid shell dependencies Skip git-version determination if git command fails lisp/org.el | 42 +++--- 1 files changed, 23 insertions(+), 19 deletions(-) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [patch] now possible to search for text in folded blocks
Please apply, I don't *think* this can break anything. Thanks -- Eric From f73d4b67c027209905dd90868d57440ceacdea28 Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Wed, 19 Aug 2009 15:17:09 -0600 Subject: [PATCH] now possible to search for text inside of folded blocks --- lisp/org.el | 38 -- 1 files changed, 24 insertions(+), 14 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index e2cdce8..14adeda 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5364,24 +5364,34 @@ the range. (beginning-of-line) (if (re-search-forward org-block-regexp nil t) (let ((start (- (match-beginning 4) 1)) ;; beginning of body - (end (match-end 0)) - ov) ;; end of entire body + (end (match-end 0)) ;; end of entire body + ov) (if (memq t (mapcar (lambda (overlay) (eq (org-overlay-get overlay 'invisible) -'org-hide-block)) +'org-hide-block)) (org-overlays-at start))) - (if (or (not force) (eq force 'off)) - (mapc (lambda (ov) - (when (member ov org-hide-block-overlays) - (setq org-hide-block-overlays - (delq ov org-hide-block-overlays))) - (when (eq (org-overlay-get ov 'invisible) -'org-hide-block) - (org-delete-overlay ov))) - (org-overlays-at start))) - (setq ov (org-make-overlay start end)) + (if (or (not force) (eq force 'off)) + (mapc (lambda (ov) + (when (member ov org-hide-block-overlays) +(setq org-hide-block-overlays + (delq ov org-hide-block-overlays))) + (when (eq (org-overlay-get ov 'invisible) +'org-hide-block) +(org-delete-overlay ov))) +(org-overlays-at start))) +(setq ov (org-make-overlay start end)) (org-overlay-put ov 'invisible 'org-hide-block) - (push ov org-hide-block-overlays))) +;; make the block accessible to isearch +(org-overlay-put + ov 'isearch-open-invisible + (lambda (ov) + (when (member ov org-hide-block-overlays) + (setq org-hide-block-overlays + (delq ov org-hide-block-overlays))) + (when (eq (org-overlay-get ov 'invisible) + 'org-hide-block) + (org-delete-overlay ov +(push ov org-hide-block-overlays))) (error Not looking at a source block ;; org-tab-after-check-for-cycling-hook -- 1.6.4.73.gc144 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] a few suggestions for org-mode table, bug report
Carsten Dominik wrote: On Jun 19, 2009, at 5:29 PM, Michael Brand wrote: 2) One could like to have configurable left/right alignment, even combinable with column width, e. g. | l10 | r | | 3.14 | 0x10 | | 3.141592= | 0x32 0x10 | This is now implemented, thanks for the nice idea. Thank you very much for this implementation. I stress-tested it for my own documentation and found a minor flaw which someone might be interested to fix someday/maybe: With the raw input of | l8 | r11 | | 3.14 | 0x10 0x00 | | 3.1415926535897932384626433832795 | 0x40 0x30 0x20 | and after aligning I get displayed | l8 | r11 | | 3.14 | 0x10 0x00 | | 3.1415= | 0x40 0x30= | with org-version 6.29c on GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON but would expect | l8 | r11 | | 3.14 | 0x10 0x00 | | 3.1415= | =0x30 0x20 | The same applies analogously without `l' and `r'. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] presentation and... first question
Hello. I am Godo, and I am working with org-mode from one year ago. I would like to congratulate developers on their great effort. The question: I used to work with a black background on emacs, but now, I would like to change to a white background... I have seen the capture screen on the site: http://orgmode.org/, so... does anyone know which color theme is that? Thanks. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] agenda cycling
In at least org-version 6.29trans, I find the behavior of org-agenda-cycle-show to be different from its docstring, and also different from what I would find most useful. The docstring says: Show the current entry in another window, with default settings. Default settings are taken from `org-show-hierarchy-above' and siblings. When use repeadedly in immediate succession, the remote entry will cycle through visibility entry - subtree - subtree with logbook emacs -q --load org-testcase.el , minimal, produces these states: 1) folded 2) only the first subtask shows, with no indication that there are any other subtasks 3) same as 2 4) everything except logbook 5) everything including logbook I find states 2 and 3 to be confusing, because it makes me think that there are no other subtasks. What I would expect for state 2 is to show children. This is, in fact, the most useful state for me. The behavior that I would find most familiar is the same as the cycling behavior when point is on the parent headline in the outline. I imagine most users would find the same. I don't mind experimenting with extra configurable states for cycling, of course. With my .emacs, the behavior is the same. My .emacs has (setf org-show-following-heading t) (setf org-show-siblings t) Also, I have some ideas for cycling from the agenda, which seem appropriate to include here. Point could change to show more of the outline. I think that the following would work well. 1) folded, with point in the middle 2) children, with point near the top 3) subtree, with point near the top Also, window configuration could change, to a generous size for children and subtree, at least if they cannot fit in the window. Then it could return for folded, so that you can see more of the agenda as usual. I use the default, half-height window for that. Finally, a 4th state, which is to not show the outline at all, is a possibility. Thus, cycling 4 times gets you back to the beginning. Here is a full design. 1) folded, with point in the middle, default window splitting 2) children, with point near the top, generous window splitting 3) subtree, with point near the top, generous window splitting 4) agenda window fills the screen Thanks. -- Myalgic encephalomyelitis causes death (Jason et al. 2006) and severe suffering. Conflicts of interest are destroying research. What people know is wrong. Silence = death. http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-tags-exclude-from-inheritance
Hi all, I don't think org-tags-exclude-from-inheritance is working like it should. Or I'm misunderstanding something. I have this in my .emacs: (setq org-tags-exclude-from-inheritance '(project)) And I have this org file: * Projects ** TODO Stuff :project: *** TODO Item 1 *** TODO Item 2 *** TODO Item 3 I run C-a M and type project. I expect to see only Stuff. But instead I see Stuff, plus Items 1 - 3. Is that supposed to happen? I see that this has been a problem in the (recent) past: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg11772.html According to About Emacs, I'm using: GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.12) of 2009-07-30 on elegiac, modified by Debian Has the fix made it in to this version? Help is appreciated. Thanks in advance. -- Desmond Rivet Pain is weakness leaving the body. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [PATCH 0/2] org-version fix for windows
Carsten, Please do NOT apply these patches yet. Manish reported a problem with them on his system. I'll post improved ones tomorrow. Thanks, Bernt Bernt Hansen be...@norang.ca writes: Here are two patches which fix org-version for windows. This should handle cygwin and msysGit where git is installed for use by the default Windows command shell. This does not currently support msysGit where git is not installed in the user's PATH. The series is available at git://git.norang.ca/org-mode for-carsten Bernt Hansen (2): Use lisp cd function to change directories to avoid shell dependencies Skip git-version determination if git command fails lisp/org.el | 42 +++--- 1 files changed, 23 insertions(+), 19 deletions(-) ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode