From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12191: 24.1.50; Error getf is not a valid place expression Date: Mon, 13 Aug 2012 09:54:18 -0400 Message-ID: References: <87sjbrdlxp.fsf@visionobjects.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344866082 27321 80.91.229.3 (13 Aug 2012 13:54:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2012 13:54:42 +0000 (UTC) Cc: 12191@debbugs.gnu.org To: Ivan Kanis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 13 15:54:41 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T0v6L-00063L-5u for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Aug 2012 15:54:37 +0200 Original-Received: from localhost ([::1]:42740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0v6K-0001lp-Cg for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Aug 2012 09:54:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0v6I-0001li-HW for bug-gnu-emacs@gnu.org; Mon, 13 Aug 2012 09:54:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T0v6D-0006R5-GN for bug-gnu-emacs@gnu.org; Mon, 13 Aug 2012 09:54:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T0v6D-0006R1-Cu for bug-gnu-emacs@gnu.org; Mon, 13 Aug 2012 09:54:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T0vET-0005k0-H9 for bug-gnu-emacs@gnu.org; Mon, 13 Aug 2012 10:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Aug 2012 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12191 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12191-submit@debbugs.gnu.org id=B12191.134486657222053 (code B ref 12191); Mon, 13 Aug 2012 14:03:01 +0000 Original-Received: (at 12191) by debbugs.gnu.org; 13 Aug 2012 14:02:52 +0000 Original-Received: from localhost ([127.0.0.1]:53508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0vEK-0005je-NQ for submit@debbugs.gnu.org; Mon, 13 Aug 2012 10:02:52 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:10774) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T0vEK-0005jY-1X for 12191@debbugs.gnu.org; Mon, 13 Aug 2012 10:02:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09MCqqR/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="195569167" Original-Received: from 76-10-170-145.dsl.teksavvy.com (HELO pastel.home) ([76.10.170.145]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Aug 2012 09:54:19 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6E72659305; Mon, 13 Aug 2012 09:54:18 -0400 (EDT) In-Reply-To: <87sjbrdlxp.fsf@visionobjects.com> (Ivan Kanis's message of "Mon, 13 Aug 2012 14:18:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63097 Archived-At: > 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