Re: [O] org to static site?

2017-05-31 Thread Puneeth Chaganti
I really wrestled with getting it to behave initially. I hope the
intro to the docs is a joke, as either I'm an idiot or the author
definitely failed :)
- https://getnikola.com/handbook.html

"DON'T READ THIS MANUAL. IF YOU NEED TO READ IT I FAILED, JUST USE THE
THING."


To be fair to the author, org support is not built into Nikola, and is
coming through a plugin (by yours truly). The remote calls to Emacs for
compiling, and other ugly stuff can make it harder than necessary to deal
with.

- Puneeth


Re: [O] Migrating to org-mode - question on lists

2017-05-14 Thread Puneeth Chaganti
On Mon, May 15, 2017 at 12:44 AM, John Kitchin  wrote:
> This sounds like what TODO keywords are for. For example:
>
> You can easily change the TODO state with shift-left/right on each heading.
>
> #+TODO: TODO CLARIFY | CANCELLED DONE

To make it *look* more similar to your previous workflow, you could
use Unicode symbols as TODO states.
http://www.draketo.de/english/emacs/todo-letters



Re: [O] Writing for Blogger, including images

2015-12-25 Thread Puneeth Chaganti
On Thu, Dec 24, 2015 at 10:28 PM, Peter Davis  wrote:
> I do regularly use org-mode for text blog posts, but I don't know a way to
> include images, preview the results, and then upload the whole thing to one
> of several blogs I have.


