From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Krishnakant Newsgroups: gmane.emacs.help Subject: Re: problem: M-a M-e gives symbol's function definition is voide Date: Mon, 27 Feb 2017 09:49:16 +0530 Message-ID: <558d62f4-db34-f781-09ac-718981623ea3@openmailbox.org> References: <08d3ca93-f351-e7df-2808-8fff29d90699@openmailbox.org> <9e9aafd8-6b03-11a8-cbaa-9b53fec5306b@openmailbox.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1488169201 944 195.159.176.226 (27 Feb 2017 04:20:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 04:20:01 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: John Mastro , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 05:19:58 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciCmz-0008CC-EY for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 05:19:57 +0100 Original-Received: from localhost ([::1]:50219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciCn5-0006Ts-Cw for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 23:20:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciCmV-0006TU-OS for help-gnu-emacs@gnu.org; Sun, 26 Feb 2017 23:19:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciCmS-0004yD-Gk for help-gnu-emacs@gnu.org; Sun, 26 Feb 2017 23:19:27 -0500 Original-Received: from lb1.openmailbox.org ([5.79.108.160]:42723 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciCmS-0004xy-7t for help-gnu-emacs@gnu.org; Sun, 26 Feb 2017 23:19:24 -0500 Original-Received: by mail.openmailbox.org (Postfix, from userid 20002) id 7252F50DF35; Mon, 27 Feb 2017 05:19:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1488169161; bh=0xXrjLM4YqPkZNlCeu52PDeKYV/1LuB/ZI2vNGmSFz8=; h=Subject:To:References:From:Date:In-Reply-To:From; b=lkesGz03EDsRzUzo6+ffeE7yNnkLqA3wMUVaPqMw3+QsVTLiXOPFyRYTuo0doYU+l oKGPmJnNDgI7uRCLBruQ6IZDVlrQr19NqsI650vH8xCgGg8CN98hA9UfHx/QF2qlgo HjwsHiZL/hK8zlGxywSF3K3XWKrGRdhfgeaJQr+0= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1488169161; bh=0xXrjLM4YqPkZNlCeu52PDeKYV/1LuB/ZI2vNGmSFz8=; h=Subject:To:References:From:Date:In-Reply-To:From; b=lkesGz03EDsRzUzo6+ffeE7yNnkLqA3wMUVaPqMw3+QsVTLiXOPFyRYTuo0doYU+l oKGPmJnNDgI7uRCLBruQ6IZDVlrQr19NqsI650vH8xCgGg8CN98hA9UfHx/QF2qlgo HjwsHiZL/hK8zlGxywSF3K3XWKrGRdhfgeaJQr+0= In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.79.108.160 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112385 Archived-At: On Friday 24 February 2017 12:11 AM, John Mastro wrote: > Krishnakant wrote: >> Here's the message from the buffer. Symbol's function definition is >> void: beginning-of-python-def-or-class Can you suggest what could this >> be? I also tryed running emacs -Q for bare bones setting and this >> still happens. Happy hacking. Krishnakant. > The function beginning-of-python-def-or-class isn't part of the > python-mode that's included with Emacs. It's part of a separate Python > mode that IIUC is, or at least was, distributed with Python. I've always > used the one that's included with Emacs so I don't know much about it. > > Are you intentionally using the alternative python-mode, or is it > entering into this picture unexpectedly? I haven't done any thing intentionaly. I had done a sudo apt-get install python-mode expecting that I needed that for my Python work. I then removed it using sudo apt-get remove, thinking that the version installed by Ubuntu might be causing the problem. I now asume that the default python-mode must have taken over, but still same result. I don't intend to use the alternative Python mode. By the way here is the output of C-h k for the diagnose. M-a runs the command beginning-of-python-def-or-class, which is an alias for `beginning-of-python-def-or-class', which is not defined. Please make a bug report. > Also, please try typing `C-h k M-a' (or, equivalently, M-x describe-key > RET M-a) and report back what command it says M-a is bound to. > > Trying to think this through, what confuses me is that the command bound > to e.g. M-a must be trying to call beginning-of-python-def-or-class, but > you've said it still happens in emacs -Q. It could be that the > alternative python-mode is being loaded even in emacs -Q (and binds its > own M-a), but in that case we would expect > beginning-of-python-def-or-class to be available. > > If you're not intentionally using the alternative python-mode, perhaps > try running something like this in your shell: > > $ cd ~/.emacs.d > $ grep beginning-of-python-def-or-class **/*.el > > That may tell us where that symbol is coming from. Except, since this > also happens in emacs -Q, you may also need to check in other locations > on your load-path, which will depend on your system. > > On a Debian-like system, I think this would cover everything in a > typical configuration, but I'm not at one to check: > > $ cd /usr/local/share/emacs > $ grep beginning-of-python-def-or-class **/*.el > Thanks for your help John, I was on a similar line of thought and your advice made it even more confirmed. Surprisingly though, grep returns blank. No result. I don't understand what must be going on. Happy hacking. Krishnakant. But surprisingly the