[Orgmode] C-c ' prepends a comma to shell comment lines
Please excuse the duplication if this comes across twice... I posted it an hour or so ago from my work email address and I haven't seen it yet. After running C-c ' (apostrophe) on a shell script between #+BEGIN_SRC and #+END_SRC tags and returning to the org file using C-c ' again, comments in the script have a , (comma) prepended. If I have #+BEGIN_SRC shell-script #! /bin/bash # some comments here... they'll be preceded by commas after C-c ' editing # ls cat myfile # inline comment here, isn't affected #+END_SRC and do C-c ' to pull it into an edit buffer, then C-c ' again to go back to the org file, the result is #+BEGIN_SRC shell-script ,#! /bin/bash ,# some comments here... they'll be preceded by commas after C-c ' editing ,# ls cat myfile # inline comment here, isn't affected #+END_SRC Note the commas in front of each # (comment character). This seems to happen to # characters regardless of the editing mode… I tried a Java snippet with the same results: Before: #+BEGIN_SRC java # hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC After: #+BEGIN_SRC java ,# hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC I'm running the following: Org-mode version 6.06b GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched) Thanks for org-mode… I've been using this amazing piece of software almost as long as I've been using Emacs (a couple of years now). Regards, Don Womick ___ 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] C-c ' prepends , to shell comment lines
After running C-c ' (apostrophe) on a shell script between #+BEGIN_SRC and #+END_SRC tags and returning to the org file using C-c ' again, comments in the script have a , (comma) prepended. If I have #+BEGIN_SRC shell-script #! /bin/bash # some comments here... they'll be preceded by commas after C-c ' editing # ls cat myfile # inline comment here, isn't affected #+END_SRC and do C-c ' to pull it into an edit buffer, then C-c ' again to go back to the org file, the result is #+BEGIN_SRC shell-script ,#! /bin/bash ,# some comments here... they'll be preceded by commas after C-c ' editing ,# ls cat myfile # inline comment here, isn't affected #+END_SRC Note the commas in front of each # (comment character). This seems to happen to # characters regardless of the editing mode... I tried a Java snippet with the same results: Before: #+BEGIN_SRC java # hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC After: #+BEGIN_SRC java ,# hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC I'm running the following: Org-mode version 6.06b GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched) Thanks for org-mode... I've been using this amazing piece of software almost as long as I've been using Emacs (a couple of years now). Regards, Don Womick ___ 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] C-c ' prepends , to shell comment lines
Hi Don, this is on purpose. Putting a comma in front of such lines makes sure Org does not consider them as special, for example when searching for in-buffer options like #+STARTUP. The same thing happens for lines startin with a star, which Org could mistake for an outline heading. The parsers for startup options and for outline structure do not waste time on analyzing the structure of the document to distinguish lines inside and outside code blocks. The commas admittedly look not so good in the Emacs buffer, but they will be stripped for editing with C-c ', and also for export. Hope this explains it. - Carsten On Oct 4, 2008, at 4:17 PM, Womick, Don wrote: After running C-c ‘ (apostrophe) on a shell script between # +BEGIN_SRC and #+END_SRC tags and returning to the org file using C- c ‘ again, comments in the script have a , (comma) prepended. If I have #+BEGIN_SRC shell-script #! /bin/bash # some comments here... they'll be preceded by commas after C-c ' editing # ls cat myfile # inline comment here, isn't affected #+END_SRC and do C-c ‘ to pull it into an edit buffer, then C-c ‘ again to go back to the org file, the result is #+BEGIN_SRC shell-script ,#! /bin/bash ,# some comments here... they'll be preceded by commas after C-c ' editing ,# ls cat myfile # inline comment here, isn't affected #+END_SRC Note the commas in front of each # (comment character). This seems to happen to # characters regardless of the editing mode… I tried a Java snippet with the same results: Before: #+BEGIN_SRC java # hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC After: #+BEGIN_SRC java ,# hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC I’m running the following: Org-mode version 6.06b GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched) Thanks for org-mode… I’ve been using this amazing piece of software almost as long as I’ve been using Emacs (a couple of years now). Regards, Don Womick ___ 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] How to use FILETAGS?
Hello All, I have set a "#+FILETAGS: :Personal:" in my org file (did a C-c C-c to initilalize it.) The tag did not appear in the agenda view like I expected it to. I was hoping to use agenda view filtering on tags to see a subset of tasks with that tag (without having to set that for all tasks.) What else do I need to do for it to work? -- 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] C-c ' prepends , to shell comment lines
On Oct 5, 2008, at 12:42 PM, Womick, Don wrote: Carsten, thanks. That makes sense, once you know about it. I don’t think this behavior is documented. Can you add it the manual? Might prevent a stupid question or two… J Sure, it is now a footnote to the documentation of C-c ' - Carsten Regards, Don From: Carsten Dominik [mailto:[EMAIL PROTECTED] On Behalf Of Carsten Dominik Sent: Sunday, October 05, 2008 5:05 AM To: Womick, Don Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] C-c ' prepends , to shell comment lines Hi Don, this is on purpose. Putting a comma in front of such lines makes sure Org does not consider them as special, for example when searching for in-buffer options like #+STARTUP. The same thing happens for lines startin with a star, which Org could mistake for an outline heading. The parsers for startup options and for outline structure do not waste time on analyzing the structure of the document to distinguish lines inside and outside code blocks. The commas admittedly look not so good in the Emacs buffer, but they will be stripped for editing with C-c ', and also for export. Hope this explains it. - Carsten On Oct 4, 2008, at 4:17 PM, Womick, Don wrote: After running C-c ‘ (apostrophe) on a shell script between # +BEGIN_SRC and #+END_SRC tags and returning to the org file using C- c ‘ again, comments in the script have a , (comma) prepended. If I have #+BEGIN_SRC shell-script #! /bin/bash # some comments here... they'll be preceded by commas after C-c ' editing # ls cat myfile # inline comment here, isn't affected #+END_SRC and do C-c ‘ to pull it into an edit buffer, then C-c ‘ again to go back to the org file, the result is #+BEGIN_SRC shell-script ,#! /bin/bash ,# some comments here... they'll be preceded by commas after C-c ' editing ,# ls cat myfile # inline comment here, isn't affected #+END_SRC Note the commas in front of each # (comment character). This seems to happen to # characters regardless of the editing mode… I tried a Java snippet with the same results: Before: #+BEGIN_SRC java # hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC After: #+BEGIN_SRC java ,# hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC I’m running the following: Org-mode version 6.06b GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched) Thanks for org-mode… I’ve been using this amazing piece of software almost as long as I’ve been using Emacs (a couple of years now). Regards, Don Womick ___ 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] C-c ' prepends , to shell comment lines
Carsten, thanks. That makes sense, once you know about it. I don't think this behavior is documented. Can you add it the manual? Might prevent a stupid question or two... :-) Regards, Don From: Carsten Dominik [mailto:[EMAIL PROTECTED] On Behalf Of Carsten Dominik Sent: Sunday, October 05, 2008 5:05 AM To: Womick, Don Cc: emacs-orgmode@gnu.org Subject: Re: [Orgmode] C-c ' prepends , to shell comment lines Hi Don, this is on purpose. Putting a comma in front of such lines makes sure Org does not consider them as special, for example when searching for in-buffer options like #+STARTUP. The same thing happens for lines startin with a star, which Org could mistake for an outline heading. The parsers for startup options and for outline structure do not waste time on analyzing the structure of the document to distinguish lines inside and outside code blocks. The commas admittedly look not so good in the Emacs buffer, but they will be stripped for editing with C-c ', and also for export. Hope this explains it. - Carsten On Oct 4, 2008, at 4:17 PM, Womick, Don wrote: After running C-c ' (apostrophe) on a shell script between #+BEGIN_SRC and #+END_SRC tags and returning to the org file using C-c ' again, comments in the script have a , (comma) prepended. If I have #+BEGIN_SRC shell-script #! /bin/bash # some comments here... they'll be preceded by commas after C-c ' editing # ls cat myfile # inline comment here, isn't affected #+END_SRC and do C-c ' to pull it into an edit buffer, then C-c ' again to go back to the org file, the result is #+BEGIN_SRC shell-script ,#! /bin/bash ,# some comments here... they'll be preceded by commas after C-c ' editing ,# ls cat myfile # inline comment here, isn't affected #+END_SRC Note the commas in front of each # (comment character). This seems to happen to # characters regardless of the editing mode... I tried a Java snippet with the same results: Before: #+BEGIN_SRC java # hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC After: #+BEGIN_SRC java ,# hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC I'm running the following: Org-mode version 6.06b GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched) Thanks for org-mode... I've been using this amazing piece of software almost as long as I've been using Emacs (a couple of years now). Regards, Don Womick ___ 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] org-bbdb and 1. March
Hi, I noticed a bug with org-bbdb. If I enter a anniversary for the 1st of March, org doesn't show it in the agenda and complains with "Bad sexp at line 9 in /home/sec/org/geburtstage.org: (org-bbdb-anniversaries)" It seems to have to do with the special-casing of the 29th of February in leap-years, i.e. when I comment the following lines: , | ;; we don't want to miss people born on Feb. 29th | (when (and (= m 3) (= d 1) (not (calendar-leap-year-p y))) | (setq annivs (cons annivs (gethash (list 2 29) org-bbdb-anniv-hash ` the bug goes away. Thanks, Tom -- Last week, Japanese scientists explaced... placed explosive detonators at the bottom of Lake Loch Ness to blow Nessie out of the water. -- Napoleon Dynamite ___ 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] RELEASE: Org-mode 6.08a
Hi Carsten On Sun, Oct 5, 2008 at 1:40 AM, Carsten Dominik <[EMAIL PROTECTED]> wrote: > > Hi > > I am releasing Org version 6.08. The biggest news is the integration of > John Wiegley's attachment system that allows to keep a directory with file > attachments for each entry. Great stuff. > > As usually, you can get the release through GIT, or at http://orgmode.org > Great! But it looks like the link http://orgmode.org/org.tar.gz is still pointing at 6.07 Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ 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] RELEASE: Org-mode 6.08a
On Sun, Oct 5, 2008 at 5:21 PM, Carsten Dominik <[EMAIL PROTECTED]> wrote: > Maybe a caching problem? > Maybe. But caching where? -- $ curl -s http://orgmode.org/org.tar.gz | tar tzf - | head -1 org-6.07b/ -- I am not using any proxy (to the best of my knowledge). Are you saying that org.tar.gz is 6.08 for you? Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ 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] RELEASE: Org-mode 6.08a
On Mon, Oct 6, 2008 at 5:59 AM, William Henney wrote: > On Sun, Oct 5, 2008 at 5:21 PM, Carsten Dominik wrote: >> Maybe a caching problem? >> > > Maybe. But caching where? > > -- > $ curl -s http://orgmode.org/org.tar.gz | tar tzf - | head -1 > org-6.07b/ > -- > > I am not using any proxy (to the best of my knowledge). > > Are you saying that org.tar.gz is 6.08 for you? FWIW, it is for me. , | lappy:~/tmp $ curl -s http://orgmode.org/org.tar.gz | tar tzf - | head -1 | org-6.08c/ ` -- 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] RELEASE: Org-mode 6.08a
On Sun, Oct 5, 2008 at 9:21 PM, Manish <[EMAIL PROTECTED]> wrote: > On Mon, Oct 6, 2008 at 5:59 AM, William Henney wrote: > > On Sun, Oct 5, 2008 at 5:21 PM, Carsten Dominik wrote: > >> Maybe a caching problem? > >> > > > > Maybe. But caching where? > > > > -- > > $ curl -s http://orgmode.org/org.tar.gz | tar tzf - | head -1 > > org-6.07b/ > > -- > > > > I am not using any proxy (to the best of my knowledge). > > > > Are you saying that org.tar.gz is 6.08 for you? > > FWIW, it is for me. > > , > | lappy:~/tmp $ curl -s http://orgmode.org/org.tar.gz | tar tzf - | head -1 > | org-6.08c/ > ` > Thanks for checking Manish. Strange. I get org-6.07b from any machine on my home network, but when I ssh to the office and do it from there I get org-6.08c, just like I should. Maybe my home ISP is running a transparent caching proxy... Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ___ 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: RELEASE: Org-mode 6.08a
As always, thanks so much for the hard work! And also to John! On Sun, Oct 05 2008, Carsten Dominik wrote: > New attachment system > - > > You can now attach files to each node in the outline tree. This > works by creating special directories based on the ID of an entry, > and storing files in these directories. Org can keep track of > changes to the attachments by automatically committing changes to > git. See the manual for more information. > > Thanks to John Wiegley who contributed this fantastic new concept > and wrote org-attach.el to implement it. Well! My curiosity's certainly piqued, but I confess that I don't quite get the applications here. Any chance Carsten or John would be willing to let us know how they're using this? Also, the synopsis above and the manual both mention git integration, but I don't understand what exactly is done. It sounds like if the org file lives in a directory that is a git repo, any additions or changes to the files in the auto-generated data/ subdirectory are automatically committed? Is this the right idea? What does the synchronize command do if the directory isn't a git repo? I am thrilled to see a move towards some nice defaults for org and git integration. I see that in org-attach.el you're using shell-command to call git directly. If you don't mind, may I ask if you considered using git.el that is distributed with git (in contrib/emacs/), or even magit (http://zagadka.vm.bytemark.co.uk/magit/)? Thanks again, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgpMIgliYE4Ei.pgp Description: PGP signature ___ 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] custom link type for files in a git repo
Hey org-folk-- I originally included this in my questions to John and Carsten about the new attach system, but decided it deserved its own thread. Apologies if this seems like too much git-spam. Now that org and git are starting to be used in conjunction by more and more of us, would anyone else find it useful to have a custom link type for linking to git objects? I could imagine that calling org-store-link on a file or directory that is in a git repo could link to the current HEAD version, and we could have access to all of the information from calling git-log on the file (commit, author, date, message). Similarly, we'd want to be able to link to arbitrary objects in the repo's history (tags, particular commits, merge points, etc). I think most of this could be done via git.el that is distributed with git. One cool application of this would be a git post-commit-hook that called remember to create a link to the new commit in the relevant project file. This would be a really neat way to keep a timeline for a particular project's commits right alongside all of the other information stored in org. I can also see it being really useful to link to a particular version of a non-org file within some org notes. That file might change, making it difficult to interpret some notes or making specific line numbers irrelevant, but a link to the exact version being discussed would make such notes future proof. I think I could probably get at least a skeleton of these kinds of functions working myself, but I won't be able to get to it until the winter holidays. If these ideas scratch the itches of another org user who wants to code this up, I promise I'll a) use it b) praise your awesomeness, and c) buy you a beer if we're ever in the same city. Thoughts? Other features that could go into this? Thanks, /au -- Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc pgp6LcTwvdvgU.pgp Description: PGP signature ___ 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: RELEASE: Org-mode 6.08a
On Mon, Oct 6, 2008 at 9:56 AM, Austin Frank wrote: > As always, thanks so much for the hard work! And also to John! > > On Sun, Oct 05 2008, Carsten Dominik wrote: > >> New attachment system >> - >> >> You can now attach files to each node in the outline tree. This >> works by creating special directories based on the ID of an entry, >> and storing files in these directories. Org can keep track of >> changes to the attachments by automatically committing changes to >> git. See the manual for more information. >> >> Thanks to John Wiegley who contributed this fantastic new concept >> and wrote org-attach.el to implement it. > > Well! My curiosity's certainly piqued, but I confess that I don't quite > get the applications here. Any chance Carsten or John would be willing > to let us know how they're using this? Let me take a stab at it. 1. Create a test file. test.org 2. Add a task to it. 3. Do `C-c C-a' while on the task. 4. Press `a' from the launcher menu to add an attachment. 5. Select a file to be attached to it (somewhere in a subdirectory named data where org files are contained (careful, it will /move/ the file, not copy it.) 6. Attach another file to it using #3-5 (or use `c'.) 7. Press `C-c C-a' followed by `o' to open an attachment from the options. I am sure there's more to it but this was enough for me to be convinced of it's utility. I just wish that: 1. it copied attachemnts instead of moving them (may be an option), and 2. there was another option to archive the attachment directory from the launcher menu itself (a `Z' for zip, just like there is `D' for deletion.) > > Also, the synopsis above and the manual both mention git integration, > but I don't understand what exactly is done. It sounds like if the org > file lives in a directory that is a git repo, any additions or changes > to the files in the auto-generated data/ subdirectory are automatically > committed? Is this the right idea? What does the synchronize command > do if the directory isn't a git repo? If the directory where attchments are kept/maintained (not the Org files themselves) is turned into a git repo, then org-attach.el will automatically commit changes to it. > > I am thrilled to see a move towards some nice defaults for org and git > integration. I see that in org-attach.el you're using shell-command to > call git directly. If you don't mind, may I ask if you considered using > git.el that is distributed with git (in contrib/emacs/), or even magit > (http://zagadka.vm.bytemark.co.uk/magit/)? I am not sure but I think git.el and magit.el etc. make it easier for the end-user to interact with git but org-attach.el just needs to execute add and commit on the git repo so an additional dependency can be avoided. As always, thank you Carsten and John for the amazing amazing software. -- 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