Comments (8)
This was fixed a while ago
from pg.
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.
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.
Thanks David!
from pg.
@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.
@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.
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.
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)
- Tons of warnings when using certain PG features HOT 11
- "Omit proof" on a Let in a section leads to warning HOT 14
- "Omit proofs" breaks other proofs because it also skips hints HOT 14
- whitelist for admissible commands inside proofs HOT 17
- PG incorrectly interprets `}.` as a single token, which results in incorrectly accepting files that coqc rejects
- test_wholefile.v incompatible with 8.17 HOT 1
- Scheme ... with is indented improperly HOT 1
- Merging the Abella fork of PG HOT 9
- Automatic indenting for Easycrypt HOT 1
- generic/pg-goals.el shouldn't be executable HOT 1
- confusing error on incorrect _CoqProject file
- Colors don't work in emacs-nox HOT 1
- Compile-before-require setting does not presist HOT 1
- `coq-insert-suggested-dependency` sometimes inserts unparsable statements
- test_wholefile.v incompatible with 8.19 HOT 4
- makeinfo reports warning: @inforef is obsolete
- compile-tests/003-require-error fails sporadically with 8.19-rc1 HOT 4
- Build failure when "Compile Before Require" meets imported OCaml plugins HOT 13
- proof-goto-point is non-idempotent HOT 2
- wait for proof-goto-point to finish HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg.