From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ivan Kanis <ivan.kanis@googlemail.com>
Cc: 12191@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 [thread overview]
Message-ID: <jwvlihi290q.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87sjbrdlxp.fsf@visionobjects.com> (Ivan Kanis's message of "Mon, 13 Aug 2012 14:18:58 +0200")
> 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
next prev parent reply other threads:[~2012-08-13 13:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 12:18 bug#12191: 24.1.50; Error getf is not a valid place expression Ivan Kanis
2012-08-13 13:54 ` Stefan Monnier [this message]
2012-08-13 18:23 ` Ivan Kanis
2012-08-13 21:24 ` Stefan Monnier
2012-08-16 7:12 ` Ivan Kanis
2012-08-13 16:53 ` Glenn Morris
2012-08-13 18:26 ` Ivan Kanis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvlihi290q.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=12191@debbugs.gnu.org \
--cc=ivan.kanis@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).