emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Martin Carlé" <mc@aiguphonie.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] fuzzy link not matching commented headlines
Date: Thu, 26 Mar 2015 21:09:37 +0100	[thread overview]
Message-ID: <87twx7ldvi.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m1pp7vbz7l.fsf@on27.dyndns.org> ("Martin \=\?utf-8\?Q\?Carl\?\= \=\?utf-8\?Q\?\=C3\=A9\=22's\?\= message of "Thu, 26 Mar 2015 16:38:54 +0200")

Hello,

Martin Carlé <mc@aiguphonie.com> writes:

> Guess it's a bug that fuzzy links won't match a commented headline
> whereas the other internal link types (custom_id and org ID) do.
>
> Or is there a special purpose for this specific type of link regarding comments?
>
> Just check the following example:
>
> ,------------------------------------------------------------------------------------------
> | * First headline                                                                         
> | 1. fuzzy link to [[Second headline]] -- ok                                               
> | 2. fuzzy link to commented [[Third headline]] -- fails                                   
> |                                                                                          
> | 3. custom_id link to commented [[#Fourth][Fourth headline]] -- ok                        
> | 4. id link to commented [[id:D91E1EF3-2918-4F37-98EB-E2C92ACBE372][Fifth headline]] -- ok
> |                                                                                          
> | * Second headline                                                                        
> |                                                                                          
> | * COMMENT Third headline                                                                 
> |                                                                                          
> | * COMMENT Fourth headline                                                                
> | :PROPERTIES:                                                                             
> | :CUSTOM_ID: Fourth                                                                       
> | :END:                                                                                    
> |                                                                                          
> | * Fifth headline                                                                         
> | :PROPERTIES:                                                                             
> | :ID:       D91E1EF3-2918-4F37-98EB-E2C92ACBE372                                          
> | :END:                                                                                    
> |                                                                                          
> `------------------------------------------------------------------------------------------

Thank you. This should be fixed in
22f732c2553cc8ab42e8465018042bf0f49b6f4f.

However, this kind of link is sort of pointless, since it is bound to
fail during export, as the targeted headline will be removed. As
a consequence, this document cannot be exported, even though COMMENT
keyword is only meaningful during export.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2015-03-26 20:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 14:38 [bug] fuzzy link not matching commented headlines Martin Carlé
2015-03-26 20:09 ` Nicolas Goaziou [this message]
2015-03-27  9:29   ` Martin Carlé
2015-03-27 10:48     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87twx7ldvi.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mc@aiguphonie.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).