emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [patch] Link abbreviations : left-trim the tag


From: Carsten Dominik
Subject: Re: [Orgmode] [patch] Link abbreviations : left-trim the tag
Date: Sat, 20 Jun 2009 21:22:40 +0200

Hmmm, this is inconsistent with all the other link syntax,
like http: or news: or whatever....

- Carsten

On Jun 19, 2009, at 11:56 PM, Nicolas Girard wrote:

Hi,
the following patch left-trims the tag in a link abbreviation ; this
allows to write
[[google: org-mode]]
for better readability.

--
Nicolas


diff --git a/lisp/org.el b/lisp/org.el
index 07d790f..8aef3c7 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6830,7 +6830,7 @@ call CMD."

(defun org-link-expand-abbrev (link)
  "Apply replacements as defined in `org-link-abbrev-alist."
- (if (string-match "^\\([a-zA-Z][-_a-zA-Z0-9]*\\)\\(::?\\(.*\\)\\)? $" link)
+  (if (string-match "^\\([a-zA-Z][-_a-zA-Z0-9]*\\)\\(::?[
\t]*\\(.*\\)\\)?$" link)
      (let* ((key (match-string 1 link))
            (as (or (assoc key org-link-abbrev-alist-local)
                    (assoc key org-link-abbrev-alist)))


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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