[PATCH] Fix date in org-latex--format-spec

2022-02-22 Thread Lucas V. R.
Hi all,

This is my first time posting here. Sorry in advance if I did something
wrong.
I tried customizing org-latex-title-command with a "%D" placeholder but the
LaTeX was not compiling since this placeholder was being replaced by the
string

((latex-fragment (:value \today :begin 1 :end 7 :post-blank 0 :parent #0)))

I could not find this in previous issues and the code in the main branch
still reproduced this error. The problem seems to be a missing call to
org-export-data in the function org-latex--format-spec. Perhaps it is not
necessary but I'm attaching the one-line patch that fixed things for me.
From ddeaa68f540173a27bc0fddd6f8957b5e6af7ffe Mon Sep 17 00:00:00 2001
From: "Lucas V. R" 
Date: Tue, 22 Feb 2022 14:46:45 -0300
Subject: [PATCH] ox-latex: date should not be a property list

---
 lisp/ox-latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 5dda9b3ab..b181cadca 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1630,7 +1630,7 @@ INFO is a plist used as a communication channel."
   (?c . ,(plist-get info :creator))
   (?l . ,language)
   (?L . ,(capitalize language))
-  (?D . ,(org-export-get-date info)
+  (?D . ,(org-export-data (org-export-get-date info) info)
 
 (defun org-latex--insert-compiler (info)
   "Insert LaTeX_compiler info into the document.
-- 
2.35.1



Re: Bug: Occasional error with recurring tasks in agenda [9.4 (release_9.4-3-ge6021b @ /home/james/.config/emacs/straight/build/org-plus-contrib/)]

2020-09-25 Thread James N . V . Cash


>>> It seems to always work properly from the org buffer itself, so I assume
>>> it's something happening in the agenda, but I'm not sure where to look.
>>> I've tried debugging `org-agenda-todo`, but I can't see anything in
>>> askance there. Any advice as to what I should be looking for?

Trying to do more work to track this down and I'm perhaps more confused than I 
was before.

I can consistently make this happen by opening my todo.org file which
contains two recurring tasks, call them A and B.

I start by putting the cursor on task A, then running org-agenda and
using that to complete task B. This then results in task A showing twice
in the agenda list and refreshing the agenda/checking the file shows
task A completed & rescheduled to the next day and task B marked DONE
and not repeated.

Trying to track this down, I see in `org-todo`, the point moves from
where org-agenda-todo positioned it in task B to inside where I had the
cursor originally in the todo.org buffer, in task A. Strangely, I see
the point changing when the `next` variable is printed out via
`message` (I can also see the point changing after logging out org-state).

If I print out either of those variables with the "%S" format string
instead of "%s", the point doesn't move.

This doesn't happen with emacs -Q, so presumably there's something in my
config that's making this happen, but I have no idea what I should be
looking for. Any suggestions?

James



Re: Bug: Occasional error with recurring tasks in agenda [9.4 (release_9.4-3-ge6021b @ /home/james/.config/emacs/straight/build/org-plus-contrib/)]

2020-09-23 Thread James N . V . Cash
Ihor Radchenko  writes:

>> It seems to always work properly from the org buffer itself, so I assume
>> it's something happening in the agenda, but I'm not sure where to look.
>> I've tried debugging `org-agenda-todo`, but I can't see anything in
>> askance there. Any advice as to what I should be looking for?
>
> I had similar issue. As I recall, the problem was with some custom
> function in org-trigger-hook that threw an error because it did not
> expect to be ran with point in agenda buffer. Do you have any
> customisation related to todo triggers?

Hm, it looks like org-trigger-hook and the various other
org-trigger-*-hook variables are nil in org-agenda buffers, but that
seems like a good place to look. I'll try to see if I have any other org
hooks that might be interferring with this.



Bug: Occasional error with recurring tasks in agenda [9.4 (release_9.4-3-ge6021b @ /home/james/.config/emacs/straight/build/org-plus-contrib/)]

2020-09-22 Thread James N V Cash



I've started seeing an issues as of a couple of days ago, after upgrading to 
org 9.4.

When I mark a task with a recurring deadline done from the agenda view,
sometimes it doesn't recur, but instead marks the task as done.

I haven't yet been able to isolate why -- just now I marked a task as
done from the agenda, it didn't recur; I went to the org file, undid
from there, then tried marking it complete from the agenda again and
that time it worked.

It seems to always work properly from the org buffer itself, so I assume
it's something happening in the agenda, but I'm not sure where to look.
I've tried debugging `org-agenda-todo`, but I can't see anything in
askance there. Any advice as to what I should be looking for?

James Cash





Emacs  : GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, 
cairo version 1.16.0)
 of 2020-08-14
Package: Org mode version 9.4 (release_9.4-3-ge6021b @ 
/home/james/.config/emacs/straight/build/org-plus-contrib/)

current state:
==
(setq
 org-duration-format 'h:mm
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-link-shell-confirm-function 'yes-or-no-p
 org-pdftools-get-desc-function 'org-pdftools-get-desc-default
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-pdftools-markup-pointer-function 'pdf-annot-add-underline-markup-annotation
 org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
 org-html-format-inlinetask-function 
'org-html-format-inlinetask-default-function
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-notmuch-open-function 'org-notmuch-follow-link
 org-agenda-files "~/org/dir"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-modules '(ol-info ol-eshell org-notify ol-notmuch)
 org-mode-hook '(evil-org-mode
 (closure (t) nil
  (let ((default-pred electric-pair-inhibit-predicate))
   (set (make-local-variable 'electric-pair-inhibit-predicate) 
#'(lambda (c) (if (char-equal c 60) t default-pred
  (visual-line-mode 1))
 (closure (t) nil (set (make-local-variable 
'company-dabbrev-downcase) nil)) cogent/fix-org-yasnippet-hook
 #[0 "\301\211.\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-all append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes 
org-eldoc-load)
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-outline-path-complete-in-steps nil
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-restore-windows-after-quit t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-mime-src-mode-hook '(org-mime-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-adapt-indentation 'headline-data
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-mime-html-hook '((closure (t) nil (org-mime-change-element-style 
"blockquote" "border-left: 2px solid gray; padding-left: 4px;"))
  (closure (t) nil
   (org-mime-change-element-style "pre"
(format "color: %s; background-color: %s; padding: 
0.5em;" (face-attribute 'default :foreground)
 (face-attribute 'default :background))
)
   )
  )
 org-notmuch-search-open-function 'org-notmuch-search-follow-link
 org-babel-pre-tangle-hook '(save-buffer)
 org-file-apps '((auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . default) 
("\\.x?html?\\'" . default) ("\\.pdf\\'" . emacs))
 org-tab-first-hook '(yas/org-very-safe-expand 
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-hide-leading-stars t
 org-babel-load-languages '((sql . t) (ruby . t) (js . t))
 org-load-hook '(org-pdftools-setup-link)
 org-hide-emphasis-markers t
 org-agenda-ignore-properties '(effort appt category)
 org-ascii-format-drawer-function #[771 ".\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
 org-use-fast-todo-selection t
 org-agenda-loop-over-headlines-in-active-region nil
 org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) 
("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh)
  ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) 
("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp)
  ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . 
sh) ("sqlite" . sql))
 org-catch-invisible-edits 

Re: eldoc recursion error

2020-09-20 Thread James N . V . Cash
Kyle Meyer  writes:

> All right, so we can't get by without using eldoc--make-callback here?
> Relying on a symbol marked with "--" makes me uneasy, and I'd like to
> avoid it if possible.

Yeah, good point. I was doing that so I could honour the setting of
eldoc-documentation-strategy. I don't know if that's going to be a
concern in practice though.

> Does your cider test case above break if we use
> eldoc-print-current-symbol-info without relaying the callback?  That is,
> this squashed into your patch:

My concern with using the eldoc-print-current-symbol-info is that it's
now somewhat subverting the actual eldoc documentation function -- i.e.
the invocation of org-eldoc-documentation-function now "fails" and
instead it prints out the actual documentation as a side-effect. Indeed,
applying that patch makes the eldoc for python code blocks not work
correctly.

The below patch which essentially just inlines the definition of
eldoc-documentation-default, so it's not messing around with any private
variables in eldoc, although it now won't honour the documentation
strategy. It remains to be seen if that will be an issue in practice,
but if necessary we could just check the value of
eldoc-documentation-strategy and behave appropriately.

>From 7d59ecadbea429626bae90464d76f01b60c8d67f Mon Sep 17 00:00:00 2001
From: "James N. V. Cash" 
Date: Thu, 17 Sep 2020 10:51:13 -0400
Subject: [PATCH] Address org-eldoc-recursion issue

* org-eldoc.el (org-eldoc-get-mode-local-documentation-function,
org-eldoc-documentation-function): Support Emacs 28-style eldoc, where
instead of a single function, the eldoc-documentation-functions hook
has a list of functions, which may optionally take a callback.
---
 contrib/lisp/org-eldoc.el | 29 -
 1 file changed, 20 insertions(+), 9 deletions(-)

diff --git a/contrib/lisp/org-eldoc.el b/contrib/lisp/org-eldoc.el
index 3b0999340..946a57273 100644
--- a/contrib/lisp/org-eldoc.el
+++ b/contrib/lisp/org-eldoc.el
@@ -1,4 +1,4 @@
-;;; org-eldoc.el --- display org header and src block info using eldoc
+;;; org-eldoc.el --- display org header and src block info using eldoc -*- lexical-binding: t; -*-
 
 ;; Copyright (c) 2014-2020 Free Software Foundation, Inc.
 
@@ -114,11 +114,18 @@
 doc-func)
 (if (eq 'empty cached-func)
 (when (fboundp mode-func)
-  (with-temp-buffer
-(funcall mode-func)
-(setq doc-func (and eldoc-documentation-function
-(symbol-value 'eldoc-documentation-function)))
-(puthash lang doc-func org-eldoc-local-functions-cache))
+	  (with-temp-buffer
+	(funcall mode-func)
+	(setq doc-func (if (boundp 'eldoc-documentation-functions)
+			   (let ((doc-funs eldoc-documentation-functions))
+ (lambda (callback)
+   (let ((eldoc-documentation-functions doc-funs))
+ (run-hook-with-args-until-success
+  'eldoc-documentation-functions
+  callback
+			 (and eldoc-documentation-function
+  (symbol-value 'eldoc-documentation-function
+	(puthash lang doc-func org-eldoc-local-functions-cache))
   doc-func)
   cached-func)))
 
@@ -127,7 +134,7 @@
 (declare-function php-eldoc-function "php-eldoc" ())
 (declare-function go-eldoc--documentation-function "go-eldoc" ())
 
-(defun org-eldoc-documentation-function ( _ignored)
+(defun org-eldoc-documentation-function ( args)
   "Return breadcrumbs when on a headline, args for src block header-line,
   calls other documentation functions depending on lang when inside src body."
   (or
@@ -160,8 +167,12 @@
  (string= lang "go")
  (string= lang "golang")) (when (require 'go-eldoc nil t)
 (go-eldoc--documentation-function)))
-   (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)))
-(when (functionp doc-fun) (funcall doc-fun
+   (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang))
+		(callback (car args)))
+(when (functionp doc-fun)
+		  (if (functionp callback)
+		  (funcall doc-fun callback)
+		(funcall doc-fun)
 
 ;;;###autoload
 (defun org-eldoc-load ()
-- 
2.25.1



Re: eldoc recursion error

2020-09-20 Thread James N . V . Cash
James N. V. Cash  writes:

> I was just thinking more about this, and I'm concerned I might need to
> change things around a little bit more. The closure that
> org-eldoc-get-mode-local-documentation-function now returns under Emacs
> 28 doesn't take any arguments and instead lets the
> eldoc-documentation-strategy function create its own new callback.
>
> I think the current approach will appear to work when the documentation
> function returns a value directly, but if it uses the callback, then I
> think that it won't, since it invokes a new, separate callback.
>
> I will take another crack at addressing this and send another patch shortly.

Indeed, testing with an eldoc backend (a personally hacked-up version of
clojure's cider) that actually uses the callback, it wasn't working with
the previous approach. I've attached a patch that addresses the
previously-mentioned issues as well as this.

>From 028675e460d12711ba4b91bf576b35e307a0e640 Mon Sep 17 00:00:00 2001
From: "James N. V. Cash" 
Date: Thu, 17 Sep 2020 10:51:13 -0400
Subject: [PATCH] Address org-eldoc-recursion issue

* org-eldoc.el (org-eldoc-get-mode-local-documentation-function,
org-eldoc-documentation-function): Support Emacs 28-style eldoc, where
instead of a single function, the eldoc-documentation-functions hook
has a list of functions, which may optionally take a callback.
---
 contrib/lisp/org-eldoc.el | 28 +++-
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/contrib/lisp/org-eldoc.el b/contrib/lisp/org-eldoc.el
index 3b0999340..b86ad1f39 100644
--- a/contrib/lisp/org-eldoc.el
+++ b/contrib/lisp/org-eldoc.el
@@ -1,4 +1,4 @@
-;;; org-eldoc.el --- display org header and src block info using eldoc
+;;; org-eldoc.el --- display org header and src block info using eldoc -*- lexical-binding: t; -*-
 
 ;; Copyright (c) 2014-2020 Free Software Foundation, Inc.
 
@@ -114,11 +114,17 @@
 doc-func)
 (if (eq 'empty cached-func)
 (when (fboundp mode-func)
-  (with-temp-buffer
-(funcall mode-func)
-(setq doc-func (and eldoc-documentation-function
-(symbol-value 'eldoc-documentation-function)))
-(puthash lang doc-func org-eldoc-local-functions-cache))
+	  (with-temp-buffer
+	(funcall mode-func)
+	(setq doc-func (if (boundp 'eldoc-documentation-functions)
+			   (let ((doc-funs eldoc-documentation-functions))
+ (lambda (callback)
+   (let ((eldoc-documentation-functions doc-funs)
+	 (eldoc--make-callback (lambda (_ignored) callback)))
+ (funcall eldoc-documentation-strategy
+			 (and eldoc-documentation-function
+  (symbol-value 'eldoc-documentation-function
+	(puthash lang doc-func org-eldoc-local-functions-cache))
   doc-func)
   cached-func)))
 
@@ -127,7 +133,7 @@
 (declare-function php-eldoc-function "php-eldoc" ())
 (declare-function go-eldoc--documentation-function "go-eldoc" ())
 
-(defun org-eldoc-documentation-function ( _ignored)
+(defun org-eldoc-documentation-function ( args)
   "Return breadcrumbs when on a headline, args for src block header-line,
   calls other documentation functions depending on lang when inside src body."
   (or
@@ -160,8 +166,12 @@
  (string= lang "go")
  (string= lang "golang")) (when (require 'go-eldoc nil t)
 (go-eldoc--documentation-function)))
-   (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)))
-(when (functionp doc-fun) (funcall doc-fun
+   (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang))
+		(callback (car args)))
+(when (functionp doc-fun)
+		  (if (functionp callback)
+		  (funcall doc-fun callback)
+		(funcall doc-fun)
 
 ;;;###autoload
 (defun org-eldoc-load ()
-- 
2.25.1



Re: eldoc recursion error

2020-09-20 Thread James N . V . Cash
Kyle Meyer  writes:

> Using lexical-let here is problematic because it's obsolete since Emacs
> 24.  Taking a quick glance, I don't see any issues with switching this
> file over to lexical binding by adding " -*- lexical-binding: t; -*-" to
> the first line.

Cool, will do. I was concerned that the lexical-binding stanza was
missing for a reason, but I'll give it a shot.

> Also, why use
>
> (doc-funs (symbol-value 'eldoc-documentation-functions))
>
> rather than
>
> (doc-funs eldoc-documentation-functions)
>
> ?

Good question...I was doing that just because the original code does
~(symbol-value 'eldoc-documentation-function)~ and I assumed there was
some reason I didn't understand for doing so.

>> + (lambda ()
>> +   (let ((eldoc-documentation-functions doc-funs))
>> + (funcall eldoc-documentation-strategy
>> + (and eldoc-documentation-function
>> +(symbol-value 'eldoc-documentation-function
>
> nit: Please switch this to the Elisp style of indenting the `else' arm
> less than the `then' arm.

Oops, will do.

>> -(defun org-eldoc-documentation-function ( _ignored)
>> +(defun org-eldoc-documentation-function ( callback)
>
> Perhaps even with the callback parameter the  should stay around.
> The docstring of eldoc-documentation-functions makes me nervous because
> it says "each hook function is called with _at least_ one argument" (my
> emphasis).

Good call, will do.

> Hmm, I think the more complete approach you put together for
> org-eldoc-get-mode-local-documentation-function, along with your change
> to consider the callback parameter here, means we don't need to bother
> with the condition-case/wrong-number-of-arguments dance.  The callback
> alone should be a reliable indication we're on Emacs 28, in which case
> we can expect the function to accept a callback argument (even if they
> ignore it like python-eldoc-function does).

I was just thinking more about this, and I'm concerned I might need to
change things around a little bit more. The closure that
org-eldoc-get-mode-local-documentation-function now returns under Emacs
28 doesn't take any arguments and instead lets the
eldoc-documentation-strategy function create its own new callback.

I think the current approach will appear to work when the documentation
function returns a value directly, but if it uses the callback, then I
think that it won't, since it invokes a new, separate callback.

I will take another crack at addressing this and send another patch shortly.

> Thanks again for working on this.

My pleasure!



Re: eldoc recursion error

2020-09-17 Thread James N . V . Cash

Kyle Meyer  writes:
> Thanks for the patch!  For information about the expected commit message
> format, please see <https://orgmode.org/worg/org-contribute.html>.

Ah will do, thanks! I'm still learning how to work with the email &
patch-based workflow.

> Okay, so when eldoc-documentation-functions is defined (Emacs >=28), we
> take the first function and go with it.  That might not be exactly what
> you'd see in the native buffer, depending on whether there are other
> members of eldoc-documentation-functions and how they interact.  (I'm
> being vague, because I don't really know anything about eldoc, but it
> seems like that must be the case.)  Anyway, I'd guess it will be good
> enough in most cases, and it's certainly better than the recursion
> error.

Ah yes, very true. I've attached another patch, which tries to better
preserve how the new eldoc strategy works, by passing through the
callback to the mode-local eldoc function if available, which will be a
closure over the configured documentation strategy with
eldoc-documentation-functions bound to the appropriate mode-local value.

>From 4c2042c9e3820d88cd655cf01d572b9686a40d31 Mon Sep 17 00:00:00 2001
From: "James N. V. Cash" 
Date: Thu, 17 Sep 2020 10:51:13 -0400
Subject: [PATCH] Address org-eldoc-recursion issue

* org-eldoc.el (org-eldoc-get-mode-local-documentation-function,
org-eldoc-documentation-function): Support Emacs 28-style eldoc, where
instead of a single function, the eldoc-documentation-functions hook
has a list of functions, which may optionally take a callback.
---
 contrib/lisp/org-eldoc.el | 18 ++
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/contrib/lisp/org-eldoc.el b/contrib/lisp/org-eldoc.el
index 3b0999340..85e238e64 100644
--- a/contrib/lisp/org-eldoc.el
+++ b/contrib/lisp/org-eldoc.el
@@ -116,8 +116,13 @@
 (when (fboundp mode-func)
   (with-temp-buffer
 (funcall mode-func)
-(setq doc-func (and eldoc-documentation-function
-(symbol-value 'eldoc-documentation-function)))
+	(setq doc-func (if (boundp 'eldoc-documentation-functions)
+			   (lexical-let ((doc-funs (symbol-value 'eldoc-documentation-functions)))
+ (lambda ()
+   (let ((eldoc-documentation-functions doc-funs))
+ (funcall eldoc-documentation-strategy
+			   (and eldoc-documentation-function
+(symbol-value 'eldoc-documentation-function
 (puthash lang doc-func org-eldoc-local-functions-cache))
   doc-func)
   cached-func)))
@@ -127,7 +132,7 @@
 (declare-function php-eldoc-function "php-eldoc" ())
 (declare-function go-eldoc--documentation-function "go-eldoc" ())
 
-(defun org-eldoc-documentation-function ( _ignored)
+(defun org-eldoc-documentation-function ( callback)
   "Return breadcrumbs when on a headline, args for src block header-line,
   calls other documentation functions depending on lang when inside src body."
   (or
@@ -161,7 +166,12 @@
  (string= lang "golang")) (when (require 'go-eldoc nil t)
 (go-eldoc--documentation-function)))
(t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)))
-(when (functionp doc-fun) (funcall doc-fun
+(when (functionp doc-fun)
+		  (if (functionp callback)
+		  (condition-case nil
+			  (funcall doc-fun callback)
+			(wrong-number-of-arguments (funcall doc-fun)))
+		(funcall doc-fun)
 
 ;;;###autoload
 (defun org-eldoc-load ()
-- 
2.25.1



Re: eldoc recursion error

2020-09-15 Thread James N V Cash

I've attached a patch that addresses the recursion issue with Emacs 28
and shows eldoc properly with example python. It presumably should act
the same with older versions of Emacs, although I haven't tested.

diff --git a/contrib/lisp/org-eldoc.el b/contrib/lisp/org-eldoc.el
index 3b0999340..ccc23b523 100644
--- a/contrib/lisp/org-eldoc.el
+++ b/contrib/lisp/org-eldoc.el
@@ -116,9 +116,12 @@
 (when (fboundp mode-func)
   (with-temp-buffer
 (funcall mode-func)
-(setq doc-func (and eldoc-documentation-function
-(symbol-value 'eldoc-documentation-function)))
-(puthash lang doc-func org-eldoc-local-functions-cache))
+	(setq doc-func (if (boundp 'eldoc-documentation-functions)
+			   (car eldoc-documentation-functions)
+			   (and eldoc-documentation-function
+(symbol-value 'eldoc-documentation-function
+
+	(puthash lang doc-func org-eldoc-local-functions-cache))
   doc-func)
   cached-func)))
 


Re: tags-todo agenda shoud not ignore DONE items

2020-09-15 Thread James N V Cash

Bastien  writes:

> Confirming this as an issue, if someone wants to fix it.

I've tried taking a shot at addressing this issue via the patch attached.

As mentioned in the thread, might potentially cause issues by changing how it 
matches -- should there be an option? Or is the idea just that if you really do 
want to exclude done tags, you'd query like "/!DONE"?

diff --git a/lisp/org.el b/lisp/org.el
index 020cfc873..3db1add8b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11691,7 +11691,7 @@ See also `org-scan-tags'."
 		   `(and ,tagsmatcher ,todomatcher)
 		 (or tagsmatcher todomatcher t
   (when org--matcher-tags-todo-only
-	(setq matcher `(and (member todo org-not-done-keywords) ,matcher)))
+	(setq matcher `(and (member todo org-todo-keywords-1) ,matcher)))
   (cons match0 `(lambda (todo tags-list level) ,matcher)
 
 (defun org--tags-expand-group (group tag-groups expanded)


Re: [PATCH] Make org-eldoc work with Emacs 28

2020-07-16 Thread James N . V . Cash
Kyle Meyer  writes:

> Basil L. Contovounesios writes:
>> How involved would it be to make org-eldoc work in
>> non-"backwards-compatibility" mode?
>
> I think we can do that, while still supporting Org's minimum Emacs
> version, by following python.el.  Here's what it does:
> ...
>
> ... org-eldoc-documentation-function's signature could be changed to
> ( _ignored), like python-eldoc-function's.

This makes the most sense to me; I missed that the default documentation
strategy also allows the function to ignore the callback & just return a
docstring directly.



Re: [PATCH] Make org-eldoc work with Emacs 28

2020-07-13 Thread James N . V . Cash


Nicolas Goaziou  writes:

> Do we need another variable for that? Could
> org-eldoc-documentation-function catch wrong-number-of-arguments error,
> and try another call instead?

I believe that the issue is org-eldoc-documentation-function itself is
called with the wrong number of arguments; the new behaviour of
eldoc-mode is to call the documentation functions with a callback
argument, that the documentation function invokes to return its value,
unless the strategy is a function.

>From the docstring for eldoc-documentation-strategy:

> ...
> For backward compatibility to the "old" protocol, this variable
> can also be set to a function that returns nil or a doc string,
> depending whether or not there is documentation to display at
> all.

Another approach would be to, I suppose, make
org-eldoc-documentation-function take an optional callback argument
(defaulting to identity) and either wrap the whole body of
the function in a funcall of that function or pass the callback to all
the functions that org-eldoc-documentation-function calls.



[PATCH] Make org-eldoc work with Emacs 28

2020-07-12 Thread James N. V. Cash


In Emacs 28, eldoc now passes in a callback to the documentation
functions. This breaks org-eldoc as it currently is, as
org-eldoc-documentation-function gets called with the wrong number of
arguments.

This patch makes it continue to work by setting the new variable
eldoc-documentation-strategy, which puts eldoc in
"backwards-compatability" mode.


>From 5c04048c0d1ed3f80c7dd3e6477e12fc8e760675 Mon Sep 17 00:00:00 2001
From: "James N. V. Cash" 
Date: Fri, 10 Jul 2020 11:56:23 -0400
Subject: [PATCH] Make org-eldoc work with Emacs 28's new eldoc API

Still using backward-compatability to use the old style of
function. The new way is to make the documentation function take a
callback, but this approach means the fewest changes.
---
 contrib/lisp/org-eldoc.el | 14 +-
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/contrib/lisp/org-eldoc.el b/contrib/lisp/org-eldoc.el
index 72b10a1fb..060674b24 100644
--- a/contrib/lisp/org-eldoc.el
+++ b/contrib/lisp/org-eldoc.el
@@ -161,11 +161,15 @@
 (defun org-eldoc-load ()
   "Set up org-eldoc documentation function."
   (interactive)
-  (if (boundp 'eldoc-documentation-functions)
-  (add-hook 'eldoc-documentation-functions
-   #'org-eldoc-documentation-function nil t)
-(setq-local eldoc-documentation-function
-   #'org-eldoc-documentation-function)))
+  (cond
+   ((boundp 'eldoc-documentation-strategy)
+(setq-local eldoc-documentation-strategy
+   #'org-eldoc-documentation-function))
+   ((boundp 'eldoc-documentation-functions)
+(add-hook 'eldoc-documentation-functions
+ #'org-eldoc-documentation-function nil t))
+   (t (setq-local eldoc-documentation-function
+ #'org-eldoc-documentation-function
 
 ;;;###autoload
 (add-hook 'org-mode-hook #'org-eldoc-load)
-- 
2.17.1



[O] Prepended list item captures get placed among LOGBOOK entries

2017-06-08 Thread Bruce V Chiarelli
Hello,

I'll explain the problem with this example:


* Run this in =emacs -Q= with the latest org
  #+BEGIN_SRC emacs-lisp
;(add-to-list 'load-path "~/build/org-mode/lisp")
;;; ensure we are using the latest Org

(setq org-capture-templates (quote (("x" "Testing" item
  (file+headline "~/org/Testing.org" "Test 
headline")
  "- %U Thoughts:" :prepend t
(setq org-log-into-drawer t)
  #+END_SRC

* TODO Test headline
  SCHEDULED: <2017-06-09 Fri +1d>
  :PROPERTIES:
  :LAST_REPEAT: [2017-06-08 Thu 12:11]
  :END:
  :LOGBOOK:
  - State "DONE"   from "TODO"   [2017-06-08 Thu 12:11]
  :END:
  - I would expect the capture to go immediately above this line, but it
goes in the drawer instead.


If I use org-capture with template "x", the entry is placed into the
LOGBOOK drawer above the state change line.

Of course, if org-log-into-drawer set to nil, there is no good way of
keeping the state change list and the capture list separate at all (nor
should there be, IMO, as long as org-habit doesn't get confused). But at
least with the logbook drawer enabled, the current behavior seems wrong.



Re: [O] Insert datetree entry

2017-04-05 Thread Bruce V Chiarelli

Daniele Nicolodi writes:

> On 4/4/17 1:25 PM, Bruce V Chiarelli wrote:
>>
>> Daniele Nicolodi <dani...@grinta.net> writes:
> Hi Bruce,
>
> I modified your code as follow to be able to insert a datetree entry
> correctly being anywhere in an existing datetree. I also added the
> possibility of having a prefix argument to prompt for the date. It works
> for me, but I don't know if this is the most elegant way to obtain what
> I want. Comments are welcome.
>
>
> ;; look for datetree root
> (defun dnn-org-datetree-root ()
>   (let ((re
> "^\\([12][0-9]\\{3\\}\\)\\(-\\([01][0-9]\\)\\(-\\([0123][0-9]\\)\\)?\\)?
> \\w+$"))
> (while (string-match re (org-get-heading))
>   (org-up-heading-safe))
> (org-up-heading-safe)))
>
> ;; add a datetree entry
> (defun dnn-org-datetree-find-create (arg)
>   (interactive "P")
>   (let ((d (calendar-gregorian-from-absolute
>   (if arg (time-to-days (org-read-date nil t)) (org-today)
> (dnn-org-datetree-root)
> (org-datetree-find-date-create d 'subtree-at-point)))

Nice! I'm afraid I'm unqualified to give any comments/criticism on your
code, since I'm fairly new to elisp myself. Looks better than what I had
though, at least to work around the missing 'subtree-at-point
feature. Maybe someone else can chime in.

I did notice that with my function, org-up-heading-safe didn't always
behave the way I wanted it to (like if it was already *on* the root
headline). But I only needed the function a few times, so I didn't
bother with improving it.

> Cheers,
> Daniele
Best,
Bruce



Re: [O] Insert datetree entry

2017-04-04 Thread Bruce V Chiarelli

Daniele Nicolodi <dani...@grinta.net> writes:

>
> thanks for the hint, but I don't understand what `subtree-at-point` is
> in your code, it does not seem to be defined in my emacs and
> `org-datetree-find-date-create` has a third parameter that is
> interpreted as a boolean. I'm confused.

Ah, yes I forgot that this is a fairly new feature. Sorry for the
confusion. In the latest Org, the optional keep-restriction parameter can be

- t - make the datetree at the end of the current /view/ of the buffer,
- nil - make the datetree at the end of the file, even if it was narrowed
  to a subtree before, or
- 'subtree-at-point - put the datetree as a subheading at the end of the
  current heading. This one is new in Org 9.0.5.

The first two options have been around for a long time, so if you get
rid of 'subtree-at-point it should be fine. It will default to nil.

>
> Cheers,
> Daniele


--
Bruce V. Chiarelli
http://github.com/bccomm



Re: [O] Insert datetree entry

2017-04-03 Thread Bruce V Chiarelli

Daniele Nicolodi writes:

> Hello,
>
> there is a way in org-mode to insert a datetree entry without going
> through the org-capture?  Ideally the function would jump to the
> datetree and inser an headline for the current day if one is not
> present, or move to the end of it if one is present.
>
> I haven't found anything like this in the manual. I'm now digging in the
> code. Hopefully it is not something too hard to implement with my
> lacking elisp knowledge.

I don't believe there really is one, but I've had to do it a couple of
times myself. This is my solution (I'm not a lisp expert either, but it
did the job):

(defun bc/org-new-datetree-at-point
   (interactive)
   (org-up-heading-safe)
   (org-datetree-find-date-create
 (calendar-gregorian-from-absolute (org-today))
 'subtree-at-point))

This will make the datetree as a subheading of the current heading (or
find it if it already exists). Getting rid of 'subtree-at-point will
make the year a level 1 heading at the end of the file, like with
org-capture.

Bruce

--
Bruce V. Chiarelli
http://github.com/bccomm



Re: [O] Help needed tangling with orgmode v9

2017-03-31 Thread Bruce V Chiarelli

Guido Van Hoecke  writes:

> Hi,
>

Hi there,

> So I changed the #+PROPERTY lines into:
>
> #+PROPERTY:  header-args  :tangle emacs-guivho.el
> #+PROPERTY:  header-args  :padline yes
> #+PROPERTY:  header-args  :eval never
> #+PROPERTY:  header-args  :eval no
> #+PROPERTY:  header-args  :exports code
>

Just had the same problem myself not too long ago. It should be

#+PROPERTY:  header-args   :tangle emacs-guivho.el
#+PROPERTY:  header-args+  :padline yes
#+PROPERTY:  header-args+  :eval never
#+PROPERTY:  header-args+  :eval no
#+PROPERTY:  header-args+  :exports code

Be sure also to hit C-c somewhere in the header after updating them too,
so that Org is aware of the change.

Bruce Chiarelli



[O] Price/ list comparison

2017-02-01 Thread Eduardo V.
I constantly buy diodes, resistors, etc. for projects and i mostly save the
receipts.

I want to know if there is an org-mode way (or any other software) that
let's me input all the data form the receipts and tell me which components
are cheaper in X store.

A plus if it has a way of telling me how many components i have left.

Thanks in advance.

NOTE: Since i don't know what name this kind of software receives i have
not been able to find what i look for, so excuse my ignorance


[O] Where have org-latex-classes gone? And Ignore heading title but export contents

2016-11-11 Thread Eduardo V.
I'm getting an error trying to add my class to org-mode

(add-to-list 'org-latex-classes ieeetran-class)
Symbol's value as variable is void: org-latex-classes

What is the org-mode 9 way of adding classes?

Also, on org-mode 8 i added this hook to remove headlines and it worked
perfectly, now it complains about 'tree' being a void variable too

(defun org-remove-headlines (backend)
  "Remove headlines with :no_title: tag."
  (org-map-entries (lambda () (let ((beg (point)))
(outline-next-visible-heading 1)
(backward-char)
(delete-region beg (point
   "no_export" tree)
  (org-map-entries (lambda () (delete-region (point-at-bol) (point-at-eol)))
   "no_title"))

(add-hook 'org-export-before-processing-hook #'org-remove-headlines)


Re: [O] Tasks don't repeat correctly if system-time-locale is set to certain languages

2016-10-31 Thread Bruce V. Chiarelli
2016-10-31 17:04 GMT-07:00 Nicolas Goaziou <m...@nicolasgoaziou.fr>:
> "Bruce V. Chiarelli" <mano...@gmail.com> writes:
>
>> org-todo calls org-auto-repeat-maybe, which sees the ".+" style
>> repeater. It calls org-timestamp-change to move the timestamp up to
>> today. Point is left at the closing bracket. So far, so good.
>>
>> org-timestamp-change sets origin-cat to 'after and origin to (point).
>> It then changes the timestamp to today as advertized.
>>
>> Now these lines get evaluated
>>
>> (goto-char (cond
>> ;; `day' category ends before `hour' if any, or at
>> ;; the end of the day name.
>> ((eq origin-cat 'day)
>>  (min (or (match-beginning 7) (- (match-end 5) 2)) origin))
>> ((eq origin-cat 'hour) (min (match-end 7) origin))
>> ((eq origin-cat 'minute) (min (1- (match-end 8)) origin))
>> ((integerp origin-cat) (min (1- (match-end 0)) origin))
>> ;; `year' and `month' have both fixed size: point
>> ;; couldn't have moved into another part.
>> (t origin
>>
>> The since origin-cat is 'after, matching nothing else, we get
>> (goto-char origin).
>>
>> This seems to be where the problem lies. When "<2016-10-29 szo .+1>"
>> becomes "<2016-10-31 h .+1>" (today), origin is now two characters
>> ahead of where it should be, now on the next line in fact.
>
> I see. Thank you for the analysis.
>
> Does adding the following branch in the `cond' above, before the
> catch-all one, solves the issue?
>
>   ((eq origin-cat 'after) (match-end 0))

It does! Wonderful.

-BC



Re: [O] Tasks don't repeat correctly if system-time-locale is set to certain languages

2016-10-31 Thread Bruce V. Chiarelli
2016-10-31 8:23 GMT-07:00 Nicolas Goaziou <m...@nicolasgoaziou.fr>:
> Hello,
>
> "Bruce V. Chiarelli" <mano...@gmail.com> writes:
>
>> I've noticed some unusual behavior with repeating entries when the
>> system-time-locale variable is set. Specifically:
>>
>> It is Sunday, today, October 30th. I did not mark this task, which is
>> a habit, yesterday.
>>
>> -- If I have (setq system-time-locale "hu_HU.utf8"), Hungarian, then
>> marking this task DONE
>>
>> * TODO Anki basic reviews   :habit:study:
>>   SCHEDULED: <2016-10-29 szo .+1d>
>>
>> v----becomesv
>>
>> * TODO Anki basic reviews   :habit:study:
>>   SCHEDULED: <2016-10-30 v .+1d>
>>
>> Which is not correct. I marked it DONE today, so it should repeat tomorrow.
>>
>> -- If I have (setq system-time-locale "es_MX.utf8"), Mexican Spanish,
>> then doing the same thing:
>>
>> * TODO Anki basic reviews   :habit:study:
>>   SCHEDULED: <2016-10-29 szo .+1d>
>>
>> vbecomesv
>>
>> * TODO Anki basic reviews   :habit:study:
>>   SCHEDULED: <2016-10-31 lun .+1d>
>>
>> Which *is* correct. I have tried this with an unset
>> system-time-locale, and with it set to fa_IR, es_MX, en_GB, and hu_HU.
>> So far, hu_HU is the only one that behaves incorrectly. Note that it
>> doesn't seem to matter which language the day-of-the-week abbreviation
>> is already in, since every time I tried this, I reverted the file back
>> to the Hungarian line. Changing the date to <2016-10-29 Sat .+1d>
>> before marking it also had no effect.
>>
>> Of course, I could just set the date locale to "C" or unset it, but
>> there's still a bug somewhere.
>
> I tend to think this is not a bug in Org mode, since it correctly work
> with other locales, and we do not control locales.

I thought so too, to be honest, but I got my hands dirty and I think
I've figured out where the actual problem lies.

I did the bisect earlier, and the breaking change was right when the
code to handle native language day names was added as part of Org 8.0.
I got a bit disorganized and lost the exact commit, but I can try to
find it if need be. Anyway, I started the lisp debugger to trace what
was happening and found the real problem. I hope someone can confirm.

org-todo calls org-auto-repeat-maybe, which sees the ".+" style
repeater. It calls org-timestamp-change to move the timestamp up to
today. Point is left at the closing bracket. So far, so good.

org-timestamp-change sets origin-cat to 'after and origin to (point).
It then changes the timestamp to today as advertized.

Now these lines get evaluated

(goto-char (cond
;; `day' category ends before `hour' if any, or at
;; the end of the day name.
((eq origin-cat 'day)
 (min (or (match-beginning 7) (- (match-end 5) 2)) origin))
((eq origin-cat 'hour) (min (match-end 7) origin))
((eq origin-cat 'minute) (min (1- (match-end 8)) origin))
((integerp origin-cat) (min (1- (match-end 0)) origin))
;; `year' and `month' have both fixed size: point
;; couldn't have moved into another part.
(t origin

The since origin-cat is 'after, matching nothing else, we get
(goto-char origin).

This seems to be where the problem lies. When "<2016-10-29 szo .+1>"
becomes "<2016-10-31 h .+1>" (today), origin is now two characters
ahead of where it should be, now on the next line in fact.

So it returns fine at first, but when org-auto-repeat maybe calls
org-timestamp-change a second time to move the date into the future,
it throws the error "Not at a timestamp" and does nothing else. I
wasn't seeing this error until I was in the debugger, since
org-auto-repeat-maybe puts an "Entry repeats: ..." message in the echo
area. Oddly enough, that message shows the correct date since
org-last-changed-timestamp gets updated properly.

-BC

> Anyway, could you try bisecting and tell us when the bug was born?
>
> Regards,
>
> --
> Nicolas Goaziou



[O] Tasks don't repeat correctly if system-time-locale is set to certain languages

2016-10-30 Thread Bruce V. Chiarelli
Hello all,

I've noticed some unusual behavior with repeating entries when the
system-time-locale variable is set. Specifically:

It is Sunday, today, October 30th. I did not mark this task, which is
a habit, yesterday.

-- If I have (setq system-time-locale "hu_HU.utf8"), Hungarian, then
marking this task DONE

* TODO Anki basic reviews   :habit:study:
  SCHEDULED: <2016-10-29 szo .+1d>

vbecomesv

* TODO Anki basic reviews   :habit:study:
  SCHEDULED: <2016-10-30 v .+1d>

Which is not correct. I marked it DONE today, so it should repeat tomorrow.

-- If I have (setq system-time-locale "es_MX.utf8"), Mexican Spanish,
then doing the same thing:

* TODO Anki basic reviews   :habit:study:
  SCHEDULED: <2016-10-29 szo .+1d>

vbecomesv

* TODO Anki basic reviews   :habit:study:
  SCHEDULED: <2016-10-31 lun .+1d>

Which *is* correct. I have tried this with an unset
system-time-locale, and with it set to fa_IR, es_MX, en_GB, and hu_HU.
So far, hu_HU is the only one that behaves incorrectly. Note that it
doesn't seem to matter which language the day-of-the-week abbreviation
is already in, since every time I tried this, I reverted the file back
to the Hungarian line. Changing the date to <2016-10-29 Sat .+1d>
before marking it also had no effect.

Of course, I could just set the date locale to "C" or unset it, but
there's still a bug somewhere.

I am running the 1399f5 revision now, but I can reproduce this
behavior all the way back until version 7,

Cheers,
Bruce V C



Re: [O] Bug: numeric org-clock-into-drawer is ignored [8.3beta (release_8.3beta-846-g38ab8b @ /Users/vvv/lib/emacs/org-mode/lisp/)]

2015-02-28 Thread Valery V. Vorotyntsev
On 27 February 2015 at 23:20, Valery V. Vorotyntsev valery...@gmail.com wrote:

 I have set `org-clock-into-drawer' to 2.
 `(org-clock-into-drawer)' should return the same value (see the
 documentation of this function), yet it returns LOGBOOK.

Proposed patch:

--[ begin ]--
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 07f02b0..0edc1b9 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -88,6 +88,7 @@ Return value is either a string, an integer, or nil.
(if (org-string-match-p \\`[0-9]+\\' p) (string-to-number p) p))
   ((org-string-nw-p org-clock-into-drawer))
   ((not org-clock-into-drawer) nil)
+  ((wholenump org-clock-into-drawer) org-clock-into-drawer)
   ((org-log-into-drawer))
   (t LOGBOOK
--[ end ]--

-- 
vvv



[O] link for tracking numbers using Org Link Abbrev Alist

2014-06-04 Thread Benjamin V Alexander
Hello!

This is just a tip (a it probably belongs somewhere in the worg, but that's
a bit beyond me at the moment).

I use org-mode to track my todo list, which often requires followup with
shippers such as fedex, usps, ups, and dhl.  I found this website (link
below) which shows how to build simple URLS to link directly to the track
packages page of a few of my most used shippers.  Now I can cut and paste
the tracking numbers, such as this (faked) UPS number 1Z2697543002474989
using text in my org-mode file like this:

[[ups:1Z2697543002474989]]

I think I haven't changed any of the defaults with respect to following
the link, so I have to click on the link or use org-open-at-point (C-C C-O)
to activate.

I thought myself so clever! So, if you haven't thought of it, it is super
easy to Customize org-mode with these links.  Also included is the gmail
version.  When viewing a gmail message, the hash code at the end of the URL
in the browser address bar can be used to find a message.

This site gave me the details of the tracking URLS.  There are some shippers
included there that I don't use, so I'm including the list in case you, dear
reader, need them.

http://verysimple.com/2011/07/06/ups-tracking-url/

Here is what my describe-variable buffer says for the configuration variable:

org-link-abbrev-alist is a variable defined in `org.el'.
Its value is ((dhl .
http://webtrack.dhlglobalmail.com/?mobile=trackingnumber=;)
 (usps .
https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=;)
 (ups .
http://wwwapps.ups.com/WebTracking/track?track=yestrackNums=;)
 (fedex . http://www.fedex.com/Tracking?action=tracktracknumbers=;)
 (gmail . https://mail.google.com/mail/?shva=1#all/;))

I hope this is helpful for others, now that it is searchable in the mailing
list.

Thank you!





[O] Problems PlantUML

2013-04-06 Thread v
Hi,

running Org-mode version 7.8.11 under GNU Emacs 23.4.1
(x86_64-pc-linux-gnu, GTK+ Version 2.24.10) I am stumbling over a
problem with babel/plantuml: Exporting a file with simple demo data
leads to a png file with error msg @startuml empty
description. Evaluating the code block results in a correct
diagramm. Where am I wrong?

Thank you in advance

  Volker

BTW: Thank you for this great tool!!



[O] [PATCH 1/2] Fix Property Inheritance

2012-12-25 Thread William V. Wishon
 * org.el (org-update-property-plist): Added logic to replace the existing 
property value if the new value is nil or if the old value is nil.  This is to 
support the usage of nil as a reset in a chain of PROP+ statements.  Eg: 
:prop+: foo - :prop+: nil - :prop+: bar would result in a property value of 
bar.
 (org-re-property): Added an optional parameter to allow for this re to match 
PROP+ style properties with a new match to determine if it did have a + or not.
 (org-entry-get): Refactored the logic combining property values into a 
separate function org-combine-property-entries in order to re-use it in 
org-entry-get-with-inheritance-helper.
 (org-combine-property-entries): Refactored code from org-entry-get plus new 
logic to use nil as a resetting value in a chain of PROP+ declarations.  See 
function documentation for more info.
 (org-entry-get-with-inheritance-helper): A recursion helper function for 
org-entry-get-with-inheritance.  It walks up the org structure until it gets to 
the top, they combines properties using org-combine-property-entries as it 
comes back down.
 (org-entry-get-with-inheritance): Calls org-entry-get-with-inheritance helper 
and returns the property resulting property value.
 * property-inheritance.org: added a test for property inheritance through 
levels of headings in addition to the test to inherit from file wide 
properties.  Also added a test to reset the heirarchy value by setting a 
property's value to nil.

The problem here was that org-entry-get wasn't working when properties of the 
form PROP+ were used in multiple sub headings.  It only worked to add to file 
level properties.  Plus I added a way to reset the value in along the way by 
using :PROP+: nil.
---
 lisp/org.el   |  118 +
 testing/examples/property-inheritance.org |   39 +-
 2 files changed, 109 insertions(+), 48 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 3f4c319..4684988 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4511,13 +4511,15 @@ this variable to if the option is found.  An optional 
forth element PUSH
 means to push this value onto the list in the variable.)
 
 (defun org-update-property-plist (key val props)
-  Update PROPS with KEY and VAL.
+  Update PROPS with KEY and VAL.
+If val is \nil\ replace the value with nil.
+If the existing value of a property is \nil\ then replace it with val.
   (let* ((appending (string= + (substring key (- (length key) 1
 (key (if appending (substring key 0 (- (length key) 1)) key))
 (remainder (org-remove-if (lambda (p) (string= (car p) key)) props))
 (previous (cdr (assoc key props
-(if appending
-   (cons (cons key (if previous (concat previous   val) val)) remainder)
+(if (and appending (not (or (string= val ) (string= val nil ; no 
sense in appending an empty string, and if the value is nil then replace what 
was there.
+   (cons (cons key (if (and previous (not (string= previous nil))) 
(concat previous   val) val)) remainder)
   (cons (cons key val) remainder
 
 (defconst org-block-regexp
@@ -14393,10 +14395,13 @@ Being in this list makes sure that they are offered 
for completion.)
  org-property-end-re \\)\n?)
   Matches an entire clock drawer.)
 
-(defsubst org-re-property (property)
+(defsubst org-re-property (property optional include-additions)
   Return a regexp matching a PROPERTY line.
-Match group 1 will be set to the value.
-  (concat ^[ \t]*: (regexp-quote property) :[ \t]*\\(\\S-.*\\)))
+Match group 1 will be set to the value.
+include-additions will allow the regex to match the :PROPERTY_NAME+: form
+which adds values to defined in parent headings. If set Match group 1 will be
+the + and the value will be match group 2.
+  (concat ^[ \t]*: (regexp-quote property) (if include-additions 
\\(\\+?\\) ) :[ \t]*\\(\\S-.*\\)))
 
 (defsubst org-re-property-keyword (property)
   Return a regexp matching a PROPERTY line, possibly with no
@@ -14647,26 +14652,7 @@ when a \nil\ value can supersede a non-nil value 
higher up the hierarchy.
  ;; We need a special property.  Use `org-entry-properties' to
  ;; retrieve it, but specify the wanted property
  (cdr (assoc property (org-entry-properties nil 'special property)))
-   (let* ((range (org-get-property-block))
-  (props (list (or (assoc property org-file-properties)
-   (assoc property org-global-properties)
-   (assoc property org-global-properties-fixed
-  (ap (lambda (key)
-(when (re-search-forward
-   (org-re-property key) (cdr range) t)
-  (setq props
-(org-update-property-plist
- key
- (if (match-end 1)
- (org-match-string-no-properties 1) )
- 

[O] [PATCH 2/2] Updates to test cases

2012-12-25 Thread William V. Wishon
* property-inheritance.org: Updated test cases to include expected 
outcomes.  Adjusted the numeric values to be in order.  Removed irrelevant 
addition tests.
---
 testing/examples/property-inheritance.org |   16 ++--
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/testing/examples/property-inheritance.org 
b/testing/examples/property-inheritance.org
index 477e25f..f2c68e2 100644
--- a/testing/examples/property-inheritance.org
+++ b/testing/examples/property-inheritance.org
@@ -35,17 +35,19 @@
 #+end_src
 * hierarchy test
 :PROPERTIES:
-:var+: boo=2
+:var+: boo=2.5
 :END:
 ** appending to a parent property
   :PROPERTIES:
   :var+:  baz=3
   :END:
 
+The result should be 8.5
 #+begin_src emacs-lisp
   (+ foo bar boo baz)
 #+end_src
 
+The result should be foo=1 bar=2 boo=2.5 baz=3
 #+begin_src emacs-lisp
   (org-entry-get (point) var t)
 #+end_src
@@ -53,21 +55,15 @@
   :PROPERTIES:
   :var+:   nil
   :END:
-#+begin_src emacs-lisp
-  (+ foo bar baz)
-#+end_src
-
+The result should be nil
 #+begin_src emacs-lisp
   (org-entry-get (point) var t t)
 #+end_src
 *** setting a new property value
 :PROPERTIES:
-:var+: bat=5
+:var+: bat=4
 :END:
-#+begin_src emacs-lisp
-  (+ foo bar baz)
-#+end_src
-
+The result should be bat=4
 #+begin_src emacs-lisp
   (org-entry-get (point) var t)
 #+end_src
-- 
1.7.10.2 (Apple Git-33)




[O] Org: HTML export breaks when you have %20 in the URL:

2011-08-07 Thread T. V. Raman
Org export to html when exporting image links fails --- if you
have %20 (url-encoded space) in the URL.

The anchor around the img link gets broken.

Here is an example:
#+ATTR_HTML:alt=Waiting to leave for White Plains align=center  
height=384
[[http://lh5.ggpht.com/-LC4N-cVAb8o/TjrW8pgkcXI/Cws/F0fdPijBcRE/TVJA%2520015.jpg]]


If you translate the above to html through org export you get
this broken markup:
p
[[http://lh5.ggpht.com/-LC4N-cVAb8o/TjrW8pgkcXI/Cws/F0fdPijBcimg 
src=http://lh5.ggpht.com/-LC4N-cVAb8o/TjrW8pgkcXI/Cws/F0fdPijBcRE/TVJA 
015.jpg alt=Waiting to leave for White Plains align=center  height=384 
/TVJA%2520015.jpg][http://lh5.ggpht.com/-LC4N-cVAb8o/TjrW8pgkcXI/Cws/F0fdPijBcRE/TVJA%2520015.jpg]]
/p

Note that we didn't get a well-formed a href=./a
wrapping the image url.

-- 
Best Regards,
--raman



[Orgmode] small addition to The Org Manual

2009-12-21 Thread V Spagnolo
A key that explicitly states what is meant by C-, S- and M-, would be
helpful.

Cheers,
V



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Shotcut Icon and PDF problem in the HTML output

2009-06-30 Thread Vikram S V
Hi

 I see neither of the problems you see: the icon is in the proper place and
 the PDF of the org home page is readable by both xpdf and acroread. But note
 that Carsten fixed something having to do with (I'm guessing) with 
 org-info.js,
 that was causing the navigation sidebar of the manual to be absent. That may
 have fixed the problems that you see, too? In any case, it's worth rechecking.

The icon _is_ missing in the online version of the manual. Actually,
there seems to be no html to display the icon or link it.
The home page is fine. Printing to a PDF file seems to be working for me.


Vikram


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Shotcut Icon and PDF problem in the HTML output

2009-06-30 Thread Vikram S V
Hi Xin,

 I think the manual is a different story than the other HTML pages generated
 by org-mode.
I see. Thank you for the pointer. As you can see (?), the icon seems
to be missing in the manual pages too.
I am no expert at org-mode, my naive guess is that, probably there is
some common source to this problem of missing icons.

Vikram


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [BUG REPORT] Bad C-u C-C C-t screen rendering with vertically split screen in emacs

2008-11-06 Thread Gary V. Vaughan
Hi Carsten,

2008/11/3 Carsten Dominik [EMAIL PROTECTED]:
 Hi Gary,

 I believe this problem is now fixed, please verify.

Thanks.  Short version: yes it seems to be working now.

Long version: I couldn't persuade my emacs to grok a fresh git clone
of the org-mode master (though I didn't try very hard -- I just
changed the emacs load-path to point at the checked out git tree
instead of the untarred org-6.10 release and restarted emacs).
Instead, I extracted changeset 293d3311 and applied it to a fresh
org-6.10c release... and now the windows behave sanely for me.  Many
thanks!!

 Also, your address reads like Domain Admin, is that intended

Oops.  I had just migrated my email to google apps @ your domain,
and didn't notice for a few days that the first email account name
is set to 'Domain Admin'.  Now fixed -- thanks again!

Cheers,
Gary

 On Oct 25, 2008, at 6:47 AM, Domain Admin wrote:

 [[3rd and final attempt to send, this time without screenshots]]

 Since I have a wide screen laptop, I almost always us C-x3 to split
 emacs into 2 side by side windows.  When I'm pushing bits around in
 org-mode, that usually translates to my todo.org on the left and an
 agenda on the right.

 The bug I've encountered since I started using org mode a few weeks
 back is that the mini-buffer grows to fill almost the entire screen
 when I want to change the state of a TODO.  Attached are two
 screen-shots - the first is my emacs layout as described above, and
 the second after pressing C-u C-c C-t  with the completion buffer
 taking up almost the whole screen.

 Please keep my address in the Cc: as I am not subscribed to the list.

 Cheers,
 Gary


 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode






-- 
Email me:  [EMAIL PROTECTED](\(\
Read my blog:  http://blog.azazil.net  ( o.O)
And my other blog: http://www.machaxor.net  (uu )o
...and my book:http://sources.redhat.com/autobook  ((_)


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: Angle brackets in org-time-stamp-format loses in html export

2008-09-05 Thread T. V. Raman
org.el has the following definition:

(defconst org-time-stamp-formats '(%Y-%m-%d %a . %Y-%m-%d %a %H:%M)
  Formats for `format-time-string' which are used for time stamps.
It is not recommended to change this constant.)

The above loses when you use org-insert-export-options-template
and then create HTML --
the #+ date: line ends with  angle brackets around the date, and
these eventually land up in the meta tag  within an attribute
value.

The problem here is of course brain-dead html/sgml/xml which
doesn't like angle brackets in attribute values.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to html and relative links:

2008-04-13 Thread T. V. Raman
I've not tried http:foo.html -- but I suggest doing that to
author a relative URL is a bad idea.

I  tried ./foo.html and that didn't work either. One compromise
would be to get ./foo.html to link to a relative url, while
foo.html continues to link to  a local anchor

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote:
Carsten 
 Hi,
 
 org-export turns links of the form [[foo][link to relative
 url foo]]
 
 ends up creating links of the form a href=#foo.../a
 
 this means that it becomes impossible to write hyperlinks
 that are relative URLs.
Carsten 
Carsten Hi Raman,
Carsten 
Carsten the url goes into the first pair of square brackets,
Carsten the description into the second.  If you put
Carsten something into the first bracket pair that does not
Carsten look lie a url, it will be treated as an internal
Carsten link.
Carsten 
Carsten Have you tried to use something like
Carsten 
Carsten [[http:foo.html][link to relative url]]
Carsten 
Carsten ?
Carsten 
Carsten - Carsten

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to html and relative links:

2008-04-13 Thread T. V. Raman

I think writing http:foo.html is a bad idea because typing that
string in other contexts is sort of meaningless as a URL.
Until now, everything one types in org-mode sort of has meaning
elsewhere. If you want it to look like a url in this case too
then I'd suggest file:foo.html -- rther than http:file.html.

I  did not suggest that earlier because it's more chars to type,
but that's not a huge concern since emacs does the typing, and we
could always augment c-c c-l to enable authoring of relative
links with file completion.

so file:a/b/c.html would become href=a/b/c.html in the
generated html.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote:
Carsten 
 I've not tried http:foo.html -- but I suggest doing that
 to author a relative URL is a bad idea.
Carsten 
Carsten Can you explain why you think that this is a bad
Carsten idea?  Educate me!  What is wrong with writing
Carsten http:foo.html ??
Carsten 
Carsten - Carsten
Carsten 
 

 I tried ./foo.html and that didn't work either. One compromise
 would be to get ./foo.html to link to a relative url,
 while foo.html continues to link to a local anchor
 
 Carsten == Carsten Dominik [EMAIL PROTECTED]
 writes:
Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote:
Carsten 
 Hi,
 
 org-export turns links of the form [[foo][link to
 relative url foo]]
 
 ends up creating links of the form a
 href=#foo.../a
 
 this means that it becomes impossible to write
 hyperlinks that are relative URLs.
Carsten 
Carsten Hi Raman,
Carsten 
Carsten the url goes into the first pair of square brackets,
Carsten the description into the second.  If you put
Carsten something into the first bracket pair that does not
Carsten look lie a url, it will be treated as an internal
Carsten link.
Carsten 
Carsten Have you tried to use something like
Carsten 
Carsten [[http:foo.html][link to relative url]]
Carsten 
Carsten ?
Carsten 
Carsten - Carsten
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export to html and relative links:

2008-04-13 Thread T. V. Raman
two suggestions:

1)  accept paths like ./foo.html as local links.
2) Augment C-c C-l to react to file: by providing filename
completion relative to the working directory.

The emacs binding to the w3m browser does this if you type file: in the 
minibuffer
when prompted for a URL.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten H, this is *such* a good idea, that I will
Carsten implement this retroactively into all versions since
Carsten ... 2.0 or so?  Abracadabra! Done.
Carsten 
Carsten In fact, it has been working just so for a very long
Carsten time.
Carsten 
Carsten file:foo.html - href=foo.html file:foo.org -
Carsten href=foo.html
Carsten 
Carsten The second line assumes that the org file foo.org
Carsten will also be converted to an html file in the
Carsten publishing process
Carsten 
Carsten Also, I was mistaken earlier:
Carsten 
Carsten http:foo.html becomes href=http:foo.html and not
Carsten href=foo.html
Carsten 
Carsten so this actually cannot be used for a local link.
Carsten 
Carsten So what remains from this exchange?  Should we
Carsten accept links that look like absolute file names
Carsten (including ./foo.html) as equivalent to
Carsten file:./foo.html ?
Carsten 
Carsten - Carsten
Carsten 
Carsten On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote:
Carsten 
 
 I think writing http:foo.html is a bad idea because typing that
 string in other contexts is sort of meaningless as a URL.
 Until now, everything one types in org-mode sort of has
 meaning elsewhere. If you want it to look like a url in
 this case too then I'd suggest file:foo.html -- rther than
 http:file.html.
 
 I did not suggest that earlier because it's more chars to
 type, but that's not a huge concern since emacs does the
 typing, and we could always augment c-c c-l to enable
 authoring of relative links with file completion.
 
 so file:a/b/c.html would become href=a/b/c.html in the
 generated html.
 
 Carsten == Carsten Dominik [EMAIL PROTECTED]
 writes:
Carsten On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote:
Carsten 
 I've not tried http:foo.html -- but I suggest doing that
 to author a relative URL is a bad idea.
Carsten 
Carsten Can you explain why you think that this is a bad
Carsten idea?  Educate me!  What is wrong with writing
Carsten http:foo.html ??
Carsten 
Carsten - Carsten
Carsten 
 

 I tried ./foo.html and that didn't work either. One compromise
 would be to get ./foo.html to link to a relative url,
 while foo.html continues to link to a local anchor
 
 Carsten == Carsten Dominik
 [EMAIL PROTECTED] writes:
Carsten On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote:
Carsten 
 Hi,
 
 org-export turns links of the form [[foo][link to
 relative url foo]]
 
 ends up creating links of the form a
 href=#foo.../a
 
 this means that it becomes impossible to write
 hyperlinks that are relative URLs.
Carsten 
Carsten Hi Raman,
Carsten 
Carsten the url goes into the first pair of square brackets,
Carsten the description into the second.  If you put
Carsten something into the first bracket pair that does not
Carsten look lie a url, it will be treated as an internal
Carsten link.
Carsten 
Carsten Have you tried to use something like
Carsten 
Carsten [[http:foo.html][link to relative url]]
Carsten 
Carsten ?
Carsten 
Carsten - Carsten
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] export to html and relative links:

2008-04-12 Thread T. V. Raman
Hi,

org-export turns links of the form 
[[foo][link to relative url foo]]

ends up creating links of the form 
a href=#foo.../a

this means that it becomes impossible to write hyperlinks that
are relative URLs.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] multiple authors in html export:

2007-11-01 Thread T. V. Raman
#+AUTHOR: a,b

produces the right thing.

However 
#+EMAIL:[EMAIL PROTECTED],[EMAIL PROTECTED]
produces a single mailtoURL
that is incorrect --- how does one create multiple EMAIL links?

Creating multiple #+EMAIL: lines ends up picking the last one.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: org-mode and Google Calendar

2007-09-30 Thread T. V. Raman
For possible ways of syncing with Google Calendar, see gcal.el --
which is part of my emacs-g-client package
http://emacspeak.googlecode.com/svn/trunk/lisp/g-client

Note that the above code is independent of Emacspeak --- but  has
only been tested under Emacs 22.

 Vagn == Vagn Johansen [EMAIL PROTECTED] writes:
Vagn Bastien [EMAIL PROTECTED] writes:
 Cezar [EMAIL PROTECTED] writes:
 
Vagn 
[...]
Vagn 
 I'm not really *syncing* my Org agenda files with Google
 Calendar.
 
 I don't use Google Calendar to add new events; I just use
 it to check events that I have in my Org agenda files.
Vagn 
Vagn Me too
Vagn 
 So what I basically do, is that I export my agenda files
 to a single .ics file, then ask Google to import this as a
 new calendar.
 
 I've cron'ed this script:
Vagn 
Vagn [...]
Vagn 
Vagn I have my org file on an ftp server so I can access it
Vagn anywhere. I then use the builtin support for FTP in
Vagn Emacs (ange/tramp) to read/write it and the
Vagn corresponding ics file. Because the org file is on a
Vagn FTP server C-c C-e i will automatically write the ics
Vagn file on the FTP server.
Vagn 
Vagn I just point google calendar to this file. The only
Vagn problem I have had is with google calendars timezone
Vagn handling.
Vagn 
Vagn -- Vagn Johansen
Vagn 
Vagn 
Vagn 
Vagn ___
Vagn Emacs-orgmode mailing list Remember: use `Reply All' to
Vagn send replies to the list.  Emacs-orgmode@gnu.org
Vagn http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] spreadsheet advice

2007-09-11 Thread T. V. Raman

For easy insertion of templates as you make entries on a
daily/hourly basis, look at the org - remember integration ---
the easiest way to do this would be to 

A)  install remember
B) Create an appropriate entry in the org-remember-templates,
C) Just hit remember and jot down what you are entering.



 Robert == Robert D Crawford [EMAIL PROTECTED] writes:
Robert I am a new user to org-mode and picked it up mainly
Robert for the spreadsheet functionality.  I have a few
Robert questions that I cannot seem to get an answer to from
Robert reading the info manual.
Robert 
Robert I am using the spreadsheet to keep track of my blood
Robert glucose levels, correctional boluses, carb intake,
Robert meal boluses, and basal increases.  All of these
Robert things need to be recorded to the nearest hour.  Each
Robert section will look like the following and corresponds
Robert to one day.  I have removed many of the hours for
Robert brevity.
Robert 
Robert | | date | 00 | 01 | 22 | 23 | avg bg | tot carb |
Robert |---+---+-+++++--|
Robert | | bg | | | | | | | | | corr | | | | | | | | | carb
Robert | | | | | | | | | bolus | | | | | | | | | basal | | |
Robert | | | | | | | | | | | | |
Robert |---+---+-+++++--|
Robert #+TBLFM: @3$3=if(@-10,(@-1-100.0)/100.0,string()
Robert 
Robert As you can see, I have only the basic layout and one
Robert equation.
Robert 
Robert Now for the questions.
Robert 
Robert 1.  I would like to keep all the tables above in one
Robert spreadsheet, one table for each day of the month,
Robert creating a new spreadsheet each month.  If there is a
Robert more efficient way to do it I am more than open to
Robert suggestion.  The reason is that I would be able to
Robert more easily track trends in blood glucose levels on a
Robert time-of-day basis.
Robert 
Robert All other questions assume the above layout.
Robert 
Robert 2.  I would like to create a bg-template.org file and
Robert simply insert that file every morning when I do my
Robert first reading.  One problem I see is the equations
Robert might need to be rewritten for the bit that gets
Robert added.  Is there some way to get past this issue?
Robert 
Robert 3.  Is there some functionality for row equations
Robert like there is for column equations?  The rows marked
Robert corr and bolus can be automatically filled with
Robert values and I would like to do this but don't want to
Robert have to bother with the work necessary to yank the
Robert equation in each field if it is not necessary.  I did
Robert try to use a range in the tblfm line but this does
Robert not work.
Robert 
Robert 4.  In the name of further automation, can one jump
Robert to a particular coordinate in the spreadsheet?
Robert 
Robert I think that takes care of my immediate questions.
Robert Thanks for any assistance offered.
Robert 
Robert rdc -- Robert D. Crawford [EMAIL PROTECTED]
Robert 
Robert But I don't like Spam
Robert 
Robert 
Robert ___
Robert Emacs-orgmode mailing list Remember: use `Reply All'
Robert to send replies to the list.  Emacs-orgmode@gnu.org
Robert http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] next-line called in lisp code:

2007-09-07 Thread T. V. Raman
From building 5.08:
emacs -batch -q -eval (add-to-list (quote load-path) 
\/usr/local/share/emacs/site-lisp\) -f batch-byte-compile org.el

In org-columns-eval:
org.el:14725:8:Warning: `next-line' used from Lisp code
That command is designed for interactive use only

In end of data:
org.el:24787:1:Warning: the following functions might not be defined at
runtime: gnus-summary-last-subject, rmail-show-message, parse-time-string,
calendar-forward-day, check-calendar-holidays, calendar-goto-date,
calendar-goto-today, calendar-iso-date-string,
calendar-julian-date-string, calendar-astro-date-string,
calendar-hebrew-date-string, calendar-islamic-date-string,
calendar-french-date-string, calendar-bahai-date-string,
calendar-mayan-date-string, calendar-coptic-date-string,
calendar-ethiopic-date-string, calendar-persian-date-string,
calendar-chinese-date-string, Info-goto-node
org.el:24787:1:Warning: the following functions are not known to be defined:
add-local-hook, table--at-cell-p, bbdb-record-name, bbdb-current-record,
bbdb-record-getprop, vm-summarize, vm-follow-summary-cursor,
vm-select-folder-buffer, vm-su-subject, vm-get-header-contents,
vm-su-message-id, wl-summary-message-number, elmo-message-field,
elmo-msgdb-overview-get-entity, wl-summary-buffer-msgdb,
wl-summary-line-from, elmo-message-entity-field, wl-summary-line-subject,
rmail-narrow-to-non-pruned-header, gnus-article-show-summary,
dired-get-filename, bbdb-name, bbdb-company, bbdb, Info-find-node,
vm-isearch-update, vm-isearch-narrow, vm-beginning-of-message,
elmo-folder-exists-p, wl-folder-get-elmo-folder,
wl-summary-goto-folder-subr, wl-summary-jump-to-msg-by-message-id,
wl-summary-redisplay, rmail-what-message, mh-index-previous-folder,
mh-get-msg-num, mh-show-buffer-message-number, mh-display-msg,
mh-header-display, mh-show-header-display, mh-get-header-field, mh-show,
mh-show-show, mh-find-path, mh-visit-folder, mh-normalize-folder-name,
mh-search-choose, mh-search, mh-show-msg, bibtex-generate-autokey,
bibtex-beginning-of-entry, bibtex-parse-entry, bibtex-url, remember,
remember-buffer-desc, make-glyph, list-diary-entries, add-to-diary-list,
cdlatex-tab, org-export-latex-cleaned-string
Wrote /tmp/org-5.08/org.elc
emacs -batch -q -eval (add-to-list (quote load-path) 
\/usr/local/share/emacs/site-lisp\) -f batch-byte-compile org-publish.el

In org-publish-org-to-html:
org-publish.el:461:8:Warning: function `org-publish-org-to-html' defined
multiple times in this file

In end of data:
org-publish.el:623:1:Warning: the following functions are not known to be
defined: org-export-as-html, eshell/cp
Wrote /tmp/org-5.08/org-publish.elc
emacs -batch -q -eval (add-to-list (quote load-path) 
\/usr/local/share/emacs/site-lisp\) -f batch-byte-compile org-mouse.el

In org-mouse-show-context-menu:
org-mouse.el:194:24:Warning: reference to free variable
`org-mouse-context-menu-function'

In org-mouse-replace-match-and-surround:
org-mouse.el:260:25:Warning: reference to free variable `rest'

In org-mouse-get-priority:
org-mouse.el:312:37:Warning: reference to free variable `org-default-priority'

In org-mouse-at-link:
org-mouse.el:318:26:Warning: reference to free variable
`org-bracket-link-regexp'
org-mouse.el:319:26:Warning: reference to free variable `org-angle-link-re'
org-mouse.el:320:26:Warning: reference to free variable `org-plain-link-re'

In org-mouse-priority-list:
org-mouse.el:343:34:Warning: reference to free variable `org-lowest-priority'

In org-mouse-popup-global-menu:
org-mouse.el:459:22:Warning: reference to free variable
`org-agenda-custom-commands'

In org-mouse-todo-keywords:
org-mouse.el:552:57:Warning: reference to free variable `org-todo-keywords'

In org-mouse-match-todo-keyword:
org-mouse.el:558:34:Warning: reference to free variable `org-todo-regexp'

In org-mouse-context-menu:
org-mouse.el:572:31:Warning: reference to free variable `org-deadline-string'
org-mouse.el:572:51:Warning: reference to free variable `org-scheduled-string'
org-mouse.el:595:52:Warning: reference to free variable `org-startup-options'

In org-mouse-do-remotely:
org-mouse.el:972:35:Warning: reference to free variable `_cmd'

In end of data:
org-mouse.el:1058:3:Warning: the following functions are not known to be
defined: outline-next-heading, org-insert-heading, org-time-stamp,
org-timestamp-change, org-priority, org-at-date-range-p,
org-at-timestamp-p, org-split-string, org-get-tags, org-get-buffer-tags,
org-set-tags, org-at-item-p, org-at-item-checkbox-p, org-previous-item,
org-next-item, org-back-to-heading, org-context, org-demote-subtree,
org-promote-subtree, org-cut-subtree, outline-end-of-subtree,
org-paste-subtree, org-with-remote-undo, org-show-hidden-entry,
org-flag-heading, org-get-heading, org-agenda-change-all-lines
Wrote /tmp/org-5.08/org-mouse.elc
emacs -batch -q -eval (add-to-list 

Re: [Orgmode] next-line called in lisp code:

2007-09-07 Thread T. V. Raman

Yes, I know it's not a problem, just pointed it out from a
code-hygene point of view 

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten None of this is a problem.  - Carsten
Carsten 
Carsten On Sep 7, 2007, at 15:38, T. V. Raman wrote:
Carsten 
 From building 5.08:
 emacs -batch -q -eval (add-to-list (quote load-path)
 \/usr/local/share/emacs/site-lisp\) -f
 batch-byte-compile org.el
 
 In org-columns-eval: org.el:14725:8:Warning: `next-line'
 used from Lisp code That command is designed for
 interactive use only
 
 In end of data: org.el:24787:1:Warning: the following
 functions might not be defined at runtime:
 gnus-summary-last-subject, rmail-show-message,
 parse-time-string, calendar-forward-day,
 check-calendar-holidays, calendar-goto-date,
 calendar-goto-today, calendar-iso-date-string,
 calendar-julian-date-string, calendar-astro-date-string,
 calendar-hebrew-date-string, calendar-islamic-date-string,
 calendar-french-date-string, calendar-bahai-date-string,
 calendar-mayan-date-string, calendar-coptic-date-string,
 calendar-ethiopic-date-string,
 calendar-persian-date-string,
 calendar-chinese-date-string, Info-goto-node
 org.el:24787:1:Warning: the following functions are not
 known to be defined: add-local-hook, table--at-cell-p,
 bbdb-record-name, bbdb-current-record,
 bbdb-record-getprop, vm-summarize,
 vm-follow-summary-cursor, vm-select-folder-buffer,
 vm-su-subject, vm-get-header-contents, vm-su-message-id,
 wl-summary-message-number, elmo-message-field,
 elmo-msgdb-overview-get-entity, wl-summary-buffer-msgdb,
 wl-summary-line-from, elmo-message-entity-field,
 wl-summary-line-subject,
 rmail-narrow-to-non-pruned-header,
 gnus-article-show-summary, dired-get-filename, bbdb-name,
 bbdb-company, bbdb, Info-find-node, vm-isearch-update,
 vm-isearch-narrow, vm-beginning-of-message,
 elmo-folder-exists-p, wl-folder-get-elmo-folder,
 wl-summary-goto-folder-subr,
 wl-summary-jump-to-msg-by-message-id,
 wl-summary-redisplay, rmail-what-message,
 mh-index-previous-folder, mh-get-msg-num,
 mh-show-buffer-message-number, mh-display-msg,
 mh-header-display, mh-show-header-display,
 mh-get-header-field, mh-show, mh-show-show, mh-find-path,
 mh-visit-folder, mh-normalize-folder-name,
 mh-search-choose, mh-search, mh-show-msg,
 bibtex-generate-autokey, bibtex-beginning-of-entry,
 bibtex-parse-entry, bibtex-url, remember,
 remember-buffer-desc, make-glyph, list-diary-entries,
 add-to-diary-list, cdlatex-tab,
 org-export-latex-cleaned-string Wrote
 /tmp/org-5.08/org.elc emacs -batch -q -eval (add-to-list
 (quote load-path) \/usr/local/share/emacs/site-lisp\)
 -f batch-byte-compile org-publish.el
 
 In org-publish-org-to-html: org-publish.el:461:8:Warning:
 function `org-publish-org-to-html' defined multiple times
 in this file
 
 In end of data: org-publish.el:623:1:Warning: the
 following functions are not known to be defined:
 org-export-as-html, eshell/cp Wrote
 /tmp/org-5.08/org-publish.elc emacs -batch -q -eval
 (add-to-list (quote load-path)
 \/usr/local/share/emacs/site-lisp\) -f
 batch-byte-compile org-mouse.el
 
 In org-mouse-show-context-menu:
 org-mouse.el:194:24:Warning: reference to free variable
 `org-mouse-context-menu-function'
 
 In org-mouse-replace-match-and-surround:
 org-mouse.el:260:25:Warning: reference to free variable
 `rest'
 
 In org-mouse-get-priority: org-mouse.el:312:37:Warning:
 reference to free variable `org-default-priority'
 
 In org-mouse-at-link: org-mouse.el:318:26:Warning:
 reference to free variable `org-bracket-link-regexp'
 org-mouse.el:319:26:Warning: reference to free variable
 `org-angle-link-re' org-mouse.el:320:26:Warning: reference
 to free variable `org-plain-link-re'
 
 In org-mouse-priority-list: org-mouse.el:343:34:Warning:
 reference to free variable `org-lowest-priority'
 
 In org-mouse-popup-global-menu:
 org-mouse.el:459:22:Warning: reference to free variable
 `org-agenda-custom-commands'
 
 In org-mouse-todo-keywords: org-mouse.el:552:57:Warning:
 reference to free variable `org-todo-keywords'
 
 In org-mouse-match-todo-keyword:
 org-mouse.el:558:34:Warning: reference to free variable
 `org-todo-regexp'
 
 In org-mouse-context-menu: org-mouse.el:572:31:Warning:
 reference to free variable `org-deadline-string'
 org-mouse.el:572:51:Warning: reference to free variable
 `org-scheduled-string' org-mouse.el:595:52:Warning:
 reference to free variable `org-startup-options'
 
 In org-mouse-do-remotely: org-mouse.el:972:35:Warning:
 reference to free variable `_cmd'
 
 In end of data: org-mouse.el:1058:3

Re: [Orgmode] Feature Request: org-agenda-set-category

2007-09-05 Thread T. V. Raman
I'm perfectly happy to do this with properties rather than
categories. But I suggested categories because that is what
agenda  views are using at present in the left column.
Could we perhaps introduce a special property that is used by
org-agenda to build the left column?

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten On Sep 4, 2007, at 20:00, Bastien wrote:
Carsten 
 T. V. Raman [EMAIL PROTECTED] writes:
 
 It would be nice to have an interactive
 org-agenda-set-category alongside org-agenda-set-tag in
 the agenda buffer.
 
 I think it doesn't make sense to have
 `org-agenda-set-category' until we are able to set the
 category as a property of the headline.
 
 For now categories (like the archiving locations) are set
 by looking *backward* for a line like #+CATEGORY or
 #+ARCHIVE.
 
 When setting the category with `org-agenda-set-category',
 where should such a line be inserted/modified? Just above
 the headline? Then storing this headline won't delete the
 #+CATEGORY line. Just under the headline?  Then the
 headline itself won't be recognized as belonging to that
 category...  See the discussion here:
 
 http://article.gmane.org/gmane.emacs.orgmode/2898
 
 Please anybody stops me if I'm wrong, but I guess the
 #+ARCHIVE and #+CATEGORY instructions are slowly dying and
 will be set as properties in the future.
Carsten 
Carsten I have been thinking in this direction as well.  The
Carsten only problem is that properties are quite invisible
Carsten during normal working.
Carsten 
Carsten But I agree that the multiple #+CATEGORY things in a
Carsten single file are complex and not very clean, so
Carsten properties might be better.
 
 Then, in the new world, where such #+CONSTRUCTS are only
 used to set *file* properties (not headlines properties),
Carsten 
Carsten Yes, I'd like to go there, eventually.
Carsten 
 it will be okay to set whatever property you want through
 the column view -- and perhaps the column view itself
 would be available in the agenda ebuffer
Carsten 
Carsten it is!
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-read-date minibuffer bindings:

2007-09-04 Thread T. V. Raman

Incidentally, it might be worthwhile to promote org-read-date to
all of Emacs as read-date -- Emacs needs a good date-picker
widget alongside things like read-file and org-read-date is the
best I've seen. Incidentally I'm planning to update gcal.el (part
of emacs-g-client)
to use org-read-date if available.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten On Sep 4, 2007, at 4:29, T. V. Raman wrote:
Carsten 
 For all date/calendar related things, down-arrow moves
 forward, up-arrow back --- except in the keybindings set
 up for org-time-stamp through org-shiftup and
 org-shiftdown
 
 In some sense, the binding used there -- up-arrow
 increases down-arrow decreases field under point makes
 local sense, but is globally confusing.
Carsten 
Carsten You are right, I have been irritated by this as
Carsten well, without knowing why.  I modeled it after the
Carsten typical number selection item in widgets that
Carsten usually have little arrow on the side that you can
Carsten click.
Carsten 
Carsten But now you are telling me the reason of my
Carsten confusion: In the calenda and in the agenda, down
Carsten means later.
Carsten 
Carsten I am hesitant to change the default for this (would
Carsten to after massive voting), but there will be an
Carsten option `org-edit-timestamp-down-means-later' in the
Carsten next version.
Carsten 
Carsten Thanks!
Carsten 
Carsten - Carsten
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Feature Request: org-agenda-set-category

2007-09-04 Thread T. V. Raman
It would be nice to have an interactive org-agenda-set-category
alongside org-agenda-set-tag 
in the agenda buffer.

This would allow one to quickly categorize tasks.

Later, it might also be  nice to implement a function that  say
rearranges all todo entries of a particular category under a
common section. I find myself doing this by hand at present, and
Emacs will probably do it better than my fingers.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Feature Request: org-agenda-set-category

2007-09-04 Thread T. V. Raman
Putting it immediately after the headline is how I would
implement it.

And it would work depending on ones workstyle --- most features
of org  make sense only in the context of a work style.

 Bastien == Bastien  [EMAIL PROTECTED] writes:
Bastien T. V. Raman [EMAIL PROTECTED] writes:
 It would be nice to have an interactive
 org-agenda-set-category alongside org-agenda-set-tag in
 the agenda buffer.
Bastien 
Bastien I think it doesn't make sense to have
Bastien `org-agenda-set-category' until we are able to set
Bastien the category as a property of the headline.
Bastien 
Bastien For now categories (like the archiving locations)
Bastien are set by looking *backward* for a line like
Bastien #+CATEGORY or #+ARCHIVE.
Bastien 
Bastien When setting the category with
Bastien `org-agenda-set-category', where should such a line
Bastien be inserted/modified? Just above the headline? Then
Bastien storing this headline won't delete the #+CATEGORY
Bastien line. Just under the headline?  Then the headline
Bastien itself won't be recognized as belonging to that
Bastien category...  See the discussion here:
Bastien 
Bastien   http://article.gmane.org/gmane.emacs.orgmode/2898
Bastien 
Bastien Please anybody stops me if I'm wrong, but I guess
Bastien the #+ARCHIVE and #+CATEGORY instructions are slowly
Bastien dying and will be set as properties in the
Bastien future. We already (as of 5.07) have these new
Bastien properties when archiving:
Bastien 
Bastien   :ARCHIVE_TIME: 2007-09-01 sam 05:54 :ARCHIVE_FILE:
Bastien ~/org/bzg.org :ARCHIVE_CATEGORY: nothot
Bastien 
Bastien Then, in the new world, where such #+CONSTRUCTS are
Bastien only used to set *file* properties (not headlines
Bastien properties), it will be okay to set whatever
Bastien property you want through the column view -- and
Bastien perhaps the column view itself would be available in
Bastien the agenda ebuffer, which would let you have your
Bastien `org-agenda-set-category'.
Bastien 
Bastien (Of course #+CATEGORY will remain, but only as a way
Bastien to categorize files, not headlines.)
Bastien 
 This would allow one to quickly categorize tasks.
Bastien 
Bastien Yes, as the column view allows quick selection of
Bastien *any* property.
Bastien 
 Later, it might also be nice to implement a function that
 say rearranges all todo entries of a particular category
 under a common section. I find myself doing this by hand
 at present, and Emacs will probably do it better than my
 fingers.
Bastien 
Bastien Maybe `org-sort-entries' could group entries that
Bastien have a property in common.
Bastien 
Bastien -- Bastien
Bastien 
Bastien 
Bastien ___
Bastien Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Bastien http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] feature request: additional org/remember template escapes:

2007-09-03 Thread T. V. Raman

Yes,  your suggested replacement for the message would be
clearer.
And thanks for the new template, org/remember is an amazing piece
of work.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten On Sep 1, 2007, at 6:32, T. V. Raman wrote:
Carsten 
 I've been using org with remember as my Web Notebook for
 the last 18 months.
 
 I browse exclusively from Emacs as an emacspeak user (w3
 and W3M) and this is an incredibly useful thing to have.
 
 The one thing that prevents me from completely satisfied
 is the set of available template escapes -- based on what
 is possible, entries end up looking like:
 
 ** [[URL]] note
 
 where note is what I typed in the remember buffer.
 
 Ideally I'd like the above to be :
 
 ** [[URL][Note]]
 
Carsten 

Starting with 5.08, you will be able to use %A in the template.
Carsten It will insert the link, but explicitly prompt you
Carsten for the link description.
Carsten 
 or even better, have the entry go in as a bullet rather
 than a section header.
Carsten 
Carsten This is hard, because the whole note insertion of
Carsten remember notes is based on the outline structure.
Carsten No action for now.
Carsten 
 Finally, I have never understood what the inserted at
 level n shifted by m message means, could we come up with
 better wording? I feel uneasy criticizing without a better
 suggestion, but I dont understand what it means fully, and
 am consequently reluctant to hazard at a better phrase.
Carsten 
Carsten A remember note is an outline entry, i.e. it has a
Carsten first line with one or many stars.  Notes are
Carsten inserted into the existing outline structure using
Carsten the command org-paste-subtree.  The command is
Carsten clever about adjusting the outline level of the
Carsten inserted subtree, so that it correctly fits into the
Carsten local hierarchy.  And to make sure the user
Carsten understands what just happened, it tells the user
Carsten what the new outline level of the inserted item is,
Carsten if it hat to be shifted (i.e. promoted or demoted
Carsten but removing or adding stars) to get there.  At the
Carsten time of implementation this was more of a debugging
Carsten feedback than anything else.
Carsten 
Carsten I guess this is reasonably useful feedback when
Carsten using the pasting commands explicitly, in an
Carsten interactive way.  We could turn off the message in
Carsten non-interactive use like this (during remember
Carsten filing note storing).
Carsten 
Carsten For interactive use, how about the simpler:
Carsten 
Carsten Clipboard pasted as level N subtree
Carsten 
Carsten Would that be clearer?
Carsten 
Carsten - Carsten
Carsten 
Carsten 
Carsten 
Carsten -- Carsten Dominik Sterrenkundig Instituut Anton
Carsten Pannekoek Universiteit van Amsterdam Kruislaan 403
Carsten NL-1098SJ Amsterdam phone: +31 20 525 7477
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-agenda -- todo commands dont change state?

2007-09-03 Thread T. V. Raman

I cloned John W's setup.
I also saw that he had a small note saying dont use the todo
cycling commands
I've now been successfully using the helper commands he defined
in his customizations. Incidentally, those commands might be
useful to promote into org-mode -- they work really nicely.
I also like the work style that that encourages, i.e. hit tab in
the agenda view, and work with the entry in the toto file.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten Hi Raman, I am unable to reproduce this.  I guess we
Carsten need more info about your setup.
Carsten 
Carsten - Carsten
Carsten 
Carsten On Sep 1, 2007, at 23:27, T. V. Raman wrote:
Carsten 
 Hitting 't' in the agenda buffer pops up an input area,
 but finishing with C-C C-c raises a not within an item
 error and the state is not updated.
 
 
 Using C-u t does not raise this error, but the state
 remains untouched.
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs
 
 
 ___
 Emacs-orgmode mailing list Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
Carsten 
--
Carsten Dominik Sterrenkundig Instituut Anton Pannekoek
Carsten Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
Carsten Amsterdam phone: +31 20 525 7477
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode and outline: Signalling at top level

2007-08-31 Thread T. V. Raman
So following the excellent article on GTD, I decided to start
using org for keeping my day planner.

I discovered an immediate irritant (only Emacspeak users will hit
this)--
when you create the agenda view  Emacs signals Already at top 
multiple times.

This is not coming from org-mode, but from outline-up-heading ---
which has the unfortunate habit of raising a signal that is
caught elsewhere.

Emacspeak notices this because it has to provide speec/auditory
output on signal --- there are too many emacs packages that use
signal to indicate user-visible error conditions, e.g. VM at
end-of-folder.

For now, I defined an around advice on outline-up-heading to
silence the output in case of a signal, but I think it would be
useful for org-mode to protect itself from calling
outline-up-heading unnecessarily -- purely from a software hygene
point of view.

To observe the problem, try invoke org-agenda with
debug-on-signal set to T--
alternatively, just look at the messages buffer.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] 4.77: org-export-region-as-html produces strange output

2007-06-18 Thread T. V. Raman

What is strange about col

A)   I dont know what that element means or why it is there.
B)   It's also missing its closing tag.



 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten Hi Raman, On Jun 17, 2007, at 20:32, T. V. Raman
Carsten wrote:
Carsten 
 

 See attached org input and resulting HTML.
 
 Things that look buggy:
 
 The example uses a section header, a bulleted list and a
 table.
 
 See list of problems below:
 
 0) The table becomes part of the final bullet.
Carsten 
Carsten I'd say this is on purpose.  Same is true for pre
Carsten stuff, these are just insertions, their indentation
Carsten does not change the structure.
Carsten 
 1) The table has a strange col element inside it.
Carsten 
Carsten What is strange about it?
Carsten 
 2) Given that I invoked org-export-region-as-html with a
 prefix arg, it would be a good idea not to generate
 section numbers --
Carsten 
Carsten Good point, I will turn that off.  There is a
Carsten similar problems with ID of headings, these should
Carsten maybe also turned because using cut-and-paste, you
Carsten might get multiple id's like sec-1.
Carsten 
Carsten Thanks.
Carsten 
Carsten - Carsten

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] 4.77: org-export-region-as-html produces strange output

2007-06-17 Thread T. V. Raman


See attached org input and resulting HTML.

Things that look buggy:

The example uses a section header, a bulleted list and a table.

See list of problems below:

0)  The table becomes part of the final bullet.
1)  The table has a strange col element inside it.
2)  Given that I invoked org-export-region-as-html with a prefix
arg, it would be a good idea not to generate section numbers --
or at least make the generation of such section numbers
customizable by the user.
Otherwise, cutting and pasting the generated html markup requires
handfixing of the section numbers 



* Introduction
  - First bullet.
  - Second bullet.

|--+---|
| Name | Email |



h2 id=sec-11 Introduction/h2

ul
li
First bullet.
/li
li
Second bullet.

table border=2 cellspacing=0 cellpadding=6 rules=groups frame=hsides
COL align=leftCOL align=left
tbody
trtdName/tdtdEmail/td/tr
/tbody
/table

/li
/ul

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export to PDF

2007-04-28 Thread T. V. Raman

to get hyperlinks etc from latex into pdf, the best option is to
use package hyperref 

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten Why don't you go through HTML und use
Carsten http://www.rustyparts.com/pdf.php
Carsten 
Carsten - Carsten
Carsten 
Carsten On Apr 18, 2007, at 14:59, Denis Bueno wrote:
Carsten 
 All-
 
 I'm somewhat mystified that I can't seem to find support
 for this feature in Org mode. I looked through the manual
 and mailing list, but it seems no one has used -- or even
 wanted -- this feature. However, it's one of the (very
 few) things I can find lacking in org-mode. Is there a
 chance this will be implemented in the future?
 
 LaTeX-heavy files especially would benefit from
 export-to-pdf (and indeed, this is why I want it). The
 lack of this feature is the one thing that gives me pause
 about using org-mode to take notes in college.
 
 Thank you.
 
 -Denis
 
 
 ___
 Emacs-orgmode mailing list Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
Carsten 
--
Carsten Dominik Sterrenkundig Instituut Anton Pannekoek
Carsten Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
Carsten Amsterdam phone: +31 20 525 7477
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-insert-links and minibuffer history?

2007-01-27 Thread T. V. Raman
Hi,

It would be nice if org-stroed-links got used as minibuffer
history by org-insert-links.

The present behavior -- hitting enter inserts the most recently
yanked link, intuitively makes one want to hit M-n and M-p to
cycle through the set of links stored in org-stored-links
 Thanks, 
 --Raman

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] keyboard command request: jumping to links in org mode

2007-01-24 Thread T. V. Raman
Hi,

I need a keyboard command to move through the links in an
org-mode buffer; I cant find something that will do this at
present.

This means that I need to use regular word navigation commands at
present to navigate to a link on a line before hitting c-c c-o
--- tab would have been a possible key to use for this but it's
already taken.

Key choice aside I'd like two interactive commands, org-next-link
and org-previous-link --- should basically come down to executing
(goto-char (next-single-property-change ..)) of the right
property. 

Do you think something like this could be added?

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode, vc, and read-only files:

2006-10-08 Thread T. V. Raman
Would it be possible to make org-cycle work on read-only files
--- suspect we just neeed to wrap its body in a 
(let ((inhibit-read-only t))...)

At present, if you put your org files under vc control, with RCS then
opening a checked-in  file i.e. one that is read-only, causes an
error since org-cycle is unable to change properties on read-only
content.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] BibTeX export question

2006-09-19 Thread S V N Vishwanathan
Hi!

I want to be able to list all my publications on my home page. Currently
I do it with a dodgy bib2html converter script, but what I would like to
have to manage it via the org-export. More concretely, I want to write
in my org file:

List of my publications:

* \cite{somepub}
* \cite{someotherpub}

...

#+BIBSTYLE: some style
#+BIBFILE: path/to/a/file

and when I export to HTML, I simply get an output similar to that of
bib2html. But, within org-mode, when I click on the \cite{} links I
would like them to open the corresponding entry in the bibfile.

Alternatively, I could write:

[[cite:~/path/to/a/file::somepub][blah]]

and it automatically gets interpreted as a bibtex link within org-mode
but gets exported as a bibtex entry during export using a default style
(changeable using a #+BIBSTYLE command).

I am sorry if this has already been discussed before or if the
functionality already exists. Browsing thro the manual + a google search
or did not bring up anything relevant. If anything is unclear please let
me know.

S V N Vishwanathan

ps: pls cc me on a reply since I am not subscribed to the mailing list. 
 
- 
Complex systems tend to oppose their own proper function.


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] org-mode: couple of html related feature requests

2006-08-07 Thread T. V. Raman

I dont care as much about th #+title bit as much as all headings
appearing one level demoted in html 

I'd like '* heading' to become h1, not h2 as it does at present.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten I still fail to see why this would be better than
Carsten using the #+TITLE line that has exactly this
Carsten purpose.  If you want to specify the title line, you
Carsten can use that line.  If you don't want to specify it,
Carsten all we are discussing about is the question of what
Carsten would be a good default for the title.  I am
Carsten currently taking that default from the file name,
Carsten you want it from the first headline - both can be
Carsten equally good and bad titles.
Carsten 
Carsten - Carsten
Carsten 
Carsten On Aug 3, 2006, at 3:07, T. V. Raman wrote:
Carsten 
 But we could still use the first top-levle heading?  The
 rest of the mapping still holds, since html lets you have
 multiple h1 headings on a page. As things stand,
 everything gets demoted a level when you go through org
 
 Carsten == Carsten Dominik [EMAIL PROTECTED]
 writes:
Carsten Hi Raman, On Jul 23, 2006, at 20:19, T. V. Raman
Carsten wrote:
Carsten 
 Hi,
 
 Here are a couple of html export related feature
 requests.
 
 0) Would it be possible to generate the title element
 from the first top-level heading -- rather than the base
 filename?
Carsten 
Carsten No, I don't want to do this.  If we do this we
Carsten implicitly assume that there is only one top-level
Carsten heading in the file, in general there will be more
Carsten than one.  However, you can always set the document
Carsten title like this:
Carsten 
Carsten #+TITLE: This is a title for the HTML export
Carsten 
 1) How do I avoid the -*- mode: ... -*- line from
 showing up in the exported HTML?
Carsten 
Carsten How do you get it in?  I have never seen it.
Carsten Anybody?
Carsten 
 2) Finally, how do I supress generation f the Table of
 contents?
Carsten 
Carsten This was already answered by David Emery.
Carsten 
 And one related request:
 
 Once we get the vaue of title from the first top-level
 heading, we could also promote everything up by a level
 on the html side so that '*' headings become h1, '**'
 become h2 etc.
 
 I find the present practice of '*' headings becoming h2s
 a bit painful because things on the HTML side get too
 deep in their hierarchy.
Carsten 
Carsten I don't think it is useful to treat the first
Carsten toplevel heading differently from the others.  And I
Carsten personally like the title in H1 and the top level
Carsten headings in H2.  However, I can see that this is a
Carsten matter of taste, so I will provide a variable
Carsten 
Carsten org-export-html-toplevel-hlevel
Carsten 
Carsten that can be used to set which of H1, H2, H3
Carsten  should be used for level 1 org-mode headings.
Carsten Default for now continues to be 2.
Carsten 
Carsten Related to this, I have an HTML/CSS question:
Carsten 
Carsten If I do
Carsten 
Carsten H1 class=titleDocument title/H1
Carsten 
Carsten H1My first outline heading/H1
Carsten 
Carsten what do i have to put into the css style to make the
Carsten first line appear differently from the second? I
Carsten have tried:
Carsten 
Carsten h1 { font-size: 18pt; padding-top: 1em; }
Carsten 
Carsten .title { font-size: 20pt; color: #ff8c00; }
Carsten 
Carsten but that does not work.
Carsten 
Carsten Thanks.
Carsten 
Carsten - Carsten
Carsten 
Carsten 
Carsten 
Carsten -- Carsten Dominik Sterrenkundig Instituut Anton
Carsten Pannekoek Universiteit van Amsterdam Kruislaan 403
Carsten NL-1098SJ Amsterdam phone: +31 20 525 7477
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs
 
 
Carsten 
--
Carsten Dominik Sterrenkundig Instituut Anton Pannekoek
Carsten Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
Carsten Amsterdam phone: +31 20 525 7477

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Fwd: org mode list

2006-06-23 Thread T. V. Raman

It appears to be working now.



 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten I just got this message from Raman, and I don't know
Carsten what to do.  Anyone here has more experience in
Carsten mailing list management that I do?  Thanks.
Carsten 
Carsten - Carsten
Carsten 
Carsten Begin forwarded message:
Carsten 
 From: TV Raman [EMAIL PROTECTED] From: T. V. Raman
 [EMAIL PROTECTED] Date: June 23, 2006 6:44:55 CEST To:
 [EMAIL PROTECTED] Subject: org mode list
 
 unfortunately sourceforge appears to have bounced my mail
 last week, resulting in org-mode mailing list
 unsubscribing me.  Unfortunately the reconfirm cookie
 has also expired, and I'm at a loss as to how to re-enable
 my subscription
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs
 
 
 
Carsten --
Carsten Dominik Sterrenkundig Instituut Anton Pannekoek
Carsten Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
Carsten Amsterdam phone: +31 20 525 7477
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Org-mode 4.39

2006-06-23 Thread T. V. Raman
for html export from latex, I recommend tex4ht -- exporting
images is a bad thing since someone who cannot see wont be able
to read something that should be perfectly readable.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] example of tex4ht to produce html from LaTeX

2006-06-23 Thread T. V. Raman
As an example, see
http://safariexamples.informit.com/0321154991/index.html
I typeset this book in LaTeX, and the online HTML was produced by
tex4ht.

tex4ht is installed on most linux systems where TeX is these
days, the script to invoke it is either xhlatex.sh or xhlatex
depending on the installation.

Let's atleast make the mechanism to  export LaTeX to HTML
customizable, and have xhlatex as one of the available choices
--- and preferably the default.
 Thanks, 
 --Raman

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] table.el and org.el

2006-06-05 Thread T. V. Raman

I hadn't realized org-mode-map did its own rebindings; that
should be sufficient in terms of clues for me to trace this down.



 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten I have never closely looked at how table.el works
Carsten and how it creates and installs its special keymap.
Carsten Nor do I know what Emacs speak does.
Carsten 
Carsten But I can explain what Org-mode does:
Carsten 
Carsten Org-mode defines its own self-insert-command
Carsten (org-self-insert-command).  It then re-binds all
Carsten keys that are assigned to self-insert-command in the
Carsten *global* map.  That binding takes place in
Carsten org-mode-map.  However, for me table.el works fine -
Carsten so that means it does install its keymap correctly
Carsten also in Org-mode.
Carsten 
Carsten To summarize - I have no idea where things go wrong.
Carsten 
Carsten Things to try would be to (require 'table) before
Carsten org.el gets loaded, and maybe (if that if necessary)
Carsten to force table.tl to built its keymap before the
Carsten first org-mode file gets loaded.
Carsten 
Carsten - Carsten
Carsten 
Carsten On Jun 5, 2006, at 2:14, T. V. Raman wrote:
Carsten 
 I'm losing table-mode keybindings when I create table.el
 tables in org-mode.
 
 This may be due to interction with emacspeak --- see
 explanation below, but I need some tips on how to fix
 this.
 
 Symptoms:
 
 I can use table.el tables in non-org buffers.
 
 In org-buffer, if I create a table.el table I get
 problems.
 
 Explanation of Problem:
 
 Emacspeak redefines self-insert-command since that command
 cannot be advised.  table.el also redefines and rebinds
 self-insert-command, and I have advised table.el's
 insertion commands, that works correctly.
 
 table.el sets up a special keymap where it rebinds
 self-insert-command; I've advised the remapping command to
 become aware of the need to also rebind emacspeak's
 version of self-insert command.
 
 For some reason there seems to be some interaction between
 table.el and org-mode that causes the final step in the
 above chain to fail.
 
 Thoughts?
 
 -- 
 Best Regards, --raman
 
 
 Email: [EMAIL PROTECTED] WWW:
 http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
 [EMAIL PROTECTED] PGP:
 http://emacspeak.sf.net/raman/raman-almaden.asc Google:
 tv+raman IRC: irc://irc.freenode.net/#emacs
 
 
 ___
 Emacs-orgmode mailing list Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
Carsten --
Carsten Dominik Sterrenkundig Instituut Anton Pannekoek
Carsten Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
Carsten Amsterdam phone: +31 20 525 7477

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] org-agenda-todo-list-sublevels bug?

2006-06-02 Thread T. V. Raman

Here's one for the list:

Now that we have xhtml output, and CSS support, it might be nice
to introduce support for microformats -- starting with things
like hcard and hcalendar.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten OK, there is indeed a bug, exposed because of your
Carsten setting
Carsten 
Carsten (setq org-agenda-todo-ignore-scheduled t)
Carsten 
Carsten which I don't have and therefore the bug did not
Carsten happen for me.  Thanks for taking the time to make
Carsten me a test file, and for including your complete
Carsten configuration.
Carsten 
Carsten I have fixed this for the next version.  I am not
Carsten sure if you realize this, but this will mean that
Carsten your example todo list will be completely empty. You
Carsten ask Org-mode to not treat scheduled items as open,
Carsten and you also ask it to ignore the subitems of any
Carsten TODO.  The first setting makes it skip the first
Carsten headline, the second setting makes it skip the other
Carsten two.
Carsten 
Carsten Thanks
Carsten 
Carsten - Carsten
Carsten 
Carsten On Jun 1, 2006, at 17:07, Christian Egli wrote:
Carsten 
 Hi all
 
 On Wed, 2006-05-24 at 12:53 +0200, Christian Egli wrote:
 I really like the option to hide TODOs that are part of a
 bigger TODO, for example
 
 * TODO Organize party ** TODO Invite people ** TODO Find
 location
 
 Thanks to the option org-agenda-todo-list-sublevels my
 agenda only contains the Organize party task and is not
 cluttered with the subtasks.
 
 However if I schedule the task Organize Party the
 subtasks show up in the ALL CURRENTLY OPEN TODO
 ITEMS. I guess the code to skip the subtasks should not
 only be in org-agenda-get-todos but also in
 org-agenda-get-scheduled and possibly all
 org-agenda-get-* functions.
 
 Attached is the test org file and my .emacs. The version
 of org-mode is 4.35 (from CVS). The *Org Agenda* Buffer
 looks as follows:
 
 ALL CURRENTLY OPEN TODO ITEMS: test: TODO Invite people
 test: TODO Find location Monday 29 May 2006 Tuesday 30 May
 2006 Wednesday 31 May 2006 Thursday 1 June 2006 test:
 Scheduled: TODO Organize party Friday 2 June 2006 Saturday
 3 June 2006 Sunday 4 June 2006
 
 test.org.emacs___
 Emacs-orgmode mailing list Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
Carsten --
Carsten Dominik Sterrenkundig Instituut Anton Pannekoek
Carsten Universiteit van Amsterdam Kruislaan 403 NL-1098SJ
Carsten Amsterdam phone: +31 20 525 7477
Carsten 
Carsten 
Carsten 
Carsten ___
Carsten Emacs-orgmode mailing list Emacs-orgmode@gnu.org
Carsten http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] missing ';' in html output

2006-06-02 Thread T. V. Raman
Minor bug (probably introduced by me )--
in xhtml output, non-breaking space is coming out as nbsp --
should be nbsp;

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] patch to org.el to produce xhtml:

2006-05-27 Thread T. V. Raman

yes, I believe we will be mostly there. I still need to see what
we output for tables.

 Carsten == Carsten Dominik [EMAIL PROTECTED] writes:
Carsten On May 26, 2006, at 4:05, T. V. Raman wrote:
Carsten 
 I am attaching a partial patch (see below for explanation
 of partial) along with sample files, I hope others here
 can help finish this.
 
 Goal: Produce well-formed XHTML.
 
 What I have Fixed:
 
 0) Ensure all tagnames are lower case.  1) Emit correct
 doctype and xhtml namespace.  2) Emit / to close meta
 tags.  3) Emit /li to close bullets (not all cases
 covered) 4) Ensured that all attribute values are quoted.
 
 ToDo:
 
 A) Emit closing li tags in all cases.  B) Emit closing
 /p to close paragraphs.  C) Ensure that author and date
 bits on the bottom are wrapped in a p class=xxx.../p
 where xxx is author or date as appropriate.
 
Carsten
I think I can take care of these remaining issues.  This is all
Carsten that is needed to get to XHTM strict  Easier
Carsten than I thought, then.
Carsten 
Carsten   Thanks!
Carsten 
Carsten Carsten

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Request: use call-interactively in org-shiftmetaup and friends?

2006-05-20 Thread T. V. Raman

This is a request  for making speech-enabling some of org-mode's
wizard commands easier from Emacspeak

At present org-shiftmetaup and friends call the correct
interactive command based on context -- this is very nice.

To provide the right spoken message, the ideal points to advice
in emacspeak are the context specific commands,
e.g. org-move-item-up etc.

To keep the advice safe, I usually 
protect the code in the advice fragment with a (when
(interactive-p) ...)
so that the advice doesn't fire when the command is called from
within other functions.

I'm having to break this rule right now because org-shiftmetaup
etc call the appropriate interactive command
e.g. org-move-item-up as a function; could you change these to
use call-interactively -- would make my life on the advice side
much easier.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] org-metaright and org-shiftmetaright

2006-05-20 Thread T. V. Raman
These two commands appear to do practically  the same thing, I'm
confused  as to  why they are distict.

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] Re: cannot store link to an info ode?

2006-05-20 Thread T. V. Raman
Applied your patch, works like a charm!

Thanks, and hope this gets into the next update to org-mode.el

-- 
Best Regards,
--raman

  
Email:  [EMAIL PROTECTED]
WWW:http://emacspeak.sf.net/raman/
AIM:emacspeak   GTalk: [EMAIL PROTECTED]
PGP:http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:irc://irc.freenode.net/#emacs


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode