From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Symbol's function definition is void: locating the code Date: Tue, 02 Feb 2016 17:52:55 +0100 Message-ID: <87powfgil4.fsf@wanadoo.es> References: <2016-02-02T16-40-22@devnull.Karl-Voit.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454432009 9123 80.91.229.3 (2 Feb 2016 16:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2016 16:53:29 +0000 (UTC) Cc: Karl Voit To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 02 17:53:20 2016 Return-path: Envelope-to: geh-help-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 1aQeCe-0004Qu-1z for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 17:53:20 +0100 Original-Received: from localhost ([::1]:58110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQeCd-0000xr-LV for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 11:53:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQeCS-0000xW-Dd for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 11:53:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQeCP-0005z4-8q for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 11:53:08 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQeCP-0005yw-1z for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 11:53:05 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQeCL-0003tc-1T for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 17:53:01 +0100 Original-Received: from 1.red-83-38-42.dynamicip.rima-tde.net ([83.38.42.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2016 17:53:01 +0100 Original-Received: from ofv by 1.red-83-38-42.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2016 17:53:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 1.red-83-38-42.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:1GXsQ32d3VXuafe8w1g+Je/TF5k= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108970 Archived-At: Karl Voit writes: > Hi! > > I sometimes face errors like this: > > "avy-menu: Symbol's function definition is void: > with-current-buffer-window" > > OK, so a package misses some function which is probably provided by > another package (missing dependency). Which version is your Emacs? avy-menu requires the latest release of Emacs (24.5) > How do I locate the package which is able to provide me the > function? > > Most of the time I get lucky by searching the web with the error > message. However, this time (and some other times), I am not able to > find the missing code. What I do is searching the missing symbol, probably with "emacs". For your specific case above I searched the Emacs sources and found that with-current-buffer-window was introduced on 2014-03-16, which means that *probably* it was released on Emacs 24.4. That was an Emacs feature, if the missing piece is in a package, googling is the way to go, as mentioned above. However, any package worth its salt must mention its dependencies, versions included. The current avy-menu.el mentions ;; Package-Requires: ((emacs "24.3") (avy "0.3.0")) I think that (emacs "24.3") is wrong, because that version was released before with-current-buffer-window was coded into Emacs.