emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: bug with link following --- a (partial) solution


From: Robert P. Goldman
Subject: [Orgmode] Re: bug with link following --- a (partial) solution
Date: Sun, 29 Aug 2010 18:27:52 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

On 8/29/10 Aug 29 -10:36 AM, Robert Goldman wrote:
> I used org-store-link and org-insert-link to make a link in the attached
> document (I distilled it down from a real document).  In my org-mode
> (pulled from git this morning), using Aquamacs 2.0 on Mac OSX Snow
> Leopard (10.6), org-mode cannot follow the link I inserted with o-i-l,
> and it pops up a dialog asking if I should add such a link target.

A quick followup:

I had a shot with git blame, and it seems like the only thing that might
have interfered with this search recently is the commit with the SHA1
has starting a84c8a2c

And, indeed, when I comment out the block that was introduced in this
commit (starting at line 9389):

     ;; ((and (org-mode-p) org-link-search-must-match-exact-headline)
     ;;  (and (equal (string-to-char s) ?*) (setq s (substring s 1)))
     ;;  (goto-char (point-min))
     ;;  (cond
     ;;   ((let (case-fold-search)
     ;;           (re-search-forward (format org-complex-heading-regexp-format
     ;;                                      (regexp-quote s))
     ;;                              nil t))
     ;;         ;; OK, found a match
     ;;         (goto-char (match-beginning 0)))
     ;;   ((and (not org-link-search-inhibit-query)
     ;;              (eq org-link-search-must-match-exact-headline
'query-to-create)
     ;;              (y-or-n-p "No match - create this as a new heading? "))
     ;;         (goto-char (point-max))
     ;;         (or (bolp) (newline))
     ;;         (insert "* " s "\n")
     ;;         (beginning-of-line 0))
     ;;   (t
     ;;         (goto-char pos)
     ;;         (error "No match"))))

...then my link-following works again.

Carsten, could this patch be reverted until it can be fixed?

Best,
r



reply via email to

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