emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Can't follow links with id property
@ 2011-07-19 11:43 Suvayu Ali
  2011-07-19 14:30 ` Memnon Anon
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Suvayu Ali @ 2011-07-19 11:43 UTC (permalink / raw)
  To: Org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

Hi everyone,

I can't follow links with an ID property. I have attached a minimal
example org file. Org complains it cannot find a match and prompts to
create a new headline. Answering yes to the prompt creates a new
headline like this:

* id:9dfdc23e-f9ce-413b-b950-fc20fd152e42


Debugger entered--Lisp error: (error "No match")
  signal(error ("No match"))
  error("No match")
  org-link-search(#("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 (org-attr nil)) nil 119)
  eval((org-link-search #("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 (org-attr nil)) nil 119))
  byte-code("~\210\301\b!\207" [cmd eval] 2)
  org-open-at-point(nil)
  call-interactively(org-open-at-point nil nil)


-- 
Suvayu

Open source is the future. It sets us free.

[-- Attachment #2: bug.org --]
[-- Type: text/plain, Size: 595 bytes --]

* B oscillations

The oscillations can be smeared:
+ convoluted with the [[id:9dfdc23e-f9ce-413b-b950-fc20fd152e42][acceptance function]]
+ further enhanced by detector resolution effects (e.g. time resn).


* Acceptance
  :PROPERTIES:
  :ID:       9dfdc23e-f9ce-413b-b950-fc20fd152e42
  :END:

In LHCb acceptance is a function of (proper?) time (B decay time / B
decay length / PV-SV distance). Combined effect of,
+ non-uniform geometrical acceptance (as LHCb is not hermetic)
+ and triggering on a min. time interval (or displacement) from IP/PV.
  Ensures a long lived B.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can't follow links with id property
  2011-07-19 11:43 Can't follow links with id property Suvayu Ali
@ 2011-07-19 14:30 ` Memnon Anon
  2011-07-19 23:40   ` suvayu ali
  2011-07-20 14:10 ` Giovanni Ridolfi
  2011-07-22 13:48 ` Bastien
  2 siblings, 1 reply; 7+ messages in thread
From: Memnon Anon @ 2011-07-19 14:30 UTC (permalink / raw)
  To: emacs-orgmode

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> I can't follow links with an ID property. I have attached a minimal
> example org file. Org complains it cannot find a match and prompts to
> create a new headline. Answering yes to the prompt creates a new
> headline like this:
>
> * id:9dfdc23e-f9ce-413b-b950-fc20fd152e42
>
>
> Debugger entered--Lisp error: (error "No match")
>   signal(error ("No match"))
>   error("No match")
>   org-link-search(#("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 (org-attr nil)) nil 119)
>   eval((org-link-search #("id:9dfdc23e-f9ce-413b-b950-fc20fd152e42" 0 39 (org-attr nil)) nil 119))
>   byte-code("~\210\301\b!\207" [cmd eval] 2)
>   org-open-at-point(nil)
>   call-interactively(org-open-at-point nil nil)

I can not reproduce that with your minimal example with
Org-mode version 7.6 (release_7.6.120.g0b9c.dirty) on
GNU Emacs 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3) of 2011-04-10
on raven, modified by Debian

Memnon

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can't follow links with id property
  2011-07-19 14:30 ` Memnon Anon
@ 2011-07-19 23:40   ` suvayu ali
  0 siblings, 0 replies; 7+ messages in thread
From: suvayu ali @ 2011-07-19 23:40 UTC (permalink / raw)
  To: Memnon Anon; +Cc: emacs-orgmode

Hi Memnon,

On Tue, Jul 19, 2011 at 4:30 PM, Memnon Anon
<gegendosenfleisch@googlemail.com> wrote:
> I can not reproduce that with your minimal example

I tried it again, still present with both Emacs 23.2 and Emacs 24.

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can't follow links with id property
  2011-07-19 11:43 Can't follow links with id property Suvayu Ali
  2011-07-19 14:30 ` Memnon Anon
