Hello,

since quite a while, I'm using the attached patch on my local
planner-el (against the latest Debian package version 3.41-3):
=====
--- planner-diary.el    2006-11-10 16:45:47.000000000 +0100
+++ planner-diary.el_gismo      2006-11-14 22:52:25.000000000 +0100
@@ -114,6 +114,8 @@
 
 ;;; HISTORY:
 
+;; version 1.0.1 Add `planner-diary-hyperlink-label' to 
`planner-diary-add-entry'.
+;;
 ;; version 1.0 First stable version.  Expected to work as documented.  Same
 ;; feature of previous versions are not supported.
 ;;
@@ -192,6 +194,8 @@
 ;; Travis B. Hartwell (nafai AT travishartwell DOT net) helped fix
 ;; calendar desk entries and fixed a typo or two.
 
+;; Luca Capello (luca AT pca DOT it) added the hyperlink label.
+
 (require 'planner)
 (require 'diary-lib)
 (require 'calendar)
@@ -247,6 +251,10 @@
 ;;   :type 'number
 ;;   :group 'planner-diary)
 
+(defcustom planner-diary-hyperlink-label "\n URL: "
+  "The text inserted just before the hyperlink by `planner-diary-add-entry'."
+  :type 'string
+  :group 'planner-diary)
 
 ;; CAL-DESK
 (defcustom planner-diary-cal-desk-string "* Cal-Desk"
@@ -915,7 +923,7 @@
      (concat
       (let ((cal-date (planner-filename-to-calendar-date date)))
         (calendar-date-string cal-date t t))
-      " " time " " text " "
+      " " time " " text " " planner-diary-hyperlink-label
       (run-hook-with-args-until-success
        'planner-annotation-functions))
      nil planner-diary-file)))
=====

The rationale for the patch is the integration with icalendar, which
is already capable of importing URL fields.  Obviously, adding
complete export to icalendar [1] will complete support my patch.

In order to obtain the old behavior (the hyperlink directly in-lined
after the diary entry), set the `planner-diary-hyperlink-label'
variable to nil.

Suggestions?

Thx, bye,
Gismo / Luca

Footnotes: 
[1] I started a while ago to work on it, but then lost interest
    because I cannot synchronize back the calendar with my mobile
    phone.  Now that opensync [2] seems to work flawlessly, I should
    go back to my work
[2] http://www.opensync.org

Attachment: pgp5ZKPsR1D7I.pgp
Description: PGP signature

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to