There is also org2blog/atom[1] (which doesn't seem to have any recent activity).

[1]  - http://www.emacswiki.org/emacs/Org2BlogAtom



Re: [O] bug in org-habits

2015-11-03 Thread Puneeth Chaganti
On Tue, Nov 3, 2015 at 3:26 PM, Marco Wahl <marcowahls...@gmail.com> wrote:
>
>
> Actually there has been introduced a constraint on the ordering planning
> lines and property drawers in 8.3.  See http://orgmode.org/Changes.html.
>
> This at least invalidates to use PROPERTIES before SCHEDULED afaics.


Yes, that is correct and you can use the `org-repair-property-drawers`
utility function provided to fix your org trees.

-- 
Puneeth



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-26 Thread Puneeth Chaganti
On Sun, Oct 25, 2015 at 4:49 PM, Rasmus <ras...@gmx.us> wrote:
> The latest patch from
>
> Date: Sun, 25 Oct 2015 14:36:16 +0530
>
> looks good to me.  Thanks!

I guess, this can be merged, then?

Thanks!
Puneeth



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-25 Thread Puneeth Chaganti
Hi Nicolas,

On Sun, Oct 25, 2015 at 2:08 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
> Hello,
>
> Puneeth Chaganti <puncha...@gmail.com> writes:
>
>> Here is a patch that works for the case you describe.
>
> Thank you. Some comments follow.

Thanks for your careful review and detailed comments.  I've attached
an updated patch.

-- Puneeth
From 5f0746566cc63c37634b20070a50601c5bb990ab Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <puncha...@muse-amuse.in>
Date: Sun, 25 Oct 2015 14:36:16 +0530
Subject: [PATCH] Widen if target id location is not in the narrow.

If the target location for `org-id-goto' or `org-id-open' is in a
narrowed buffer but not in the narrowed region, the buffer is widened.
---
 lisp/org-id.el | 54 --
 1 file changed, 28 insertions(+), 26 deletions(-)

diff --git a/lisp/org-id.el b/lisp/org-id.el
index f86ef22..0e8ba75 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -292,13 +292,7 @@ It returns the ID of the entry.  If necessary, the ID is created."
   "Switch to the buffer containing the entry with id ID.
 Move the cursor to that entry in that buffer."
   (interactive "sID: ")
-  (let ((m (org-id-find id 'marker)))
-(unless m
-  (error "Cannot find entry with ID \"%s\"" id))
-(org-pop-to-buffer-same-window (marker-buffer m))
-(goto-char m)
-(move-marker m nil)
-(org-show-context)))
+  (org-id-show id #'org-pop-to-buffer-same-window))
 
 ;;;###autoload
 (defun org-id-find (id  markerp)
@@ -634,6 +628,24 @@ optional argument MARKERP, return the position as a new marker."
 		(move-marker (make-marker) pos buf)
 	  (cons file pos
 
+(defun org-id-show (id cmd)
+  "Show an entry with id ID by buffer-switching using CMD.
+CMD is a function that takes a buffer or a string (buffer name)
+as an argument, which will be used to switch to the buffer
+containing the entry with id ID."
+  (let ((m (org-id-find id 'marker)))
+(unless m
+  (error "Cannot find entry with ID \"%s\"" id))
+(unless (equal (current-buffer) (marker-buffer m))
+  (funcall cmd (marker-buffer m)))
+(when (let ((pos (marker-position m)))
+	(or (< pos (point-min))
+		(> pos (point-max
+  (widen))
+(goto-char m)
+(move-marker m nil)
+(org-show-context 'link-search)))
+
 ;; id link type
 
 ;; Calling the following function is hard-coded into `org-store-link',
@@ -659,25 +671,15 @@ optional argument MARKERP, return the position as a new marker."
 (defun org-id-open (id)
   "Go to the entry with id ID."
   (org-mark-ring-push)
-  (let ((m (org-id-find id 'marker))
-	cmd)
-(unless m
-  (error "Cannot find entry with ID \"%s\"" id))
-;; Use a buffer-switching command in analogy to finding files
-(setq cmd
-	  (or
-	   (cdr
-	(assq
-	 (cdr (assq 'file org-link-frame-setup))
-	 '((find-file . switch-to-buffer)
-	   (find-file-other-window . switch-to-buffer-other-window)
-	   (find-file-other-frame . switch-to-buffer-other-frame
-	   'switch-to-buffer-other-window))
-(if (not (equal (current-buffer) (marker-buffer m)))
-	(funcall cmd (marker-buffer m)))
-(goto-char m)
-(move-marker m nil)
-(org-show-context)))
+  (let ((cmd (or
+	  (cdr
+	   (assq
+		(cdr (assq 'file org-link-frame-setup))
+		'((find-file . switch-to-buffer)
+		  (find-file-other-window . switch-to-buffer-other-window)
+		  (find-file-other-frame . switch-to-buffer-other-frame
+	  #'switch-to-buffer-other-window)))
+(org-id-show id cmd)))
 
 (org-add-link-type "id" 'org-id-open)
 
-- 
2.5.0



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-25 Thread Puneeth Chaganti
> If CMD raises an error, you have a dangling marker in the buffer, which
> is not a great idea. I suggest to wrap everything into
> a `unwind-protect' and add (set-marker m nil) as an unwindform, i.e.,

Fixed. Thanks!
From 8ec4f777a2e1078e1fadc48a7c91366200a0d37b Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <puncha...@muse-amuse.in>
Date: Sun, 25 Oct 2015 14:36:16 +0530
Subject: [PATCH] Widen if target id location is not in the narrow.

If the target location for `org-id-goto' or `org-id-open' is in a
narrowed buffer but not in the narrowed region, the buffer is widened.
---
 lisp/org-id.el | 55 +--
 1 file changed, 29 insertions(+), 26 deletions(-)

diff --git a/lisp/org-id.el b/lisp/org-id.el
index f86ef22..73e8f54 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -292,13 +292,7 @@ It returns the ID of the entry.  If necessary, the ID is created."
   "Switch to the buffer containing the entry with id ID.
 Move the cursor to that entry in that buffer."
   (interactive "sID: ")
-  (let ((m (org-id-find id 'marker)))
-(unless m
-  (error "Cannot find entry with ID \"%s\"" id))
-(org-pop-to-buffer-same-window (marker-buffer m))
-(goto-char m)
-(move-marker m nil)
-(org-show-context)))
+  (org-id-show id #'org-pop-to-buffer-same-window))
 
 ;;;###autoload
 (defun org-id-find (id  markerp)
@@ -634,6 +628,25 @@ optional argument MARKERP, return the position as a new marker."
 		(move-marker (make-marker) pos buf)
 	  (cons file pos
 
+(defun org-id-show (id cmd)
+  "Show an entry with id ID by buffer-switching using CMD.
+CMD is a function that takes a buffer or a string (buffer name)
+as an argument, which will be used to switch to the buffer
+containing the entry with id ID."
+  (let ((m (org-id-find id 'marker)))
+(unless m (error "Cannot find entry with ID \"%s\"" id))
+(unwind-protect
+(progn
+  (unless (eq (current-buffer) (marker-buffer m))
+(funcall cmd (marker-buffer m)))
+  (when (let ((pos (marker-position m)))
+  (or (< pos (point-min))
+  (> pos (point-max
+(widen))
+  (goto-char m)
+  (org-show-context 'link-search))
+  (set-marker m nil
+
 ;; id link type
 
 ;; Calling the following function is hard-coded into `org-store-link',
@@ -659,25 +672,15 @@ optional argument MARKERP, return the position as a new marker."
 (defun org-id-open (id)
   "Go to the entry with id ID."
   (org-mark-ring-push)
-  (let ((m (org-id-find id 'marker))
-	cmd)
-(unless m
-  (error "Cannot find entry with ID \"%s\"" id))
-;; Use a buffer-switching command in analogy to finding files
-(setq cmd
-	  (or
-	   (cdr
-	(assq
-	 (cdr (assq 'file org-link-frame-setup))
-	 '((find-file . switch-to-buffer)
-	   (find-file-other-window . switch-to-buffer-other-window)
-	   (find-file-other-frame . switch-to-buffer-other-frame
-	   'switch-to-buffer-other-window))
-(if (not (equal (current-buffer) (marker-buffer m)))
-	(funcall cmd (marker-buffer m)))
-(goto-char m)
-(move-marker m nil)
-(org-show-context)))
+  (let ((cmd (or
+	  (cdr
+	   (assq
+		(cdr (assq 'file org-link-frame-setup))
+		'((find-file . switch-to-buffer)
+		  (find-file-other-window . switch-to-buffer-other-window)
+		  (find-file-other-frame . switch-to-buffer-other-frame
+	  #'switch-to-buffer-other-window)))
+(org-id-show id cmd)))
 
 (org-add-link-type "id" 'org-id-open)
 
-- 
2.5.0



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-24 Thread Puneeth Chaganti
Hi Rasmus,

On Sun, Oct 25, 2015 at 7:54 AM, Puneeth Chaganti <puncha...@gmail.com> wrote:
>
>> However, your patch doesn’t work for me in the following example, starting
>> from emacs -q, adding /tmp/test.org (with the below content) to my agenda
>> list and requiring org-id, org-narrow-to-subtree on foo, and then
>> org-open-at-point on the link
>
> I had patched `org-id-goto' and looks like clicking on links uses
> `org-id-open'.  I will resend a patch.  I wonder if these two
> functions can reuse common code.

Here is a patch that works for the case you describe.

The widening happens even if the target location is in a different
buffer, in this patch.
From ba62042ff37c200d814567a79bcb999aef67581c Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <puncha...@muse-amuse.in>
Date: Sun, 25 Oct 2015 08:24:09 +0530
Subject: [PATCH] Widen if target id location is not in the narrow.

---
 lisp/org-id.el | 52 ++--
 1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/lisp/org-id.el b/lisp/org-id.el
index f86ef22..57d2414 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -292,13 +292,7 @@ It returns the ID of the entry.  If necessary, the ID is created."
   "Switch to the buffer containing the entry with id ID.
 Move the cursor to that entry in that buffer."
   (interactive "sID: ")
-  (let ((m (org-id-find id 'marker)))
-(unless m
-  (error "Cannot find entry with ID \"%s\"" id))
-(org-pop-to-buffer-same-window (marker-buffer m))
-(goto-char m)
-(move-marker m nil)
-(org-show-context)))
+  (org-id-show id 'org-pop-to-buffer-same-window))
 
 ;;;###autoload
 (defun org-id-find (id  markerp)
@@ -634,6 +628,22 @@ optional argument MARKERP, return the position as a new marker."
 		(move-marker (make-marker) pos buf)
 	  (cons file pos
 
+(defun org-id-show (id cmd)
+  "Show an entry with id ID by buffer-switching using CMD."
+  (let ((m (org-id-find id 'marker)))
+(unless m
+  (error "Cannot find entry with ID \"%s\"" id))
+(if (not (equal (current-buffer) (marker-buffer m)))
+	(funcall cmd (marker-buffer m)))
+(when (and (org-buffer-narrowed-p)
+	   (let ((pos (marker-position m)))
+		 (or (< pos (point-min))
+		 (> pos (point-max)
+  (widen))
+(goto-char m)
+(move-marker m nil)
+(org-show-context)))
+
 ;; id link type
 
 ;; Calling the following function is hard-coded into `org-store-link',
@@ -659,25 +669,15 @@ optional argument MARKERP, return the position as a new marker."
 (defun org-id-open (id)
   "Go to the entry with id ID."
   (org-mark-ring-push)
-  (let ((m (org-id-find id 'marker))
-	cmd)
-(unless m
-  (error "Cannot find entry with ID \"%s\"" id))
-;; Use a buffer-switching command in analogy to finding files
-(setq cmd
-	  (or
-	   (cdr
-	(assq
-	 (cdr (assq 'file org-link-frame-setup))
-	 '((find-file . switch-to-buffer)
-	   (find-file-other-window . switch-to-buffer-other-window)
-	   (find-file-other-frame . switch-to-buffer-other-frame
-	   'switch-to-buffer-other-window))
-(if (not (equal (current-buffer) (marker-buffer m)))
-	(funcall cmd (marker-buffer m)))
-(goto-char m)
-(move-marker m nil)
-(org-show-context)))
+  (let ((cmd (or
+	  (cdr
+	   (assq
+		(cdr (assq 'file org-link-frame-setup))
+		'((find-file . switch-to-buffer)
+		  (find-file-other-window . switch-to-buffer-other-window)
+		  (find-file-other-frame . switch-to-buffer-other-frame
+	  'switch-to-buffer-other-window)))
+(org-id-show id cmd)))
 
 (org-add-link-type "id" 'org-id-open)
 
-- 
2.5.0



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-24 Thread Puneeth Chaganti
Hi Rasmus,

On Sat, Oct 24, 2015 at 5:57 PM, Rasmus <ras...@gmx.us> wrote:
>
> However, you need to make sure that it only widens if ID is in the same
> buffer and outside of the narrow.  In particular, when ID is in another
> file you shouldn’t widen.  When it’s within the scope of the narrow it
> shouldn’t widen.  This ALREADY seems to be the case.

I will fix the patch to widen only when the target location is not
within the narrow. But, I don't understand why we shouldn't be
widening if the target location is in a different buffer. Can you
explain?

> However, your patch doesn’t work for me in the following example, starting
> from emacs -q, adding /tmp/test.org (with the below content) to my agenda
> list and requiring org-id, org-narrow-to-subtree on foo, and then
> org-open-at-point on the link

I had patched `org-id-goto' and looks like clicking on links uses
`org-id-open'.  I will resend a patch.  I wonder if these two
functions can reuse common code.

-- 
Puneeth



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-24 Thread Puneeth Chaganti
Hi John,

On Sat, Oct 24, 2015 at 5:03 PM, John Kitchin <jkitc...@andrew.cmu.edu> wrote:
>
> Maybe I am missing something here. I would expect org-id-goto to actually
> get to the id entry when it is used independent of narrowing. When used in a
> program, I would expect this behavior to be wrapped in save-restriction type
> macros, so it wouldn't change your restriction. But when used interactively,
> e.g. when I click on a link, I expect the point to end up on the id entry,
> with the buffer open in front of me, even if that means widening. Is there
> some other expectation that makes sense? I feel like it is up to me to
> decide if breaking the restriction is worth visiting the link, and only by
> clicking on the link or running an interactive command makes that happen.

Thanks for spelling it out so clearly. I wasn't thinking clearly,
before.  I completely agree with you that the user should be the one
deciding if its "worth breaking the restriction".  Any calling code
would be saving restriction, if that is the intent.

+1 on simply widening the buffer, with an optional warning/error that
can be turned on or off with a variable.

-- 
Puneeth



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-23 Thread Puneeth Chaganti
Hi Rasmus,

On Fri, Oct 23, 2015 at 8:57 PM, Rasmus <ras...@gmx.us> wrote:
> It's not obvious that org should change a—potentially—carefully selected
> narrowed region.

I agree. But, am I not explicitly asking to jump to the specified
item. I don't mind the widening, at least when the call is
interactive. I agree with you when some other code is calling it,
though.

> Perhaps you could mimic the way org-edit-special works for this case.

You mean, display the entry in a new buffer, and any changes will be
applied onto the original entry too?

-- 
Puneeth



Re: [O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-23 Thread Puneeth Chaganti
Hi Rasmus,

On Sat, Oct 24, 2015 at 1:52 AM, Rasmus <ras...@gmx.us> wrote:
> Hi Puneeth,
>
> Thanks for the followup.
>
> Puneeth Chaganti <puncha...@gmail.com> writes:
>
>> On Fri, Oct 23, 2015 at 8:57 PM, Rasmus <ras...@gmx.us> wrote:
>>> It's not obvious that org should change a—potentially—carefully selected
>>> narrowed region.
>>
>> I agree. But, am I not explicitly asking to jump to the specified
>> item. I don't mind the widening, at least when the call is
>> interactive. I agree with you when some other code is calling it,
>> though.
>
> I see your point, but I also remember being quite annoyed in the past when
> I lost my narrow because of e.g. inserting a footnote.

I see.

>>> Perhaps you could mimic the way org-edit-special works for this case.
>>
>> You mean, display the entry in a new buffer, and any changes will be
>> applied onto the original entry too?
>
> Yeah, I would prefer that.  Would that work for you or would still prefer
> to have your buffer widened?

I agree that widening a buffer that was narrowed on purpose can be
annoying, sometimes. Most times, I think I wouldn't mind the widening.
That said, I'm not quite sure what is the right fix for this.

I find it weird to have a subtly different thing happening depending
on whether or not the target buffer is narrowed -- entry shown in
normal buffer when no narrowing vs. entry shown in a special/indirect
buffer.

Also, given that no other part of org really uses indirect buffers, I
don't know if this function alone should make use of that feature.

Let me know what you think.

-- Puneeth

PS: I've patched my org sources to do indirect buffers for this, and
will try it out for sometime to see how it feels.



[O] [PATCH] org-id-goto doesn't work if buffer is narrowed.

2015-10-23 Thread Puneeth Chaganti
Hello,

I've attached a one-line patch to fix `org-id-goto' if the target
buffer is narrowed. Let me know if this fix sounds reasonable or if
you have other suggestions!

Thanks,
Puneeth
From 3f3deb84fc2e2739307e820cdfa7de1c6fbf4f23 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti <puncha...@muse-amuse.in>
Date: Fri, 23 Oct 2015 20:21:59 +0530
Subject: [PATCH] Widen buffer in `org-id-goto'.

When the target buffer for `org-id-goto' is already open and narrowed,
it doesn't work.
---
 lisp/org-id.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/org-id.el b/lisp/org-id.el
index f86ef22..149a69b 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -296,6 +296,7 @@ Move the cursor to that entry in that buffer."
 (unless m
   (error "Cannot find entry with ID \"%s\"" id))
 (org-pop-to-buffer-same-window (marker-buffer m))
+(widen)
 (goto-char m)
 (move-marker m nil)
 (org-show-context)))
-- 
2.1.4



[O] Website down?

2015-10-05 Thread Puneeth Chaganti




Re: [O] org-babel for prolog

2015-05-14 Thread Puneeth Chaganti
On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff borg...@gmail.com wrote:

 Confused by the requirement:

 ;; To activate ob-prolog add the following to your init.el file:
 ;;
 ;;  (eval-after-load 'org
 ;;'(require 'org-prolog))


I'm guessing its a typo and should be ob-prolog. The file provides ob-prolog.



Re: [O] strange behavior with org-babel python

2015-05-13 Thread Puneeth Chaganti
On Tue, May 12, 2015 at 2:40 PM, Doyley, Marvin M.
mdoy...@ur.rochester.edu wrote:
 Doy you know why this is the case?

I'm not sure what is going on here, and have not been able to
reproduce your problem.  What version of Emacs and Org-mode are you
using?



Re: [O] strange behavior with org-babel python

2015-05-11 Thread Puneeth Chaganti
On Tue, May 12, 2015 at 6:37 AM, Doyley, Marvin M.
mdoy...@ur.rochester.edu wrote:
 Hi there,

 If run the follow codes I get the following, could someone explain to me what 
 is going wrong
[snip]
 PS in .emacs, I have (setq org-babel-python-command ipython --no-banner 
 --classic --no-confirm-exit)

To reliably paste code blocks into IPython, you will have to use
%cpaste magic command.  See any of these links[1][2][3] for code you
can reuse.

[1] - 
https://github.com/punchagan/dot-emacs/blob/master/punchagan.org#python-customizations
[2] - https://lists.gnu.org/archive/html/emacs-orgmode/2014-03/msg00405.html
[3] - 
http://emacs.stackexchange.com/questions/3859/working-setup-for-ipython-in-babel

Hope that helps,
Puneeth



Re: [O] Org-drill and checking spelling

2015-05-10 Thread Puneeth Chaganti
On Sun, May 10, 2015 at 7:08 PM, Marcin Borkowski mb...@mbork.pl wrote:

 I looked through org-drill docs and didn't find anything like that.
 Maybe someone did it for themselves already?  If not, I'll be happy to
 code it.  I assume that writing a suitable function in Elisp is
 a question of 15 minutes at most.  I don't know, however, where exactly
 I should plug it.  From a quick skim through org-drill.el, I assume that
 either org-drill-entry (less probable) or org-drill-present-.* (more
 probable) is the way to go.  Am I right?


I have a sort of a hack[1], that I implemented to allow me to add
answers, to force me to actually do the drill instead of just assuming
I know the answer and moving ahead.  It is a hack, like I already
mentioned, but can be modified to do what you want.

Also, i would be interested to use this feature!

[1] - http://punchagan.muse-amuse.in/posts/org-drill-for-making-it-stick.html

-- 
Puneeth



Re: [O] minimal config for bug testing/reporting

2015-02-25 Thread Puneeth Chaganti
On Wed, Feb 25, 2015 at 9:28 AM, Subhan Michael Tindall
subh...@familycareinc.org wrote:
 Unfortunately gmane is blocked by my company firewall

How about the same thread on the org-mode mailing list archives?
https://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg0.html



Re: [O] New ELPA addition bogs down Emacs

2015-02-11 Thread Puneeth Chaganti
On Thu, Feb 12, 2015 at 3:26 AM, Lawrence Bottorff borg...@gmail.com wrote:
 Changing to #+STARTUP: showeverything did the trick . . . although I don't
 know why. Why?

One of the reasons I discovered recently was this inconspicuous change
(around v8.2.6) [1], though this may or may not be what is happening
for you.

Calling `org-overview` on large files takes a lot of time and is CPU
intensive.  #+STARTUP: showeverything basically turns off a call to
this, when a file is opened -- so, the file is displayed with
everything shown.

Before this change, `org-overview` had a call to `recenter`, and when
a file was opened by visiting `org-agenda`, the file would be opened
in a buried (not currently visible) buffer. This would case `recenter`
to error out (since it expects the buffer to be current), there by
causing an error in `org-overview`.  Co-incidentally, this saved all
the CPU cycles. This change removed this broken call to `recenter`.

[1] - 
http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=b88c5464db2cb0d90d4f30e43b5e08d2b1c1fcea;hp=8cc4e09950594b2abec2502e9218318570595ac5

-- Puneeth



Re: [O] babel: using empty lines in python code while using session

2015-01-23 Thread Puneeth Chaganti
On Tue, Mar 11, 2014 at 6:05 AM, Arun Persaud apers...@lbl.gov wrote:
 Hi

 I started using python in org babel. The manual, for example [1], points
 to the fact that in session mode you can't have empty lines, since they
 will be interpreted differently. However, if you use ipython you can get
 around this, by using the following in your .emacs:

This is great!  Thanks for investigating this, and letting us all
know!  `%cpaste -q` is great!

The advice function required now is much smaller.  Adding it below, in
case anyone else finds it useful.

---

(defun pc/ipython-use-cpaste (args)
  Add a %cpaste and '--' to the body, for IPython magic!.
  (let ((body (nth 1 args)))
(setcar (cdr args) (format %%cpaste -q\n%s\n--\n body

(advice-add 'org-babel-python-evaluate-session
:filter-args 'pc/ipython-use-cpaste)

---



Re: [O] xml-rpc-request error for wordpress

2015-01-21 Thread Puneeth Chaganti
Shiyuan,

Wordpress has moved all the blogs to https.  You will need to change
your blog's url to https://myname.wordpress.com/xmlrpc.php; instead
of using http://.

See: https://github.com/punchagan/org2blog/issues/177

Best,
Puneeth



Re: [O] [RFC] Change property drawer syntax

2014-12-05 Thread Puneeth Chaganti
Hi Nicolas,

It looks the commit 8d8ad983823c63b13fd6b471ce9db8c2f95e3808 broke
generation of org sparse trees, when searching with properties that
are not all uppercase.   The fix seems to be just removing the
conversion of key to upcase in `org-entry-properties'.  Since the
comparison with special properties is being done by a case insensitive
check, this should be the only fix required?  There are no test
failures, and the conversion to uppercase seems to have been
introduced only in this change, so it should be OK?

diff --git a/lisp/org.el b/lisp/org.el
index e806440..8cbbcc4 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15703,7 +15703,7 @@ strings.
;; after its extension.  We also forbid standard
;; properties to be named as special properties.
(while (re-search-forward org-property-re end t)
- (let* ((key (upcase (org-match-string-no-properties 2)))
+ (let* ((key (org-match-string-no-properties 2))
 (extendp (org-string-match-p \\+\\' key))
 (key-base (if extendp (substring key 0 -1) key))
 (value (org-match-string-no-properties 3)))

Thanks,
Puneeth



Re: [O] [RFC] Change property drawer syntax

2014-12-05 Thread Puneeth Chaganti
On Sat, Dec 6, 2014 at 5:01 AM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 Hello,

 Puneeth Chaganti puncha...@gmail.com writes:

 It looks the commit 8d8ad983823c63b13fd6b471ce9db8c2f95e3808 broke
 generation of org sparse trees, when searching with properties that
 are not all uppercase.

 Could you provide an ECM?

I've attached the ECM.

 The fix seems to be just removing the conversion of key to upcase in
 `org-entry-properties'. Since the comparison with special properties
 is being done by a case insensitive check, this should be the only fix
 required?

 There is another check, case-sensitive this time, for duplicate
 properties just below.

 Anyway, I think the problem lies in the fact that, somewhere in the
 internals of the function generating the spare tree, there is
 a case-sensitive search.

Yes, that is correct.  I have a few code blocks that work and don't
work, in the ECM, if at all you want to look at them.


sparse-tree-ecm.org
Description: Binary data


[O] Bug: header-args:C++ doesn't work

2014-12-04 Thread Puneeth Chaganti
Hello,

I was helping out ablephar` on IRC and they found that setting a
file property `header-args:C++` does not work.

After some edebug magic, I discovered that org has a feature that lets
you append property values! (Not the best way to discover a great
feature, I must say! :-)

The fix could either be a documentation fix. (I would've tried using
cpp instead of C++, if I knew that was supported). But, this would
still have some users seeing things broken and then looking up docs or
trying out the alternative.

OR

a hacky fix, (better for the users ?), could be to consider KEY+ to
be indicating appending, but KEY++ to not.  Thoughts?


Thanks,
Puneeth
diff --git a/lisp/org.el b/lisp/org.el
index e806440..fc850b8 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15415,7 +15415,8 @@ Being in this list makes sure that they are offered for completion.)
 (defun org--update-property-plist (key val props)
   Associate KEY to VAL in alist PROPS.
 Modifications are made by side-effect.  Return new alist.
-  (let* ((appending (string= (substring key -1) +))
+  (let* ((appending (and (string= (substring key -1) +)
+ (not (string= (substring key -2) ++
 	 (key (if appending (substring key 0 -1) key))
 	 (old (assoc-string key props t)))
 (if (not old) (cons (cons key val) props)


Re: [O] [patch] Minor worg patch for org-drill documentation

2014-12-01 Thread Puneeth Chaganti
Hi Bastien,

Thanks for applying the patch.  I am back to using org-mode quite
regularly.  Can I get commit access to worg, so I can fix things as I
notice them?  Thanks!

-- Puneeth



Re: [O] [org-drill] understand description-lists

2014-11-25 Thread Puneeth Chaganti
On Tue, Nov 25, 2014 at 4:59 PM, Rasmus ras...@gmx.us wrote:
 Hi,

 I would like to use org-drill to train my Spanish vocabulary.  However,
 it's essential that I can also export my file for offline-review.  I
 don't want to maintain two files.  I like to organize my file like this:

 *** Days
 - lunes :: Monday
 - martes:: Tuesday
 - miércoles :: Wednesday
 - jueves:: Thursday
 - viernes   :: Friday
 - sábado:: Saturday
 - domingo   :: Sunday

 Is it possible to have org-drill realize that each side of the
 description item is a side of a card, and that the closest headline is a
 topic?

org-drill sets properties on each drill headline, to keep track of
your progress while learning that item.  So, I'm not sure it would be
easy to do without maintaining two files.

One idea could be to have a function that creates (and updates/merges)
an org-drill file from the normal file that you use for export.
org-drill ships with functions [1] for merging two drill
files/buffers.

Paul, the author of org-drill, may have better ideas, though.

[1] - http://orgmode.org/worg/org-contrib/org-drill.html#sec-11

-- 
Puneeth



[O] [patch] Minor worg patch for org-drill documentation

2014-10-23 Thread Puneeth Chaganti
Hi,

This is a minor patch to the documentation of org-drill.

Thanks for the wonderful extension to org, Paul!

-- 
Puneeth
From 1e4d3a5a673090ac5ce82a804c38fac2fcbb978e Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti puncha...@muse-amuse.in
Date: Thu, 23 Oct 2014 17:48:29 +0530
Subject: [PATCH] Org-drill uses || instead of | for cloze hints.

This was changed in org-drill version 2.3.7
---
 org-contrib/org-drill.org | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/org-contrib/org-drill.org b/org-contrib/org-drill.org
index d3baa3f..a226132 100644
--- a/org-contrib/org-drill.org
+++ b/org-contrib/org-drill.org
@@ -146,7 +146,7 @@ When the user presses a key, the text Tallinn will become visible.
 
 
 Clozed text can contain a hint about the answer. If the text surrounded
-by single square brackets contains a `|' character (vertical bar), all text
+by single square brackets contains `||' (two vertical bars), all text
 after that character is treated as a hint. During testing, the hint text will
 be visible when the rest of the text is hidden, and invisible when the rest of
 the text is visible.
@@ -154,8 +154,8 @@ the text is visible.
 Example:
 
 #+BEGIN_EXAMPLE
-Type 1 hypersensitivity reactions are mediated by [immunoglobulin E|molecule]
-and [mast cells|cell type].
+Type 1 hypersensitivity reactions are mediated by [immunoglobulin E||molecule]
+and [mast cells||cell type].
 #+END_EXAMPLE
 
 #+BEGIN_QUOTE
@@ -257,7 +257,7 @@ There is more than one fact in this statement -- you could create a single
 
 #+BEGIN_EXAMPLE
 The capital city of [New Zealand] is [Wellington], which is located in
-the [North|North/South] Island and has a population of about [400,000].
+the [North||North/South] Island and has a population of about [400,000].
 #+END_EXAMPLE
 
 But this card will be difficult to remember. If you get just one of the 4
@@ -291,7 +291,7 @@ the North Island.
 
 ,* Fact
 The capital city of New Zealand is Wellington, which is located in
-the [North|North/South] Island.
+the [North||North/South] Island.
 #+END_EXAMPLE
 
 However, this is really cumbersome. Multicloze card types exist for this
@@ -339,7 +339,7 @@ will be hidden.
   :END:
 
 The capital city of [New Zealand] is [Wellington], which is located in
-the [North|North/South] Island and has a population of about [400,000].
+the [North||North/South] Island and has a population of about [400,000].
 #+END_EXAMPLE
 
 
-- 
1.9.1



Re: [O] Org + Elpy Python + IPython

2014-05-08 Thread Puneeth Chaganti
On Thu, May 8, 2014 at 8:22 AM, Ken Mankoff mank...@gmail.com wrote:
 I now have Org, Python, IPython, and Elpy (including (elpy-use-ipython))
 all running together in session and non-session mode.


Awesome.  Thanks for sharing!



Re: [O] --more--?

2013-12-24 Thread Puneeth Chaganti
On Tue, Dec 24, 2013 at 6:24 PM, Sharon Kimble boudic...@talktalk.net wrote:
 I'm publishing a rather long org-mode document and want it to break
 after the first paragraph  so that you have to explicitly click the
 document title to get it all to show. In WordPress its done with
 '--more--' but what is it done with in org-mode please? I've been
 looking at the org-mode 'org manual 8.2.3c' but cant find it. Is there
 such a thing in org-mode please?


You just put it in as raw html.  See the last item in org2blog's FAQ [1].

[1] - https://github.com/punchagan/org2blog#faq



Re: [O] FYI: Github updated Org ruby gem in github.com

2013-10-17 Thread Puneeth Chaganti
Cool! Thanks for letting us know.



[O] Org-mode support for Nikola (static site generator in Python)

2013-10-14 Thread Puneeth Chaganti
tl,dr: Created a new plugin to support org-syntax for Nikola.
Attached patch for worg page update.

Hi,

I haven't been using org-mode very heavily for the past couple of
years, but intend to get back to using it, atleast for writing.

I have been using Nikola (Python based static site generator) for one
of the sites I maintain and found it pretty nice.  It has quite a few
features that I was looking for in static-site generators.  I
particularly like the feature of publishing (building/deploying) only
those posts/files which have changed since the previous publish. It
shouldn't be too hard to implement, and I could've added something to
o-blog, but I didn't want the responsibility of maintaining another
piece of code! [Those who use/tried org2blog know what I mean.]

Anyway, I've written a few lines of code to add support for an
emacs/orgmode based compiler for Nikola and have migrated my old
blog from o-blog to Nikola.  Some of you may be interested to try it.
It may be also useful to add a link to worg.  I have attached a patch
for the same, since I don't have write access to it.

Thanks!
Puneeth

PS:  The plugin is here - http://plugins.getnikola.com/#orgmode and my
blog is here - http://punchagan.muse-amuse.in/


0001-Add-link-to-Nikola-plugin-for-blogging.patch
Description: Binary data


Re: [O] org-blog 0.9 release

2013-05-01 Thread Puneeth Chaganti
Mike,

On Wed, May 1, 2013 at 4:18 PM, Michael Alan Dorman
mdor...@ironicdesign.com wrote:
 Puneeth Chaganti puncha...@gmail.com writes:
 Or, if it seems reasonable, we could club the two projects into a
 single one to give the users something that's better than a sum of the
 parts!
[..]
 If you don't mind, I will start looking at the org2blog code and seeing
 how cleanly I can implement these additional capabilities as handlers or
 filters for the exporter---and then maybe we could look for that
 back-end to live in contrib, and both our codebases could take advantage
 of it?

That seems like a good plan.  I've been meaning to get this going for
some time, but have been quite busy off-late.  I'll try to make some
time for it, soon.

Thanks!
Puneeth



Re: [O] org-blog 0.9 release

2013-04-30 Thread Puneeth Chaganti
On Wed, May 1, 2013 at 8:35 AM, Rafael rvf0...@gmail.com wrote:
 Michael Alan Dorman mdor...@ironicdesign.com writes:

 I've just tagged version 0.90 of my org-blog minor mode on github[1].

 This is intended to be a simple but powerful assistant to using Org for
 writing blog posts---there's only two commands at this point, and I
 don't anticipate that number going beyond three anytime soon (though I
 do have that third one planned! ;)

 At the moment it only supports WordPress blogs, but the design is very
 modular, and adding support for other back-ends (including, I hope,
 static publishing back-ends) should be relatively painless.  If it's
 not, I would be happy to change things to make it so, once I understand
 the issues.

 Thanks a lot for your work! I just tried it and it worked for me, to
 post a basic org-mode file. Are you aware of
 https://github.com/punchagan/org2blog? It also has the purpose to post
 to wordpress from org, however its author has been busy lately, and
 apparently major work is going to be needed to make all its features to
 work with the new exporter.

Or, if it seems reasonable, we could club the two projects into a
single one to give the users something that's better than a sum of the
parts!

Cheers!
Puneeth (aka punchagan)



Re: [O] state of the art for html5 presentations?

2012-09-18 Thread Puneeth Chaganti
On Tue, Sep 18, 2012 at 8:24 PM, John Hendy jw.he...@gmail.com wrote:
[..]

 Has anyone used this? I just cloned it and created the example
 presentation. For Chromium, Google-Chrome, and Firefox on Linux, I get
 messages that my browser is not supported. Is there some specific
 plugin I'm supposed to have for this to work? What is it, exactly,
 that it's finding missing?

You'll need to clone impress.js repo and copy over the js and css
directories, to the directory of your html file.  The README gives
instructions for the same [
https://github.com/kinjo/org-impress-js.el#quick-start ]



Re: [O] org for blogger

2012-08-31 Thread Puneeth Chaganti
On Sat, Sep 1, 2012 at 8:09 AM, Rustom Mody rustompm...@gmail.com wrote:
 What is the best way to use orgmode to prepare posts for blogger?

 Sorry if this is a FAQ; I did google around and best I get is
 http://orgmode.org/worg/org-blog-wiki.html which does not seem to have
 something specifically for blogger.

I haven't used it, but there's org2blog/atom by tehom --
http://repo.or.cz/r/org2blog.git/



Re: [O] org2blog: referencing to other blog posts?

2012-08-28 Thread Puneeth Chaganti
On Wed, Aug 29, 2012 at 3:01 AM, Steinar Bang s...@dod.no wrote:
 Puneeth Chaganti puncha...@gmail.com:

 I hope we are talking of org2blog/wp.  There's another package called
 org2blog authored by tehom, that works for blogger.

 Yes, org2blog/wp.

 [snip!]
 Also is there a way to link related articles, that will show up in the
 wordpress blog.

 I haven't been using WordPress (and org2blog) for quite some time now.

 I tried various blogging frameworks for org, and this was the first one
 I was able to make work, so I've sort of stuck with it.

Great!  I'm glad it worked for you. :^)

 Is there a new feature in WordPress that lets you link related
 articles?

 I don't know.  I know very little of WP out of the setup needed to use
 org2blog.  I guess this would probably be me making a WP feature
 request...? :-)

Yes, I've searched for plugins that let you do this, but didn't find
any that work with WP 3.4 (on a quick search).

 Or are you using some plugin?

 Nope.  I'm using a spam limiting plugin (can't remember its name), but
 that's all.

I meant, a plugin for having related posts show up.  Nevermind.

--
Puneeth



Re: [O] org2blog: referencing to other blog posts?

2012-08-27 Thread Puneeth Chaganti
Hi,

I hope we are talking of org2blog/wp.  There's another package called
org2blog authored by tehom, that works for blogger.

On Sun, Aug 26, 2012 at 11:44 PM, Steinar Bang s...@dod.no wrote:
 Is there a way to reference other blog posts in org2blog, other than
 using absolute URLs for that article on the server?

Currently, there's no way to reference other blog posts, other than
using absolute URLs.

 I will use absolute URLs as a workaround, if there is no way, but it
 would feel better to work inside the system.

I think using absolute URLs would be the most robust way of doing
this, but of course, this process can be simplified, by providing a
way of inserting those links from within org2blog.  I imagine this
would use link abbreviations, and provide some sort of a completion
mechanism to insert links to other posts.  I'll try and get to this,
some time soon.

 Also is there a way to link related articles, that will show up in the
 wordpress blog.

I haven't been using WordPress (and org2blog) for quite some time now.
 Is there a new feature in WordPress that lets you link related
articles?  Or are you using some plugin?

Hope this helps,
Puneeth



Re: [O] org2blog: referencing to other blog posts?

2012-08-27 Thread Puneeth Chaganti
On Mon, Aug 27, 2012 at 11:50 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 Hi,

 I hope we are talking of org2blog/wp.  There's another package called
 org2blog authored by tehom, that works for blogger.

 On Sun, Aug 26, 2012 at 11:44 PM, Steinar Bang s...@dod.no wrote:
 Is there a way to reference other blog posts in org2blog, other than
 using absolute URLs for that article on the server?

 Currently, there's no way to reference other blog posts, other than
 using absolute URLs.

 I will use absolute URLs as a workaround, if there is no way, but it
 would feel better to work inside the system.

 I think using absolute URLs would be the most robust way of doing
 this, but of course, this process can be simplified, by providing a
 way of inserting those links from within org2blog.  I imagine this
 would use link abbreviations, and provide some sort of a completion
 mechanism to insert links to other posts.  I'll try and get to this,
 some time soon.

I've implemented something very basic and crude for this.  Feel free
to try it out and let me know if it works for you and suggest
improvements.

Thanks,
Puneeth



Re: [O] Kudos to Auréliens and Andrew who finished the GSoC successfully!

2012-08-25 Thread Puneeth Chaganti
On Fri, Aug 24, 2012 at 9:41 PM, Bastien b...@altern.org wrote:
 I'm happy to announce Aurélien and Andrew both passed the final
 evaluation for their GSoC.  Join me in congratulating them :)

Aurélien and Andrew, Congratulations on successfully completing your
GSoC, and the wonderful projects!



Re: [O] Stupid questions. this time: org-protocol

2012-06-17 Thread Puneeth Chaganti
On Thu, Jun 14, 2012 at 8:39 PM, scrawler scraw...@gmail.com wrote:
 Hey guys,

 Maybe there can be a subject-line label just for me:
 [O:sq]
 because I have a million of them. I really don't want to clutter up the
 list, though.

 I haven't used org-protocol yet. I've been staying away from it because
 it uses emacsclient, and my experience has caused me to dislike
 emacsclient. Will org-protocol work out of the box with gnuclient?

I haven't tried gnuclient myself, but from what I gather from the
docs, it is very similar to emacsclient and org-protocol doesn't do
anything special with emacsclient, that should prevent it from working
with gnuclient.  You should definitely give it a try.

HTH,
Puneeth



Re: [O] The best way to keep up-to-date with new features?

2012-06-17 Thread Puneeth Chaganti
On Thu, Jun 14, 2012 at 10:09 PM, Enda enda...@yahoo.com wrote:
 If you have read the manual, what is the best way to keep up-to-date
 with new features?, DiffPDF between the manual that was read and
 latest manual?

There's a nice change log here -- http://orgmode.org/Changes.html

Also, every release comes with a very detailed changelog from Bastien.

HTH,
Puneeth



Re: [O] Org - markdown

2012-05-29 Thread Puneeth Chaganti
On May 30, 2012 8:54 AM, brian powell briangpowel...@gmail.com wrote:

 * PanDoc!

 http://johnmacfarlane.net/pandoc/

As far as I know Pandoc only has an org output.  So org  markdown won't
work, but org  html  markdown will work.

You could also try org-jekyll without having to convert to markdown.


Re: [O] source code folding

2012-05-28 Thread Puneeth Chaganti
On Mon, May 28, 2012 at 8:42 PM, Petro Khoroshyy khoros...@gmail.com wrote:
 Hi all.
 I can fold source code block using TAB key on begin_src block. Is there
 a shortcut to do it within source code block, without navigation to
 begin_src line?

I'm not sure there's such a short cut, but you can define one for yourself.

A simple function (without any sort of error checking) like the one
below can be bound to a key-binding of your choice.


(defun my/collapse-src-block ()
  Collapses a source block when called from inside a block.
  (interactive)
  (org-babel-goto-src-block-head)
  (org-cycle))


Hope that helps,
Puneeth



Re: [O] README.org on github

2012-05-22 Thread Puneeth Chaganti
On Tue, May 22, 2012 at 9:24 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 Hi Tom,

 On Mon, May 21, 2012 at 3:29 PM, Tom Regner t...@goochesa.de wrote:
 Hi,

 suvayu ali fatkasuvayu+li...@gmail.com writes:

 I see source blocks formated as example blocks. Is that the same as you
 are seeing? If so, I wouldn't call that support for source blocks. I
 would expect to see syntax highlighting like pure source files on
 GitHub.

 org-ruby is in it's current form not capable to do that, but it's
 currently actively developed [fn:1] (maybe not for org-mode standards :-D, 
 the last
 commit was 8 days ago) and there are a few items on the todo list.

 And all shortcomings aside, an update on github/markups side would at
 least make the usage of org-documents on github bearable.


 Sorry if my comments seemed like a complaint/gripe. When an org-mode
 user says, feature bla is supported they usually mean the whole
 thing, with all the bells and whistles (e.g. source block would imply
 with syntax highlighting). So I just wanted to clarify it was
 incorrect to say source blocks are supported.

Yes, you are right.  Apologies for overlooking that.  But, this
feature shouldn't be too hard to add using albino or pygments.rb.  I
tried poking around org-ruby's code a little bit, but hit a roadblock,
which was a bit too much for my limited ruby skills.  I'll open an
issue on org-ruby and see where it goes.

 Only sufficient demand for org-documents will foster betterment I guess.


 Yes I realise that. I have never interacted with GitHub staff for
 feature requests. Being a long time org-mode user (post-6.33, that's
 ages in org years :-p), maybe I should give that a try.

I've tweeted to them at least a couple of times (in the past few
months) regarding this, but haven't yet got any response from them.
May be someone should send an email to supp...@github.com.  I got back
replies for other things in about a week or so, on email.  In general,
GitHub staff seem like a nice bunch of people to me.

Thanks!
Puneeth



Re: [O] README.org on github

2012-05-21 Thread Puneeth Chaganti
On Mon, May 21, 2012 at 2:08 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 19/05/12 09:35, Bastien wrote:
 Hi Rainer,

 Rainer M Krug r.m.k...@gmail.com writes:

 I would like to use a README.org file on github, and also include code 
 blocks in the
 README.org - is this possible?

 No.

 To bad ...

Actually, embedding code blocks in the README does work[1][2].  You
need to use all upper case keywords, i.e., BEGIN_SRC or BEGIN_EXAMPLE
instead of begin_src or begin_example.

[1] - https://github.com/punchagan/experiri/blob/master/README.org
[2] - https://raw.github.com/punchagan/experiri/master/README.org



Re: [O] README.org on github

2012-05-21 Thread Puneeth Chaganti
On Mon, May 21, 2012 at 2:32 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 21/05/12 10:57, Puneeth Chaganti wrote:
 On Mon, May 21, 2012 at 2:08 PM, Rainer M Krug r.m.k...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

 On 19/05/12 09:35, Bastien wrote:
 Hi Rainer,

 Rainer M Krug r.m.k...@gmail.com writes:

 I would like to use a README.org file on github, and also include code 
 blocks in the
 README.org - is this possible?

 No.

 To bad ...

 Actually, embedding code blocks in the README does work[1][2].  You need to 
 use all upper case
 keywords, i.e., BEGIN_SRC or BEGIN_EXAMPLE instead of begin_src or 
 begin_example.

 Great - then I will change this in my .org file.

 Now I just began to prefer the small-letter version...

Yes, I too prefer the lower-case version, and this has been fixed in
the latest version of org-ruby.  But, the version that GitHub uses is
a very old one, and somebody opened an issue [1] to update the version
being used.

[1] - https://github.com/github/markup/issues/117



Re: [O] Error in org2blog/wp-login: Must provide a callback function to url-retrieve

2012-05-01 Thread Puneeth Chaganti
Steinar,

Thanks for debugging the problem and sending us updates on it. :)

I was trying to reproduce the problem, before getting back to you on this.

Thanks,
Puneeth



Re: [O] [FYI/noise] GSoC 2012 new email

2012-04-23 Thread Puneeth Chaganti
On Tue, Apr 24, 2012 at 3:29 AM, Thorsten Jolitz tjol...@googlemail.com wrote:

 Hi List,
 my GSoC 2012 proposal was accepted, so I'm going to spend this summer
 implementing bugpile - a bugtracker for GNU Emacs Org-mode.
 I use the opportunity to change to a different (more serious) email,
 just in case you wonder.

Cool! Congratulations!  Looking forward to see and use your work!

All the Best!
Puneeth



Re: [O] Error 500 with org2blog with wordpress

2012-03-26 Thread Puneeth Chaganti
On Sat, Mar 17, 2012 at 12:58 AM, Achim Gratz strom...@nexgo.de wrote:
 Alvar Maciel alvarmac...@gmail.com writes:
 I'm a begginer so... be nice with me please. I manage to use org-mode
 for almost all my daily work. I'm trying to post to my blog (worpdtess
 3.3.1) from org-mode using org2blog. But when I try to post something
 I get an 500 error. this is the output of emacs mini-buffer
 progn: Error during request: 500
 Can you give me any clue to solve this

 HTTP error 500 is an internal server error (due to misconfiguration or
 other problems).  You have to solve the problem on the server, not the
 client.

I would suspect that xml-rpc is not enabled [1] on your blog.

-- Puneeth

[1] - 
http://www.cmmourik.com/enable-wordpress-xml-rpc-remote-publishing-interface



Re: [O] question about org2blog and latex

2012-03-15 Thread Puneeth Chaganti
On Thu, Mar 15, 2012 at 10:21 PM, Nick Dokos nicholas.do...@hp.com wrote:
 Stephen J. Barr stephenjb...@gmail.com wrote:

 Hello,

 I am working on blogging using org2blog, allowing me to update my
 wordpress blog with org-mode. All is working well except latex. I was
 expecting latex images but instead just get things like:

 $latex z * k^\theta$


 Not sure what that latex is doing in there. The following works as normal
 HTML for me:

 --8---cut here---start-8---
 * foo
 Here's a formula


 $\int_0^\infty e^{-x^2} dx = {{\sqrt{\pi}}\over{2}}$

 $latex z * k^\theta$
 --8---cut here---end---8---

 A few things: the default way to export fragments is through MathJax:
 there may be some sort of a setup problem that prevents MathJax from
 working with the blogging stuff.  You might want to fall back to
 png images and see if that works better for you (you'll need dvipng),
 although that's usually seen as a step back.

I'd like to clarify that the initial implementation of org2blog, IIRC,
did make use of the png images and upload them to the blog.  Sometime,
later support was added to support Wordpress's LaTeX plugin. To render
your LaTeX using this, in your wordpress blog, just set the variable
`org2blog/wp-use-wp-latex`.  [Btw, I hope you are indeed talking about
org to wordpress org2blog. There's another one that publishes to
blogspot, with the same name.]

 The preferred way to enter math in latex (and in org) is with \(...\)
 for inline formulas and \[...\] for displayed ones. $...$ will work with
 certain restrictions noted in the org docs (see below) for the inline
 case, $$...$$ does *not* work for the displayed case (it's not even legal
 LaTeX).

 C-h v org-export-with-LaTeX-fragments RET has the details.

 (info (org) LaTeX fragments) has more on $...$, mathJax etc.

Also, all of these ways which do work with HTML export should work
with the org2blog.  Also, thanks Nick for the detailed answer. :)

HTH,
Puneeth



Re: [O] setting default pdf viewer

2012-03-11 Thread Puneeth Chaganti
Prad,

On Sun, Mar 11, 2012 at 1:31 PM, prad p...@towardsfreedom.com wrote:
 how do i set evince as the default.

 right now xpdf is, but if i remove it, following a link to a pdf file
 produces nothing.

 i'm using gnome and evince is the default there (eg through nautilus),
 so somehow it seems that orgmode has decided to make xpdf the default
 instead.

Customize the variable `org-file-apps'.  Look at documentation of the
variable, for an example and options available.

--
Puneeth



Re: [O] Org-mode workshop: has anyone done this already?

2012-03-07 Thread Puneeth Chaganti
On Wed, Mar 7, 2012 at 8:08 PM, Karl Voit devn...@karl-voit.at wrote:
 Hi!

 I do have the please of conducting an Org-mode workshop (3x4 hours)
 for up to twelve participants.

 So far I am planning to show my (advanced) setup in form of my
 workflows for misc things as a teaser and start with basics more or
 less in the order of the Org-mode manual.

 I am sure that there are other people having had the pleasure of
 doing such a workshop before. Is there any course material available
 so that I might take a look on the content?

Venkatesh Choppella (cc-ed) and I have done a basic workshop [1].  But
this was a very basic workshop and it looks like you wish to do a much
more advance one.  Also, Venkatesh teaches a course in his university
that introduces students to Org-mode [2], which might be of some help.

[1] - https://github.com/vxc/org-mode-ws
[2] - http://pascal.iiit.ac.in/~itws2

--
Puneeth



Re: [O] Minimal overhead Org-mode blogging system

2012-01-16 Thread Puneeth Chaganti
On Sun, Jan 15, 2012 at 12:08 PM, Steinar Bang s...@dod.no wrote:
 Puneeth Chaganti puncha...@gmail.com:
 [snip!]
 https://github.com/punchagan/blog-files

 I've added a short README that tries to include the things that you
 are looking for.  But, it's something I wrote up quickly.  Feel free
 to ask any specific questions.

 I've been trying to use it, but I keep running into issues with
 reprise.pay.

 The latest one, is:

 Traceback (most recent call last):
  File reprise.py, line 258, in module
    env.get_template('cloud.html'))
  File reprise.py, line 140, in generate_tag_cloud
    maxFreq = max(t['freq'] for t in tag_freq)
 ValueError: max() arg is an empty sequence

 The code for this, is:

 def generate_tag_cloud(entries, template):
    tags = sum([e['tags'] for e in entries], [])
    tag_freq = [{'tag': tag, 'freq': tags.count(tag)} for tag in set(tags)
                if tags.count(tag)  3]
    maxFreq = max(t['freq'] for t in tag_freq)
    ...

 I've debugged this with pdb (`M-x pdb'), and tag_freq is empty.

 If I'm interpreting the python code correctly (I don't know python...)
 only those tags that have more than 3 occurrences will be in the
 tag_freq collection...?

 My problem is that I have only one article, my first, so obviously the
 tag_freq collection will stay emtpy, and reprise.py will crash...

 I tried removing the test, ie.

 def generate_tag_cloud(entries, template):
    tags = sum([e['tags'] for e in entries], [])
    tag_freq = [{'tag': tag, 'freq': tags.count(tag)} for tag in set(tags)]
    maxFreq = max(t['freq'] for t in tag_freq)
    ...

 but that just gave me a different error (division by zero):

  File reprise.py, line 257, in module
    env.get_template('cloud.html'))
  File reprise.py, line 147, in generate_tag_cloud
    'freq': t['freq']} for t in tag_freq]
  File reprise.py, line 144, in normalize
    return min_r + (val - min_f) * (max_r - min_r) / float (max_f - min_f)

 Any ideas of how to proceed?

This is totally home brew stuff.  Sorry for the trouble you are
having, in getting it to run.

Try commenting out the lines 257, 258 in reprise.py and see if that
works for you.  I'll take a look later, and try to see if this can be
improved.

Thanks,
Puneeth



Re: [O] Export all clocks or find last clock out. Is it possible?

2011-12-11 Thread Puneeth Chaganti
On Sun, Dec 11, 2011 at 1:10 PM, Mikhail Titov m...@gmx.us wrote:
 I've tried both your suggestions before and that is why I'm asking here
 in the list.

Sorry that it didn't help. But, IMHO all of these details should've
gone into the first mail.  Nevermind, hopefully someone else would be
able to help you out, from here.

--
Puneeth



Re: [O] Including source code *from* a file in #+BEGIN_SRC blocks

2011-12-10 Thread Puneeth Chaganti
On 12/11/11, Sankalp sankalpkh...@gmail.com wrote:
 Hi,
 I've been using org mode's #+BEGIN_SRC ... code #+END_SRC feature to
 display source code.

 I was wondering if there's a way to include code from an external file.
 Like the *\lstinputlisting* feature in the LaTeX *listings* package.

You could use the #+INCLUDE directive.
http://orgmode.org/manual/Include-files.html

HTH,
Puneeth



Re: [O] Export all clocks or find last clock out. Is it possible?

2011-12-10 Thread Puneeth Chaganti
On 12/11/11, Mikhail Titov m...@gmx.us wrote:
 Hello!

 I wonder if I can see all clocks in a table or export them somehow as
 csv or alike?

Look at `org-clock-report' function [
http://orgmode.org/manual/The-clock-table.html ]

Also, hitting R in the agenda mode enables a clockreport mode.

 Also how can I navigate to the last clock out?

`org-clock-goto' function can do this for you.

Use `M-x org-clock-goto' (By default, it is bound to C-c C-x C-j)

HTH,
Puneeth



Re: [O] Minimal overhead Org-mode blogging system

2011-12-08 Thread Puneeth Chaganti
On Thu, Dec 8, 2011 at 7:49 PM, Karl Voit devn...@karl-voit.at wrote:
 * Puneeth Chaganti puncha...@gmail.com wrote:
 Hi Kurt,

 Almost :-)

Aarrgggh! Really sorry about that! My sleep deprivation showing it's effect. :-)


 On Thu, Dec 8, 2011 at 6:01 AM, Karl Voit devn...@karl-voit.at wrote:
 * Puneeth Chaganti puncha...@gmail.com wrote:

 https://github.com/punchagan/blog-files

 ... I really do like your blog (and found several very interesting
 entries *g*) but I (can not and) do not want to use Wordpress.

 I'm sorry that the repository doesn't have a README,

 You have to add a README.org to the project - it's definitely worth
 it :-)

 I'd wish for a short description of:
 * software requirements
 * blog workflow
 * limits

 It's part of my letter to Santa Claus already *g*

I've added a short README that tries to include the things that you
are looking for.  But, it's something I wrote up quickly.  Feel free
to ask any specific questions.

Hope that helps,
Puneeth



Re: [O] Minimal overhead Org-mode blogging system

2011-12-07 Thread Puneeth Chaganti
On 12/4/11, Karl Voit devn...@karl-voit.at wrote:
 Hi!

 I got a nice idea on how a very easy to use Org-mode blog system
 should look like.

 Currently, I am using Serendipidy with web-based editor to write
 HTML. Org-mode enabled me to write blog entries and export it to
 HTML. Then I paste the HTML and have to modify minor things (images,
 ...) a bit. I guess the time from finishing the Org-mode entry to
 the final blog entry is approximately ten to twenty minutes.

 Overall, I do not want to do this process when I just want to
 quickly write a view paragraphs within a couple of minutes. I need
 a workflow with much less annoying overhead.

 Therefore I sat down and thought about a workflow that should be
 enough for writing simple weblog entries:

   - create an Org-mode heading (anywhere!)
   - make sure that there is an (uniq) :ID: property
   - add the tag :blog: to heading
   - write content, subheadings, ...
   - change state of top-heading to DONE
 - this enables blog entries «in the queue»
   - (manually) invoke generation-script

 This enables me quick blogging with a list of advantages:

   - a blog entry can be located anywhere in all of my Orgmode files
   - no extra formatting steps
   - very small (almost non-existent) overhead to create a blog entry
   - no duplicate information
 - updates only in Orgmode, not HTML or any in-between format
   - static (fast) pages
   - self-hosting without any fancy services behind like RDBS

I have a system, that does most of what you are looking for.

https://github.com/punchagan/blog-files

Though it seems to be a little more complicated than it needs to be,
it works for me and I haven't had the time and motivation to simplify
it.

--
Puneeth



Re: [O] Minimal overhead Org-mode blogging system

2011-12-07 Thread Puneeth Chaganti
Hi Kurt,

On Thu, Dec 8, 2011 at 6:01 AM, Karl Voit devn...@karl-voit.at wrote:
 * Puneeth Chaganti puncha...@gmail.com wrote:
 On 12/4/11, Karl Voit devn...@karl-voit.at wrote:

 Therefore I sat down and thought about a workflow that should be
 enough for writing simple weblog entries:

   - create an Org-mode heading (anywhere!)
   - make sure that there is an (uniq) :ID: property
   - add the tag :blog: to heading
   - write content, subheadings, ...
   - change state of top-heading to DONE
     - this enables blog entries «in the queue»
   - (manually) invoke generation-script

 This enables me quick blogging with a list of advantages:

   - a blog entry can be located anywhere in all of my Orgmode files
   - no extra formatting steps
   - very small (almost non-existent) overhead to create a blog entry
   - no duplicate information
     - updates only in Orgmode, not HTML or any in-between format
   - static (fast) pages
   - self-hosting without any fancy services behind like RDBS

 I have a system, that does most of what you are looking for.

 https://github.com/punchagan/blog-files

 ... I really do like your blog (and found several very interesting
 entries *g*) but I (can not and) do not want to use Wordpress.

I'm sorry that the repository doesn't have a README, but this solution
doesn't use Wordpress.  It basically uses the publishing mechanism of
org-mode and is based on ideas (and code) from org-jekyll and
reprise.py (https://github.com/uggedal/reprise).

-- Puneeth



Re: [O] github: (partial) support for Org-mode files

2011-10-09 Thread Puneeth Chaganti
Hi Karl,

Org-mode support in GitHub is provided by the package org-ruby[1][2].
Looking at the source code and test-cases here would give you a fair
idea of what is supported and what is not.  Also, the version of
org-ruby presently deployed on GitHub is a bit old, and the latest
release comes with quite a few fixes and new features.

One of us could probably write to GitHub, asking them to update the
package being deployed.  I tried contacting them on twitter a few
weeks back, but didn't work.

Thanks,
Puneeth

[1] - https://github.com/bdewey/org-ruby
[2] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00067.html

On Sun, Oct 9, 2011 at 7:10 PM, Karl Voit devn...@karl-voit.at wrote:
 Hi!

 Some of you might have already noticed that github[1] does provide
 some basic support[2] for Org-mode files. Therefore you can use
 files like «README.org» instead of «README» or «README.txt».

 I started to use Org-mode format for readme files recently[3]. I
 realized, that there is only partial support of Org-mode syntax on
 github.

 In order to test those settings I ended up in committing various
 tests in my project just to look how github presents my readme file.

 Today I created a simple github project for testing purposes (only):

            https://github.com/novoid/github-orgmode-tests

 Probably you might have the very same demand for testing and want to
 join me in using this Org-mode-github test repository instead of
 creating one for your own :-)


 PS: is there an already existing Org-mode demofile containing all
 basic syntax examples?

  1. http://github.com
  2. https://github.com/github/markup#readme
  3. https://github.com/novoid/Memacs
 --
 Karl Voit






-- 
Puneeth



Re: [O] Org Mode export: xelatex

2011-08-18 Thread Puneeth Chaganti
On Thu, Aug 18, 2011 at 9:09 PM, Rainer Thiel r.th...@uni-jena.de wrote:
 I am aware I am not the only one who wants to export text written in
 org-mode in pfd through XeLaTeX.  In fact, I am aware of Kieran
 Healy's blog and of
 http://emacs-fu.blogspot.com/2011/04/nice-looking-pdfs-with-org-mode-and.html,
 but can't seem to find a solution that wotks for me.  I use Emacs 23
 on a Windows Vista machine.

 I do manage to persuade org-mode to use XeLaTeX instead of pdfLaTeX,
 but org-mode insists upon including the fontenc and inputenc packages
 even though in org-export-latex-default-packages-alist both packages
 are set to nil.  So compilation of the tex-file produced by org-mode
 fails.  I can heal this by manually removing both packages from the
 tex-file, but this, of course, detracts much from the convenience I am
 used to in using org-mode.

 Any hints how to solve this problem?

Did you look at this FAQ entry[1]? I think this is what you are looking for.

[1] - http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export

--
Puneeth



Re: [O] missing todo's in agenda after emacs/org upgrade

2011-08-18 Thread Puneeth Chaganti
On Thu, Aug 18, 2011 at 11:11 PM,  peter.fri...@agfa.com wrote:
 Hi Suvayu,

 On 18 Aug 2011, at 18:44, suvayu ali wrote:

 It might be helpful to know how your TODO entries are formatted. Maybe
 its not the setup, but how the agenda files are formatted that was
 causing the issue?

 In any case, good to hear it is resolved now.

 That’s the problem, the issue is *not* resolved… the todo items show up in 
 the global todo list, but still not in the daily agenda view.

As far as I understand, this has been changed. Agenda view doesn't
show the TODO list anymore, by default.  Look at the following commit
for details.

--
commit 770c2ddfba5c173d1b33e7b247b49a8188994f76
Author: Bernt Hansen be...@norang.ca
Date:   Tue Apr 5 01:05:43 2011 +

Remove obsolete functionality to add todo list in front of agenda

* lisp/org-agenda.el: Remove obsolete code for adding todo list in front
of the agenda

Todo lists should be built with the TODO list or a block agenda instead.

This code was triggered for C-u R in block agendas which is used to
limit the clock report to the current tags filter applied to the
agenda.


HTH,
Puneeth



Re: [O] Reg: Publishing in html using property tags

2011-08-16 Thread Puneeth Chaganti
On Mon, Aug 15, 2011 at 1:44 PM, Bodhi thebb...@gmail.com wrote:
 Dear Puneeth,
 The org-mode link works magically. Thanks!
 But the same doesn't work for the generated html page.
 The pages get built, and the ID gets created, the html href contains that
 unique ID, but the browser is unable to load foo.html from the link in
 bar.html.

 Did you get any success on that front? Any ideas? I'm running org-mode 7.4.

If both the files are exported, it seems to work, doesn't it?
Make sure both, foo.org and bar.org are exported.

--
Puneeth



Re: [O] Reg: Publishing in html using property tags

2011-08-16 Thread Puneeth Chaganti
On Tue, Aug 16, 2011 at 11:01 PM, Bodhi thebb...@gmail.com wrote:
 Nope. No luck. :(
 Both files are exported, because I can individually access foo.html and
 bar.html.

Where does the link in foo.html point to? Can you send the sample
files that you are using? Or a simplified version of them?

--
Puneeth



Re: [O] Reg: Publishing in html using property tags

2011-08-16 Thread Puneeth Chaganti
On Wed, Aug 17, 2011 at 8:51 AM, Bodhi thebb...@gmail.com wrote:
 Here you go.

I'm not able to make my org-mode use the PROPERTY ID that's already
been defined by you. I got rid of it and created a new ID. The export
works for me.  I tested with realease_7.4 without any of my
customizations. (`emacs -Q`).  I don't know what could be wrong with
your setup.

But, I noticed one thing. Your IDs had capital alphabets, where as my
ID never gets capital alphabets.  I don't think this should be the
cause of the problem, but that's the only difference I could notice.

Can someone with more knowledge about org-id and the html export help?

--
Puneeth



Re: [O] Reg: Publishing in html using property tags

2011-08-15 Thread Puneeth Chaganti
Hi Bodhi,

On Mon, Aug 15, 2011 at 9:20 AM, Bodhi thebb...@gmail.com wrote:
 Hi Puneeth,
 Let us assume I have two files: foo.org and bar.org.
 foo.bar contains:
 :PROPERTIES:
 :CUSTOM_ID: testing
 :END:

 bar.org contains
 [[CUSTOM_ID:testing]]

 Now, I wish to click on bar.org's link, and it should open up the file
 foo.org. Is there a way to do so? To be more specific, I wish to put any
 link without any relative or absolute addressing, and I should still be able
 to jump to links, using some kind of invisible data base which org-mode
 uses. And I wish to convert it to html for publishing these documents, using
 the htmlize.el by Niksic.

To be able to do this, you should let org-mode create a universal ID
for the heading that you want to link to.  The following steps should
help you do this.

1. Make sure you have the org-id module loaded.
   : (require 'org-id)
2. In the file foo.org, go to the first heading (presuming that's the
   heading you want to link to).
3. Call the function =org-store-link=.
   : M-x org-store-link
4. Go to the location in bar.org, where you want to insert the link.
5. Call the function =org-insert-link=.
   : M-x org-insert-link
   Use the arrow keys to select the link you want to insert, from the
   list.

HTH,
Puneeth



Re: [O] Reg: Publishing in html using property tags

2011-08-14 Thread Puneeth Chaganti
Hi Bodhi,

On Sun, Aug 14, 2011 at 9:43 PM, Bodhi thebb...@gmail.com wrote:
 Hi,
 I am trying to publish my content in html using the ID and PROPERTY tags.
 But the end result is a href with no content.


Can you give a more detailed description of what you are trying to do?
A simplified example to replicate what you are trying to do, would be
handy.

--
Puneeth



Re: [O] howto paste html table in org-mode

2011-07-26 Thread Puneeth Chaganti
On Wed, Jul 27, 2011 at 3:20 AM, OSiUX xu...@osiux.com.ar wrote:
 How to paste (and convert automatically) html table in org-table?

There was a discussion [1], very recently, on converting a html doc to
an org file. It should help.

HTH,
Puneeth

[1] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg01226.html



Re: [O] convert html file into orgmode .org file?

2011-07-21 Thread Puneeth Chaganti
On Thu, Jul 21, 2011 at 2:08 PM, Jude DaShiell jdash...@shellworld.net wrote:
 Can org-mode do this so that a user of orgmode can edit the page in
 orgmode then export the edited work back out to an html file?

Org-mode cannot import html files.  But, you could try using Pandoc[1]
for this.

[1] - http://johnmacfarlane.net/pandoc/

--
Puneeth



Re: [O] [bug] Org-capture bug due to recent dired-buffers related feature

2011-07-20 Thread Puneeth Chaganti
Nicolas,

On 7/19/11, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Puneeth Chaganti puncha...@gmail.com writes:

 The recent commit that adds a dired-buffer related feature, breaks
 org-capture when dired-mode has not been loaded.  The dired-buffers
 variable becomes available only when dired-mode has been loaded
 atleast once.

 True. This should be fixed now. Let me know if this isn't the case.

Fixed, thanks!

--
Puneeth



Re: [O] Use org for jobs/resume writing?

2011-07-19 Thread Puneeth Chaganti
Hi Nathan,

On 7/19/11, Nathan Neff nathan.n...@gmail.com wrote:
[..]
 Now that org has odt-export and of course HTML, etc. I'm re-thinking using
 .org
 for resume writing.

 Anyone else?

I have recently started using Org-mode for my Resume [1].  I have
created a custom LaTeX stylesheet, that I use, for the LaTeX export.

HTH,
Puneeth

[1] -  https://github.com/punchagan/resume



[O] [bug] Org-capture bug due to recent dired-buffers related feature

2011-07-19 Thread Puneeth Chaganti
Hi Nicolas,

The recent commit that adds a dired-buffer related feature, breaks
org-capture when dired-mode has not been loaded.  The dired-buffers
variable becomes available only when dired-mode has been loaded
atleast once.

Thanks,
Puneeth

Git bisect output, just for reference.

819fbec64160c3c33884b116734c01f56be7606b is the first bad commit
commit 819fbec64160c3c33884b116734c01f56be7606b
Author: Nicolas Goaziou n.goaz...@gmail.com
Date:   Mon Jul 18 17:42:01 2011 +0200

org-capture: %F is directory when capture starts in a dired buffer

* lisp/org-capture.el (org-capture): if no file is associated to
  current buffer, check dired buffer and try to retreive a possibly
  directory associated.

:04 04 2ae961f6f609dbc28aa8e727df5a04465991645d
02aef5b5063d0642d4b260b7567a1e135bf73a14 M  lisp



Re: [O] Exporting to wiki syntax from org mode

2011-07-18 Thread Puneeth Chaganti
On Sun, Jul 17, 2011 at 1:21 PM, damitr dam...@gnowledge.org wrote:
 Hi,

 Is there any option for exporting .org file to a wiki syntax?
 If there is none, are there any people working on it?

There's an experimental generic exporter written by Bastien. It comes
along with an experimental exporter to Mediawiki format[1]. It can be
easily ported to any other wiki system. I have something that works
for MoinMoin syntax [2].

Thanks,
Puneeth

[1] - 
http://orgmode.org/w/?p=org-mode.git;a=tree;f=EXPERIMENTAL;h=9403cfb0871d25c64c4aa9704ebaeacfcd42498c;hb=HEAD
[2] - https://github.com/punchagan/omnium-gatherum/blob/master/org-moinmoin.el



Re: [O] Exporting to wiki syntax from org mode

2011-07-18 Thread Puneeth Chaganti
Hi Bastien,

On 7/18/11, Bastien b...@altern.org wrote:
[..]

 I have something that works for MoinMoin syntax [2].

 Looks great, looking forward an official release :)

I'm not sure, what you mean by an official release.  I'm attaching
the org-mm.el file here.  Please add it to the EXPERIMENTAL directory,
if you think that's the right way to go about it. Otherwise, tell me
what would be the best way to officially release it.


 PS: Maybe you can just fix s/Bastien G./Puneeth Chaganti in this
 file, so that I will not be credited for this piece of code? :)

:)

Sorry for leaving your name, against code that you didn't write.  I
had been using this exporter for a particular task I had been doing,
during a period of time.  Didn't really bother about minor details and
making the code public.

--
Puneeth
;;; org-mm.el --- MoinMoin backend for org-export.el
;;
;; Copyright 2010, 2011 Puneeth Chaganti
;;
;; Emacs Lisp Archive Entry
;; Filename: org-mm.el
;; Version: 0.2
;; Author: Puneeth Chaganti punchagan [at] gmail [dot] com
;; Keywords: MoinMoin Org export
;; Description: MoinMoin exporter for Org
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program; if not, write to the Free Software
;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;;
;; A portion of this code is based on org-mw.el by Bastien Guerry.
;;
;;; Commentary:
;;
;; org-mm.el lets you convert Org files to MoinMoin files using
;; the org-export.el experimental engine.
;;
;; Put this file into your load-path and the following into your ~/.emacs:
;;   (require 'org-mm)
;;
;; You also need to fetch Org's git repository and add the EXPERIMENTAL/
;; directory in your load path.
;; 
;; Fetch Org's git repository:
;; 
;; ~$ cd ~/install/git/
;; ~$ git clone git://repo.or.cz/org-mode.git
;;
;; Put this in your .emacs.el:
;; 
;; (add-to-list 'load-path ~/install/git/org-mode/EXPERIMENTAL/)
;;
;; Export Org files to MoinMoin: M-x org-mm-export RET
;;
;;; Todo:
;; 
;; - handle radio links
;; - support caption and attributes in tables
;; - better handline of source code and examples
;; - handle inline HTML
;;
;;; Code:

(require 'org-export)

(defvar org-mm-emphasis-alist
  '((* '''%s''' nil)
(/ ''%s'' nil)
(_ __%s__ nil)
(+ --%s-- nil)
(= `%s` nil))
  The list of fontification expressions for MoinMoin.)

(defvar org-mm-export-table-table-style )
(defvar org-mm-export-table-header-style )
(defvar org-mm-export-table-cell-style )

(defun org-mm-export ()
  Export the current buffer to MoinMoin.
  (interactive)
  (setq org-export-current-backend 'mm)
  (org-export-set-backend mm)
  ;; FIXME see the problem `org-mm-export-footnotes'
  ;; (add-hook 'org-export-preprocess-final-hook 'org-mm-export-footnotes)
  (add-hook 'org-export-preprocess-before-backend-specifics-hook
'org-mm-export-src-example)
  (org-export-render)
  ;; (remove-hook 'org-export-preprocess-final-hook 'org-mm-export-footnotes)
  (remove-hook 'org-export-preprocess-before-backend-specifics-hook 
   'org-mm-export-src-example))

(defun org-mm-export-header ()
  Export the header part.
  (let* ((p (org-combine-plists (org-infile-export-plist)
org-export-properties))
	 (title (plist-get p :title))
	 (author (plist-get p :author))
	 (date (plist-get p :date))
 (level (plist-get p :headline-levels)))
(insert (format = %s by %s =\n\n title author))
(if (plist-get p :table-of-contents)
(insert (format TableOfContents(%s)\n level)

(defun org-mm-export-first-lines (first-lines)
  Export first lines.
  (insert (org-export-render-content first-lines) \n)
  (goto-char (point-max)))

(defun org-mm-export-heading (section-properties)
  Export MoinMoin heading
  (let* ((p section-properties)
	 (h (plist-get p :heading))
	 (s (make-string (1+ (plist-get p :level)) ?=)))
(insert (format %s %s %s\n s h s

(defun org-mm-export-quote-verse-center ()
  Export #+BEGIN_QUOTE/VERSE/CENTER environments.
  (let (rpl e)
(while (re-search-forward ^[ \t]*ORG-\\([A-Z]+\\)-\\(START\\|END\\).*$ nil t)
  (setq e (if (equal (match-string 2) END) / )) 
  (setq rpl 
	(cond ((equal (match-string 1) BLOCKQUOTE) blockquote)
		  ((equal (match-string 1) VERSE) pre)
		  ((equal (match-string 1) CENTER) center)))
  (replace-match (concat  e rpl) t

(defun org-mm-export-fonts ()
  Export fontification.
  (while (re-search-forward org-emph-re nil t)
(let* ((emph

[O] [bug] Lists get appended with / when using EXPERIMENTAL/org-mw.el

2011-07-18 Thread Puneeth Chaganti
Hi Bastien,

Exporting an org-file using org-mw-export appends a / at the end of
lists (both ordered and unordered).

-- 
Puneeth



Re: [O] Release 7.6

2011-07-07 Thread Puneeth Chaganti
On Thu, Jul 7, 2011 at 12:46 PM, Bastien b...@altern.org wrote:
 Dear all,

 I'm releasing Org 7.6.

Congratulations to Bastien and everybody else who made this release possible!

--
Puneeth



Re: [O] Release 7.6

2011-07-07 Thread Puneeth Chaganti
Bastien

On Thu, Jul 7, 2011 at 12:46 PM, Bastien b...@altern.org wrote:
 Dear all,

 I'm releasing Org 7.6.

 You can get it from the website as an archive:

  http://orgmode.org/org-7.6.zip
  http://orgmode.org/org-7.6.tar.gz

Looks like a new tag with release_7.6 has not been created.  Shouldn't
one be created?

Thanks,
Puneeth



Re: [O] [Announce] A GitHub Issues interface for Org-mode

2011-06-01 Thread Puneeth Chaganti
Hi William,

On Mon, May 30, 2011 at 8:08 PM, William Henney when...@gmail.com wrote:
[..]
 Is the v2 API missing some features you need? Maybe it would be better
 to use that until v3 is out of beta

v2 API doesn't provide access to the new features of Issues, added in
version 2 of GitHub Issues, like Milestones. I thought adding the
Milestone due date as a deadline would be useful. But, as you suggest,
I should probably try things with APIv2 until the v3 is more stable.

[..]

 Well, the wiping of text directly below an issue's level 2 heading is
 a data-loss bug, so I would suggest that you certainly don't do that
 :)

Yes. I'll fix it, as soon as I get some time and am able to move stuff to v2.

 With respect to sub-headings (level 3 or below) that are added by hand
 to the github.org file, I would suggest that by default you do not
 sync them with GitHub. Maybe you could have a function called
 something like org-ghi-make-heading-a-comment that would work in a
 similar way to org-ghi-make-todo-an-issue. However, it seems that
 GitHub issue comments only understand markdown syntax, not org syntax,
 so unless the comment is just simple text it would require an export
 step (https://github.com/alexhenning/ORGMODE-Markdown might help
 there).

Thanks for the suggestions, will look into them. :)

--
Puneeth



Re: [O] [Announce] A GitHub Issues interface for Org-mode

2011-05-29 Thread Puneeth Chaganti
William,

Thanks for trying it out!

On Mon, May 30, 2011 at 9:16 AM, William Henney when...@gmail.com wrote:

 This looks very promising - thanks! It is a shame though that the body
 of the issue and the comments don't get synched (I see that you have
 these listed as TODO). I also noticed that if I type any text directly

This is Experimental and I am open to suggestions, but one of the
problems I have is that the GitHub API v3 is unstable and causing some
trouble. I initially had a version, where the BODY of the issue was
being sync-ed, but after a while, I stopped getting the body of the
issue in the JSON. I'm not sure what went wrong, but a simple GET
using curl also failed to give me the body.  I shall look at it again,
in a short while.


 under the issue's heading in my org file, then this text is /wiped/
 when I execute =org-ghi-update-current-issue=. However, any
 subheadings (and their text) do survive, but they never get synched
 back to GitHub.

I haven't figured out what would be the right way to do this. I am
open to any suggestions from your side.

Thanks,
Puneeth



Re: [O] HTML Syntax Highlighting Questions

2011-05-29 Thread Puneeth Chaganti
On Mon, May 30, 2011 at 7:55 AM, Avdi Grimm a...@avdi.org wrote:
 On Sun, May 29, 2011 at 9:32 PM, Jambunathan K kjambunat...@gmail.com wrote:
 Let me guess - It is either htmlize not being in your load path during
 the batch run or font lock being not being explicity turned on during
 the batch run or font-locking simply not making sense during batch
 mode. Ultimately htmlize or for that matter htmlfontify seem to depend
 on the fontification done by the fontification engine.

 Hm. Bonus question, then: source code highlighting via Pygments works
 great with LaTeX export and the minted package. How hard would it be
 to use Pygments instead of htmlize/htmlfontify for HTML-exported
 syntax highlighting?

I've some hackish code, which I use to publish my blog. It
essentially, looks at all the code blocks in the html output and
replaces them with Pygments output for them.  The code is here [1]

HTH,
Puneeth

[1] https://github.com/punchagan/org-hyde/blob/master/org-hyde.el#L109



Re: [O] automatically closing example?

2011-05-24 Thread Puneeth Chaganti
Hello,

On Tue, May 24, 2011 at 1:38 PM, Steinar Bang s...@dod.no wrote:
 Is there a shortcut to quickly add an #+END_EXAMPLE at the same
 indentation level as the #+BEGIN_EXAMPLE I have just typed?  I have
 googled but not found.

 I know that I can type C-j # + b M-TAB e M-TAB, but what I get then is
 basically what I wanted after I had completed the BEGIN_EXAMPLE.

 Ie. I never want an unbalanced BEGIN_EXAMPLE.


e TAB, will do that for you.

Look at http://orgmode.org/org.html#Easy-Templates

HTH,
Puneeth



[O] [Announce] A GitHub Issues interface for Org-mode

2011-05-24 Thread Puneeth Chaganti
Hello Orgsters,

Issue Tracker integration with Org-mode has been something that a lot
of people have been looking for. Being the GitHub addict, that I am, I
decided to hack up something that integrates GitHub issues with
Org-mode.

It presently allows
- Importing all open issues from a project into an org-file. [Milestone
  due dates (if any) are added as Deadlines.
- Closing Issues, Editing Tags, Changing Issue Name
- Convert a TODO item into an Org-mode issue.

However, it uses APIv3 of GitHub, which is Beta. So, expect some
erratic behaviour. :)

I have put up my code here [1]. The code isn't all that clean and
robust, but it works. Hope atleast some of you will find it useful.
Any suggestions, feedback and code help is more than welcome.

Thanks,
Puneeth

[1] https://github.com/punchagan/org-ghi



Re: [O] Org mode articles

2011-05-16 Thread Puneeth Chaganti
On Tue, May 17, 2011 at 10:22 AM, Nick Dokos nicholas.do...@hp.com wrote:
 Eden Cardim edencar...@gmail.com wrote:

 I just started publishing a series of articles about org-mode,
 describing my personal setup from start to finish. Thought I'd mention
 it here in case anyone's interested. The entire article is written in
 org-mode, published using org2blog and is bootstrappable as-is, in order
 to mimic my emacs/org-mode setup.


 OK, but don't keep it a secret: tell us where we can read it ;-)

:-) I found it here [1] . Came here from the url in Eden's signature.

[1] - http://blog.edencardim.com

-- 
Puneeth



Re: [O] Agenda view has no TODO items

2011-04-26 Thread Puneeth Chaganti
On Tue, Apr 26, 2011 at 10:48 AM, Noorul Islam K M noo...@noorul.com wrote:

 Recent pull from master changed the behaviour of the default agenda
 view. It used to list the TODO items also but now it only displays the
 scheduled one. Am I missing something?

The feature of showing all unfinished TODO items before the agenda is
considered obsolete and has been removed [1]. Instead, a TODO list or
a block agenda should be used.

[1] - 
http://orgmode.org/w/?p=org-mode.git;a=commit;h=770c2ddfba5c173d1b33e7b247b49a8188994f76

--
Puneeth



Re: [O] How can I review a day?

2011-04-20 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 9:41 PM, Bernt Hansen be...@norang.ca wrote:
 Robert Inder rob...@interactive.co.uk writes:

 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

 You want the regular agenda not the timeline view probably.
 Just try this:

  | Key     | Details                         |
  |-+-|
  | C-c a a | Show today's agenda             |
  | l       | Enable display of clock details |

 This should show all details of when you clocked in, what etc, and you
 can visit the clock line directly by hitting TAB on the clock detail
 line in the agenda.

Sorry for being unclear with my help. I had actually meant the same thing.

--
Puneeth



Re: [O] How can I review a day?

2011-04-19 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 7:22 PM, Robert Inder rob...@interactive.co.uk wrote:
 I've recently started using Org mode in earnest, and in particular using the
 time logging stuff.

 It's brilliant.

 But I have a problem.  I sometimes (well, OK, fairly often, actually!)
 forget to clock in/out of jobs.  That's OK, org is my life in plain text, 
 and
 I can simply edit the relevant clock lines to create a correct record
 of the day.

 BUT

 I worry about messing things up --- getting the times wrong, and either
 leaving gaps or creating overlapping activities, or both.

 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

Hit l in agenda mode to enable the log mode. Is this what you need?

-- 
Puneeth



Re: [O] How can I review a day?

2011-04-19 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 8:36 PM, Robert Inder rob...@interactive.co.uk wrote:
 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

 That's a really neat feature, and it's very close to what I want.  But
 not quite right.

 It shows me the sequence of activities I logged time to, and how much
 time I logged.  But it doesn't show me WHAT  time I logged   I want to
 check that (after I have manually edited one or more CLOCK lines) I
 haven't missed some time or double-logged any.

What version of org-mode are you using? Org-mode does show me WHAT
time I logged. For instance,


  org-scratch: 20:21-20:51 Clocked:   (0:30) World
  org-scratch: 20:49-20:49 Clocked:   (0:00) Hello


Also, I tried this with out my emacs config. So this is the default
behaviour with the latest version of org-mode. (I don't know if this
was added recently)

HTH,
Puneeth



Re: [O] How can I review a day?

2011-04-19 Thread Puneeth Chaganti
On Tue, Apr 19, 2011 at 8:54 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 On Tue, Apr 19, 2011 at 8:36 PM, Robert Inder rob...@interactive.co.uk 
 wrote:
 On 19 April 2011 14:59, Puneeth Chaganti puncha...@gmail.com wrote:


 So I'd like a way to review the time-line for a day: a way to see all the
 clock-in/clock-out pairs in order, so I can see any gaps or overlaps.

 Hit l in agenda mode to enable the log mode. Is this what you need?

 Whoa!  Close, but not touching.

 I nearly mis-read/understood you.  I initially thought you just meant
 ^C-a-L -- Timeline for current buffer. Which doesn't show any clock-related
 information.

 But I realise you actually meant that after I've done that, I should type l
 to get Log mode, it DOES show clock-related information.

 That's a really neat feature, and it's very close to what I want.  But
 not quite right.

 It shows me the sequence of activities I logged time to, and how much
 time I logged.  But it doesn't show me WHAT  time I logged   I want to
 check that (after I have manually edited one or more CLOCK lines) I
 haven't missed some time or double-logged any.

 What version of org-mode are you using? Org-mode does show me WHAT
 time I logged. For instance,

 
  org-scratch: 20:21-20:51 Clocked:   (0:30) World
  org-scratch: 20:49-20:49 Clocked:   (0:00) Hello
 

 Also, I tried this with out my emacs config. So this is the default
 behaviour with the latest version of org-mode. (I don't know if this
 was added recently)

 HTH,
 Puneeth


Sorry, for replying to myself.  I just realized there has been a
similar thread very recently [0]. Discussion is on, to automate the
checks for overlapping/missing times.

[0] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00437.html


-- 
Puneeth



Re: [O] org-mediawiki.el problem: can't work

2011-04-10 Thread Puneeth Chaganti
Hi,

2011/4/10 林帅 mysnowls@163.
 Problem #2:

     When I M-x org-mw-export,  an error occurs:

     save-current-buffer: Symbol's function definition is void:
 org-export-mark-list-ending

     As I found, `org-export-mark-list-ending` is used in line 264,
 org-export.el

        ;; Mark end of lists
   (org-export-mark-list-ending backend)

     I grep-ed the whole git cloned directory and find nothing more of this
     org-export-mark-list-ending function.


     Anyone can work well on exporting org in mediawiki format? Any help
 would be appreciated!

The exporter hasn't been updated in a long while and with a lot of
recent development activity, this seems to have become non-functional.

I have a quick patch [I haven't done extensive testing or
code-reading] that seems to make it work for a simple file. I am not
really aware of all the changes that org-exp.el has undergone, so
someone more familiar with it may be able to help better.

Hope it helps,
Puneeth
diff --git a/EXPERIMENTAL/org-export.el b/EXPERIMENTAL/org-export.el
index f04ffaf..bc2a77e 100644
--- a/EXPERIMENTAL/org-export.el
+++ b/EXPERIMENTAL/org-export.el
@@ -262,7 +262,7 @@ on this string to produce the exported version.
   (run-hooks 'org-export-preprocess-after-tree-selection-hook)
 
   ;; Mark end of lists
-  (org-export-mark-list-ending backend)
+  (org-export-mark-list-end)
 
   ;; Handle source code snippets
   ;; (org-export-export-replace-src-segments-and-examples backend)
@@ -284,7 +284,7 @@ on this string to produce the exported version.
 
   ;; Get rid of drawers
   (org-export-remove-or-extract-drawers
-   drawers (plist-get parameters :drawers) backend)
+   drawers (plist-get parameters :drawers))
 
   ;; Get the correct stuff before the first headline
   (when (plist-get parameters :skip-before-1st-heading)
@@ -307,7 +307,7 @@ on this string to produce the exported version.
   ;; Select and protect backend specific stuff, throw away stuff
   ;; that is specific for other backends
   (run-hooks 'org-export-preprocess-before-selecting-backend-code-hook)
-  (org-export-select-backend-specific-text backend)
+  (org-export-select-backend-specific-text)
 
   ;; Protect quoted subtrees
   (org-export-protect-quoted-subtrees)
diff --git a/EXPERIMENTAL/org-mediawiki.el b/EXPERIMENTAL/org-mediawiki.el
index ab5eda1..4797925 100644
--- a/EXPERIMENTAL/org-mediawiki.el
+++ b/EXPERIMENTAL/org-mediawiki.el
@@ -179,7 +179,7 @@
 
 (defun org-mw-export-lists ()
   Export lists
-  (while (re-search-forward org-item-beginning-re nil t)
+  (while (re-search-forward (org-item-beginning-re) nil t)
 (move-beginning-of-line 1)
 (org-list-to-mw (org-list-parse-list t
 


Re: [O] Merging a list and wildcard expansion in org-agenda-files

2011-04-10 Thread Puneeth Chaganti
On Sun, Apr 10, 2011 at 1:16 AM, Adrian C. an...@sysphere.org wrote:
 Hello,
 I read the FAQ entry How can include all org files in a directory in my
 agenda? and I'd like to merge both examples from the answer for my
 agenda-files.

 To include all org files in a directory I would use
 (setq org-agenda-files '(~/org/)).

 I have a special projects directory with the format
 ~/projects/projectname/project.org for that I would use

 (setq org-agenda-files (file-expand-wildcards
 ~/projects/*/project.org))

I'm not sure this is the best way to do it, but this works.

(setq org-agenda-files (append
'(~/.life-in-plain-text/)
(file-expand-wildcards
 /tmp/projects/*/projects.org)))


 I tried to define a single org-agenda-files with both, unfortunately I
 don't know a lot of elisp so my tries like using list() all failed. For
 the first directory I guess I could also use file-expand-widlcards with
 *.org, but wasn't succesful in merging two file-expand-wildcards either.


 On a simillar note I'd like to pitch in another questions. If someone is
 able to help me, then my agenda view combined would have 30 to 50 files,
 previously I never wondered why all the files end up opened in emacs
 buffers. But now if I combined them all each time I view the agenda I
 will be loading all the files. Any way to avoid opening 30 new buffers?
 Thank you.

AFAIK, there's no way out. Agenda needs all those buffers to be open, to work.
Look at this thread.
http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01720.html

-- 
Puneeth



Re: [O] Merging a list and wildcard expansion in org-agenda-files

2011-04-10 Thread Puneeth Chaganti
Sorry for replying to my own mail.

On Sun, Apr 10, 2011 at 7:36 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 On Sun, Apr 10, 2011 at 1:16 AM, Adrian C. an...@sysphere.org
 I'm not sure this is the best way to do it, but this works.

 (setq org-agenda-files (append
                        '(~/.life-in-plain-text/)
                        (file-expand-wildcards
                         /tmp/projects/*/projects.org)))

This is more like it, I think.

(setq org-agenda-files
  (cons ~/org/
(file-expand-wildcards ~/projects/*/projects.org)))

--
Puneeth



Re: Re: [O] org-mediawiki.el problem: can't work

2011-04-10 Thread Puneeth Chaganti
Hi Lin,

2011/4/10 Lin mysno...@163.com:
 Hi Puneeth,

     Thanks for your attention, but your patch doesn't work.

     The problem is not solved, as I mentioned that, I can find no occurence
 of the function
 `org-export-mark-list-ending` in the whole git repo.

     I tried your patch just now and the same error occurs:

    Symbol's function definition is void: org-export-mark-list-ending

My patch replaces that with the new function, and fixes a few other
things as well. Did you evaluate `org-export.el' after applying the
patch?

Thanks,
Puneeth



Re: Re: Re: [O] org-mediawiki.el problem: can't work

2011-04-10 Thread Puneeth Chaganti
2011/4/10 Lin mysno...@163.com:
 Hi Puneeth,

[..]
 Now it can work for simple org -- mediawiki exporting, including org
 tables.

 Thanks a lot:)

Great!

--
Puneeth



Re: [O] Merging a list and wildcard expansion in org-agenda-files

2011-04-10 Thread Puneeth Chaganti
On Sun, Apr 10, 2011 at 10:51 PM, Adrian C. an...@sysphere.org wrote:
 On Sun, 10 Apr 2011, Puneeth Chaganti wrote:

 This is more like it, I think.

 (setq org-agenda-files
       (cons ~/org/
             (file-expand-wildcards ~/projects/*/projects.org)))

 Great, thanks very much.


 AFAIK, there's no way out. Agenda needs all those buffers to be open

 Guess I'll need an alias to kill them all quickly when needed. Thanks.

Hitting `x' in the agenda does it.







-- 
Puneeth



[O] Bulk function documentation is missing

2011-04-08 Thread Puneeth Chaganti
Hi,

I'd sent it to Bernt alone, on the previous occasion. Re-sending to
everyone. Sorry for the re-post, Bernt.

Hi Bernt,

On Fri, Apr 8, 2011 at 8:52 AM, Bernt Hansen be...@norang.ca
[..]
 Could you please also provide documentation in org.texi with an example
 of how you use this?

I have attached a patch that documents this function. Please feel free
to improve it.

Thanks,
Puneeth
From 007f723e5bfd11b1d3c0efbb89b32f1955264314 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti puncha...@gmail.com
Date: Fri, 8 Apr 2011 11:23:31 +0530
Subject: [PATCH] Document option to allow applying a function as Bulk Agenda
 action

* doc/org.texi (Agenda commands): Doc for function option to bulk action.
---
 doc/org.texi |   15 +++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 5ab25b0..d5c7b7b 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8075,6 +8075,21 @@ s  @r{Schedule all items to a new date.  To shift 
existing schedule dates}
 S  @r{Reschedule randomly by N days.  N will be prompted for.  With prefix}
@r{arg (@kbd{C-u B S}), scatter only accross weekdays.}
 d  @r{Set deadline to a specific date.}
+f  @r{Apply a function to marked entries.}
+   @r{For example, the function below sets the CATEGORY property of the}
+   @r{entries to web.}
+   @r{(defun set-category ()}
+   @r{  (interactive P)}
+   @r{  (let* ((marker (or (org-get-at-bol 'org-hd-marker)}
+   @r{ (org-agenda-error)))}
+   @r{(buffer (marker-buffer marker)))}
+   @r{   (with-current-buffer buffer}
+   @r{ (save-excursion}
+   @r{   (save-restriction}
+   @r{ (widen)}
+   @r{ (goto-char marker)}
+   @r{ (org-back-to-heading t)}
+   @r{ (org-set-property CATEGORY web))}
 @end example
 
 
-- 
1.7.4.4



[O] Re: [PATCH] Fix html export of footnotes with lists, tables, quotes, etc.

2011-03-29 Thread Puneeth Chaganti
Hi Jambunathan,

Sorry for the delayed response, but here is a test case that covers
the above cases.

On Sun, Mar 27, 2011 at 4:28 PM, Jambunathan K kjambunat...@gmail.com wrote:

 Puneeth

 Attached is a patch that allows having lists, tables, blockquotes and
 other org blocks in footnotes.  Source code blocks still don't work.


 Would you mind posting an example test case that covers all the above
 cases. I am trying to merge my branch with the most recent changes in
 the master. I would like to make sure that I break nothing when my
 changes gets merged to the master.

 Jambunathan K.






-- 
Puneeth


footnotes.org
Description: Binary data


[O] Re: [Orgmode] Daily Debian Builds

2011-03-24 Thread Puneeth Chaganti
On Fri, Jul 30, 2010 at 11:03 PM, Mark A. Hershberger m...@everybody.org 
wrote:
 suvayu ali fatkasuvayu+li...@gmail.com writes:

 I wanted to try it on Ubuntu Lucid but launchpad says failed build for
 the 26th of July.

 There is still a Lucid build available:

    https://code.launchpad.net/~org-mode/+archive/daily-ppa

 I'm a little frustrated with the “daily build” since it seems buggy.
 I may start hosting my own cron job to do this.

I'm just curious to know, what is the status of this.  The last build
was 24 weeks ago.  Mark, did you disable daily builds?  Is there a
build for 7.5 available?  Are the latest builds available elsewhere?

Thanks,
Puneeth

ps: I don't use these builds, but I (sometimes) need to point others to them.



Re: [Accepted] [O] Fix html export of footnotes with lists, tables, quotes, etc.

2011-03-23 Thread Puneeth Chaganti
On Wed, Mar 23, 2011 at 7:38 PM, Bastien Guerry b...@altern.org wrote:
 Patch 700 (http://patchwork.newartisans.com/patch/700/) is now Accepted.

Thanks.

But, it looks like the commit message doesn't get into patchwork or is
it that Bastien changed my bad commit message?  My commit message also
mentioned that src code blocks don't work, and it possibly because of
new lines being inserted.  Bastien, did you remove it because it was
irrelevant?

If the commit message was changed because, Bastien didn't notice it,
can someone tell me the right way to send patches?  I just want to
reduce Bastien's trouble and this is leading to duplication of work,
as well.

Thanks,
Puneeth



Re: [Accepted] [O] Fix html export of footnotes with lists, tables, quotes, etc.

2011-03-23 Thread Puneeth Chaganti
Hi Bastien,

On Wed, Mar 23, 2011 at 8:00 PM, Bastien b...@altern.org wrote:
 Hi Puneeth,

 Puneeth Chaganti puncha...@gmail.com writes:

 But, it looks like the commit message doesn't get into patchwork or is
 it that Bastien changed my bad commit message?  My commit message also
 mentioned that src code blocks don't work, and it possibly because of
 new lines being inserted.

 Your commit message went to the patchwork and I cleaned it up, yes.

Okay.

 Bastien, did you remove it because it was irrelevant?

 I probably should have kept this information, sorry.  I prefered to
 have a commit message saying what the commit does and not what it does
 not -- thinking another commit will come soon and complete it.

It's alright. I didn't have the time to look into it. But now I'm
motivated to look into it. ;)

 If the commit message was changed because, Bastien didn't notice it,
 can someone tell me the right way to send patches?

 I noticed it, don't worry :)

Okay. :)

 I just want to reduce Bastien's trouble and this is leading to
 duplication of work, as well.

 Thanks a lot for that -- the best way to send patches/commits to the
 list is by using the command git send-email.  Otherwise, the message
 of the email is taken as the commit message by patchwork, and that I
 need to reedit a bit.  But any other way is okay too, as long as I have
 the information.

Ok. I am behind a proxy and not very sure how to get this working.
Will look into this again, hopefully, this time with some success.

Thanks,
Puneeth



  1   2   3   >