[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [PATCH 09/16] Remove obsolete argument in call to org-link-une
From: |
David Maus |
Subject: |
[Orgmode] [PATCH 09/16] Remove obsolete argument in call to org-link-unescape |
Date: |
Sun, 13 Feb 2011 13:01:11 +0100 |
* org-mobile.el (org-mobile-locate-entry): Remove obsolete argument in
call to org-link-unescape.
`org-link-unescape' always unescapes all percent escaped sequences.
---
lisp/org-mobile.el | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index a278fb1..6616876 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -969,11 +969,10 @@ is currently a noop.")
(if (not (string-match "\\`olp:\\(.*?\\):\\(.*\\)$" link))
nil
(let ((file (match-string 1 link))
- (path (match-string 2 link))
- (table '((?: . "%3a") (?\[ . "%5b") (?\] . "%5d") (?/ . "%2f"))))
- (setq file (org-link-unescape file table))
+ (path (match-string 2 link)))
+ (setq file (org-link-unescape file))
(setq file (expand-file-name file org-directory))
- (setq path (mapcar (lambda (x) (org-link-unescape x table))
+ (setq path (mapcar 'org-link-unescape
(org-split-string path "/")))
(org-find-olp (cons file path))))))
--
1.7.2.3
- Re: [Orgmode] Improve percent escaping links in Org mode (pull request / OK to push), (continued)
[Orgmode] [PATCH 01/16] Decode single byte sequence if decoding unicode failed., David Maus, 2011/02/13
[Orgmode] [PATCH 02/16] New unicode aware percent encoding algorithm, David Maus, 2011/02/13
[Orgmode] [PATCH 03/16] New format of percent escape table, David Maus, 2011/02/13
[Orgmode] [PATCH 04/16] Fixup doc string, David Maus, 2011/02/13
[Orgmode] [PATCH 05/16] New optional argument: Merge user table with default table, David Maus, 2011/02/13
[Orgmode] [PATCH 06/16] Inline function to properly decode utf8 characters in Emacs 22, David Maus, 2011/02/13
[Orgmode] [PATCH 08/16] Declare obsolete & alias to respective org-link-unescape-* functions, David Maus, 2011/02/13
[Orgmode] [PATCH 09/16] Remove obsolete argument in call to org-link-unescape,
David Maus <=
[Orgmode] [PATCH 07/16] Unescape functions moved and renamed from org-protocol.el, David Maus, 2011/02/13
[Orgmode] [PATCH 10/16] Use new percent escape character table format, David Maus, 2011/02/13
[Orgmode] [PATCH 11/16] Add percent sign to list of escape chars, David Maus, 2011/02/13
[Orgmode] [PATCH 12/16] Rename lambda argument, David Maus, 2011/02/13
[Orgmode] [PATCH 14/16] Always percent escape the percent sign, David Maus, 2011/02/13
[Orgmode] [PATCH 13/16] Refactor unescaping functions, David Maus, 2011/02/13
[Orgmode] [PATCH 15/16] Use `org-link-unescape' instead of obsolete unhex string function, David Maus, 2011/02/13
[Orgmode] [PATCH 16/16] Throw error if encoding character in utf8 fails, David Maus, 2011/02/13