forked from mirrors/org-mode
Leave headline intact when creating link
* org.el (org-make-org-heading-search-string): Leave headline intact. Otherwise `org-link-search-must-match-exact-headline' set to a non-nil value won't work properly.
This commit is contained in:
parent
e14bb168cb
commit
400a1457b3
|
@ -8422,8 +8422,6 @@ according to FMT (default from `org-email-link-description-format')."
|
|||
(setq s (replace-match "" t t s)))
|
||||
(while (string-match org-ts-regexp s)
|
||||
(setq s (replace-match "" t t s))))
|
||||
(while (string-match "[^a-zA-Z_0-9 \t]+" s)
|
||||
(setq s (replace-match " " t t s)))
|
||||
(or string (setq s (concat "*" s))) ; Add * for headlines
|
||||
(mapconcat 'identity (org-split-string s "[ \t]+") " ")))
|
||||
|
||||
|
|
Loading…
Reference in New Issue