From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: doc patch: move footnote in external links Date: Tue, 16 Dec 2014 18:20:35 +0100 Message-ID: References: <87egs4bwuu.fsf@nicolasgoaziou.fr> <87388jab2j.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0vxU-0001qZ-Kg for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 12:30:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0vxO-0007Uw-FO for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 12:30:52 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:46246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0vxO-0007Ug-8z for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 12:30:46 -0500 Received: from top.local (61.129.10.93.rev.sfr.net [93.10.129.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 5DD6C140E3924 for ; Tue, 16 Dec 2014 18:30:43 +0100 (CET) In-Reply-To: <87388jab2j.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 13 Dec 2014 15:17:24 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-12-13 15:17, Nicolas Goaziou writes: > Also, `org-link-search-must-match-exact-headline' docstring could be > improved: "When nil, the link..." doesn't apply to "*headline" type > paths. As I was writing this, I experimented a little. It seems that, for "*headline" links, the following applies depending on the value of `org-link-search-must-match-exact-headline':=20 =2D nil: do a substring search on headlines, jump to the first one that matches, fail if no match =2D t: do an exact search on headlines, fail if no match =2D 'query-to-create: do an exact search on headlines, propose to create if no match. The one case I'm less sure about is the first one, but this small org file shows it seems to be the case. --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=test2.org Content-Transfer-Encoding: quoted-printable Try to fool the search: ead * Head 1 =20=20 Evaluate this: =20=20 #+begin_src emacs-lisp (setq org-link-search-must-match-exact-headline nil) #+end_src * Head 2 Follow these links [[file:./test2.org::*ead 2]] goes to Head 2 [[file:./test2.org::*ead]] goes to Head 1 [[file:./test2.org::*had]] fails --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable If this is correct, I'll add a footnote accordingly. Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUkGnoAAoJEAQNCjtO0uXHDIgH/2Y/u/Epp2MVct4ImXWK9Yep X3w0O5bzD5FJ7Kirh0Fney8hrAu4z9/wWe6bQ2UvQCE1iRvPVYZaHFUEWfZrXnmm 5OuniYu/ULaW9x5ej/U4RUo0kGeS8yUOQw65ebZmCz6QpbjGXFp5lUfomwMhiWkv 6obQh2Il5iBT/WNFUcpaaxTcZYcdOF9g5hop+IhPXQlVBC1ZtaMLa5GDvMpvyFMn 4G7n3XNdDXn5yNMWIj+ICZFrcRuY/RyFir2czRfm27kBf83PEhn0PPUWqiJo6kcQ kETM7Qyfzg4V54zfoyo+SR3++pglsFO35eIU2mwqI7mzMNiR/bQCewoDsZwLsO8= =Ad8/ -----END PGP SIGNATURE----- --==-=-=--