Re: [O] [dev] New version of org-index.el --- a personal index for org and beyond

2014-12-10 Thread Marc Ihm

Hi Alan,

I see the same error, when starting with a vanilla emacs;
so these errors were easy to fix (version 3.0.1):

http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob_plain;f=contrib/lisp/org-index.el;hb=HEAD

Thanx for reporting !


best regards
Marc


On 12/09/2014 09:02 PM, Alan Schmitt wrote:

On 2014-12-09 19:58, Alan Schmitt alan.schm...@polytechnique.org writes:


I've given it a try, and upon creation there is a backtrace (when I'm
done with the setup):

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   org-index--goto-list(columns-and-flags)
   org-index--create-index()
   org-index--create-missing-index(Variable org-index-id is not set,
so probably no index table has been created yet.)
   org-index--verify-id()
   org-index(nil)
   call-interactively(org-index record-it)

The table seems to be created, so I guess it's just a single occurrence
of a setup error.


As a followup, org-index could not find the id after restarting emacs,
so I guess the backtrace happened before it was saved. I manually added
the `org-index-id' to my .emacs and it now works.

I tried adding a node, and although I changed the category and keyword
that were proposed to me, the node was inserted with the default ones.

Is this the place to report such bugs?

Thanks,

Alan







Re: [O] [dev] New version of org-index.el --- a personal index for org and beyond

2014-12-10 Thread Alan Schmitt
On 2014-12-10 22:26, Marc Ihm m...@ihm.name writes:

 Hi Alan,

 I see the same error, when starting with a vanilla emacs;
 so these errors were easy to fix (version 3.0.1):

 http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob_plain;f=contrib/lisp/org-index.el;hb=HEAD

It works great now, thanks.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] [dev] New version of org-index.el --- a personal index for org and beyond

2014-12-09 Thread Alan Schmitt
Hello,

On 2014-12-08 22:00, Marc Ihm m...@ihm.name writes:

 Hi all,

 the new version 3.0.0 of org-index.el has been uploaded to the
 contrib-directory of orgs git-repository.

 Features include improved setup-assistant and the new command add,
 which adds the current node to your index.
 Moreover the structure of the index-table and its flags has been
 reworked (hence the increment in major version number).

I've given it a try, and upon creation there is a backtrace (when I'm
done with the setup):

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  org-index--goto-list(columns-and-flags)
  org-index--create-index()
  org-index--create-missing-index(Variable org-index-id is not set, so 
probably no index table has been created yet.)
  org-index--verify-id()
  org-index(nil)
  call-interactively(org-index record-it)

The table seems to be created, so I guess it's just a single occurrence
of a setup error.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] [dev] New version of org-index.el --- a personal index for org and beyond

2014-12-09 Thread Alan Schmitt
On 2014-12-09 19:58, Alan Schmitt alan.schm...@polytechnique.org writes:

 I've given it a try, and upon creation there is a backtrace (when I'm
 done with the setup):

 Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
   org-index--goto-list(columns-and-flags)
   org-index--create-index()
   org-index--create-missing-index(Variable org-index-id is not set,
 so probably no index table has been created yet.)
   org-index--verify-id()
   org-index(nil)
   call-interactively(org-index record-it)

 The table seems to be created, so I guess it's just a single occurrence
 of a setup error.

As a followup, org-index could not find the id after restarting emacs,
so I guess the backtrace happened before it was saved. I manually added
the `org-index-id' to my .emacs and it now works.

I tried adding a node, and although I changed the category and keyword
that were proposed to me, the node was inserted with the default ones.

Is this the place to report such bugs?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7


signature.asc
Description: PGP signature


Re: [O] [dev] New version of org-index.el --- A personal index for org and beyond

2013-09-23 Thread Alan Schmitt

m...@ihm.name writes:

 Here are a few notes I'm taking as I'm playing with it.

 First, the table seems to be different from the one on worg. Here are
 the columns I have:

   | |  |  | |   | comment   |
   | ref | link | created  | count;s | last-accessed | ;c|
   | | 4  |  | |   |   |

 I guess comment includes Type, description, and Keywords? Or can I
 extend this table as I see fit?


 Yes, just add any further columns you need. As long as the do not have a
 semicolon, they are ignored. You can also reorder columns according to
 your needs.

Ah, good to know, thanks.

 Also, I noticed it's impossible to create a link to a file. If a file
 does not have any org entry, then org-index link will fail with Before
 first headline at position 35591 in buffer  I can go around this by
 creating an headline, but then I cannot use saveplace or something like
 that to put me in the same place in the file (typically at the very end
 of a long data table, to input more data).

 Currently org-index uses the function org-id-get-create to create the
 link. This function needs an org-mode nodes and whence org-index has the
 same limitation. However, it might be possible to create more general
 links here, that would be able to point to non-org files. I will check
 this for the next version.

This would be great. Maybe a support for usual org links could be a way
to do this?

 Finally, what is the workflow to create a new reference? The way I do it
 is link from the place to link, then call +fill in the table. Is
 there a simpler way (that would do both in one stroke)?

 Definitely: With the initial prompt just choose ref; this will only
 create a new reference, but not a link. If you want both, then you
 currently have to use the workflow you described. However, having a
 feature, that allows both, would be easy to implement, if needed.

Could you give examples of when one would want a link without a ref, or
a ref without a link?

