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

2018-01-08 Thread Aʟᴏɴɢ-Tʀᴀᴄᴋ

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: "

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/



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

2018-01-05 Thread Aʟᴏɴɢ-Tʀᴀᴄᴋ

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



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

2018-01-05 Thread Aʟᴏɴɢ-Tʀᴀᴄᴋ

On 05/01/2018 08:32, Nicolas Goaziou wrote:

Hello,

"Nicolas Bercher (Aʟᴏɴɢ-Tʀᴀᴄᴋ)" <nberc...@along-track.com> writes:


The regression makes several some kinds of org-mode links not to work
anymore.

Examples:

This should be a [[%5B2018-01-03%20mer.%2016:29%5D][valid link]] to
log's headline but Org can't find it
anymore and asks for the creation of a new headline:

   "No match - create this as a new heading? (yes or no)"

Also, the following links are broken:

  - [[the following links are broken][link to internal text in this
file]] (but equivalent to the
timestamped broken link reported above), reports:

"No match - create this as a new heading? (yes or no)"

  - [[should point here][link to internal text from an external
org-mode file]] (same issue
than above) which _should point here_, but reports

"No match for fuzzy expression: should point here"

The following links still work well:
  - link to a [[*headline][*headline]]
  - link to a [[* headline][* headline with space]]
  - external [[http://www.example.com/][links to the www]]

* [2018-01-03 mer. 16:29] A time stamped log headline
* headline


You probably have `org-link-search-must-match-exact-headline' set to
a non-nil value (default setting is non-nil).

Note that such links do not export correctly. For this use case, it's
better to use targets.

Regards,



Dear Nicolas,

Thank you a lot for your help.
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.


OK, I've tried and it does the trick:

  M-x set-variable RET
  org-link-search-must-match-exact-headline RET
  nil RET

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

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/



[O] [IT] Broken support for links to text files (both internal & external)

2018-01-04 Thread Aʟᴏɴɢ-Tʀᴀᴄᴋ

Dear org-mode developers,

Please find attached an org-mode file describing the issue.

It is also pasted here for technical convenience:

-8<-

This is a sample org-mode log to report on what looks like a
regression in between Debian Jessie's emacs24 (=24.4+1-5+deb8u1) and
Debian Stretch's emacs24 (=24.5+1-11+deb9u1).

The regression makes several some kinds of org-mode links not to work
anymore.

Examples:

This should be a [[%5B2018-01-03%20mer.%2016:29%5D][valid link]] to 
log's headline but Org can't find it

anymore and asks for the creation of a new headline:

  "No match - create this as a new heading? (yes or no)"

Also, the following links are broken:

 - [[the following links are broken][link to internal text in this 
file]] (but equivalent to the

   timestamped broken link reported above), reports:

   "No match - create this as a new heading? (yes or no)"

 - [[should point here][link to internal text from an external org-mode 
file]] (same issue

   than above) which _should point here_, but reports

   "No match for fuzzy expression: should point here"

The following links still work well:
 - link to a [[*headline][*headline]]
 - link to a [[* headline][* headline with space]]
 - external [[http://www.example.com/][links to the www]]

* [2018-01-03 mer. 16:29] A time stamped log headline
* headline

-8<-

Thank you for your help,
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/
This is a sample org-mode log to report on what looks like a
regression in between Debian Jessie's emacs24 (=24.4+1-5+deb8u1) and
Debian Stretch's emacs24 (=24.5+1-11+deb9u1).

The regression makes several some kinds of org-mode links not to work
anymore.

Examples:

This should be a [[%5B2018-01-03%20mer.%2016:29%5D][valid link]] to log's 
headline but Org can't find it
anymore and asks for the creation of a new headline:

  "No match - create this as a new heading? (yes or no)"

Also, the following links are broken:

 - [[the following links are broken][link to internal text in this file]] (but 
equivalent to the
   timestamped broken link reported above), reports:

   "No match - create this as a new heading? (yes or no)"

 - [[should point here][link to internal text from an external org-mode file]] 
(same issue
   than above) which _should point here_, but reports

   "No match for fuzzy expression: should point here"

The following links still work well:
 - link to a [[*headline][*headline]]
 - link to a [[* headline][* headline with space]]
 - external [[http://www.example.com/][links to the www]]

* [2018-01-03 mer. 16:29] A time stamped log headline
* headline