Daniel Oosthuizen
Daniel Oosthuizen
@danspiff; I fail on (9): ~~~ [ 96%] Linking C executable kiibohd.elf CMakeFiles/kiibohd.elf.dir/Scan/ISSILed/led_scan.c.obj: In function `I2C_Send': /home/daniel/hotfix/controller/Scan/ISSILed/led_scan.c:591: undefined reference to `I2C_BufferCopy' CMakeFiles/kiibohd.elf.dir/Scan/ISSILed/led_scan.c.obj: In function `LED_setup': /home/daniel/hotfix/controller/Scan/ISSILed/led_scan.c:392: undefined reference to `I2C_setup'...
Actually, pretty much the same thing happens on the `old` branch. I don't know if anyone has a fix.
@wailashi; have a look at **crystalhand**'s response above. (I haven't tried it yet.)
@wailashi I'm also on Arch. (*Coincidence?*)
I did't spot `-cut` – true, it does take away some of the usefulness of `-npartial`, but I suppose for a function with many, many arguments – though I don't...
Also: shouldn't the `(unless (version< emacs-version "24") ...` stop this from failing with Emacs 23?
I had a quick look to see how many functions have _loads_ of arguments – and (at least in my config), there are the following functions (w/ arities). Note that...
Done! I've made a slight change also, to allow the offset to be negative (i.e. from the end of the list). The commit message is (I think) also more explanatory....
@Fuco1: `cl-letf` is pure: ``` el (setq lst '(1 2 3)) (cl-letf (((-first-item lst) 0)) (copy-list lst)) ;; => (0 2 3) lst ;; => (1 2 3) ``` Without...
You can make a slight improvement, if you let `--replacef` be anaphoric. ``` el (defmacro --replacef (lst place value) `(letf* ((it ,lst) (,place ,value)) (copy-list it))) (--replacef '(1 2 3)...