Thanks again,

Alan



Re: [O] [dev] New version of org-index.el --- A personal index for org and beyond

2013-09-21 Thread Alan Schmitt
Hello Marc,

m...@ihm.name writes:

 Hello,

 please find attached version 2.3 of org-index.el.
 See also http://orgmode.org/worg/code/elisp/org-index.el
 and the contrib-directory of org.

 The most notable feature of this version is an assistant
 which provides easy setup.

I'm trying org-index, and I let the assistant build the table for me. At
the end of the set, this error occurred:

,
| Saved org-index-id '50E94CE9-06B3-452E-96B6-FA47AA08B9D6' to 
/Users/schmitta/.emacs.d/custom.el
| let: No catch for tag: created-new-index, nil
`

Is this problematic?

Here are a few notes I'm taking as I'm playing with it.

First, the table seems to be different from the one on worg. Here are
the columns I have:

  | |  |  | |   | comment   |
  | ref | link | created  | count;s | last-accessed | ;c|
  | | 4  |  | |   |   |

I guess comment includes Type, description, and Keywords? Or can I
extend this table as I see fit?

Second, I don't see how to update a link in a table so that it points
somewhere else. Should I just copy the Property drawer to the new place?

Also, I noticed it's impossible to create a link to a file. If a file
does not have any org entry, then org-index link will fail with Before
first headline at position 35591 in buffer  I can go around this by
creating an headline, but then I cannot use saveplace or something like
that to put me in the same place in the file (typically at the very end
of a long data table, to input more data).

Finally, what is the workflow to create a new reference? The way I do it
is link from the place to link, then call +fill in the table. Is
there a simpler way (that would do both in one stroke)?

Thanks,

Alan



Re: [O] [dev] New version of org-index.el --- A personal index for org and beyond

2013-09-21 Thread Marc-Oliver Ihm

Hi Alan

Alan Schmitt alan.schm...@polytechnique.org writes:


 I'm trying org-index, and I let the assistant build the table for me. At
 the end of the set, this error occurred:

 ,
 | Saved org-index-id '50E94CE9-06B3-452E-96B6-FA47AA08B9D6' to 
 /Users/schmitta/.emacs.d/custom.el
 | let: No catch for tag: created-new-index, nil
 `

 Is this problematic?


No, not really ... The assistant has finished its work properly and this
tag is just thrown to bail out without signaling an error. However, you
still get an error, which is an annoyance to address. Thanx for reporting !

 Here are a few notes I'm taking as I'm playing with it.

 First, the table seems to be different from the one on worg. Here are
 the columns I have:

   | |  |  | |   | comment   |
   | ref | link | created  | count;s | last-accessed | ;c|
   | | 4  |  | |   |   |

 I guess comment includes Type, description, and Keywords? Or can I
 extend this table as I see fit?


Yes, just add any further columns you need. As long as the do not have a
semicolon, they are ignored. You can also reorder columns according to
your needs.

 Second, I don't see how to update a link in a table so that it points
 somewhere else. Should I just copy the Property drawer to the new place?

Yes, this is possible; or you could copy the id-property from the new
place into the index-table.

 Also, I noticed it's impossible to create a link to a file. If a file
 does not have any org entry, then org-index link will fail with Before
 first headline at position 35591 in buffer  I can go around this by
 creating an headline, but then I cannot use saveplace or something like
 that to put me in the same place in the file (typically at the very end
 of a long data table, to input more data).

Currently org-index uses the function org-id-get-create to create the
link. This function needs an org-mode nodes and whence org-index has the
same limitation. However, it might be possible to create more general
links here, that would be able to point to non-org files. I will check
this for the next version.

 Finally, what is the workflow to create a new reference? The way I do it
 is link from the place to link, then call +fill in the table. Is
 there a simpler way (that would do both in one stroke)?

Definitely: With the initial prompt just choose ref; this will only
create a new reference, but not a link. If you want both, then you
currently have to use the workflow you described. However, having a
feature, that allows both, would be easy to implement, if needed.


best regards,
Marc




Re: [O] [dev] New version of org-index.el --- A personal index for org and beyond

2013-08-02 Thread Suvayu Ali
On Thu, Aug 01, 2013 at 10:17:42PM +0200, Marc Ihm wrote:
 Hello,
 
 please find attached version 2.3 of org-index.el.
 See also http://orgmode.org/worg/code/elisp/org-index.el
 and the contrib-directory of org.
 
 The most notable feature of this version is an assistant
 which provides easy setup.
 
 A short description in its own words:
 
 ;;; org-index.el --- A personal index for org and beyond
 ;;
 ;;  Mark and find your favorite org-locations and other things easily:
 ;;  Create and update a lookup table of references and links. Frequently
 ;;  used entries bubble to the top. Entering some keywords narrows down the
 ;;  displayed results to matching entries only, so that the right one can
 ;;  be spotted easily.
 ;;
 ;;  References are essentially small numbers (e.g. R237 or -455-),
 ;;  which are created by this package; they are well suited to be used
 ;;  outside org. Links are normal org-mode links.;;
 
 
 
 Find the complete documentation at:
 
   http://orgmode.org/worg/org-contrib/org-index.html

This looks quite interesting.  I will try it over the weekend.

Thanks :)

-- 
Suvayu

Open source is the future. It sets us free.