RE: [Orgmode] New tutorial about using Org as a spreadsheet system

2008-02-27 Thread Chris Randle
Hi Bastien,

Bastien Guerry wrote:
> Hi folks,
> i've made a small tutorial about the use of spreadsheet facilities in
> org-mode:
>   http://www.legito.net/worg/org-tutorials/org-spreadsheet-intro.php

Thanks. It was very useful. I use tables and spreadsheets quite a lot,
but I still learnt a couple of very useful things that I didn't know:
the formula editor and debugging.

As I followed along, I spotted a couple of things:

1) Under "Your first formula", the first vmean formula you show is a
column formula, whereas the text implies it should have been a field
formula.

2) I'd never used #+CONSTANTS before, and as I followed along I
discovered that I had to do a 'C-c C-c' on the CONSTANTS line before the
table had knowledge of it. It might be good to make that explicit,
otherwise the table shows #ERRORs. I got to use my new-found debugging
knowledge to work out why!

-- 
Chris Randle



___
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] Active timestamp with notification in advance

2008-02-27 Thread Carsten Dominik

In Org-mode, by definition, Deadlines are the ones with ahead warnings.
Why don't you just turn the appointments where you need early  
reminders into deadlines?


- Carsten

On Feb 26, 2008, at 11:01 PM, Wanrong Lin wrote:


Hi,

Currently we can set the number of days a deadline should be  
notified in advance with something like this:


* TODO Do this
DEADLINE: <2008-03-24 Mon -30d>

But it does not work on a plain active time stamp like this:

* TODO See Doctor
<2008-03-24 Mon -30d>

Can we consider adding this feature to plain active time stamp? It  
would be great for appointment notification.


Thanks for giving that a thought.

Wanrong


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




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


Re: [Orgmode] bug: Xemacs problem with editing headings with compressed contents

2008-02-27 Thread Carsten Dominik

This is a hard one - no fast fix.

- Carsten

On Feb 26, 2008, at 6:13 PM, Tim O'Callaghan wrote:


Hi.

There is some problem with tags and headings. I've had instances where
the tag has disappeared or merged into my heading.

Repeatable with Xemacs 21.4.19 i586-pc-win32, org 5.22a using this  
fragment:

-

* REAEARCH memory problems on oxo50 :proj:
*** WAIT korstian to organise a meeting.
-

If i try to add the S into the heading when it is folded, then it
generates the error "Visible portion of buffer not modifiable".
Debugger gives:

