From: James TD Smith <ahktenzero@mohorovi.cc>
To: emacs-orgmode@gnu.org
Subject: [PATCH 1/2] Fix a bug in org-link-display-format.
Date: Wed, 11 Nov 2009 18:17:19 +0000 [thread overview]
Message-ID: <1257963440-8651-1-git-send-email-ahktenzero@mohorovi.cc> (raw)
It would break if there was a '\' in the link description.
---
lisp/ChangeLog | 4 ++++
lisp/org.el | 9 +++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 112e0bc..0ce2d50 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -72,6 +72,10 @@
* org-docbook.el (org-export-as-docbook): Protect targets in
verbatim emphasis.
+2009-11-07 James TD Smith <ahktenzero@mohorovi.cc>
+
+ * org.el (org-link-display-format): Should be literal replacement.
+
2009-11-06 Carsten Dominik <carsten.dominik@gmail.com>
* org-clock.el (org-show-notification): Handle messages that
diff --git a/lisp/org.el b/lisp/org.el
index c0afd10..ed32b94 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17575,10 +17575,11 @@ Show the heading too, if it is currently invisible."
if no description is present"
(save-match-data
(if (string-match org-bracket-link-analytic-regexp link)
- (replace-match (or (match-string 5 link)
- (concat (match-string 1 link)
- (match-string 3 link)))
- nil nil link)
+ (replace-match (if (match-end 5)
+ (match-string 5 link)
+ (concat (match-string 1 link)
+ (match-string 3 link)))
+ nil t link)
link)))
;; Speedbar support
--
1.6.5
next reply other threads:[~2009-11-11 18:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-11 18:17 James TD Smith [this message]
2009-11-11 18:17 ` [PATCH 2/2] Make org-agenda-columns-summarize work properly with the new summary types James TD Smith
2009-11-11 18:22 ` James TD Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1257963440-8651-1-git-send-email-ahktenzero@mohorovi.cc \
--to=ahktenzero@mohorovi.cc \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).