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:59:18 +0100 Message-ID: <87fuxbgiah.fsf@wanadoo.es> References: <2016-02-02T16-40-22@devnull.Karl-Voit.at> <87powfgil4.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1454432397 15725 80.91.229.3 (2 Feb 2016 16:59:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2016 16:59:57 +0000 (UTC) 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:59:48 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 1aQeIs-0005pa-75 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 17:59:46 +0100 Original-Received: from localhost ([::1]:58143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQeIo-0003xF-Eu for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Feb 2016 11:59:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQeId-0003wg-Ep for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 11:59:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQeIa-00083Y-9r for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 11:59:31 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQeIa-00083M-2w for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 11:59:28 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aQeIY-0005U1-Pk for help-gnu-emacs@gnu.org; Tue, 02 Feb 2016 17:59:26 +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:59:26 +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:59:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 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:MDnNHbJ0P8taIofTHJc317WobEo= 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:108971 Archived-At: Óscar Fuentes writes: >> 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) Correction: as implicitly stated below, avy-menu requires Emacs 24.4 (at least). >> 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.