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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to