unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ivan Kanis <ivan.kanis@googlemail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 12191@debbugs.gnu.org
Subject: bug#12191: 24.1.50; Error getf is not a valid place expression
Date: Mon, 13 Aug 2012 20:23:04 +0200	[thread overview]
Message-ID: <877gt2ejnb.fsf@kanis.fr> (raw)
In-Reply-To: <jwvlihi290q.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 13 Aug 2012 09:54:18 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> wrote:

>> 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.

I tacked (require 'cl) on top, I got:

foo.el:1:1:Warning: cl package required at runtime
foo.el:3:1:Error: (cl-getf new-note :message) is not a valid place expression
-- 
Ivan Kanis
http://ivan.kanis.fr

Luck affects everything. Let your hook always be cast; in the stream
where you least expect it there will be a fish.
    -- Ovid





  reply	other threads:[~2012-08-13 18:23 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
2012-08-13 18:23   ` Ivan Kanis [this message]
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=877gt2ejnb.fsf@kanis.fr \
    --to=ivan.kanis@googlemail.com \
    --cc=12191@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).