Giter Site home page Giter Site logo

Comments (8)

cpitclaudel avatar cpitclaudel commented on June 6, 2024 1

This was fixed a while ago

from pg.

Matafou avatar Matafou commented on June 6, 2024

Dunno.

Le mardi 24 novembre 2015, Clément Pit--Claudel [email protected]
a écrit :

I'm writing a plugin that depends on variables in proof-shell.el.
Unfortunately, requireing causes an error:

mapcar: Symbol’s value as variable is void: nil-completion-table

I found this bit in the source:

;; NB: completion table is expected to be set when proof-script;; is loaded! Call `proof-script-add-completions' to update.

(unless noninteractive ; during compilation
(eval-after-load "completion"
'(proof-add-completions)))

What’s the proper procedure?


Reply to this email directly or view it on GitHub
#14.

from pg.

DavidAspinall avatar DavidAspinall commented on June 6, 2024

Some prover-specific variable names are generated from the proof
assistant name in a convoluted way. You probably want to do something
like this:

(require 'proof-site)
(proof-ready-for-assistant 'coq)
(require 'proof-shell)
  • D.

On 24/11/2015 02:58, Clément Pit--Claudel wrote:

I'm writing a plugin that depends on variables in |proof-shell.el|.
Unfortunately, |require|ing causes an error:

|mapcar: Symbol’s value as variable is void: nil-completion-table|

I found this bit in the source:

;; NB: completion table is expected to be set when proof-script
;; is loaded! Call `proof-script-add-completions' to update.

(unless noninteractive; during compilation
(eval-after-load"completion"
'(proof-add-completions)))

What’s the proper procedure?


Reply to this email directly or view it on GitHub
#14.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

from pg.

cpitclaudel avatar cpitclaudel commented on June 6, 2024

Thanks David!

from pg.

cpitclaudel avatar cpitclaudel commented on June 6, 2024

@DavidAspinall This only works partially, actually. My setup code is the following:

(require 'proof-site nil t)
(proof-ready-for-assistant 'coq) ;; Required by proof-shell
(require 'pg-vars)      ;; `proof-shell-proof-completed'
(require 'proof-config) ;; `proof-fly-past-comments'
(require 'proof-shell)  ;; `proof-shell-available-p'
(require 'coq-syntax)   ;; `coq-tactics-db'
(require 'coq)          ;; `coq-insert-match'

With this, the byte-compiler still complains:

company-coq.el:1368:36:Warning: reference to free variable
    ‘coq-hyp-name-in-goal-or-response-regexp’
company-coq.el:3590:1:Warning: the function ‘coq-insert-match’ is not known to
    be defined.

I tried adding an eval-and-compile around that block, but I get plenty of surprising errors:

Wrong type argument: keymapp, nil

from pg.

cpitclaudel avatar cpitclaudel commented on June 6, 2024

@DavidAspinall Another issue with this is that it displays the splash screen, so users putting (require 'company-coq) in their.emacs` will always see the splash screen.

from pg.

DavidAspinall avatar DavidAspinall commented on June 6, 2024

That sounds undesirable/wrong, I suspect some dependencies have been
broken somewhere. Can you run the autotest script "make test.coq"?
These tests used to work smoothly... - D.

On 07/01/2016 23:12, Clément Pit--Claudel wrote:

@DavidAspinall https://github.com/DavidAspinall Another issue with
this is that it displays the splash screen, so users putting |(require
'company-coq) in their|.emacs` will always see the splash screen.


Reply to this email directly or view it on GitHub
#14 (comment).

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

from pg.

cpitclaudel avatar cpitclaudel commented on June 6, 2024

Indeed, the tests fail: they open an Emacs window with the following message:

Welcome to  Proof General!
mapcar: Symbol’s value as variable is void: nil-completion-table

from pg.

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.