GNU bug report logs - #12702
24.2; Orgmode Refile complains "Not bookmark format"

Previous Next

Packages: org-mode, emacs;

Reported by: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>

Date: Mon, 22 Oct 2012 15:57:02 UTC

Severity: minor

Found in version 24.2

Done: Bastien <bzg <at> altern.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12702 in the body.
You can then email your comments to 12702 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12702; Package emacs. (Mon, 22 Oct 2012 15:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 Oct 2012 15:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Mon, 22 Oct 2012 16:52:06 +0200
Hi list,

I came accross an annoying bug whith orgmode and remember mode.

To reproduce :

Create a .org file, create 2 level-1 entries. Create one level-2 entry
and hit C-c C-w to refile it into the other level-1 entry.

Like this :

* Entry One
* Entry Two
** Refile Me

The level-2 entry is copied in the correct location but is not removed
from original location.
Minibuffer shows message "Not Bookmark Format". And the file looks like :

* Entry One
** Refile Me
* Entry Two
** Refile Me

The error message is triggered by remember mode from orgmode, so I
don't know where the bug is (orgmode, remember or emacs ?).


In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.4)
 of 2012-08-28 on shaun
Windowing system distributor `The X.Org Foundation

cheers,
-- 
Jonathan Schaeffer
IUEM - Service Informatique
rue Dumont D'Urville
Technopôle Brest-Iroise
29280 Plouzané
France
tel: +33 2 98 49 87 94




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Mon, 22 Oct 2012 16:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Mon, 22 Oct 2012 12:15:14 -0400
Jonathan Schaeffer wrote:

> To reproduce :
>
> Create a .org file, create 2 level-1 entries. Create one level-2 entry
> and hit C-c C-w to refile it into the other level-1 entry.
>
> Like this :
>
> * Entry One
> * Entry Two
> ** Refile Me
>
> The level-2 entry is copied in the correct location but is not removed
> from original location.
> Minibuffer shows message "Not Bookmark Format". And the file looks like :

Thanks for the report, but it works fine for me with Emacs 24.2.
Can you give a complete recipe starting from emacs -Q?




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 07:08:02 GMT) Full text and rfc822 format available.

Message #11 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 09:06:06 +0200
Le 22/10/2012 18:15, Glenn Morris a écrit :
> Jonathan Schaeffer wrote:
>
>> To reproduce :
>>
>> Create a .org file, create 2 level-1 entries. Create one level-2 entry
>> and hit C-c C-w to refile it into the other level-1 entry.
>>
>> Like this :
>>
>> * Entry One
>> * Entry Two
>> ** Refile Me
>>
>> The level-2 entry is copied in the correct location but is not removed
>> from original location.
>> Minibuffer shows message "Not Bookmark Format". And the file looks like :
>
> Thanks for the report, but it works fine for me with Emacs 24.2.
> Can you give a complete recipe starting from emacs -Q?
>
Hi Glenn,

(I made a reply all, is that alright ?)

with emacs -Q, I can not reproduce the bug. But refile does not work at 
all, (Complains : wrong type argument arrayp,nil).
I do :
1. emacs -Q
2. C-x C-f refiletest.org
3. Fill the buffer with :
* Entry One
* Entry Two
** Refile Me

4. Hit C-c C-w
5. The entry is duplicated and I can read the error message "Not 
bookmark format)

If, instead of visiting a file, I open just a new buffer with "C-x b 
test.org", the behaviour is different :
On refile (C-c C-w) nothing happens but the error message shows:
wrong type argument: arrayp, nil

Just to be sure, I moved the ~/.emacs away, same result.

I hope this helps. I have the archlinux build of emacs, so maybe the 
error is on the packaging side ?

cheers,

jonathan

-- 
IUEM - Service Informatique
rue Dumont D'Urville
Technopôle Brest-Iroise
29280 Plouzané
France
tel: +33 2 98 49 87 94




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 07:53:03 GMT) Full text and rfc822 format available.

Message #14 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 03:50:06 -0400
Jonathan Schaeffer wrote:

> (I made a reply all, is that alright ?)

Yes, that's the right thing to do.

> with emacs -Q, I can not reproduce the bug. But refile does not work
> at all, (Complains : wrong type argument arrayp,nil).
> I do :
> 1. emacs -Q
> 2. C-x C-f refiletest.org
> 3. Fill the buffer with :
> * Entry One
> * Entry Two
> ** Refile Me
>
> 4. Hit C-c C-w
> 5. The entry is duplicated and I can read the error message "Not
> bookmark format)

Sorry, this works fine for me with Emacs 24.2. Maybe someone who
actually uses Org will step in and help...

> If, instead of visiting a file, I open just a new buffer with "C-x b
> test.org", the behaviour is different :
> On refile (C-c C-w) nothing happens but the error message shows:
> wrong type argument: arrayp, nil

This doesn't make sense to me; because just doing `C-x b test.org' creates
a buffer in fundamental mode, where C-c C-w is not bound to any key.

