GNU bug report logs - #12191
24.1.50; Error getf is not a valid place expression

Previous Next

Package: emacs;

Reported by: Ivan Kanis <ivan.kanis <at> googlemail.com>

Date: Mon, 13 Aug 2012 12:28:01 UTC

Severity: normal

Tags: notabug

Found in version 24.1.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Ivan Kanis <ivan.kanis <at> googlemail.com>
Cc: 12191 <at> debbugs.gnu.org
Subject: bug#12191: 24.1.50; Error getf is not a valid place expression
Date: Mon, 13 Aug 2012 09:54:18 -0400
> 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




This bug report was last modified 12 years and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.