Git Product home page Git Product logo

Comments (6)

joostkremers avatar joostkremers commented on September 27, 2024

You sometimes talk about entries where I think you mean fields, because your example is also about fields. Anyway, the two commits you refer to is where I switched from storing individual entries as a hash table (in a larger hash table) to storing them as association lists (in a hash table). The former was always confusing me because it wasn't always clear in my head which hash table I was looking at... Using alists made that easier.

The cause of the problem, however, seems to be that when reading a .bib file, Ebib pushes fields onto the alist that is going to make up the new entry, so that the list ends up in the reverse order from what it is in the .bib file. I'll fix that, because you're right, the current behaviour is unpractical in certain circumstances.

I will also fix the way individual field values are stored/updated. It seems inefficient to call ebib-db-set-entry in ebib-db-set-field-value, especially given that it's fairly easy to modify the entry alist directly.

from ebib.

joostkremers avatar joostkremers commented on September 27, 2024

I made a change that should fix this issue, please test it and see if it works.

from ebib.

epipping avatar epipping commented on September 27, 2024

Yes, that works (except for bug #43). All those calls to append are very costly, though.

Wouldn't it make more sense to e.g. always store entries in reverse, and only re-reverse them writing?

from ebib.

joostkremers avatar joostkremers commented on September 27, 2024

Sorry about the parenthesis. I pushed something without checking whether it works...

Anyway, I guess you're right about append. So I pushed another commit that reverts that change and uses reverse on saving instead. It seems to work for me, let me know if you run into trouble again.

from ebib.

epipping avatar epipping commented on September 27, 2024

Still works, thanks :)

from ebib.

joostkremers avatar joostkremers commented on September 27, 2024

Whew. :-)

from ebib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.