Skip to content

Commit 31fa541

Browse files
author
Christophe Gragnic
committed
Temporary error for Demander*
1 parent 7ef2e57 commit 31fa541

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

lib/emulisp_core.js

+2-26
Original file line numberDiff line numberDiff line change
@@ -928,32 +928,8 @@ CompExpr.prototype.evalTrue = function(a, b) {
928928

929929
function lispFnOrder(a, b) { return cst.compExprArr[0].evalTrue(a, b) ? -1 : 1; }
930930

931-
function emuprompt(c) { // No support (yet) for the two parameters (non-split chars and comment char).
932-
if (emuEnv() == 'nodejs') {
933-
var readlinesync = require('readline-sync');
934-
readlinesync.setPrompt("");
935-
_stdPrompt = readlinesync.prompt;
936-
} else if (emuEnv() == 'rhino') {
937-
importPackage(java.io);
938-
importPackage(java.lang);
939-
var stdin = new BufferedReader(new InputStreamReader(System['in']));
940-
_stdPrompt = function () { return stdin.readLine(); }
941-
} else {
942-
if (typeof stdPrompt != "undefined") {
943-
var _stdPrompt = stdPrompt;
944-
} else {
945-
var _stdPrompt = window.prompt;
946-
}
947-
}
948-
var user_input = _stdPrompt();
949-
if (emuEnv() == 'nodejs') {
950-
readlinesync.setPrompt(": ");
951-
}
952-
if (user_input === "") {
953-
return NIL;
954-
} else {
955-
return newTransSymbol(user_input);
956-
}
931+
function emuprompt(c) {
932+
throw "Aucune commande de type Demander n’est supportée par Atom.";
957933
}
958934

959935
var coreFunctions = {

0 commit comments

Comments
 (0)