@ 2011-07-20 14:10 ` Giovanni Ridolfi
  2011-07-20 14:13   ` suvayu ali
  2011-07-22 13:48 ` Bastien
  2 siblings, 1 reply; 7+ messages in thread
From: Giovanni Ridolfi @ 2011-07-20 14:10 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: Org-mode mailing list

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> Hi everyone,
>
> I can't follow links with an ID property. I have attached a minimal
> example org file. Org complains it cannot find a match and prompts to
> create a new headline. Answering yes to the prompt creates a new
> headline like this:
>
> * id:9dfdc23e-f9ce-413b-b950-fc20fd152e42

Org-mode version 7.6 fe0c013965bc5a15309cec2e4ab4ad78689bc4af
GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO

I confirm Suvayu's bug.

I clicked with the mouse on the link. The backtrace follows.
cheers,
Giovanni


  (save-current-buffer (set-buffer (or reference-buffer ...)) (if (string-match " +\\'" path) (setq path ...)) (if (and org-link-translation-function ...) (let ... ...)) (cond (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ... ...) (... ...) (... ...) (...) (... ... ...) (t ...)))
  (with-current-buffer (or reference-buffer (current-buffer)) (if (string-match " +\\'" path) (setq path ...)) (if (and org-link-translation-function ...) (let ... ...)) (cond (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ... ...) (... ...) (... ...) (...) (... ... ...) (t ...)))
  (let (type path link line search (pos ...)) (catch (quote match) (save-excursion ... ...) (when ... ... ...) (save-excursion ...) (save-excursion ...) (when ... ... ...)) (unless path (error "No link found")) (with-current-buffer (or reference-buffer ...) (if ... ...) (if ... ...) (cond ... ... ... ... ... ... ... ... ... ... ... ... ...)))
  (cond ((and ... ... ...) (or ... ...)) ((run-hook-with-args-until-success ...)) ((org-at-timestamp-p t) (org-follow-timestamp-link)) ((and ... ...) (org-footnote-action)) (t (let ... ... ... ...)))
  (if (call-interactively (function org-babel-open-src-block-result)) nil (org-load-modules-maybe) (move-marker org-open-link-marker (point)) (setq org-window-config-before-follow-link (current-window-configuration)) (org-remove-occur-highlights nil nil t) (cond (... ...) (...) (... ...) (... ...) (t ...)) (move-marker org-open-link-marker nil) (run-hook-with-args (quote org-follow-link-hook)))
  (unless (call-interactively (function org-babel-open-src-block-result)) (org-load-modules-maybe) (move-marker org-open-link-marker (point)) (setq org-window-config-before-follow-link (current-window-configuration)) (org-remove-occur-highlights nil nil t) (cond (... ...) (...) (... ...) (... ...) (t ...)) (move-marker org-open-link-marker nil) (run-hook-with-args (quote org-follow-link-hook)))
  org-open-at-point()
  org-open-at-mouse((mouse-2 (#<window 105 on myfile.txt> 46572 (258 . 40) 25770435 nil 46572 (32 . 2) nil (2 . 8) (8 . 16))))
  call-interactively(org-open-at-mouse nil nil)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can't follow links with id property
  2011-07-20 14:10 ` Giovanni Ridolfi
@ 2011-07-20 14:13   ` suvayu ali
  0 siblings, 0 replies; 7+ messages in thread
From: suvayu ali @ 2011-07-20 14:13 UTC (permalink / raw)
  To: Giovanni Ridolfi; +Cc: Org-mode mailing list

On Wed, Jul 20, 2011 at 4:10 PM, Giovanni Ridolfi
<giovanni.ridolfi@yahoo.it> wrote:
> Org-mode version 7.6 fe0c013965bc5a15309cec2e4ab4ad78689bc4af
> GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO
>
> I confirm Suvayu's bug.

For the record, exporting to HTML has a properly functional link. Just
org-open-at-point doesn't work in the orgmode buffer.

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can't follow links with id property
  2011-07-19 11:43 Can't follow links with id property Suvayu Ali
  2011-07-19 14:30 ` Memnon Anon
  2011-07-20 14:10 ` Giovanni Ridolfi
@ 2011-07-22 13:48 ` Bastien
  2011-07-22 14:28   ` suvayu ali
  2 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2011-07-22 13:48 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: Org-mode mailing list

Hi Suvayu,

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> I can't follow links with an ID property. I have attached a minimal
> example org file. Org complains it cannot find a match and prompts to
> create a new headline. Answering yes to the prompt creates a new
> headline like this:
>
> * id:9dfdc23e-f9ce-413b-b950-fc20fd152e42

I cannot reproduce this with Emacs 23.3 and 24.0.50.

Do you have any setup wrt ids?  (C-h v org-id-*)

Or maybe your method for generating ids changes between the 
moment your created this one and the moment your tried to
open it?  

Thanks for further information,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can't follow links with id property
  2011-07-22 13:48 ` Bastien
@ 2011-07-22 14:28   ` suvayu ali
  0 siblings, 0 replies; 7+ messages in thread
From: suvayu ali @ 2011-07-22 14:28 UTC (permalink / raw)
  To: Bastien; +Cc: Org-mode mailing list

Hi Bastien,

On Fri, Jul 22, 2011 at 3:48 PM, Bastien <bzg@altern.org> wrote:
> Hi Suvayu,
>
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
>
>> I can't follow links with an ID property. I have attached a minimal
>> example org file. Org complains it cannot find a match and prompts to
>> create a new headline. Answering yes to the prompt creates a new
>> headline like this:
>>
>> * id:9dfdc23e-f9ce-413b-b950-fc20fd152e42
>
> I cannot reproduce this with Emacs 23.3 and 24.0.50.
>
> Do you have any setup wrt ids?  (C-h v org-id-*)
>

I don't have any org-id related customisations. This is the first time
I am trying them out. :-p

> Or maybe your method for generating ids changes between the
> moment your created this one and the moment your tried to
> open it?
>

When I tried to replicate this, I got the same behaviour as before. Then
I tried creating the ids again (with org-id-get-create) and tried
following the links and it worked!

So far this is what I have figured out. If you
1. create the ids
2. link to it
3. try to follow the link (all in the same session)
everything works. But now if you save the file and reopen it in a new
session and try to follow those same links, it fails with the error I
reported earlier. Now if you call org-id-get-create on the linked
headline and go back to the link and try to follow it again, it works as
expected! I think org-id-get-create does something that resolves the
problem. So maybe the issue is with `org-open-at-point'.

> --
>  Bastien
>

Hopefully this is more consistently reproducible.

PS: I tested starting with emacs -Q -l ~/.emacs.d/minimal-org.el

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-22 14:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 11:43 Can't follow links with id property Suvayu Ali
2011-07-19 14:30 ` Memnon Anon
2011-07-19 23:40   ` suvayu ali
2011-07-20 14:10 ` Giovanni Ridolfi
2011-07-20 14:13   ` suvayu ali
2011-07-22 13:48 ` Bastien
2011-07-22 14:28   ` suvayu ali

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).