-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typo #592
base: master
Are you sure you want to change the base?
Fix typo #592
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -902,7 +902,12 @@ keywords: :BOUNDP, :FBOUNDP, :CONSTANT, :GENERIC-FUNCTION, | |
(when (find-class symbol nil) (push :class result)) | ||
(when (macro-function symbol) (push :macro result)) | ||
(when (special-operator-p symbol) (push :special-operator result)) | ||
(when (find-package symbol) (push :package result)) | ||
(when #-allegro (find-package symbol) | ||
#+allegro (handler-case (find-package symbol) | ||
(error (e) | ||
(log-event "classify-symbol: error raised in find-package (allegro)") | ||
nil)) | ||
(push :package result)) | ||
(when (and (fboundp symbol) | ||
(typep (ignore-errors (fdefinition symbol)) | ||
'generic-function)) | ||
|
@@ -1625,7 +1630,10 @@ converted to lower case." | |
(process-form-for-emacs (cdr form)))) | ||
(character (format nil "?~C" form)) | ||
(symbol (concatenate 'string (when (eq (symbol-package form) | ||
#.(find-package "KEYWORD")) | ||
macdavid313 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#.(find-package | ||
(if (eq :UPCASE (readtable-case *readtable*)) | ||
"KEYWORD" | ||
"keyword"))) | ||
":") | ||
(string-downcase (symbol-name form)))) | ||
(number (let ((*print-base* 10)) | ||
|
@@ -2966,11 +2974,19 @@ soon once non-ASDF loading is removed. (see github#134)") | |
Receives a module name as argument and should return non-nil if it | ||
managed to load it.") | ||
(:method ((method (eql :slynk-loader)) module) | ||
(funcall (intern "REQUIRE-MODULE" :slynk-loader) module)) | ||
(funcall (intern #.(if (eq :UPCASE (readtable-case *readtable*)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here I think we can use For that matter, one could even do:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is ASDF/UIOP already a dependency of this file? I don't think so (may be wrong) but I would avoid it. I know Allegro ships with it (in recent versions), but not necessarily all SLY backends do. |
||
"REQUIRE-MODULE" | ||
"require-module") | ||
:slynk-loader) | ||
module)) | ||
(:method ((method (eql :asdf)) module) | ||
(unless *asdf-load-in-progress* | ||
(let ((*asdf-load-in-progress* t)) | ||
(funcall (intern "LOAD-SYSTEM" :asdf) module))))) | ||
(funcall (intern #.(if (eq :UPCASE (readtable-case *readtable*)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"LOAD-SYSTEM" | ||
"load-system") | ||
:asdf) | ||
module))))) | ||
|
||
(defun add-to-load-path-1 (path load-path-var) | ||
(pushnew path (symbol-value load-path-var) :test #'equal)) | ||
|
@@ -2979,9 +2995,15 @@ managed to load it.") | |
(:documentation | ||
"Using METHOD, consider PATH when searching for modules.") | ||
(:method ((method (eql :slynk-loader)) path) | ||
(add-to-load-path-1 path (intern "*LOAD-PATH*" :slynk-loader))) | ||
(add-to-load-path-1 path (intern #.(if (eq :UPCASE (readtable-case *readtable*)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"*LOAD-PATH*" | ||
"*load-path*") | ||
:slynk-loader))) | ||
(:method ((method (eql :asdf)) path) | ||
(add-to-load-path-1 path (intern "*CENTRAL-REGISTRY*" :asdf)))) | ||
(add-to-load-path-1 path (intern #.(if (eq :UPCASE (readtable-case *readtable*)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above |
||
"*CENTRAL-REGISTRY*" | ||
"*central-registry*") | ||
:asdf)))) | ||
|
||
(defvar *slynk-require-hook* '() | ||
"Functions run after SLYNK-REQUIRE. Called with new modules.") | ||
|
@@ -3219,7 +3241,9 @@ QUALIFIERS and SPECIALIZERS are lists of strings." | |
(mapcar (lambda (specializer) | ||
(if (typep specializer 'slynk-mop:eql-specializer) | ||
(format nil "(eql ~A)" | ||
(slynk-mop:eql-specializer-object specializer)) | ||
(funcall #+allegro 'mop:eql-specializer-object | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it intended that this will only work on Allegro or SBCL? I don't know enough about the context. |
||
#+sbcl 'sb-mop:eql-specializer-object | ||
specializer)) | ||
(prin1-to-string (class-name specializer)))) | ||
(slynk-mop:method-specializers method)))) | ||
(slynk-mop:generic-function-methods (read-as-function generic-name)))) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we hide whatever logic we need to hide inside
SLYNK-BACKEND:FIND-SYMBOL2
?