emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: [bug] PlannerMode problem with space in URI


From: John Sullivan
Subject: [emacs-wiki-discuss] Re: [bug] PlannerMode problem with space in URI
Date: Sat, 25 Sep 2004 03:05:00 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Lucas Bonnet <address@hidden> writes:

> Hello !
>
> While browsing the info node for PlannerMode, i wanted to create a task
> from the node (info "(PlannerMode)Changing Tasks"). Then i switched back
> to my plan page, to see how the task was looking like, and i saw :
>
> -- single line follows --
> #A3  _ foo from [[info:///usr/local/info/PlannerMode#Changing Tasks][Changing 
> Tasks]]
> -- /line --
>
> it wasn't fontified and buttonized by planner, because of the space in
> the URI. If I remove the space, it's immediately recognized as an URI,
> and fontified as expected.
>
Lukhas (cc: mailing list),

Does this fix it? 

My best effort at an arch changeset is attached. 

--- orig/emacs-wiki.el
+++ mod/emacs-wiki.el
@@ -948,10 +948,12 @@
        "\\[" "%5B"
        (emacs-wiki-replace-regexp-in-string
         "\\]" "%5D"
-        (if further
-            (emacs-wiki-replace-regexp-in-string
-             "#" "%23" text)
-          text))))))
+       (emacs-wiki-replace-regexp-in-string
+        " " "%20"
+        (if further
+            (emacs-wiki-replace-regexp-in-string
+             "#" "%23" text)
+          text)))))))
 
 (defun emacs-wiki-link-unescape (text &optional further)
   "Unescape dangerous characters in TEXT.
@@ -963,10 +965,12 @@
        "%5B" "["
        (emacs-wiki-replace-regexp-in-string
         "%5D" "]"
-        (if further
-            (emacs-wiki-replace-regexp-in-string
-             "%23" "#" text)
-          text))))))
+       (emacs-wiki-replace-regexp-in-string
+        "%20" " "
+        (if further
+            (emacs-wiki-replace-regexp-in-string
+             "%23" "#" text)
+          text)))))))
 
 (defun emacs-wiki-make-link (link &optional name)
   "Return a Wiki link to LINK with NAME as the text."


-johnsu01

Attachment: pgpJy9RhP39ME.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]