Debugger entered--Lisp error: (error "Visible portion of buffer not  
modifiable")

 move-to-column(70 t)
 (progn (setq tags (match-string 2)) (goto-char (match-beginning 1))
(insert " ") (delete-region (point) (1+ ...)) (backward-char 1)
(move-to-column (max ... ... ...) t) (insert tags) (move-to-column
(min ... col) t))
 (if (and (looking-at ...) (< pos ...)) (progn (setq tags ...)
(goto-char ...) (insert " ") (delete-region ... ...) (backward-char 1)
(move-to-column ... t) (insert tags) (move-to-column ... t))
(goto-char pos))
 (let ((pos ...) (col ...) tags) (beginning-of-line 1) (if (and ...
...) (progn ... ... ... ... ... ... ... ...) (goto-char pos)))
 org-align-tags-here(70)
 (if (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 (when (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 org-fix-tags-on-the-fly()
 (if (and (org-table-p) (progn ... t) (eq N 1) (looking-at "[^|\n]*
|")) (let (org-table-may-need-update) (goto-char ...)
(delete-backward-char 1) (goto-char ...) (self-insert-command N))
(setq org-table-may-need-update t) (self-insert-command N)
(org-fix-tags-on-the-fly))
 org-self-insert-command(1)
 call-interactively(org-self-insert-command)
 recursive-edit()
 debug(error (error "Visible portion of buffer not modifiable"))
 move-to-column(70 t)
 (progn (setq tags (match-string 2)) (goto-char (match-beginning 1))
(insert " ") (delete-region (point) (1+ ...)) (backward-char 1)
(move-to-column (max ... ... ...) t) (insert tags) (move-to-column
(min ... col) t))
 (if (and (looking-at ...) (< pos ...)) (progn (setq tags ...)
(goto-char ...) (insert " ") (delete-region ... ...) (backward-char 1)
(move-to-column ... t) (insert tags) (move-to-column ... t))
(goto-char pos))
 (let ((pos ...) (col ...) tags) (beginning-of-line 1) (if (and ...
...) (progn ... ... ... ... ... ... ... ...) (goto-char pos)))
 org-align-tags-here(70)
 (if (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 (when (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 org-fix-tags-on-the-fly()
 (if (and (org-table-p) (progn ... t) (eq N 1) (looking-at "[^|\n]*
|")) (let (org-table-may-need-update) (goto-char ...)
(delete-backward-char 1) (goto-char ...) (self-insert-command N))
(setq org-table-may-need-update t) (self-insert-command N)
(org-fix-tags-on-the-fly))
 org-self-insert-command(1)
 call-interactively(org-self-insert-command)

Tim.


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




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


Re: [Orgmode] Bug: org-publish-current-project reverses the force flag.

2008-02-27 Thread Carsten Dominik

Thanks, I believe this is now fixes as well, please let me know if not.

- Carsten

On Feb 26, 2008, at 5:46 PM, Kondo Kenji wrote:



Thank you but I'm afraid there still exists one problem to fix.

When `org-publish-use-timestamps-flag' is t,
`C-c C-e P' or `M-x org-publish-current-project'
publishes not only changed files but also unchanged files.

--
Kondo Kenji

At Tue, 26 Feb 2008 16:02:31 +0100,
Carsten Dominik wrote:


Indeed, there was a bug, I have fixed it ow, available in the git
repository, or later
in the next release (5.23).

Thanks for the report.

- Carsten

On Feb 25, 2008, at 7:23 PM, [EMAIL PROTECTED] wrote:



Hi.

I've found (maybe) a bug.

With org 5.22a (org-publish.el version 1.80 b),
org-publish-current-project reverses the force flag
when passing the flag to org-publish.

Thanks.

--
Kondo Kenji <[EMAIL PROTECTED]>


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




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




___
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 in org-store-link

2008-02-27 Thread Carsten Dominik
Hi Scott, this is not a small bug, but a problem that is really hard  
to solve.
Supposed I used the exact line text to search, then you still have two  
lines in the buffer

that would match.

This is really about what strategy should be used to find a location
in a file that has possibly changed.
I have no good answer to that.  Do you?

- Carsten

On Feb 26, 2008, at 9:40 PM, Scott Otterson wrote:

Small bug in org store link.  To reproduce, put the cursor on line  
1007 and run org-store-link.  Then use the result to create a  
hyperlink in an org file, which for me looks like:


  [[file:~/lib/c/pkgs/quicknet/qnstrn.cc::ftr1_window_offset 
%20ftr1_window_len][call]]


Then click on that hyperlink.  I get sent to line 899 instead of  
line 1007.
It looks like the reason is that org tosses out puncutation (+>,).   
I've found that, when linking to source code, punctuation is a big  
deal, so, if possible, it would be nice if org mode was made  
sensitive to it.


Keep up the good work,

Scott

#ifndef NO_RCSID
const char* qnstrn_rcsid =
   "$Header: /homes/scotto/lib/cvsroot/lib/c/pkgs/quicknet/ 
qnstrn.cc,v 1.5 2007/01/24 00:07:46 scotto Exp $";

#endif

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#ifdef QN_HAVE_LIMITS_H
#include 
#endif
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS (0)
#define EXIT_FAILURE (1)
#endif
#include 
#ifdef QN_HAVE_SYS_TIME_H
#include 
#endif
#ifdef QN_HAVE_SYS_PARAM_H
#include 
#endif
#include 

#if !QN_HAVE_DECL_SRAND48
extern "C" {
void srand48(long);
}
#endif

#ifdef QN_HAVE_SET_NEW_HANDLER
extern "C" {
   typedef void (*new_handler)(void);
   new_handler set_new_handler (new_handler);
}
#endif


#ifndef FILENAME_MAX
#define FILENAME_MAX (MAXPATHLEN)
#endif

#include "QuickNet.h"

static struct {
   char* ftr1_file;
   char* ftr1_format;
   int ftr1_width;
   char* ftr1_conf_file;
   char* ftr2_file;
   char* ftr2_format;
   int ftr2_width;
   char* unary_file;
   char* hardtarget_file;
   char* hardtarget_format;
   char* softtarget_file;
   char* softtarget_format;
   int softtarget_width;
   char* ftr1_norm_file;
   char* ftr2_norm_file;
   int ftr1_ftr_start;
   int ftr2_ftr_start;
   int ftr1_ftr_count;
   int ftr2_ftr_count;
   int hardtarget_lastlab_reject;
   int window_extent;
   int ftr1_window_offset;
   int ftr2_window_offset;
   int unary_window_offset;
   int hardtarget_window_offset;
   int softtarget_window_offset;
   int ftr1_window_len;
   int ftr2_window_len;
   int ftr1_delta_order;
   int ftr1_delta_win;
   char* ftr1_norm_mode_str;
   int ftr1_norm_mode;
   double ftr1_norm_am;
   double ftr1_norm_av;
   int ftr2_delta_order;
   int ftr2_delta_win;
   char* ftr2_norm_mode_str;
   int ftr2_norm_mode;
   double ftr2_norm_am;
   double ftr2_norm_av;
   long train_cache_frames;
   int train_cache_seed;
   long train_sent_start;
   long train_sent_count;
   char* train_sent_range;
   long cv_sent_start;
   long cv_sent_count;
   char* cv_sent_range;

   QN_Arg_ListFloat init_random_bias_min;
   QN_Arg_ListFloat init_random_bias_max;

   QN_Arg_ListFloat init_random_weight_min;
   QN_Arg_ListFloat init_random_weight_max;

   int init_random_seed;
   char* init_weight_file;
   char* log_weight_file;
   char* out_weight_file;
   char* learnrate_schedule;
   QN_Arg_ListFloat learnrate_vals;
   long learnrate_epochs;
   float learnrate_scale;
   int unary_size;
   int mlp3_input_size;
   int mlp3_hidden_size;
   int mlp3_output_size;
   char* mlp3_output_type;
   int mlp3_fx; // NO LONGER USED
   int mlp3_weight_bits;// NO LONGER USED
   int mlp3_in2hid_exp; // NO LONGER USED
   int mlp3_hid2out_exp;// NO LONGER USED
   int mlp3_bunch_size;
   int mlp3_blas;
   int mlp3_pp;
   int threads;
   int slaves;  // NO LONGER USED
   char *cpu;   // NO LONGER USED
   char* log_file;  // Stream for storing status messages.
   int verbose;
   int debug;   // Debug level.
} config;

static void
set_defaults(void)
{
   static float default_learnrate[1] = { 0.008 };
   static float default_bias_min[1] = { -4.1 };
   static float default_bias_max[1] = { -3.9 };
   static float default_weight_min[1] = { -0.1 };
   static float default_weight_max[1] = { 0.1 };

   config.ftr1_file = "";
   config.ftr1_format = "pfile";
   config.ftr1_width = 0;
   config.ftr1_conf_file = "";
   config.ftr2_file = "";
   config.ftr2_format = "pfile";
   config.ftr2_width = 0;
   config.unary_file = "";
   config.hardtarget_file = "";
   config.hardtarget_format = "";
   config.softtarget_file = "";
   config.softtarget_format = "pfile";
   config.softtarget_width = 0;
   config.ftr1_norm_file = "";
   config.ftr2_norm_file = "";
   config.ftr1_ftr_start = 0;
   config.ftr2_ftr_start = 0;
   config.ftr1_ftr_count = 0;
   config.ftr2_ftr_count = 0;
   config.hardtarget_lastlab_reject = 0;
   config.window_extent = 9;
   config.ftr1_window_offset = 0;
   config.ftr2_window_offset = 4;
   conf

Re: [Orgmode] Active timestamp with notification in advance

2008-02-27 Thread Wanrong Lin


Changing appointment time stamp into deadline will work, but I just 
think conceptually it is kind of twisted, because "deadline" means you 
have to do it BEFORE the specified time, while "appointment" means you 
have to do it at the specified time. Many calendar systems (like Google) 
support ahead notifications for appointments, so maybe we can consider 
extending the definition of ahead warnings in org-mode to scheduled 
items and active time stamps. Just my 2 cents. (Or, maybe I should make 
a better habit of looking ahead a few days in my agenda buffer. :-))


Wanrong

Carsten Dominik wrote:

In Org-mode, by definition, Deadlines are the ones with ahead warnings.
Why don't you just turn the appointments where you need early 
reminders into deadlines?


- Carsten

On Feb 26, 2008, at 11:01 PM, Wanrong Lin wrote:


Hi,

Currently we can set the number of days a deadline should be notified 
in advance with something like this:


* TODO Do this
DEADLINE: <2008-03-24 Mon -30d>

But it does not work on a plain active time stamp like this:

* TODO See Doctor
<2008-03-24 Mon -30d>

Can we consider adding this feature to plain active time stamp? It 
would be great for appointment notification.


Thanks for giving that a thought.

Wanrong


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






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


[Orgmode] org-bookmark.el

2008-02-27 Thread Tokuya Kameshima
Hi,

I wrote an emacs code, org-bookmark.el, which supports for orgmode
links to Emacs bookmarks.  You can store the links in the Bookmark
List buffer by running M-x org-store-link.

Not sure it's useful, but I regularly uses this bookmark links to
follow daily or weekly changing file links.

Thanks,
--Tokuya


;;; org-bookmark.el - Support for links to Emacs bookmark
;; Carstens outline-mode for keeping track of everything.
;; Copyright (C) 2008 Free Software Foundation, Inc.
;;
;; Author: Tokuya Kameshima 
;; Version: 1.0
;; Keywords: outlines, hypermedia, calendar, wp
;;
;; This file is part of GNU Emacs.
;;
;; Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;

(require 'org)
(require 'bookmark)

(org-add-link-type "bookmark" 'org-bookmark-open)
(add-hook 'org-store-link-functions 'org-bookmark-store-link)

(defun org-bookmark-open (bookmark)
  "Visit the bookmark BOOKMARK."
  (bookmark-jump bookmark))

(defun org-bookmark-store-link ()
  "Store a link to the current line's bookmark in Emacs bookmark list window."
  (if (eq major-mode 'bookmark-bmenu-mode)
  (let ((bookmark (bookmark-bmenu-bookmark)))
(if bookmark
(org-store-link-props :link (org-make-link "bookmark:" bookmark)
  :description bookmark)

(provide 'org-bookmark)

;;; org-bookmark.el ends here


___
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: Active timestamp with notification in advance

2008-02-27 Thread Bernt Hansen
Maybe use SCHEDULED: instead of DEADLINE: ?


Wanrong Lin <[EMAIL PROTECTED]> writes:

> Changing appointment time stamp into deadline will work, but I just
> think conceptually it is kind of twisted, because "deadline" means you
> have to do it BEFORE the specified time, while "appointment" means you
> have to do it at the specified time. Many calendar systems (like
> Google) support ahead notifications for appointments, so maybe we can
> consider extending the definition of ahead warnings in org-mode to
> scheduled items and active time stamps. Just my 2 cents. (Or, maybe I
> should make a better habit of looking ahead a few days in my agenda
> buffer. :-))
>
> Wanrong
>
> Carsten Dominik wrote:
>> In Org-mode, by definition, Deadlines are the ones with ahead warnings.
>> Why don't you just turn the appointments where you need early
>> reminders into deadlines?
>>
>> - Carsten
>>
>> On Feb 26, 2008, at 11:01 PM, Wanrong Lin wrote:
>>
>>> Hi,
>>>
>>> Currently we can set the number of days a deadline should be
>>> notified in advance with something like this:
>>>
>>> * TODO Do this
>>> DEADLINE: <2008-03-24 Mon -30d>
>>>
>>> But it does not work on a plain active time stamp like this:
>>>
>>> * TODO See Doctor
>>> <2008-03-24 Mon -30d>
>>>
>>> Can we consider adding this feature to plain active time stamp? It
>>> would be great for appointment notification.
>>>
>>> Thanks for giving that a thought.
>>>
>>> Wanrong
>>>
>>>
>>> ___
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


Re: [Orgmode] org-bookmark.el

2008-02-27 Thread Carsten Dominik

Hi Tokuya,

this is nice, do you want me to add this to our distribution?

- Carsten

On Feb 27, 2008, at 4:39 PM, Tokuya Kameshima wrote:


Hi,

I wrote an emacs code, org-bookmark.el, which supports for orgmode
links to Emacs bookmarks.  You can store the links in the Bookmark
List buffer by running M-x org-store-link.

Not sure it's useful, but I regularly uses this bookmark links to
follow daily or weekly changing file links.

Thanks,
--Tokuya


;;; org-bookmark.el - Support for links to Emacs bookmark
;; Carstens outline-mode for keeping track of everything.
;; Copyright (C) 2008 Free Software Foundation, Inc.
;;
;; Author: Tokuya Kameshima 
;; Version: 1.0
;; Keywords: outlines, hypermedia, calendar, wp
;;
;; This file is part of GNU Emacs.
;;
;; Emacs is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published  
by

;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;

(require 'org)
(require 'bookmark)

(org-add-link-type "bookmark" 'org-bookmark-open)
(add-hook 'org-store-link-functions 'org-bookmark-store-link)

(defun org-bookmark-open (bookmark)
 "Visit the bookmark BOOKMARK."
 (bookmark-jump bookmark))

(defun org-bookmark-store-link ()
 "Store a link to the current line's bookmark in Emacs bookmark list  
window."

 (if (eq major-mode 'bookmark-bmenu-mode)
 (let ((bookmark (bookmark-bmenu-bookmark)))
(if bookmark
(org-store-link-props :link (org-make-link "bookmark:" bookmark)
  :description bookmark)

(provide 'org-bookmark)

;;; org-bookmark.el ends here


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




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


Re: [Orgmode] New tutorial about using Org as a spreadsheet system

2008-02-27 Thread Bastien Guerry
Hi Chris,

"Chris Randle" <[EMAIL PROTECTED]> writes:

> As I followed along, I spotted a couple of things:
>
> 1) Under "Your first formula", the first vmean formula you show is a
> column formula, whereas the text implies it should have been a field
> formula.

Well spotted, I fixed this.

> 2) I'd never used #+CONSTANTS before, and as I followed along I
> discovered that I had to do a 'C-c C-c' on the CONSTANTS line before the
> table had knowledge of it. It might be good to make that explicit,
> otherwise the table shows #ERRORs. I got to use my new-found debugging
> knowledge to work out why!

I added this line:

  (Don't forget to hit =C-c C-c= on the =#+CONSTANTS= line so that
  org-mode knows about it.)

Thanks for the feedback.  The updated version is an the Worg repo and
should be exported to the HTML Worg website in about ten minutes.

-- 
Bastien


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


Re: [Orgmode] org-bookmark.el

2008-02-27 Thread Bastien Guerry
Tokuya Kameshima <[EMAIL PROTECTED]> writes:

> I wrote an emacs code, org-bookmark.el, which supports for orgmode
> links to Emacs bookmarks.  You can store the links in the Bookmark
> List buffer by running M-x org-store-link.

Great, thanks.

> Not sure it's useful, but I regularly uses this bookmark links to
> follow daily or weekly changing file links.

I guess it is useful for those who prefer to update their bookmarks
rather than to update their Org links directly.

On top of this, when `org-bookmark' is in use, storing a link while
visiting a file (or while in dired-mode) could first check if the file
at point is bookmarked: if it is, then `org-bookmark-store-link' would
be used; if it isn't, storing the file would fall back on the current
mechanism.  

BTW, would you be okay to add this to the CONTRIB/ directory in the git
repository?  Let me know, I can do it for you.

> ;;; org-bookmark.el - Support for links to Emacs bookmark
> ;; Carstens outline-mode for keeping track of everything.
> ;; Copyright (C) 2008 Free Software Foundation, Inc.
> ;;
> ;; Author: Tokuya Kameshima 
> ;; Version: 1.0
> ;; Keywords: outlines, hypermedia, calendar, wp
> ;;
> ;; This file is part of GNU Emacs.

This line should rather mention: 

  "This file is not part of GNU Emacs."

-- 
Bastien


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


Re: [Orgmode] bug in org-store-link

2008-02-27 Thread Nick Dokos
Carsten Dominik <[EMAIL PROTECTED]> wrote:

> Hi Scott, this is not a small bug, but a problem that is really hard  
> to solve.
> Supposed I used the exact line text to search, then you still have two  
> lines in the buffer
> that would match.
> 
> This is really about what strategy should be used to find a location
> in a file that has possibly changed.
> I have no good answer to that.  Do you?
> 

Two suggestions:

o Use a line number, instead of a search pattern and don't worry
about subsequent edits to the file that the link points to.

o Use the find-tag strategy: go to the line number as an initial
approximation. If the pattern is found there, done; if not, search
around that point for the pattern and keep expanding the area of the
search until found. I don't know if they still do it that way but I 
think that's how it was done some time ago.

Nick






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


[Orgmode] Bug: return key does not show the subtree the first time on a newly opened org file

2008-02-27 Thread Wanrong Lin

Hi,

I have the following in my org-mode configuration:

(setq org-return-follows-link t)

Also, by default my org files are in overview mode (folded) when opened.

Usually, if my cursor is at the beginning of a heading, I can use the 
return key to cycle the visibility of its subtree. However, this does 
not work when I open an org file and do it the first time (the return 
key will just insert a blank line before the heading). But after the 
first time, it works fine again.


Thanks a lot for looking into this.

Wanrong





___
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: Bug: return key does not show the subtree the first time on a newly opened org file

2008-02-27 Thread Wanrong Lin

Forgot to mention this:

To reproduce the bug, after opening an org file, don't do anything 
(don't even move the cursor),  just press the return key. I use 
"session.el", so when I open an org file, the cursor will go to the the 
position of my last change in the buffer, and I can arrange the point to 
be on a heading. If you don't use "session.el", here is another way to 
reproduce the bug:


Open a test org file "test.org" and put the following into it,

* TODO A 
Test :mytag:

 SCHEDULED: <2008-02-27 Wed>

*Close* the file, do a tag search on "mytag", in the search result  
press  "TAB"  key to jump to the "TODO A Test" heading, which should be 
folded. Press return key and you will see the failure. Do it again and 
it works.


Wanrong

Wanrong Lin wrote:

Hi,

I have the following in my org-mode configuration:

(setq org-return-follows-link t)

Also, by default my org files are in overview mode (folded) when opened.

Usually, if my cursor is at the beginning of a heading, I can use the 
return key to cycle the visibility of its subtree. However, this does 
not work when I open an org file and do it the first time (the return 
key will just insert a blank line before the heading). But after the 
first time, it works fine again.


Thanks a lot for looking into this.

Wanrong








___
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 in org-store-link

2008-02-27 Thread Scott Otterson
Yeah, I guess that instead of saying it was a small bug, I should have 
said that it's a bug of small consequence (for most users, but matters 
to me, least). 

The ambiguity problem you mention could be solved by matching more than 
one line.  To keep the string stored in the org link short, 
org-store-link could expand it to another line only when needed for a 
unique match.  Or, it could expand just enough _words_ to ensure 
uniqueness, plus maybe one word on each end for some insurance against 
future changes.


Future changes are the harder part.  In speech recognition, there's an 
analogous problem where there's a need to match a transcript to 
recognized speech, which may have a lot of word errors, insertions and 
deletions.  The simplest solution commonly employed is a word-level 
Levenshtein distance:


   http://en.wikipedia.org/wiki/Levenshtein_distance
   (this is for chars, but you get the idea)

Scott

Carsten Dominik wrote:
Hi Scott, this is not a small bug, but a problem that is really hard 
to solve.
Supposed I used the exact line text to search, then you still have two 
lines in the buffer

that would match.

This is really about what strategy should be used to find a location
in a file that has possibly changed.
I have no good answer to that.  Do you?

- Carsten 



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


Re: [Orgmode] bug in org-store-link

2008-02-27 Thread Scott Otterson




Yes, starting with line numbers sounds like a good idea.  So far, then,
the suggestion in its full glory is:

   link storage
  
 include punctuation in matching pattern

  
  
 expand matching pattern outwards until matching uniqueness is
assured across the whole file

store  line number

  
  link search
  
start at stored line number
expand outwards until an exact match is found (update stored
line number if match has moved?)
if no exact match is found, scan the whole buffer for the best
soft match  eg. minimum Levenshtein distance (update stored line number
and pattern if match has moved?  Better ask the user.)

  

Scott

Nick Dokos (02/27/2008 08:20 AM) wrote:

  Two suggestions:

o Use a line number, instead of a search pattern and don't worry
about subsequent edits to the file that the link points to.

o Use the find-tag strategy: go to the line number as an initial
approximation. If the pattern is found there, done; if not, search
around that point for the pattern and keep expanding the area of the
search until found. I don't know if they still do it that way but I 
think that's how it was done some time ago.

Nick
  





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


Re: [Orgmode] bug in org-store-link

2008-02-27 Thread Phil Jackson
Scott Otterson <[EMAIL PROTECTED]> writes:

[...]

> + expand matching pattern outwards until matching uniqueness is
> assured across the whole file

This isn't foolproof as an identical line could be added later leaving
us with much the same problem.

> + store  line number

This actually is already possible, but not the default behaviour for
org-store-link.

Also, from the manual:

 ,[ org.html#Handling-links ]
 | If there is an active region, the selected words will form the basis of
 | the search string.
 `

Cheers,
Phil
-- 
 Phil Jackson
 http://www.shellarchive.co.uk


___
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 in org-store-link

2008-02-27 Thread Carsten Dominik


On Feb 27, 2008, at 9:57 PM, Phil Jackson wrote:


Scott Otterson <[EMAIL PROTECTED]> writes:

[...]


+ expand matching pattern outwards until matching uniqueness is
assured across the whole file


This isn't foolproof as an identical line could be added later leaving
us with much the same problem.


+ store  line number


This actually is already possible, but not the default behaviour for
org-store-link.

Also, from the manual:

,[ org.html#Handling-links ]
| If there is an active region, the selected words will form the  
basis of

| the search string.
`


Org-mode has an extension mechanism that can be used to built custom  
searches

for file links.  Maybe someone would enjoy writing an extension,
and if it works well we could consider making it more standard.

Take a look at http://orgmode.org/manual/Custom-searches.html#Custom-searches
and at the bibtex-related code in org.el.

Cheers

- Carsten

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


[Orgmode] Bug: Invalid face reference

2008-02-27 Thread Wanrong Lin

Hi,

I found something really strange:

Whenever I do a search (either "tags-todo" search, or "todo" search), as 
long as the search result contains an entry with tags, the "*Messages*" 
buffer will generate a message like this:


Invalid face reference: nil [164 times]

The number "164" above is just an example. What actually happens is that 
the number keeps increasing (sometimes to over a thousand) and then 
stops. But if I move the cursor (in the search result buffer) to a line 
that has a tag, the number will increase again.


I remember months ago I had trouble using "htmlize.el" on a tag search 
result buffer because of some "invalid face" error, and somebody on this 
mailing list gave me a workaround  like this:


(eval-after-load "htmlize"
 '(progn
(defadvice htmlize-faces-in-buffer (after org-no-nil-faces activate)
  "Make sure there are no nil faces"
  (setq ad-return-value (delq nil ad-return-value)

That does work for htmlize, but I think based on my above observation, 
the problem has nothing to do with "htmlize.el" and something probably 
is wrong in org itself. I am using org 5.22a.


Thanks if someone can look into it.

Wanrong




___
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: org-publish-current-project reverses the force flag.

2008-02-27 Thread Kondo Kenji

Hmm. I tried the git version but timestampes didn't work with C-c C-e P
when `org-publish-use-timestamps-flag' is t.

Is it OK in your environment?

--
Kondo Kenji

At Wed, 27 Feb 2008 16:14:40 +0100,
Carsten Dominik wrote:
> 
> Thanks, I believe this is now fixes as well, please let me know if not.
> 
> - Carsten
> 
> On Feb 26, 2008, at 5:46 PM, Kondo Kenji wrote:
> 
> >
> > Thank you but I'm afraid there still exists one problem to fix.
> >
> > When `org-publish-use-timestamps-flag' is t,
> > `C-c C-e P' or `M-x org-publish-current-project'
> > publishes not only changed files but also unchanged files.
> >
> > --
> > Kondo Kenji
> >
> > At Tue, 26 Feb 2008 16:02:31 +0100,
> > Carsten Dominik wrote:
> >>
> >> Indeed, there was a bug, I have fixed it ow, available in the git
> >> repository, or later
> >> in the next release (5.23).
> >>
> >> Thanks for the report.
> >>
> >> - Carsten
> >>
> >> On Feb 25, 2008, at 7:23 PM, [EMAIL PROTECTED] wrote:
> >>
> >>>
> >>> Hi.
> >>>
> >>> I've found (maybe) a bug.
> >>>
> >>> With org 5.22a (org-publish.el version 1.80 b),
> >>> org-publish-current-project reverses the force flag
> >>> when passing the flag to org-publish.
> >>>
> >>> Thanks.
> >>>
> >>> -- 
> >>> Kondo Kenji <[EMAIL PROTECTED]>
> >>>
> >>>
> >>> ___
> >>> Emacs-orgmode mailing list
> >>> Remember: use `Reply All' to send replies to the list.
> >>> Emacs-orgmode@gnu.org
> >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >>
> >>
> >>
> >> ___
> >> Emacs-orgmode mailing list
> >> Remember: use `Reply All' to send replies to the list.
> >> Emacs-orgmode@gnu.org
> >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


___
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: Clocking deeply nested tasks

2008-02-27 Thread Bernt Hansen
Hi Carsten,

I ran into another bug a few minutes ago.

,[ test.org ]
| #+STARTUP: odd
| * Task1
| *** Task2
| * Task3
| *** Task4
| * Task5
| *** Task6
|   :CLOCK:
|   CLOCK: [2008-02-27 Wed 14:30]--[2008-02-27 Wed 14:44] =>  0:14
|   :END:
`

,[ minimal.emacs ]
| (setq org-use-fast-todo-selection t)
| (setq inhibit-splash-screen t)
| (global-font-lock-mode t)
| (add-to-list 'load-path (expand-file-name "~/git/org-mode"))
| (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
| (require 'org-install)
| (define-key global-map "\C-ca" 'org-agenda)
| (custom-set-variables
|  '(org-agenda-files (quote ("~/org/test.org"
`

Key strokes:

| Key| Notes   |
|+-|
| C-x C-f ~/org/test.org | Open org file   |
| C-c C-a| Expand everything   |
| C-c C-x C-d| Clock summaries by task |

This gives the error

org-put-clock-overlay: Wrong type argument: wholenump, -1

If I use odd even levels I can get many more nested levels before
triggering this problem so it seems to be related to the number of stars
in the tasks.  With #+STARTUP: oddeven it works for

* TaskN (9 stars)

but

** Task N (10 stars)

fails.


Regards,
Bernt


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


[Orgmode] [PATCH] Allow more asterisks in tasks when summarizing clock time

2008-02-27 Thread Bernt Hansen

10 asterisks is only 6 levels deep when odd levels only are used.
This increases the number of asterisks to 40 (still an arbitrary number)
but it's much larger than the current limit of 10.

This fixes C-c C-x C-d when trying to summarize clock time on a
deeply nested task

,[ test.org ]
| * Task1
| *** Task2
| * Task3
| *** Task4
| * Task5
| *** Task6
|   :CLOCK:
|   CLOCK: [2008-02-27 Wed 14:30]--[2008-02-27 Wed 14:44] =>  0:14
|   :END:
`
---

This patch works for me.  You can apply this patch directly in git by
saving this message in mbox format (e.g. file.mbox) and then doing 

$ git am file.mbox

This will create the commit on the current HEAD with all of the provided
commit message text.

The text between the three dashes (---) above and the start of the
diffstat below (org.el |2 +-) is discarded which is why I'm writing
my extra notes here :)

HTH,
-Bernt


 org.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/org.el b/org.el
index 0c2762d..504dcd5 100644
--- a/org.el
+++ b/org.el
@@ -18919,7 +18919,7 @@ will be easy to remove."
 (make-string (+ off (max 0 (- c (current-column ?.)
 (org-add-props (format "%s %2d:%02d%s"
(make-string l ?*) h m
-   (make-string (- 10 l) ?\ ))
+   (make-string (- 40 l) ?\ ))
 '(face secondary-selection))
 ""))
 (if (not (featurep 'xemacs))
-- 
1.5.4.3.192.g923d4



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


Re: [Orgmode] org-mode and appointments

2008-02-27 Thread Russell Adams
Ok, so how far in advance is appt supposed to alert you?

I'm testing this, and I've gotten zenity to do a popup, and I've tied
the refresh of the appt list to the agenda refresh with:

(add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt)

I'm testing a series of timings before I start relying on this, and
trying to understand the behavior.

Any comments?

Thanks.

On Tue, Feb 26, 2008 at 07:01:15PM -0600, Russell Adams wrote:
> Great combined feature:
> 
> http://alfredobuttari.wordpress.com/2008/02/08/emacs-appt-mode-reminders-with-gtk-popups/
> 
> I'm still trying to get this to work reliably, either appointments or
> calling out to a gtk popup, but I look forward to using it soon.
> 
> Thanks.
> 
> On Tue, Feb 26, 2008 at 05:09:39PM +0100, Carsten Dominik wrote:
> > 
> > On Feb 26, 2008, at 5:06 PM, Carsten Dominik wrote:
> > 
> > [...]
> > 
> > I forgot to clear the list:
> > 
> > So to summarize, this is really all you need in .emacs:
> > 
> > ;; Get appointments for today
> > (global-set-key (kbd " a") 'my-org-agenda-to-appt)
> > (defun my-org-agenda-to-appt ()
> >  (interactive)
> >  (setq appt-time-msg-list nil)
> >  (let ((org-deadline-warning-days 0));; will be automatic in org  
> > 5.23
> >(org-agenda-to-appt)))
> > (my-org-agenda-to-appt)
> > (appt-activate t)
> > (run-at-time "24:01" nil 'my-org-agenda-to-appt)
> > 
> > >
> > 
> > 
> > 
> > ___
> > 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
> 
> 
> --
> Russell Adams[EMAIL PROTECTED]
> 
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
> 
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
> 
> 
> ___
> 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


--
Russell Adams[EMAIL PROTECTED]

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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 appointments

2008-02-27 Thread Bernt Hansen
It's configurable (as is almost anything else in Emacs)

The following variables set to behaviour

  appt-message-warning-time  (12 minutes for me)
  appt-display-interval  ( 3 minutes for me)

I get warnings at 12, 9, 6, 3, and 0 minutes.

HTH,
-Bernt

Russell Adams <[EMAIL PROTECTED]> writes:

> Ok, so how far in advance is appt supposed to alert you?
>
> I'm testing this, and I've gotten zenity to do a popup, and I've tied
> the refresh of the appt list to the agenda refresh with:
>
> (add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt)
>
> I'm testing a series of timings before I start relying on this, and
> trying to understand the behavior.
>
> Any comments?
>
> Thanks.
>
> On Tue, Feb 26, 2008 at 07:01:15PM -0600, Russell Adams wrote:
>> Great combined feature:
>> 
>> http://alfredobuttari.wordpress.com/2008/02/08/emacs-appt-mode-reminders-with-gtk-popups/
>> 
>> I'm still trying to get this to work reliably, either appointments or
>> calling out to a gtk popup, but I look forward to using it soon.
>> 
>> Thanks.
>> 
>> On Tue, Feb 26, 2008 at 05:09:39PM +0100, Carsten Dominik wrote:
>> > 
>> > On Feb 26, 2008, at 5:06 PM, Carsten Dominik wrote:
>> > 
>> > [...]
>> > 
>> > I forgot to clear the list:
>> > 
>> > So to summarize, this is really all you need in .emacs:
>> > 
>> > ;; Get appointments for today
>> > (global-set-key (kbd " a") 'my-org-agenda-to-appt)
>> > (defun my-org-agenda-to-appt ()
>> >  (interactive)
>> >  (setq appt-time-msg-list nil)
>> >  (let ((org-deadline-warning-days 0));; will be automatic in org  
>> > 5.23
>> >(org-agenda-to-appt)))
>> > (my-org-agenda-to-appt)
>> > (appt-activate t)
>> > (run-at-time "24:01" nil 'my-org-agenda-to-appt)
>> > 
>> > >
>> > 
>> > 
>> > 
>> > ___
>> > 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
>> 
>> 
>> --
>> Russell Adams[EMAIL PROTECTED]
>> 
>> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>> 
>> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>> 
>> 
>> ___
>> 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
>
>
> --
> Russell Adams[EMAIL PROTECTED]
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] Re: org-mode and appointments

2008-02-27 Thread Bernt Hansen
Bernt Hansen <[EMAIL PROTECTED]> writes:

> The following variables set to behaviour

set to -> set the


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


Re: [Orgmode] [PATCH] Allow more asterisks in tasks when summarizing clock time

2008-02-27 Thread Bastien
Hi Bernt,

Bernt Hansen <[EMAIL PROTECTED]> writes:

> 10 asterisks is only 6 levels deep when odd levels only are used.
> This increases the number of asterisks to 40 (still an arbitrary number)
> but it's much larger than the current limit of 10.

Thanks for the patch.  

I applied it, but used an arbitrary limit of 16 instead of 40, since 16
asterisks characters are required for 8 (odd) levels, and 8 seems to be
quite a natural limit for Org levels.

-- 
Bastien


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


Re: [Orgmode] [PATCH] Allow more asterisks in tasks when summarizing clock time

2008-02-27 Thread Bernt Hansen
Thanks :)

Bastien <[EMAIL PROTECTED]> writes:

> Hi Bernt,
>
> Bernt Hansen <[EMAIL PROTECTED]> writes:
>
>> 10 asterisks is only 6 levels deep when odd levels only are used.
>> This increases the number of asterisks to 40 (still an arbitrary number)
>> but it's much larger than the current limit of 10.
>
> Thanks for the patch.  
>
> I applied it, but used an arbitrary limit of 16 instead of 40, since 16
> asterisks characters are required for 8 (odd) levels, and 8 seems to be
> quite a natural limit for Org levels.
>
> -- 
> Bastien


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


Re: [Orgmode] Bug: org-publish-current-project reverses the force flag.

2008-02-27 Thread Bastien
Hi Kondo,

Kondo Kenji <[EMAIL PROTECTED]> writes:

> Hmm. I tried the git version but timestampes didn't work with C-c C-e P
> when `org-publish-use-timestamps-flag' is t.
>
> Is it OK in your environment?

I just tested it and it seems okay.  

Can you make sure there is no old `org-publish.el' haunting your
configuration and then check again?

Thanks,

-- 
Bastien


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


Re: [Orgmode] Re: Active timestamp with notification in advance

2008-02-27 Thread Bastien
Bernt Hansen <[EMAIL PROTECTED]> writes:

> Maybe use SCHEDULED: instead of DEADLINE: ?

I'm afraid this won't solve Wanrong's problem: you don't get warned
about scheduled items.

Wanrong: maybe you can turn your items into scheduled items and then use
`org-check-before-date' in the relevant file to get the list of upcoming
scheduled items.

But that's still a manual workaround...

-- 
Bastien


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


Re: [Orgmode] Bug: Invalid face reference

2008-02-27 Thread Bastien
Wanrong Lin <[EMAIL PROTECTED]> writes:

> I found something really strange:
>
> Whenever I do a search (either "tags-todo" search, or "todo" search),
> as long as the search result contains an entry with tags, the
> "*Messages*" buffer will generate a message like this:
>
> Invalid face reference: nil [164 times]

I see you're using Windows.  
What version of Emacs are you running on it? 

-- 
Bastien


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


Re: [Orgmode] Bug: return key does not show the subtree the first time on a newly opened org file

2008-02-27 Thread Bastien
Wanrong Lin <[EMAIL PROTECTED]> writes:

> I have the following in my org-mode configuration:
>
> (setq org-return-follows-link t)

This is about following links, no (un)folding subtrees...

> Usually, if my cursor is at the beginning of a heading, I can use the
> return key to cycle the visibility of its subtree. 

AFAIK,  doesn't (un)fold a subtree.  Maybe you mean the  key?
I guess I'm missing something...

-- 
Bastien


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


[Orgmode] Re: Active timestamp with notification in advance

2008-02-27 Thread Bernt Hansen
Bastien <[EMAIL PROTECTED]> writes:

> Bernt Hansen <[EMAIL PROTECTED]> writes:
>
>> Maybe use SCHEDULED: instead of DEADLINE: ?
>
> I'm afraid this won't solve Wanrong's problem: you don't get warned
> about scheduled items.

Oops.  You're right - I should have tested that first.

Thanks for the clarification.

-Bernt


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


Re: [Orgmode] Re: Active timestamp with notification in advance

2008-02-27 Thread Wanrong Lin

Bastien wrote:

Bernt Hansen <[EMAIL PROTECTED]> writes:

  

Maybe use SCHEDULED: instead of DEADLINE: ?



I'm afraid this won't solve Wanrong's problem: you don't get warned
about scheduled items.

Wanrong: maybe you can turn your items into scheduled items and then use
`org-check-before-date' in the relevant file to get the list of upcoming
scheduled items.

But that's still a manual workaround...
  
Thanks a lot for the suggestions, but manual workaround does not work 
for me, as I want org to take care of giving me a notification in 
advance in the agenda buffer.


For SCHEDULED and plain active time stamp, I don't think we need to have 
a default ahead notification setting as with deadlines, but it would 
really be nice to support the <. -3d> format. It would be even nicer 
to have a new keyword (like "SCHEDULED@") that indicates a strictly 
scheduled item (just a fancy term for "appointment") and hence a default 
ahead notification setting can be applied. The lack of real appointment 
support in org-mode in fact is a little bit puzzling to me, since 
SCHEDULED item may or may not be strictly scheduled, while plain time 
stamp item may or may not be something that needs to take actions on (as 
it could be just an event).


Wanrong



___
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: Invalid face reference

2008-02-27 Thread Wanrong Lin

Bastien wrote:

Wanrong Lin <[EMAIL PROTECTED]> writes:

  

I found something really strange:

Whenever I do a search (either "tags-todo" search, or "todo" search),
as long as the search result contains an entry with tags, the
"*Messages*" buffer will generate a message like this:

Invalid face reference: nil [164 times]



I see you're using Windows.  
What version of Emacs are you running on it? 

  


I am using Emacs 22.1. Actually I also tested on Linux (with Emacs 22.1 
too), and I saw the same thing.



___
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: return key does not show the subtree the first time on a newly opened org file

2008-02-27 Thread Wanrong Lin

Bastien wrote:

Wanrong Lin <[EMAIL PROTECTED]> writes:

  

I have the following in my org-mode configuration:

(setq org-return-follows-link t)



This is about following links, no (un)folding subtrees...

  
Yes, but only with this setting will  key be added to the 
"org-mouse-map" key map, and be bound to "org-open-at-point" command 
under certain contexts (like on the leading stars of a heading). 
Further, "org-open-at-point" is advised by org-mouse.el, which will do 
"org-cycle" under certain contexts.

Usually, if my cursor is at the beginning of a heading, I can use the
return key to cycle the visibility of its subtree. 



AFAIK,  doesn't (un)fold a subtree.  Maybe you mean the  key?
I guess I'm missing something...

  

I did meant return key. See my comments above.

Thanks for your comments.

Wanrong


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


Re: [Orgmode] Re: Active timestamp with notification in advance

2008-02-27 Thread Wanrong Lin

Wanrong Lin wrote:


  
Thanks a lot for the suggestions, but manual workaround does not work 
for me, as I want org to take care of giving me a notification in 
advance in the agenda buffer.


For SCHEDULED and plain active time stamp, I don't think we need to 
have a default ahead notification setting as with deadlines, but it 
would really be nice to support the <. -3d> format. It would be 
even nicer to have a new keyword (like "SCHEDULED@") that indicates a 
strictly scheduled item (just a fancy term for "appointment") and 
hence a default ahead notification setting can be applied. The lack of 
real appointment support in org-mode in fact is a little bit puzzling 
to me, since SCHEDULED item may or may not be strictly scheduled, 
while plain time stamp item may or may not be something that needs to 
take actions on (as it could be just an event).


Wanrong




Actually, I was wrong on the "lack of real appointment" support claim 
above. We can define a TODO heading with a *plain* active time stamp as 
an appointment, and hence maybe a default ahead notification can be 
applied to those items.




___
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: org-publish-current-project reverses the force flag.

2008-02-27 Thread Kondo Kenji

Hi Bastien,


I tried the newer version and it works. Great!

Thanks.

--
Kondo Kenji

At Thu, 28 Feb 2008 01:14:34 +,
Bastien wrote:
> 
> Hi Kondo,
> 
> Kondo Kenji <[EMAIL PROTECTED]> writes:
> 
> > Hmm. I tried the git version but timestampes didn't work with C-c C-e P
> > when `org-publish-use-timestamps-flag' is t.
> >
> > Is it OK in your environment?
> 
> I just tested it and it seems okay.  
> 
> Can you make sure there is no old `org-publish.el' haunting your
> configuration and then check again?
> 
> Thanks,
> 
> -- 
> Bastien


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


Re: [Orgmode] Bug: return key does not show the subtree the first time on a newly opened org file

2008-02-27 Thread Carsten Dominik


On Feb 28, 2008, at 3:16 AM, Wanrong Lin wrote:


Bastien wrote:

Wanrong Lin <[EMAIL PROTECTED]> writes:



I have the following in my org-mode configuration:

(setq org-return-follows-link t)



This is about following links, no (un)folding subtrees...


Yes, but only with this setting will  key be added to the  
"org-mouse-map" key map, and be bound to "org-open-at-point" command  
under certain contexts (like on the leading stars of a heading).  
Further, "org-open-at-point" is advised by org-mouse.el, which will  
do "org-cycle" under certain contexts.


Yes, this is really an accidental feature by a sequence of events:

org-return-follow-link will add org-return to the mouse-map
org-mouse.el will activate the stars in a headline

I can reproduce the bug, but I have no idea what is causing this, it  
must be

something in the internal setup of Emacs keymaps in a new buffer,
I have no idea how to fix this or work around it.

Why in the world would you use RET for cycling instead of TAB?

- Carsten



Usually, if my cursor is at the beginning of a heading, I can use  
the

return key to cycle the visibility of its subtree.


AFAIK,  doesn't (un)fold a subtree.  Maybe you mean the   
key?

I guess I'm missing something...



I did meant return key. See my comments above.

Thanks for your comments.

Wanrong


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




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


Re: [Orgmode] Re: Active timestamp with notification in advance

2008-02-27 Thread Carsten Dominik


On Feb 28, 2008, at 3:05 AM, Wanrong Lin wrote:


Bastien wrote:

Bernt Hansen <[EMAIL PROTECTED]> writes:



Maybe use SCHEDULED: instead of DEADLINE: ?



I'm afraid this won't solve Wanrong's problem: you don't get warned
about scheduled items.

Wanrong: maybe you can turn your items into scheduled items and  
then use
`org-check-before-date' in the relevant file to get the list of  
upcoming

scheduled items.

But that's still a manual workaround...

Thanks a lot for the suggestions, but manual workaround does not  
work for me, as I want org to take care of giving me a notification  
in advance in the agenda buffer.


For SCHEDULED and plain active time stamp, I don't think we need to  
have a default ahead notification setting as with deadlines, but it  
would really be nice to support the <. -3d> format. It would be  
even nicer to have a new keyword (like "SCHEDULED@") that indicates  
a strictly scheduled item (just a fancy term for "appointment") and  
hence a default ahead notification setting can be applied. The lack  
of real appointment support in org-mode in fact is a little bit  
puzzling to me, since SCHEDULED item may or may not be strictly  
scheduled, while plain time stamp item may or may not be something  
that needs to take actions on (as it could be just an event).


Hmmm, lets discuss this for a while.

One thing is that I have been thinking for a while already if we  
should have an APPOINTMENT keyword
to mark plain time stamps that actually are appointments, and in this  
way to differentiate them

from events that you'd like to have in your agenda.

However, about ahead warnings of appointments.  The way I see it is  
this:
One important goal (at least for me) is to keep my agenda as empty as  
possible,
listing only the things I really need to do.  If I have a meeting in a  
few days
and I get an ahead warning, this only distracts me.  Because each time  
I see
that reminder, I need to think *again* why I did put that reminder and  
what I

am supposed to be doing to prepare it.

Isn't  is much better to just put the meeting on the agenda with a  
timestamp and then
immediately think about *tasks* that I need to do before the meeting.   
List those
tasks under the meetig headline, and assign deadlines to them - you  
will get
the ahead warning.  This seems to me is a much saner way of working.   
But I

am interested to hear your use case - why do you want to be reminded of
future appointments *each* time you look at your list for today?

For meetings where I do not have anything to prepare, I do take a look  
every

morning on an extended agenda of 10 days, to see what is coming.
Once a day, and that is it.

- Carsten






Wanrong



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




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


Re: [Orgmode] bug: Xemacs problem with editing headings with compressed contents

2008-02-27 Thread Carsten Dominik
I have looked into it further, it is a bug in the move-to-column  
function

in XEmacs that does not behave well in combination with hidden text,
when the FORCE argument is given.

Maybe you can try to write a replacement that will work?

- Carsten
On Feb 26, 2008, at 6:13 PM, Tim O'Callaghan wrote:


Hi.

There is some problem with tags and headings. I've had instances where
the tag has disappeared or merged into my heading.

Repeatable with Xemacs 21.4.19 i586-pc-win32, org 5.22a using this  
fragment:

-

* REAEARCH memory problems on oxo50 :proj:
*** WAIT korstian to organise a meeting.
-

If i try to add the S into the heading when it is folded, then it
generates the error "Visible portion of buffer not modifiable".
Debugger gives:

Debugger entered--Lisp error: (error "Visible portion of buffer not  
modifiable")

 move-to-column(70 t)
 (progn (setq tags (match-string 2)) (goto-char (match-beginning 1))
(insert " ") (delete-region (point) (1+ ...)) (backward-char 1)
(move-to-column (max ... ... ...) t) (insert tags) (move-to-column
(min ... col) t))
 (if (and (looking-at ...) (< pos ...)) (progn (setq tags ...)
(goto-char ...) (insert " ") (delete-region ... ...) (backward-char 1)
(move-to-column ... t) (insert tags) (move-to-column ... t))
(goto-char pos))
 (let ((pos ...) (col ...) tags) (beginning-of-line 1) (if (and ...
...) (progn ... ... ... ... ... ... ... ...) (goto-char pos)))
 org-align-tags-here(70)
 (if (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 (when (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 org-fix-tags-on-the-fly()
 (if (and (org-table-p) (progn ... t) (eq N 1) (looking-at "[^|\n]*
|")) (let (org-table-may-need-update) (goto-char ...)
(delete-backward-char 1) (goto-char ...) (self-insert-command N))
(setq org-table-may-need-update t) (self-insert-command N)
(org-fix-tags-on-the-fly))
 org-self-insert-command(1)
 call-interactively(org-self-insert-command)
 recursive-edit()
 debug(error (error "Visible portion of buffer not modifiable"))
 move-to-column(70 t)
 (progn (setq tags (match-string 2)) (goto-char (match-beginning 1))
(insert " ") (delete-region (point) (1+ ...)) (backward-char 1)
(move-to-column (max ... ... ...) t) (insert tags) (move-to-column
(min ... col) t))
 (if (and (looking-at ...) (< pos ...)) (progn (setq tags ...)
(goto-char ...) (insert " ") (delete-region ... ...) (backward-char 1)
(move-to-column ... t) (insert tags) (move-to-column ... t))
(goto-char pos))
 (let ((pos ...) (col ...) tags) (beginning-of-line 1) (if (and ...
...) (progn ... ... ... ... ... ... ... ...) (goto-char pos)))
 org-align-tags-here(70)
 (if (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 (when (and (equal ... ?*) (org-on-heading-p)) (org-align-tags-here
org-tags-column))
 org-fix-tags-on-the-fly()
 (if (and (org-table-p) (progn ... t) (eq N 1) (looking-at "[^|\n]*
|")) (let (org-table-may-need-update) (goto-char ...)
(delete-backward-char 1) (goto-char ...) (self-insert-command N))
(setq org-table-may-need-update t) (self-insert-command N)
(org-fix-tags-on-the-fly))
 org-self-insert-command(1)
 call-interactively(org-self-insert-command)

Tim.


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




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