dnhester26 has quit [Remote host closed the connection]
cladur has joined #commonlisp
snits has quit [Read error: Connection reset by peer]
snits has joined #commonlisp
cladur has quit [Ping timeout: 256 seconds]
rgherdt has joined #commonlisp
NotThatRPG_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cladur has joined #commonlisp
cladur has quit [Ping timeout: 256 seconds]
cladur has joined #commonlisp
dnhester26 has joined #commonlisp
cladur has quit [Ping timeout: 255 seconds]
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
pve has quit [Quit: leaving]
rgherdt has quit [Ping timeout: 255 seconds]
cladur has joined #commonlisp
Alfr has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
Alfr has joined #commonlisp
cladur has quit [Ping timeout: 268 seconds]
rgherdt has joined #commonlisp
dra has quit [Quit: Leaving]
kevingal has quit [Remote host closed the connection]
cladur has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 264 seconds]
cladur has quit [Ping timeout: 276 seconds]
Lord_of_Life_ is now known as Lord_of_Life
abrantesasf has quit [Remote host closed the connection]
rgherdt has quit [Quit: Leaving]
chomwitt has quit [Ping timeout: 264 seconds]
Pixel_Outlaw has joined #commonlisp
NicknameJohn has quit [Ping timeout: 246 seconds]
dcb has quit []
dcb has joined #commonlisp
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Client Quit]
cladur has joined #commonlisp
random-nick has quit [Ping timeout: 256 seconds]
cladur has quit [Ping timeout: 246 seconds]
cladur has joined #commonlisp
lispmacs[work] has quit [Read error: Connection reset by peer]
cladur has quit [Ping timeout: 255 seconds]
cladur has joined #commonlisp
Jach has quit [Ping timeout: 256 seconds]
Jach has joined #commonlisp
yitzi has quit [Remote host closed the connection]
BrokenCog is now known as Gojira
cladur has quit [Remote host closed the connection]
cladur has joined #commonlisp
cladur has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
NicknameJohn has quit [Ping timeout: 245 seconds]
herjazz has joined #commonlisp
cladur has joined #commonlisp
cladur has quit [Ping timeout: 256 seconds]
cladur has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
rtypo has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 245 seconds]
herjazz has quit [Quit: leaving]
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 245 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
Oladon has joined #commonlisp
NotThatRPG has joined #commonlisp
cladur_ has joined #commonlisp
cladur has quit [Ping timeout: 245 seconds]
bjorkint0sh has quit [Ping timeout: 245 seconds]
<Gojira>
question about map function. I'm trying to pass a keyword to the function: (map 'list testfunc alst :num num) ... the keyword :num belongs to testfunc ... but it's being consumed by map. any suggestions??
<beach>
Here 1+ applies to each element. Not to the list.
<beach>
But (FUNCALL TESTFUNC ALST) will apply TESTFUNC to the entire list. Not to each element.
<beach>
,(funcall #'list '(1 2 3))
<ixelp>
(funcall #'list '(1 2 3)) => ((1 2 3))
<Gojira>
correct. because funcall expects a list of lists.
<beach>
*sigh*
<Gojira>
osrry ..
<beach>
No, FUNCALL applies its first argument to the remaining arguments.
<Gojira>
correct. because testfunc expects a lidst of lists.
<beach>
I don't think so.
<Gojira>
don't think what?
<beach>
You said (map 'list testfunc alst), so then TESTFUNC is applied to each element of ALST.
cladur_ has quit [Remote host closed the connection]
<Gojira>
and alst is a list of lists.
<Gojira>
so testfunc will get a list.
<beach>
Fair enough, but that is not important here.
<Gojira>
correct.
<Gojira>
i want map to not consume :key, but instead pass it to testfunc.
<Gojira>
along with alst
<beach>
Until now, you have not told us the shape of ALST not what TESTFUNC does.
<Gojira>
didn't seem important here.
<beach>
But I showed you how to do that.
<beach>
It is not important.
<Gojira>
presumably then it should be (lambda (x) (funcall testfunc x :num num))??
<beach>
What is important is that you want the second argument to MAP to be a function with a single parameter, since you are giving only one sequence for it to map over.
cladur has joined #commonlisp
<Gojira>
right.
<beach>
Ah, yes, I forgot the X in my example.
<Gojira>
okay. that's what i was syaing originally wasn't right.
<beach>
But you said (funcall testfunc alst :num num) and not (funcall testfunc x :num num)
<beach>
<Gojira>
right. I confused myself :)>
cladur has quit [Remote host closed the connection]
ym has joined #commonlisp
robin has joined #commonlisp
cladur has joined #commonlisp
<beach>
Gojira: What you are doing is known as "currying", and there are library functions that can do that for you.
<beach>
Presumably named after Haskell Curry.
<beach>
I haven't tested this, but (map 'list (alexandria:rcurry testfunc :num num) alst) or something like that might work.
<beach>
... but you really need to improve the names of your functions and variables.
rainthree has joined #commonlisp
ronald_ has quit [Ping timeout: 245 seconds]
ronald has joined #commonlisp
<Gojira>
I know of the concept but I've never been able to get my head around it. Don't even understand it enough to recognize when it's relevant :)> [currying].
<beach>
You can read up on it on Wikipedia.
NicknameJohn has joined #commonlisp
rainthree has quit [Ping timeout: 252 seconds]
Oladon has quit [Quit: Leaving.]
olnw has joined #commonlisp
Alfr has quit [Remote host closed the connection]
Alfr has joined #commonlisp
notzmv has quit [Ping timeout: 256 seconds]
olnw has quit [Remote host closed the connection]
lagash has quit [Ping timeout: 260 seconds]
<beach>
In the DEFCLASS macro, it is indicated that the slot name must be a symbol that is syntactically valid for use as a variable name. But I can't find any such restrictions in the MOP specification for class initialization. I suppose a custom direct slot specification class could allow any old slot name.
azimut has joined #commonlisp
cladur has quit [Quit: Leaving...]
azimut has quit [Ping timeout: 240 seconds]
Aesth has joined #commonlisp
agm has joined #commonlisp
<agm>
if you set *READ-SUPPRESS* manually, how do you go back?
<paulapatience>
Basically pathname-utils:native-namestring fails when provided with the result of asdf:system-relative-pathname when it has no type.
<paulapatience>
Tried on the latest commit.
rainthree has joined #commonlisp
rgherdt has quit [Ping timeout: 240 seconds]
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #commonlisp
cage has quit [Remote host closed the connection]
pfdietz has joined #commonlisp
drewjose has quit [Quit: have a nice day ^_^]
lispmacs[work] has joined #commonlisp
<lispmacs[work]>
hi, what is the trick again for quieting the style warning when a specific parameter variable is not used in a specific function
<beach>
(declare (ignore <name>))
<pfdietz>
Or ignorable (which is better in macros where the parameter *might* be ignored, or might not be.)
<lispmacs[work]>
okay, thanks
<yitzi>
Also better when there are #+/#- in the body.
<pfdietz>
Also, if it's a method, you can specify (<param> t) and you don't the warning if it isn't used (but if you just write <param> in the parameter list, it does.)
<beach>
pfdietz: What passage in the standard says that?
<bike>
"The expansion of the defmethod macro ``refers to'' each specialized parameter (see the description of ignore within the description of declare). This includes parameters that have an explicit parameter specializer name of t." in clhs defmethod
<beach>
Thank you!
<pfdietz>
Right, on the page for defmethod.
<bike>
technically it's undefined whether an unspecialized parameter is "referred to". sbcl treats every parameter as being referred to, specialized or not
<beach>
SBCL apparently declares every parameter, specialized or not, as IGNORABLE.
<pfdietz>
I think that may have changed at some point? Vague memory.
<beach>
Doesn't sound like a good idea to me.
<pfdietz>
It might be nice to have a NOT IGNORABLE declaration, meaning this code must refer to the name.
<beach>
That would have been a good idea.
<beach>
Hmm, does this mean that if a specialized parameter is explicitly declared IGNORE, that would deserve a warning?
kenanb has quit [Read error: Connection reset by peer]
<paulapatience>
CCL warns, though.
<beach>
Good! SBCL does not.
kenanb has joined #commonlisp
pfdietz has quit [Quit: Client closed]
dino_tutter has joined #commonlisp
traidare has quit [Ping timeout: 268 seconds]
Aesth has joined #commonlisp
attila_lendvai has joined #commonlisp
jonatack has quit [Ping timeout: 268 seconds]
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 256 seconds]
mgl has joined #commonlisp
pfdietz has joined #commonlisp
<pfdietz>
I *think* sbcl could do it if line 732 of src/pcl/boot.lisp were changed.
danse-nr3 has quit [Ping timeout: 260 seconds]
tyson2 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
seok has quit [Quit: Client closed]
seok has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
<scymtym>
regarding the editor work beach mentioned yesterday: i'm currently working on an editing library one layer above the cluffer library (which handles items, lines and cursors within a buffer)
<scymtym>
this new library is independent of any user interface or command processor and provides the usual operations for movement and editing of objects (like items, words, expressions, etc), multiple cursors, marks and regions. there is also code for incremental search, undo and "abbrevs"
tyson2 has joined #commonlisp
<mfiano>
Great!
Aesth has joined #commonlisp
decweb has quit [Ping timeout: 260 seconds]
justache is now known as justResolute
justResolute is now known as justIrresolute
decweb has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
decweb has quit [Ping timeout: 245 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
decweb has joined #commonlisp
dajole has joined #commonlisp
tyson2` has joined #commonlisp
tyson2` has quit [Remote host closed the connection]
tyson2` has joined #commonlisp
tyson2 has quit [Ping timeout: 255 seconds]
Kyuvi has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
<jcowan>
scymtym: oooh, shiny
<jcowan>
how are words defined?
dnhester26 has joined #commonlisp
ronald_ has joined #commonlisp
ronald has quit [Read error: Connection reset by peer]
waleee has joined #commonlisp
<Gojira>
question about loop. I'd like to iterate a list, with element being (car alist) and nextelement being (cadr alist). Is this possible using loop?
<pfdietz>
You can destructure in loop.
<pfdietz>
(loop for (a . b) in alist ...)
<Gojira>
ahhhh. thanks!
<scymtym>
jcowan: at the moment, a word is just a sequence of non-whitespace, non-punctuation characters. the more important idea is that most operations take a "unit" such as WORD and a "direction" and apply some universal machinery to iterate over the corresponding buffer items. so Emacs' DELETE-FORWARD-CHAR, KILL-LINE BACKWARD-KILL-PARAGRAPH and friends is one function, motion is one function changing case is one function and so on.
<scymtym>
most operations will just work if new "units" are defined although sometimes tweaks are added. here are some examples in a very old version of the manual: https://scymtym.github.io//text.editing/text.html#Units
<ixelp>
text.editing User’s Manual
<jcowan>
Fair enough. I was hoping a word would be defined by a regular expression.
<jcowan>
If you use a Thompson DFA it's performant enough.
tyson2`` has quit [Remote host closed the connection]
ronald_ has quit [Ping timeout: 264 seconds]
ym has quit [Ping timeout: 264 seconds]
tyson2` has quit [Ping timeout: 255 seconds]
ronald has joined #commonlisp
danse-nr3 has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
akoana has joined #commonlisp
<scymtym>
it could be. i'm also integrating hayley's one-more-re-nightmare library. primarily for re search but there is no reason it couldn't be used for "unit" predicates as well
skeemer has quit [Ping timeout: 252 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
cage has joined #commonlisp
rainthree has quit [Ping timeout: 256 seconds]
<Shinmera>
paulapatience: it is not. A fix is up in f28068a
<Shinmera>
Also handles other pathname component types better now.
<Shinmera>
So thanks for the report!
akoana has quit [Quit: leaving]
<paulapatience>
Super! Thanks for the quick fix.
_cymew_ has quit [Ping timeout: 252 seconds]
skeemer has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
<Shinmera>
It would have been much quicker if I had been in a place with wifi
<Shinmera>
had to wait to get home to push the fix
kenanb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
lispmacs[work] has quit [Remote host closed the connection]
Kyuvi has quit [Ping timeout: 250 seconds]
Fare has joined #commonlisp
Fare has quit [Ping timeout: 260 seconds]
green_ has quit [Remote host closed the connection]
green_ has joined #commonlisp
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 256 seconds]
seok has quit [Quit: Client closed]
seok has joined #commonlisp
danse-nr3 has quit [Ping timeout: 256 seconds]
Fare has joined #commonlisp
varjag has joined #commonlisp
kenanb has joined #commonlisp
Aesth has joined #commonlisp
robin has joined #commonlisp
jmdaemon has joined #commonlisp
yitzi has quit [Remote host closed the connection]
chomwitt has joined #commonlisp
jonatack has joined #commonlisp
josrr has quit [Remote host closed the connection]
jon_atack has joined #commonlisp
son0p has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 256 seconds]
green_ has quit [Ping timeout: 256 seconds]
josrr has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.1]
Kyuvi has joined #commonlisp
attila_lendvai has quit [Ping timeout: 276 seconds]
green_ has joined #commonlisp
notzmv has quit [Ping timeout: 255 seconds]
zetef has joined #commonlisp
edgar-rft has quit [Quit: don't waste your life by reading this]
edgar-rft has joined #commonlisp
yitzi has joined #commonlisp
donleo has joined #commonlisp
lispmacs[work] has joined #commonlisp
<lispmacs[work]>
Is there a way to (unbind?) a method I've defined with defmethod, without restarting the inferior lisp (in SLIME)?
shka has quit [Ping timeout: 260 seconds]
<_death>
I usually inspect the generic function and use the remove method button (C-c I #'gf-name RET)
azimut has quit [Ping timeout: 240 seconds]
dnhester26 has quit [Remote host closed the connection]
dustinm` has quit [Quit: Leaving]
Aesth has quit [Read error: Connection reset by peer]