Re: [Orgmode] [org-Calendar] Recurring events with exception on days

2009-07-13 Thread Brian van den Broek

Marcelo de Moraes Serpa said unto the world at 12/07/09 11:47 PM:

Hello list!

Is there a way to schedule an item as a recurring event AND tell org
to exclude it from specific weekdays (for example, Saturday  Sunday)
?

Thanks in advance,

Marcelo.




Hi Marcelo,

The easiest thing is to define n distinct events, one for each pf the 
n days of the week for which you wish to schedule it. When I do that, 
I put them all under a `container' heading that exists solely to group 
them.


That isn't entirely satisfactory, but it works well enough for me. You 
can also use sexp diary entries 
http://orgmode.org/manual/Timestamps.html#Timestamps though I've 
never bothered.


Best,

Brian vdB


___
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-Calendar] Recurring events with exception on days

2009-07-13 Thread Dirk-Jan Binnema
Hi Marcelo,

On Mon, Jul 13, 2009 at 6:47 AM, Marcelo de Moraes Serpa 
celose...@gmail.com wrote:

 Hello list!

 Is there a way to schedule an item as a recurring event AND tell org
 to exclude it from specific weekdays (for example, Saturday  Sunday)
 ?


This is becoming a FAQ.

The short answer is 'no'. The somewhat longer answer is that you can use
diary-sexps to have appointments only on weekdays, but you cannot use them
for things you want to tick off as 'DONE'. The only working solution is to
make separate recurring appointments for each of the weekdays.

Also see: http://osdir.com/ml/emacs-orgmode-gnu/2009-07/msg00093.html

Best wishes,
Dirk.
___
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] Typo in current org-mode online manual

2009-07-13 Thread Bastien
Dave Roberts d...@droberts.com writes:

 http://orgmode.org/manual/Activation.html#Activation
  
 If you do not like transient-make-mode...
  
 Should read transient-mark-mode not transient-make-mode.

Fixed, 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


[Orgmode] Working on org again

2009-07-13 Thread James TD Smith
After a long absence I am returning to org development. Those of you who haven't
forgotten about my proposed rewrite of org-remember will be wondering what
happened to it. I have been working on it when I've had time, and most of the
new features are implemented but not fully tested. I plan on making a test
branch available with the parts I think are usable available in the next week or
so.

In the meantime, I have a few other patches for Org:
- Add two new properties for the age or time since last activity of an entry. 
These
  are based on the first timestamps in an entry. Age/time since are displayed in
  column view in dd hh mm ss format.
- Bugfixes and improvements for my org-checklist module.
- Automatic tag sorting.
- org-insert-link can now include links on the X clipboard or in the Emacs
  kill-ring in the available links list.
- A bugfix for org-plot when using the script: option.

These patches are available from git://yog-sothoth.mohorovi.cc/org-mode in the
misc-new-features branch.

I also have a modified version of org-fstree with a few improvements (default
excludes for .git/.svn dirs, emacs backup files etc, speed enhancement for the
'what links to this file' option and some general code cleanup), but it's based
on an old version. I was also planning on adding an option to use org-registry
to get the links to entries, which would speed things up even more. I'll post a
patch to the list when I've done that and merged my changes into the current
version.

James

--
|-James TD Smith-email/ahktenz...@mohorovi.cc-|




___
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] [misc-new-features 5/5] Fix a problem I was having with plots using a script. Org-plot was deleting the data file before gnuplot read it in. I've moved the deletion of the temporary data fil

2009-07-13 Thread James TD Smith
---
 lisp/org-plot.el |   14 +++---
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index 0e8f5a2..c9d61b3 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -333,12 +333,12 @@ line directly before or after the table.
   (with-temp-buffer
(if (plist-get params :script) ;; user script
(progn (insert
-(org-plot/gnuplot-script data-file num-cols params t))
-   (insert \n)
-   (insert-file-contents (plist-get params :script))
-   (goto-char (point-min))
-   (while (re-search-forward $datafile nil t)
- (replace-match data-file nil nil)))
+   (org-plot/gnuplot-script data-file num-cols params t))
+  (insert \n)
+  (insert-file-contents (plist-get params :script))
+  (goto-char (point-min))
+  (while (re-search-forward $datafile nil t)
+(replace-match data-file nil nil)))
  (insert
   (org-plot/gnuplot-script data-file num-cols params)))
;; graph table
@@ -346,7 +346,7 @@ line directly before or after the table.
(gnuplot-send-buffer-to-gnuplot))
   ;; cleanup
   (bury-buffer (get-buffer *gnuplot*))
-  (delete-file data-file
+  (run-with-idle-timer 0.1 nil (lambda () (delete-file data-file))
 
 (provide 'org-plot)
 
-- 
1.6.3.3



___
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] [misc-new-features 3/5] Add an option to sort tags automatically.

2009-07-13 Thread James TD Smith
---
 lisp/ChangeLog |3 +++
 lisp/org.el|   17 -
 2 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 348ade3..9ce7a17 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -11,6 +11,9 @@
SINCE_IA. These give the time since any active or inactive
timestamp in an entry.
(org-special-properties): Add SINCE, SINCE_IA.
+   (org-tags-sort-function): Add custom declaration for tags
+   sorting function.
+   (org-set-tags): Sort tags if org-tags-sort-function is set
 
 2009-07-08  Carsten Dominik  carsten.domi...@gmail.com
 
diff --git a/lisp/org.el b/lisp/org.el
index d08155a..854d09c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2337,6 +2337,15 @@ is better to limit inheritance to certain tags using the 
variables
  (const :tag Yes, do list them t)
  (const :tag List them, indented with leading dots indented)))
 
+(defcustom org-tags-sort-function nil
+  When set, tags are sorted using this function as a comparator
+  :group 'org-tags
+  :type '(choice
+ (const :tag No sorting nil)
+ (const :tag Alphabetical string)
+ (const :tag Reverse alphabetical string)
+ (function :tag Custom function nil)))
+
 (defvar org-tags-history nil
   History of minibuffer reads for tags.)
 (defvar org-last-tags-completion-table nil
@@ -10840,11 +10849,17 @@ With prefix ARG, realign all tags in headings in the 
current buffer.
  ;; No boolean logic, just a list
  (setq tags (replace-match : t t tags
 
+  (if org-tags-sort-function
+ (setq tags (mapconcat 'identity
+   (sort (org-split-string tags (org-re 
[^[:alnum:]...@]+))
+ org-tags-sort-function) :)))
+
   (if (string-match \\`[\t ]*\\' tags)
-  (setq tags )
+ (setq tags )
(unless (string-match :$ tags) (setq tags (concat tags :)))
(unless (string-match ^: tags) (setq tags (concat : tags
 
+
   ;; Insert new tags at the correct column
   (beginning-of-line 1)
   (cond
-- 
1.6.3.3



___
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] [misc-new-features 4/5] Allow org-insert-link to check the X clipboard and the Emacs kill-ring for links, as well as the stored links. This makes getting URLs into org from a browser much ea

2009-07-13 Thread James TD Smith
You can customise `org-link-check-clipboards' to check either the X clipboards
or kill-ring only, or both, or none. If you have the interprogram-cut/paste
functions set, you probably only want to use the kill-ring only.
---
 lisp/ChangeLog |5 
 lisp/org.el|   66 ---
 2 files changed, 53 insertions(+), 18 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9ce7a17..662a585 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -14,6 +14,11 @@
(org-tags-sort-function): Add custom declaration for tags
sorting function.
(org-set-tags): Sort tags if org-tags-sort-function is set
+   (org-link-check-clipboards): Add a custom option for
+   clipboard link checking
+   (org-insert-link): If enabled, check the X clipboard and emacs
+   kill ring for strings which look like links, and include them in
+   the stored links to select from.
 
 2009-07-08  Carsten Dominik  carsten.domi...@gmail.com
 
diff --git a/lisp/org.el b/lisp/org.el
index 854d09c..47fb0b6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1024,6 +1024,15 @@ to use.
   :group 'org-link
   :type 'function)
 
+(defcustom org-link-check-clipboards nil
+  Should org-insert-link check clipboards for links
+  :group 'org-link
+  :type '(choice
+ (const :tag Just stored links nil)
+ (const :tag The X11 clipboards x)
+ (const :tag The Emacs kill-ring emacs)
+ (const :tag Both both)))
+
 (defgroup org-link-store nil
   Options concerning storing links in Org-mode.
   :tag Org Store Link
@@ -7323,6 +7332,7 @@ used as the link location instead of reading one 
interactively.
 (desc region)
 tmphist ; byte-compile incorrectly complains about this
 (link link-location)
+(stored-links org-stored-links)
 entry file all-prefixes)
 (cond
  (link-location) ; specified by arg, just use it.
@@ -7342,26 +7352,46 @@ used as the link location instead of reading one 
interactively.
  ((member complete-file '((4) (16)))
   ;; Completing read for file names.
   (setq link (org-file-complete-link complete-file)))
- (t
-  ;; Read link, with completion for stored links.
-  (with-output-to-temp-buffer *Org Links*
-   (princ Insert a link.
+ (t ;; Read link, with completion for stored links.
+  ;;Check clipboards/kill ring for links
+  (when org-link-check-clipboards
+   (setq stored-links
+ (append stored-links
+ (mapcar
+  (lambda (x) (list x Link from clipboard))
+  (remove
+   nil
+   (remove-duplicates
+(mapcar
+ (lambda (x)
+   (when (and x (string-match org-link-types-re x)) x))
+ (append (when
+ (or (eq org-link-check-clipboards 'x)
+ (eq org-link-check-clipboards 'both))
+   (list (org-get-x-clipboard 'PRIMARY)
+ (org-get-x-clipboard 'CLIPBOARD)
+ (org-get-x-clipboard 'SECONDARY)))
+ (when
+ (or (eq org-link-check-clipboards 'emacs)
+ (eq org-link-check-clipboards 'both))
+   (mapcar 'org-no-properties 
kill-ring))
+   (with-output-to-temp-buffer *Org Links*
+ (princ Insert a link.
 Use TAB to complete link prefixes, then RET for type-specific completion 
support\n)
-   (when org-stored-links
- (princ \nStored links are available with up/down or M-p/n (most 
recent with RET):\n\n)
- (princ (mapconcat
- (lambda (x)
-   (if (nth 1 x) (concat (car x)  ( (nth 1 x) )) (car x)))
- (reverse org-stored-links) \n
-  (let ((cw (selected-window)))
-   (select-window (get-buffer-window *Org Links*))
+ (when stored-links
+   (princ \nStored links are available with up/down or M-p/n 
(most recent with RET):\n\n)
+   (princ (mapconcat
+   (lambda (x)
+ (if (nth 1 x) (concat (car x)  ( (nth 1 x) )) (car 
x)))
+   (reverse stored-links) \n
+   (let ((cw (selected-window)))
+ (select-window (get-buffer-window *Org Links*))
(setq truncate-lines t)
(unless (pos-visible-in-window-p (point-max))
  (org-fit-window-to-buffer))
(and (window-live-p cw) (select-window cw)))
   ;; Fake a link history, containing the stored links.
-  (setq tmphist (append (mapcar 'car org-stored-links)
-   org-insert-link-history))
+  (setq tmphist (append (mapcar 'car stored-links) 

[Orgmode] [misc-new-features 2/5] Bugfixes, documentation and custom options for org-checklist.

2009-07-13 Thread James TD Smith
* contrib/lisp/org-checklist.el
  - Fix some problems with the print/export feature in org-checklist.
  - Add custom options for this module
  - Fix some interaction with a2ps
  - Only reset checkboxes if TODO state is done.

* doc/org.texi
  - Add documentation for org-checklist

* lisp/org.el
  - Add org-checklist to org-modules
---
 contrib/ChangeLog |   16 ++
 contrib/lisp/org-checklist.el |   67 +++-
 lisp/org.el   |1 +
 3 files changed, 69 insertions(+), 15 deletions(-)

diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 7e62df0..6a5c2a2 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,19 @@
+2009-07-12  James TD Smith  ahktenz...@mohorovi.cc
+
+   * lisp/org-checklist.el (org-checklist): Add a custom group for
+   org-checklist. The options are all for the unchecked items export
+   function.
+   (org-checklist-export-time-format): Allow customising the
+   timestamp appended to the saved unchecked items list
+   (org-checklist-export-function): Allow customising the output
+   format for the unchecked items list.
+   (org-checklist-export-params): Options for the exporter.
+   (org-checklist-a2ps-params): Printing options.
+   (org-make-checklist-export): Use values from custom vars. Printing
+   is now controlled by the PRINT_EXPORT property in the entry, and
+   the user is only asked if it is missing. Pass the switches to
+   a2ps-buffer properly.
+
 2009-06-20  Carsten Dominik  carsten.domi...@gmail.com
 
* README: List new file org-export-generic.el
diff --git a/contrib/lisp/org-checklist.el b/contrib/lisp/org-checklist.el
index 26d228f..4ebf91b 100644
--- a/contrib/lisp/org-checklist.el
+++ b/contrib/lisp/org-checklist.el
@@ -42,11 +42,37 @@
 ;;
 ;;; Code:
 (require 'org)
+(load a2ps-print)
 
-(defvar export-time-format %Y%m%d%H%M
-  format of timestamp appended to export file)
-(defvar export-function 'org-export-as-ascii
-  function used to prepare the export file for printing)
+(defgroup org-checklist nil
+  Extended checklist handling for org
+  :tag Org-checklist
+  :group 'org)
+
+(defcustom org-checklist-export-time-format %Y%m%d%H%M
+  The format of timestamp appended to LIST_EXPORT_BASENAME to
+  make the name of the export file.
+  :link '(function-link format-time-string)
+  :group 'org-checklist
+  :type 'string)
+
+(defcustom org-checklist-export-function 'org-export-as-ascii
+  function used to prepare the export file for printing
+  :group 'org-checklist
+  :type '(radio (function-item :tag ascii text org-export-as-ascii)
+   (function-item :tag HTML  org-export-as-html)
+   (function-item :tag LaTeX :value org-export-as-latex)
+   (function-item :tag XOXO :value org-export-as-xoxo)))
+
+(defcustom org-checklist-export-params nil
+  options for the export function file for printing
+  :group 'org-checklist
+  :type '(repeat string))
+
+(defcustom org-checklist-a2ps-params nil
+  options for a2ps for printing
+  :group 'org-checklist
+  :type '(repeat string))
 
 (defun org-reset-checkbox-state-maybe ()
   Reset all checkboxes in an entry if the `RESET_CHECK_BOXES' property is set
@@ -54,23 +80,30 @@
   (if (org-entry-get (point) RESET_CHECK_BOXES)
   (org-reset-checkbox-state-subtree)))
 
+
 (defun org-make-checklist-export ()
   Produce a checklist containing all unchecked items from a list
 of checkbox items
   (interactive *)
   (if (org-entry-get (point) LIST_EXPORT_BASENAME)
-  (let* ((export-file (concat (org-entry-get (point) 
LIST_EXPORT_BASENAME)
- - (format-time-string export-time-format)
+  (let* ((export-file (concat (org-entry-get (point) 
LIST_EXPORT_BASENAME nil)
+ - (format-time-string
+  org-checklist-export-time-format)
  .org))
+(print (case (org-entry-get (point) PRINT_EXPORT nil)
+ (( nil nil) nil)
+ (t t)
+ (nil (y-or-n-p Print list? 
 exported-lines
-title)
+title Checklist export)
(save-restriction
  (save-excursion
(org-narrow-to-subtree)
+   (org-update-checkbox-count-maybe)
(org-show-subtree)
(goto-char (point-min))
-   (if (looking-at org-complex-heading-regexp)
-   (setq title (match-string 4)))
+   (when (looking-at org-complex-heading-regexp)
+ (setq title (match-string 4)))
(goto-char (point-min))
(let ((end (point-max)))
  (while ( (point) end)
@@ -85,14 +118,18 @@ of checkbox items
(dolist (entry exported-lines) (insert entry))
(org-update-checkbox-count-maybe)
(write-file export-file)
-   (if (y-or-n-p Print list? )
-   

[Orgmode] [misc-new-features 1/5] Add two new special properties, SINCE and SINCE_IA.

2009-07-13 Thread James TD Smith
These give the elapsed time since the TIMESTAMP and TIMESTAMP_IA
properties. This value is in days, as a floating point number.

For display in column view, this is converted to a human-readable time
interval in the form 8d 02h 12m 22s.
---
 lisp/ChangeLog  |   18 --
 lisp/org-colview.el |   36 
 lisp/org.el |   23 ++-
 3 files changed, 58 insertions(+), 19 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 351731d..348ade3 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
+2009-07-12  James TD Smith  ahktenz...@mohorovi.cc
+
+   * org-colview.el (org-format-time-period): Formats a time in
+   fractional days as days, hours, mins, seconds.
+   (org-columns-display-here): Add special handling for SINCE and
+   SINCE_IA to format for display.
+
+   * org.el (org-time-since): Add a function to get the time since an
+   org timestamp.
+   (org-entry-properties): Add two new special properties: SINCE and
+   SINCE_IA. These give the time since any active or inactive
+   timestamp in an entry.
+   (org-special-properties): Add SINCE, SINCE_IA.
+
 2009-07-08  Carsten Dominik  carsten.domi...@gmail.com
 
* org-clock.el (org-clock-goto): Find hidden headlines as well.
@@ -561,7 +575,7 @@
`org-export-push-to-kill-ring'.
 
* org-exp.el (org-export-show-temporary-export-buffer): New
-   option. 
+   option.
 
* org-latex.el (org-export-as-latex): Use
`org-export-show-temporary-export-buffer'.
@@ -2861,7 +2875,7 @@
(org-agenda-change-all-lines, org-tags-sparse-tree)
(org-time-string-to-absolute, org-small-year-to-year)
(org-link-escape): Re-apply changes accidentially overwritten
-   by last commit to Emacs.
+   by last commit to Emacs
 
 2008-11-23  Carsten Dominik  carsten.domi...@gmail.com
 
diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 7633b5b..6a89849 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -190,18 +190,19 @@ This is the compiled version of the format.)
  (length property))
f (format %%-%d.%ds |  width width)
val (or (cdr ass) )
-   modval (or (and org-columns-modify-value-for-display-function
-   (functionp
-org-columns-modify-value-for-display-function)
-   (funcall
-org-columns-modify-value-for-display-function
-title val))
-  (if (equal property ITEM)
-  (if (org-mode-p)
-  (org-columns-cleanup-item
-   val org-columns-current-fmt-compiled)
-(org-agenda-columns-cleanup-item
- val pl cphr org-columns-current-fmt-compiled)
+   modval (cond ((and org-columns-modify-value-for-display-function
+  (functionp
+   org-columns-modify-value-for-display-function))
+ (funcall org-columns-modify-value-for-display-function
+  title val))
+  ((equal property ITEM)
+   (if (org-mode-p)
+   (org-columns-cleanup-item
+val org-columns-current-fmt-compiled)
+ (org-agenda-columns-cleanup-item
+  val pl cphr org-columns-current-fmt-compiled)))
+  ((or (equal property SINCE) (equal property 
SINCE_IA))
+   (org-format-time-period val
   (setq s2 (org-columns-add-ellipses (or modval val) width))
   (setq string (format f s2))
   ;; Create the overlay
@@ -1388,6 +1389,17 @@ This will add overlays to the date lines, to show the 
summary for each day.
   (equal (nth 4 a) (nth 4 fm)))
  (org-columns-compute (car fm)))
 
+(defun org-format-time-period (interval)
+  (if (stringp interval)
+  
+(let* ((days (floor interval))
+  (frac-hours (* 24 (- interval days)))
+  (hours (floor frac-hours))
+  (minutes (floor (* 60 (- frac-hours hours
+  (seconds (floor (* 60 (- (* 60 (- frac-hours hours)) minutes)
+  (format %dd %02dh %02dm %02ds days hours minutes seconds
+
+
 (provide 'org-colview)
 
 ;; arch-tag: 61f5128d-747c-4983-9479-e3871fa3d73c
diff --git a/lisp/org.el b/lisp/org.el
index feaa115..8843486 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6481,7 +6481,10 @@ WITH-CASE, the sorting considers case as well.
   (string-to-char (match-string 2))
 org-default-priority))
  ((= dcst ?r)
-  (or (org-entry-get nil property) ))
+  (or (org-entry-get nil 

[Orgmode] Re: [misc-new-features 4/5] Allow org-insert-link to check the X clipboard and the Emacs kill-ring for links, as well as the stored links. This makes getting URLs into org from a browser muc

2009-07-13 Thread Bernt Hansen
James TD Smith ahktenz...@mohorovi.cc writes:

 You can customise `org-link-check-clipboards' to check either the X clipboards
 or kill-ring only, or both, or none. If you have the interprogram-cut/paste
 functions set, you probably only want to use the kill-ring only.
 ---

Hi James,

The summary line (subject) is way too long.  If this gets applied it
won't show up very nicely in git shortlog or git log.

Normally the subject line (first line of the commit) is a short one-line
summary of the patch that fits in less than 80 chars.  If you find you
that is not enough that is usually a sign that the patch should be split
into multiple smaller commits.

You can put as much detail as you want in the body of the patch (line
3+).  Line 2 is blank - to separate the one-line summary from the
description for the commit.

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] Re: [misc-new-features 5/5] Fix a problem I was having with plots using a script. Org-plot was deleting the data file before gnuplot read it in. I've moved the deletion of the temporary data

2009-07-13 Thread Bernt Hansen
James TD Smith ahktenz...@mohorovi.cc writes:

 ---

Same comment for this one as patch 4/5.

-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] Re: [misc-new-features 4/5] extra long subject lines

2009-07-13 Thread James TD Smith
Hi Bernt,

On 2009-07-13 07:55:04(-0400), Bernt Hansen wrote:
 James TD Smith ahktenz...@mohorovi.cc writes:

  You can customise `org-link-check-clipboards' to check either the X 
  clipboards
  or kill-ring only, or both, or none. If you have the interprogram-cut/paste
  functions set, you probably only want to use the kill-ring only.
  ---

 Hi James,

 The summary line (subject) is way too long.  If this gets applied it
 won't show up very nicely in git shortlog or git log.

 Normally the subject line (first line of the commit) is a short one-line
 summary of the patch that fits in less than 80 chars.  If you find you
 that is not enough that is usually a sign that the patch should be split
 into multiple smaller commits.

 You can put as much detail as you want in the body of the patch (line
 3+).  Line 2 is blank - to separate the one-line summary from the
 description for the commit.

Sorry about that, guess I'm a bit rusty :). I've fixed the commit logs and
pushed them to my git repository.

James

--
|-James TD Smith-email/ahktenz...@mohorovi.cc-|


___
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] Publishing subsections of an orgmode file (HTML)

2009-07-13 Thread Ben
Hello everybody

I think that's my first post here and I would like first of all to
thank you all for your amazing work.

I've a couple of questions to ask you and I must say I certainly don't
have the skills to understand in-depth answers, unfortunately, if it
involves coding or too fancy configuration but maybe there as
possibility to fix these issues pretty easily (hopefully!).

It turns out that the best way to organize my life with orgmode is to
have a couple of orgfiles (one 'work', one 'personal') and to put
everything in there: meeting reports, todo lists, notes, links,
everything really, wrapped up with Git for file revision control. And
that's brilliant, not too strict so I can directly jump where I want
to insert a new note, not too messy so I can easily find the stuff I'm
looking for.

My first question is: How can I publish a subsection of one of these
files as a webpage (and this subsection only)? I occasionally do that
manually with C-c C-e [R] export-region, which export the subsection
as a HTML page in an Emacs buffer. What I would like to do is to put a
comment in the org file subsection to set the HTML 'target' location
page such as

* Topic A
** Things to do [...] (private)
** Interesting Notes I would like to publish
#+THIS_REGION_TARGET_FILE=~/public_html/myfile.html

I think I've seen that somewhere on a orgmode page but I can't find it
yet : Sorry if the answer is obvious.

2/ The second thing I would eventually need would be a 'automatic'
menu and bread crumbs generation system.
I appreciate the fact that this has been discussed in this thread:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg12087.html
I would like to know if there is anything new in this area! :)

thank you again for your help,

 -- Ben


___
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: Publishing subsections of an orgmode file (HTML)

2009-07-13 Thread Dan Davison
Matthew Lundin m...@imapmail.org writes:

 Ben b...@maleloria.org writes:

 I think that's my first post here and I would like first of all to
 thank you all for your amazing work.

 Welcome!


 My first question is: How can I publish a subsection of one of these
 files as a webpage (and this subsection only)? I occasionally do that
 manually with C-c C-e [R] export-region, which export the subsection
 as a HTML page in an Emacs buffer. What I would like to do is to put a
 comment in the org file subsection to set the HTML 'target' location
 page such as

 * Topic A
 ** Things to do [...] (private)
 ** Interesting Notes I would like to publish
 #+THIS_REGION_TARGET_FILE=~/public_html/myfile.html

 You can specify the target file for an exported region using the
 property EXPORT_FILE_NAME. E.g.

 * Topic A
   :PROPERTIES:
   :EXPORT_FILE_NAME: ~/public_html/myfile.html
   :END:
 ** Things to do [...] (private)
 ** Interesting Notes I would like to publish

 You'll need to select the tree with C-c @ before exporting for this to
 work.

 See this section of the manual for more information:

 http://orgmode.org/manual/Export-options.html

Hi Ben,

Also, see this section

http://orgmode.org/manual/Selective-export.html#Selective-export

As the manual says, This behavior is governed by two variables:
org-export-select-tags and org-export-exclude-tags. These are both
lists of tags. The default values contain a single tag each: export
and noexport respectively.

So, e.g.

--8---cut here---start-8---
#+title: Selective export test 1

* This subtree is exported   :export:
  Stuff in expored subtree
* But not this one as there is an `export' tag in the buffer
  Stuff that won't be exported
--8---cut here---end---8---



--8---cut here---start-8---
#+title: Selective export test 2

* This subtree will be exported, with a single subtree exclusion
  h1 contents
*** h1.2
h1.2 contents
*** h2.2 (won't be exported)   :noexport:
h2.2 contents
* This subtree will be exported
  Stuff that will be exported
--8---cut here---end---8---



--8---cut here---start-8---
#+title: Selective export test 3

* This subtree will be exported, with a single subtree exclusion :export:
  h1 contents
*** h1.2
h1.2 contents
*** h2.2 (won't be exported)   :noexport:
h2.2 contents
* This subtree won't be exported, since an export tag is present in the buffer
  Stuff that won't be exported
--8---cut here---end---8---


Dan

p.s. In the first and third case, is it arguable that the :export: tag
should not appear in the exported HTML/pdf?



 Best,
 Matt


 ___
 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: [misc-new-features 4/5] extra long subject lines

2009-07-13 Thread Bernt Hansen
James TD Smith ahktenz...@mohorovi.cc writes:

 Sorry about that, guess I'm a bit rusty :). I've fixed the commit logs and
 pushed them to my git repository.

Thanks :)

-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] org-style folding for a .emacs

2009-07-13 Thread Scot Becker
Does anyone have a recipe for easy org-style folding of an elisp file?
 I'd like to divide my .emacs into segments to make it easier to
oversee and navigate.

Scot


___
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-style folding for a .emacs

2009-07-13 Thread Eric S Fraga
At Mon, 13 Jul 2009 22:23:51 +0100,
Scot Becker wrote:
 
 Does anyone have a recipe for easy org-style folding of an elisp file?
  I'd like to divide my .emacs into segments to make it easier to
 oversee and navigate.
 
 Scot

Scot,

I use hideshow (part of the standard Emacs distribution from 22.x
onwards, I believe) together with hideshow-org (by Shane Celis).  I've
not used it with elisp (mostly with Java) but I believe it should do
what you want.

eric


___
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: Publishing subsections of an orgmode file (HTML)

2009-07-13 Thread Ben
 http://orgmode.org/manual/Export-options.html
(...)
 http://orgmode.org/manual/Selective-export.html#Selective-export

Right, the answer was obvious and right under my nose :)
Thank you a million times for these pointers and sorry for not
understanding that by myself earlier.
Indeed a EXPORT_FILE + the 'export' tag you mentioned seem to fit the
bill. I'm really excited about that, orgmode seems so *perfectly*
fitted for any use! Thank you really.

 -- Ben


___
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-style folding for a .emacs

2009-07-13 Thread Dan Davison
Scot Becker scot.bec...@gmail.com writes:

Hi Scot,

 Does anyone have a recipe for easy org-style folding of an elisp file?
  I'd like to divide my .emacs into segments to make it easier to
 oversee and navigate.

As you're probably aware, outline-minor-mode can be used for folding
source code in whatever language. By playing with outline-regexp, a
variety of effects can be achieved. However, a much more powerful option
would be to embed the code in an org file: literate programming with
org. Code comments would be moved into the org-file, where they would be
joined by the org bestiary of hyperlinks, tags, TODO items, etc etc
etc. As it stands, org already provides excellent support for working
with source code blocks. One of the aims that Eric Schulte and I have
for org-babel[1] is to provide extra support for literate programming.

For an emacs config file, a simple solution -- that is available now --
is to strip out ('tangle') the code and then load the resulting .el file
as normal. This can be done with org-babel-tangle. Below are an example
of a toy .emacs.org file, and the .emacs.el that results after M-x
org-babel-tangle. The org-babel configuration code that is required is
in the second code block below.

Org-babel is under development. One reason for mentioning it is that the
basic functionality is up and running; another is that we'd be very
happy to have others join the project, and to receive ideas and patches
from the list.

Dan

Footnotes:

[1] http://github.com/eschulte/org-babel/tree/master

NB Although the implementation in org-babel is independent, Eric Neilsen
has also worked on tangle/untangle functions for org-mode, and posted on
that recently.

.emacs.org
--8---cut here---start-8---
* org config
#+begin_src emacs-lisp
(add-to-list 'load-path /usr/local/src/org-mode/lisp)
(require 'org-install)
#+end_src

* org-babel config
  Download/clone the org-babel code from 
[[http://github.com/eschulte/org-babel/tree/master][org-babel on github]]
#+begin_src emacs-lisp
(add-to-list 'load-path ~/src/org-babel/lisp)
(require 'org-babel-init)
(setq org-babel-tangle-langs
  '((python . (py #!/usr/bin/env python))
(R . (R #!/usr/bin/env R))
(sh . (sh #!/usr/bin/env bash))
(emacs-lisp . (el 
#+end_src
--8---cut here---end---8---


.emacs.el:
--8---cut here---start-8---

;; generated by org-babel-tangle

;; [[file:~/src/org-babel/.emacs.org::*org%20config][block-1]]
(add-to-list 'load-path /usr/local/src/org-mode/lisp)
(require 'org-install)
;; block-1 ends here

;; [[file:~/src/org-babel/.emacs.org::*org%20babel%20config][block-2]]
(add-to-list 'load-path ~/src/org-babel/lisp)
(require 'org-babel-init)
(setq org-babel-tangle-langs
  '((python . (py #!/usr/bin/env python))
(R . (R #!/usr/bin/env R))
(sh . (sh #!/usr/bin/env bash))
(emacs-lisp . (el 
;; block-2 ends here
--8---cut here---end---8---



 Scot


 ___
 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] lower case version of todo kw triggers refile bug

2009-07-13 Thread Samuel Wales
When I have a lower case version of a todo kw as the first
word in a header, refile skips the header.  Or so it seems.

I suspect that regexp matching for todo keywords in refile
code might be allowing lower case versions of those
keywords.  There was a fix for a similar problem a while
back and that fix seems to work.  So perhaps there is more than one
todo regexp?  That would be strange, but if so, then perhaps they can
be refactored.

To reproduce, try refile with ido and full paths.

Thanks.

-- 
Myalgic encephalomyelitis causes death and severe suffering.
You can get it any time and never recover.  Conflicts of
interest are destroying research.  Do science and justice
matter to you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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


[Orgmode] Re: lower case version of todo kw triggers refile bug

2009-07-13 Thread Samuel Wales
Clarification: ido does not present the header as a candidate.


___
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