From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Invalid function error in cl.el Date: Wed, 22 Feb 2006 22:36:41 +0100 Organization: Informatimago Message-ID: <87bqwzrs7q.fsf@thalassa.informatimago.com> References: <87u0arcd4t.fsf@cisco.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1140722750 7120 80.91.229.2 (23 Feb 2006 19:25:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2006 19:25:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 20:25:46 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FCM5d-0004tK-4T for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Feb 2006 20:25:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCLUj-0000Gg-2o for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Feb 2006 13:47:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: individual.net 4Ta7C+zTp5V8aqtehWsD/wQm3bMpkj7FubIh8duSLUGXZ7YSC/ Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:m0d7ahW0Nbs3z65yJXBZka2DoGc= Original-Xref: shelby.stanford.edu gnu.emacs.help:137747 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33372 Archived-At: John Russell writes: > I am using emacs 21.4.1 on Gentoo with buffer-stack.el. Briefly its a > fairly common extension that allows you to switch quickly between > active buffers. I have used it for years with no problems. Great, > you say, but why do I care? > > Recently whenever I try to call buffer-stack-up or buffer-stack-down ( > the main entry points for buffer-stack ) I get the following error > > buffer-stack-move: Invalid function: (macro lambda (place &optional x) > "Increment PLACE by X (1 by default). > PLACE may be a symbol, or any generalized variable allowed by `setf'. > The return value is the incremented value of PLACE." (if (symbolp > place) (list (quote setq) place (if x (list (quote +) place x) (list > (quote 1+) place))) (list (quote callf) (quote +) place (or x 1)))) > > I have tried reinstalling emacs, removing other things from my config, > byte compiled, not byte compiled, on an empty stomach, nothing helps. > The thing that kills me is that this has worked for so long and now > it doesn't. It has to be something I did, but I can't for the life of > me figure it out. Any ideas? Thanks a lot. The form: (macro lambda (place &optional x) "Increment PLACE by X (1 by default). PLACE may be a symbol, or any generalized variable allowed by `setf'. The return value is the incremented value of PLACE." (if (symbolp place) (list (quote setq) place (if x (list (quote +) place x) (list (quote 1+) place))) (list (quote callf) (quote +) place (or x 1)))) is not a function. It looks like the body of the incf macro. Perhaps buffer-stack.el tries to funcall (symbol-function 'incf) ? It should avoid incf, since it's defined as a macro in cl-macs.el -- __Pascal Bourguignon__ http://www.informatimago.com/ Small brave carnivores Kill pine cones and mosquitoes Fear vacuum cleaner