From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: doc patch: move footnote in external links Date: Mon, 12 Jan 2015 08:40:33 +0100 Message-ID: References: <87egs4bwuu.fsf@nicolasgoaziou.fr> <87388jab2j.fsf@nicolasgoaziou.fr> <87y4q745w7.fsf@nicolasgoaziou.fr> <87vbl6x91a.fsf@nicolasgoaziou.fr> <87twzxdlkf.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]:58949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAZcD-0003oK-9E for emacs-orgmode@gnu.org; Mon, 12 Jan 2015 02:40:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAZc6-0002tG-4w for emacs-orgmode@gnu.org; Mon, 12 Jan 2015 02:40:45 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:44460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAZc5-0002s0-Q4 for emacs-orgmode@gnu.org; Mon, 12 Jan 2015 02:40:38 -0500 Received: from top.local (charm-ecran.irisa.fr [131.254.101.83]) (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 BB9B5140912E2 for ; Mon, 12 Jan 2015 08:40:32 +0100 (CET) In-Reply-To: <87twzxdlkf.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 11 Jan 2015 23:00:48 +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: text/plain Content-Transfer-Encoding: quoted-printable On 2015-01-11 23:00, Nicolas Goaziou writes: > Alan Schmitt writes: > >> Here is an updated patch. I can push it or not, depending on the issue >> below. > > Thanks. The patch is OK. Great. I won't commit it, though, as I prefer to solve the space thing. >> I have looked at the code and it works *very* differently. I think I can >> make the `org-export-resolve-fuzzy-link' take spaces into accounts for >> headlines, but I don't see how it is "fuzzy". > > I'd rather ignore whitespace when matching headlines. It can be useful > when skipping statistics cookies. E.g., > > * Completed: [33%] so far > > can be matched with either [[Completed: so far]] and [[Completed: so far= ]]. I don't understand: won't you need the "[33%]" bit for an exact search? Also, does ignoring whitespace mean replacing any (non-empty) amount of whitespace by non-empty whitespace, or can you also insert or delete whitespace between contiguous strings: =2D do "foobar" and "foo bar" match? =2D do "foo bar" and "foobar" match? > [[fuzzy]]-like links are fuzzy because they can match either a headline, > a #+NAME or a <>. I see. > I lean towards making the change the other way. OK, I think I can do it if we do not allow to insert whitespace in arbitrary positions (searching "foobar" will not match "foo bar"). >>> Also, would you mind adding a test in test-org/fuzzy-links >>> ("test-org.el") and an entry in ORG-NEWS? >> >> I guess this should be done if I change `org-export-resolve-fuzzy-link', >> or should I do it anyway? > > I think a test would be nice for the change you are making to > `org-link-search', i.e, you can extend "test-org/fuzzy-links" (part with > [[*Test]]) to ensure that match is exact, independently on > `org-link-search-must-match-exact-headline'. OK, I'll look into it. 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) iQEcBAEBCgAGBQJUs3p1AAoJEAQNCjtO0uXHOqkH/2VNzXO4cxeAgyAucjhJVhtO RywZ1tgpnTF/vyTlcERFjYVvADNE7hB3+rk7KJLmIqfZtkrmn5rl/uThAqF7PF2a vMTyvCGbbQbPOX3bL8FZd56IMwJiCgrB2UmxnudrFWY0VNBJpDa/O5EOCztYurH0 ypZwcRF0/LU/jUrdwdmP2kRGhxy6xKrf7pOvYbLklP7WehijvOO6U3K5dhNEVRQq QkDZMkPZx2tJZu+/Jbr5ybpR2oTbsN8HYvVh26SXkXFagieAJnj/eR70q5/Gd3+c fEkmEubPGL/tnscqYiEqKX6Fl4stNBnyoZqewrNyWc4gMaQIIhp5KGwCd/kPYoM= =RLIq -----END PGP SIGNATURE----- --=-=-=--