Giter Club home page Giter Club logo

Comments (6)

pprevos avatar pprevos commented on June 11, 2024 1

It was a problem in a regular expression. Can you evaluate this function and confirm that it resolves the issue?

    (defun citar-denote-extract-citations ()
  "Extract citations from all Denote files."
  ;; Extract lines with citations
  (let* ((xrefs (xref-matches-in-files
                 citar-denote-citekey-regex
                 (denote-directory-text-only-files)))
         (citations (mapcar #'substring-no-properties
                            (mapcar #'xref-match-item-summary xrefs))))
    ;; Clean results
    (delete-dups
     (mapcar
      (lambda (cite)
        (replace-regexp-in-string
         "@\\|\\].*\\|;" ""  ;; Fixed issue 19
         (substring
          cite (string-match citar-denote-citekey-regex cite))))
      citations))))

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Hi, I have been able to replicate the error. The issue is with citar-denote-extract-citations. I'll work on it tonight, should be an easy fix (regex issue).

from citar-denote.

Jousimies avatar Jousimies commented on June 11, 2024

It worked, fantastic.

Thank you for your great job.

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

No worries. I have committed the update, which will soon land in MELPA. 756682b

from citar-denote.

Jousimies avatar Jousimies commented on June 11, 2024

A mistake in

(citar-denote-extract-citations)

You should delete this line.

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Oops, that was silly. Fixed it.

from citar-denote.

Related Issues (11)

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.