It was previously noted that some Gnus annotations could create
invalid Muse links because they included brackets.  This should be
fixed now.

Muse now uses the following transforms on links.

 "[" <==> "%5B"
 "]" <==> "%5D"
 "%" <==> "%%"

These are applied automatically if you enter a link using `C-c TAB l'
or when inserting a URL with `C-c TAB u'.  This also happens when you
create a new Planner annotation or enter a task category.

The transforms are reversed when displaying the link and publishing
the link.

To migrate old annotations and links, you might want to use something
like the following function, calling it on each file.  I haven't
tested it, so be careful.

(defun planner-migrate-old-annotations ()
  (interactive)
  (goto-char (point-min))
  (while (re-search-forward muse-explicit-link-regexp)
    (let ((link (muse-get-link))
          (desc (muse-get-link-desc)))
      (replace-match (muse-link-escape link) t t nil 1)
      (replace-match (muse-link-escape desc) t t nil 2))))

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: freenode.net/mwolson: #emacs, #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC

Attachment: pgpN4uehXt5iW.pgp
Description: PGP signature

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

Reply via email to