[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12191: 24.1.50; Error getf is not a valid place expression
From: |
Stefan Monnier |
Subject: |
bug#12191: 24.1.50; Error getf is not a valid place expression |
Date: |
Mon, 13 Aug 2012 09:54:18 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> 1) create a file foo.el containing
> (defun slime-merge-notes (notes)
> "Merge NOTES together. Keep the highest severity, concatenate the messages."
> (let* ((new-severity (reduce #'slime-most-severe notes
> :key #'slime-note.severity))
> (new-message (mapconcat #'slime-note.message notes "\n")))
> (let ((new-note (copy-list (car notes))))
> (setf (getf new-note :message) new-message)
> (setf (getf new-note :severity) new-severity)
> new-note)))
This file uses `getf' which is not defined until you require CL.
If you add (require 'cl), byte-compiling should work fine.
Stefan