emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [IT] Broken support for links to text files (both internal & ext


From: Aʟᴏɴɢ-Tʀᴀᴄᴋ
Subject: Re: [O] [IT] Broken support for links to text files (both internal & external)
Date: Mon, 8 Jan 2018 18:56:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

This patch to my ~/.emacs PARTIALLY, but permanently, solved my issue:

diff --git a/conf/home/.emacs b/conf/home/.emacs
index 6bc96469e..cef1c08a7 100755
--- a/conf/home/.emacs
+++ b/conf/home/.emacs
@@ -27,6 +27,7 @@
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
+ '(org-link-search-must-match-exact-headline nil)
  '(inhibit-startup-screen t)
  '(safe-local-variable-values

Now, I can use again my internal links to inline random text in my
files

HOWEVER, in the case of links pointing to headlines, the matching to has
to be EXACT (but it was not necessary in earlier version since 2011 at
least) otherwise I get the message below:

  "No match for fuzzy expression: <random text>"

Do you know if I can revert some option to make the sample below to work
again?

-----8<-----
[[*random text][link to the past]]

* TODO random text in a headline title
-----8<-----

As of today, only this link with EXACT matching would work:

[[*random text in a headline title][link to the past]]

Thanks a lot,
Nicolas

On 05/01/2018 17:15, Nicolas Bercher (Aʟᴏɴɢ-Tʀᴀᴄᴋ) wrote:
On 05/01/2018 13:27, Eric S Fraga wrote:
On Friday,  5 Jan 2018 at 13:10, Nicolas Bercher (Aʟᴏɴɢ-Tʀᴀᴄᴋ) wrote:

[...]

Is it possible that this setting is set by Debian packagers?
I ask this because I reproduced this bug with and without my
  ~/.emacs[.d/] files.

It's the default for org (at least now, as far as I can tell).

But I ashamedly don't know how to set it permanently in my  ~/.emacs!
Would you please help me on this?

Easy: describe the variable

   C-h v org-link-search-must-match-exact-headline RET

and then click on the "customize" link near the end of the
description.  Make sure to "Apply and set" the change you make.


I've done this but only changed the indentation of the
custom-set-variables block and added nothing new.

And if I start from an empty ~/.emacs I got this ew block, but again, it
does not mention org-link-search-must-match-exact-headline variable:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )

What should I add *by hand* in ~/.emacs?
I'm sorry, it is just a matter of very basic elisp syntax (but I never
took the time to dig into elisp yet!).

Thank you,
Nicolas


--
Nicolas Bercher
Aʟᴏɴɢ-Tʀᴀᴄᴋ
Mob: +33 651 792 011
Tel: +33 952 550 210
Fax: +33 957 550 210
http://www.along-track.com/



reply via email to

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