It seems like your Emacs must be customized in some way, even with
`emacs -Q'...

> I hope this helps. I have the archlinux build of emacs, so maybe the
> error is on the packaging side ?




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 08:11:02 GMT) Full text and rfc822 format available.

Message #17 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 10:08:33 +0200
Le 23/10/2012 09:50, Glenn Morris a écrit :
> Jonathan Schaeffer wrote:
>
>> If, instead of visiting a file, I open just a new buffer with "C-x b
>> test.org", the behaviour is different :
>> On refile (C-c C-w) nothing happens but the error message shows:
>> wrong type argument: arrayp, nil
>
> This doesn't make sense to me; because just doing `C-x b test.org' creates
> a buffer in fundamental mode, where C-c C-w is not bound to any key.
Sorry, I missed a step : I manualy load the org-mode mode (Alt-x 
org-mode) before doing anything in the buffer.
This might be an orgmode bug, from what I read on the internet.
>
> It seems like your Emacs must be customized in some way, even with
> `emacs -Q'...
I'll submit a post on Archlinux forum to see if someone can reproduce this.

jonathan

-- 
IUEM - Service Informatique
rue Dumont D'Urville
Technopôle Brest-Iroise
29280 Plouzané
France
tel: +33 2 98 49 87 94




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 15:59:02 GMT) Full text and rfc822 format available.

Message #20 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: Glenn Morris <rgm <at> gnu.org>, 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 17:57:14 +0200
Hi Jonathan,

Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr> writes:

> I'll submit a post on Archlinux forum to see if someone can reproduce
> this.

You can also try reporting your problem to the emacs-orgmode mailing
list: https://lists.gnu.org/mailman/listinfo/emacs-orgmode

There are some ArchLinux Org-mode users there.

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 16:02:02 GMT) Full text and rfc822 format available.

Message #23 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Bastien <bzg <at> altern.org>
Cc: 12702 <at> debbugs.gnu.org,
	Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 11:59:07 -0400
Bastien wrote:

> You can also try reporting your problem to the emacs-orgmode mailing
> list: https://lists.gnu.org/mailman/listinfo/emacs-orgmode

It's already there, since I reassigned this bug.
http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00563.html




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 16:09:01 GMT) Full text and rfc822 format available.

Message #26 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 12:06:31 -0400
Jonathan Schaeffer wrote:

> Sorry, I missed a step : I manualy load the org-mode mode (Alt-x 
> org-mode) before doing anything in the buffer.
> This might be an orgmode bug, from what I read on the internet.

I can reproduce that in Emacs 24.2 and current trunk.

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  file-truename(nil)
  find-buffer-visiting(nil)
  org-refile-check-position((#("Entry One" 0 9 (face org-level-1 fontified t))
  org-refile-get-location("Refile subtree \"Refile Me\" to" nil nil nil)
  org-refile(nil)
  call-interactively(org-refile nil nil)


org-refile-check-position does not handle being called from a buffer not
visiting a file.

(Still no idea about the original issue.)




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 16:27:02 GMT) Full text and rfc822 format available.

Message #29 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 12:24:05 -0400
Jonathan Schaeffer wrote:

> To reproduce :
>
> Create a .org file, create 2 level-1 entries. Create one level-2 entry
> and hit C-c C-w to refile it into the other level-1 entry.
>
> Like this :
>
> * Entry One
> * Entry Two
> ** Refile Me
>
> The level-2 entry is copied in the correct location but is not removed
> from original location.
> Minibuffer shows message "Not Bookmark Format". And the file looks like :
>
> * Entry One
> ** Refile Me
> * Entry Two
> ** Refile Me

I found a way to reproduce this: have a corrupt bookmarks file.
Check the contents of your bookmark-default-file. Try (re)moving it.

Perhaps Org could trap and report such errors more gracefully.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Tue, 23 Oct 2012 21:22:02 GMT) Full text and rfc822 format available.

Message #32 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Kroos <philipp.kroos <at> t-online.de>
To: Bastien <bzg <at> altern.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 12702 <at> debbugs.gnu.org,
	Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Subject: Re: [O] bug#12702: 24.2;
	Orgmode Refile complains "Not bookmark format"
Date: Tue, 23 Oct 2012 22:52:49 +0200
Hi,

Bastien <bzg <at> altern.org> writes:

> Hi Jonathan,
>
> Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr> writes:
>
>> I'll submit a post on Archlinux forum to see if someone can reproduce
>> this.
>
> You can also try reporting your problem to the emacs-orgmode mailing
> list: https://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> There are some ArchLinux Org-mode users there.

I'm on Arch so I checked it with my emacs from the repositories.
I can  reproduce it, but I think it's unrelated to Archlinux.
If I enter the org-buffer with C-x b, M-x org-mode,
M-x toggle-debug-on-error shows that the error (wrong-type-argument
arryp nil) goes back to org-refile-check-position in org.el.
The let-form sets `file` to (nth 1 refile-pointer), which is `nil` *if*
the buffer was loaded like mentioned. This value is given to
find-buffer-visiting, from where file-truename eventually throws the error.

If the file is visited with C-x f, `file` is set to the correct value
(current directory + filename) and the refiling is correct.

Best, Philipp




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Wed, 24 Oct 2012 09:18:01 GMT) Full text and rfc822 format available.

Message #35 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Wed, 24 Oct 2012 11:15:23 +0200
Le 23/10/2012 18:24, Glenn Morris a écrit :
>
> I found a way to reproduce this: have a corrupt bookmarks file.
> Check the contents of your bookmark-default-file. Try (re)moving it.
Wonderfull.
I had an empty ~/.emacs.d/bookmarks file.
I removed it and the problem is gone.

Thanks a lot for your help.
>
> Perhaps Org could trap and report such errors more gracefully.
>
The error message makes sense ... as soon as you know where the problem 
comes from :)

cheers,

Jonathan

PS. I'm kind of new to emacs, and use orgmode intensively now, and it's 
my first emacs bug report. Your reactivity is realy great, I appreciate it.

-- 
IUEM - Service Informatique
rue Dumont D'Urville
Technopôle Brest-Iroise
29280 Plouzané
France
tel: +33 2 98 49 87 94




Reply sent to Bastien <bzg <at> altern.org>:
You have taken responsibility. (Wed, 24 Oct 2012 13:32:02 GMT) Full text and rfc822 format available.

Notification sent to Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>:
bug acknowledged by developer. (Wed, 24 Oct 2012 13:32:04 GMT) Full text and rfc822 format available.

Message #40 received at 12702-done <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: Glenn Morris <rgm <at> gnu.org>, 12702-done <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Wed, 24 Oct 2012 15:29:48 +0200
Hi Jonathan,

Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr> writes:

>> Perhaps Org could trap and report such errors more gracefully.
>>
> The error message makes sense ... as soon as you know where the problem
> comes from :)

I enhanced the error message, which now says to save the buffer in a
file when refiling to the current non-file buffer.

(Reporting an error when the bookmark format is corrupted is left to
the bookmark library.)

I'm closing this bug now.

Thanks for reporting this!

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Wed, 24 Oct 2012 14:57:02 GMT) Full text and rfc822 format available.

Message #43 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: Glenn Morris <rgm <at> gnu.org>, 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Wed, 24 Oct 2012 10:54:38 -0400
>> I found a way to reproduce this: have a corrupt bookmarks file.
>> Check the contents of your bookmark-default-file. Try (re)moving it.
> Wonderfull.
> I had an empty ~/.emacs.d/bookmarks file.
> I removed it and the problem is gone.

Hmm... it would be good if Emacs were a bit more helpful here by
maybe including the bookmark file name in the error.

> The error message makes sense ... as soon as you know where the problem
> comes from :)

Also, while it's good to signal to the user that his bookmark file is
corrupted (and to make sure we don't overwrite it with something else),
I don't see why that should prevent Org's Refile from working.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Wed, 24 Oct 2012 15:12:01 GMT) Full text and rfc822 format available.

Message #46 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>,
	"'Jonathan Schaeffer'" <jonathan.schaeffer <at> univ-brest.fr>
Cc: 12702 <at> debbugs.gnu.org
Subject: RE: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Wed, 24 Oct 2012 08:09:21 -0700
> >> I found a way to reproduce this: have a corrupt bookmarks file.
> >> Check the contents of your bookmark-default-file. Try 
> >> (re)moving it.
> > Wonderfull. I had an empty ~/.emacs.d/bookmarks file.
> > I removed it and the problem is gone.
> 
> Hmm... it would be good if Emacs were a bit more helpful here by
> maybe including the bookmark file name in the error.
> 
> > The error message makes sense ... as soon as you know where 
> > the problem comes from :)
> 
> Also, while it's good to signal to the user that his bookmark file
> is corrupted (and to make sure we don't overwrite it with 
> something else), I don't see why that should prevent Org's
> Refile from working.

Sorry, I have not been following this thread - excuse me if I misunderstand.

But AFAIK an empty bookmark file should not present any problems for Emacs (for
bookmark handling, at least, and I would hope for Org mode and anything else
too).

Is that really what the problem was - an empty bookmark file was interpreted (by
something) as a corrupt bookmark file?  If so, that in itself sounds like a bug,
to me.

I use Bookmark+, but I would guess that vanilla bookmark.el too handles the
existence of an empty bookmark file with no problem.  If not, that would be the
first thing to fix, I would think.

(Again, ignore if I've misunderstood.)





Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Wed, 24 Oct 2012 15:15:02 GMT) Full text and rfc822 format available.

Message #49 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12702 <at> debbugs.gnu.org,
	Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Wed, 24 Oct 2012 17:12:35 +0200
Hi Stefan,

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> The error message makes sense ... as soon as you know where the problem
>> comes from :)
>
> Also, while it's good to signal to the user that his bookmark file is
> corrupted (and to make sure we don't overwrite it with something else),
> I don't see why that should prevent Org's Refile from working.

By default, org-refile and org-capture store bookmarks to the last
refiled/captured Org headline.  (There is org-capture-bookmark in
case users want to deactivate this for captured headlines.)

We could skip this step in Org in case the bookmark format is
corrupted, or have a more informative message that makes clear to 
the user that Org tries to store a bookmark.

What do you think?

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Wed, 24 Oct 2012 18:00:02 GMT) Full text and rfc822 format available.

Message #52 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Bastien <bzg <at> altern.org>
Cc: 12702 <at> debbugs.gnu.org,
	Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Wed, 24 Oct 2012 13:57:34 -0400
>>> The error message makes sense ... as soon as you know where the problem
>>> comes from :)
>> Also, while it's good to signal to the user that his bookmark file is
>> corrupted (and to make sure we don't overwrite it with something else),
>> I don't see why that should prevent Org's Refile from working.
> By default, org-refile and org-capture store bookmarks to the last
> refiled/captured Org headline.  (There is org-capture-bookmark in
> case users want to deactivate this for captured headlines.)
> We could skip this step in Org in case the bookmark format is
> corrupted, or have a more informative message that makes clear to 
> the user that Org tries to store a bookmark.

I don't know the details of what happens currently when the bookmark file is
corrupted but at least such an occurrence shouldn't prevent org-refile
from working (tho obviously in a degraded way).

IOW, if needed we could wrap the calls to bookmark-set in
with-demoted-errors, but maybe those errors are signaled late enough
already that while the command signals an error, it did do what it was
expected to do.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Thu, 25 Oct 2012 07:21:02 GMT) Full text and rfc822 format available.

Message #55 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 12702 <at> debbugs.gnu.org, 'Stefan Monnier' <monnier <at> iro.umontreal.ca>
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Thu, 25 Oct 2012 09:18:58 +0200
Le 24/10/2012 17:09, Drew Adams a écrit :
>
> But AFAIK an empty bookmark file should not present any problems for Emacs (for
> bookmark handling, at least, and I would hope for Org mode and anything else
> too).
Yes, you have a point here.

I tested again the Org refile function in 3 cases :
- no bookmarks file
- an empty bookmarks file
- changed the ownership of the file so that the user has no rights to 
write the bookmarks file

And it behaves gently in the 3 cases.

But I'm positive about the fact that the error disapeared when I removed 
an empty bookmarks files.

Maybe Glenn could tell how he was able to corrupt his bookmarks file ?

jonathan
-- 
IUEM - Service Informatique
rue Dumont D'Urville
Technopôle Brest-Iroise
29280 Plouzané
France
tel: +33 2 98 49 87 94




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Thu, 25 Oct 2012 07:28:02 GMT) Full text and rfc822 format available.

Message #58 received at 12702 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Cc: 12702 <at> debbugs.gnu.org
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Thu, 25 Oct 2012 03:25:54 -0400
Jonathan Schaeffer wrote:

> Maybe Glenn could tell how he was able to corrupt his bookmarks file ?

I intentionally added junk to it.




Information forwarded to bug-gnu-emacs <at> gnu.org, emacs-orgmode <at> gnu.org:
bug#12702; Package emacs,org-mode. (Fri, 26 Oct 2012 13:15:01 GMT) Full text and rfc822 format available.

Message #61 received at 12702-done <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12702-done <at> debbugs.gnu.org,
	Jonathan Schaeffer <jonathan.schaeffer <at> univ-brest.fr>
Subject: Re: bug#12702: 24.2; Orgmode Refile complains "Not bookmark format"
Date: Fri, 26 Oct 2012 14:56:26 +0200
Hi Stefan,

Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> IOW, if needed we could wrap the calls to bookmark-set in
> with-demoted-errors, but maybe those errors are signaled late enough
> already that while the command signals an error, it did do what it was
> expected to do.

I've now wrapped calls to `bookmark-set' within `with-demoted-errors'
in Org, the capture and the refile processes will not be stopped by
corrupted bookmark files.

I'm now closing this bug.

Thanks,

-- 
 Bastien




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 24 Nov 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 214 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.