Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gendl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gendl
gendl
Commits
82706f1a
Commit
82706f1a
authored
Oct 06, 2015
by
Gail Zacharias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include functions with no required args as non-function messages
parent
854b5f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
emacs/glime.lisp
emacs/glime.lisp
+17
-6
No files found.
emacs/glime.lisp
View file @
82706f1a
...
...
@@ -629,6 +629,9 @@ defined by this form."
(
defparameter
*messages-to-suppress-when-not-sequence-member*
(
list
:first?
:index
:last?
:next
:previous
))
(
defun
gendl-source
(
class
slot-sym
)
(
cadr
(
gendl:the-object
(
gendl-class-prototype
class
)
(
slot-source
(
glisp:intern
slot-sym
:keyword
)))))
(
defun
messages-from-classes
(
this-the
form
)
"Use message-list to find out what the messages might be."
(
unless
(
eq
(
this-the-functionp
this-the
)
:evaluate
)
...
...
@@ -703,9 +706,7 @@ defined by this form."
(
consp
reference
)
; function call
(
eq
reference
'%cursor-marker%
))
class
(
let*
((
prototype
(
gendl-class-prototype
class
))
(
slot-source
(
gendl:the-object
prototype
(
slot-source
(
glisp:intern
reference
:keyword
)))))
(
object-slot-form-class
(
cadr
slot-source
)))))
(
object-slot-form-class
(
gendl-source
class
reference
))))
;; [gendl] make your own defparameter for now, but flag it that it
;; might be redundant with something we already have defined
...
...
@@ -749,12 +750,14 @@ in one of the *internal-packages*), otherwise filter for non-nil message-remarks
:message-type
:local
))))
;; Preserve order
(
loop
for
message
in
all-messages
for
functions-found
=
(
and
functions
(
not
(
null
(
find
message
functions
))))
when
(
if
(
and
sequences
(
find
message
sequences
))
(
this-the-quantifiedp
this-the
)
(
eq
functions-found
functionp
))
(
if
functionp
(
find
message
functions
)
(
or
(
not
(
find
message
functions
))
;; include functions with no required args
(
not
(
required-args-p
(
car
(
gendl-source
class
message
)))))))
collect
message
)))))
(
defun
filter-sequence-messages
(
this-the
messages
)
...
...
@@ -849,6 +852,14 @@ in one of the *internal-packages*), otherwise filter for non-nil message-remarks
(
test-active-keyword
)
(
defun
required-args-p
(
lambda-list
)
(
loop
while
lambda-list
for
arg
=
(
pop
lambda-list
)
do
(
if
(
memq
arg
'
(
&whole
&environment
))
(
pop
lambda-list
)
;; ignore
(
return
(
not
(
or
(
memq
arg
lambda-list-keywords
)
(
and
(
symbolp
arg
)
(
string=
(
symbol-name
arg
)
(
string
'
#:&any
)))))))))
;; A. REFERENCES
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment