From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: elpy: autocompletition not working Date: Sun, 25 Oct 2020 16:03:55 +0300 Message-ID: References: <4CJxNF3gD3z6tmM@submission01.posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ (1036f0e) (2020-10-18) Cc: help-gnu-emacs@gnu.org To: c.buhtz@posteo.jp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 25 14:04:40 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kWfhQ-0003Au-Rs for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Oct 2020 14:04:40 +0100 Original-Received: from localhost ([::1]:58110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWfhP-0005EJ-R1 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Oct 2020 09:04:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWfgt-0005Di-Uv for help-gnu-emacs@gnu.org; Sun, 25 Oct 2020 09:04:08 -0400 Original-Received: from static.rcdrun.com ([95.85.24.50]:35049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWfgp-00019q-KP for help-gnu-emacs@gnu.org; Sun, 25 Oct 2020 09:04:07 -0400 Original-Received: from localhost ([::ffff:41.202.241.51]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002A0B3A.000000005F9577C0.00000152; Sun, 25 Oct 2020 13:04:00 +0000 Content-Disposition: inline In-Reply-To: <4CJxNF3gD3z6tmM@submission01.posteo.de> Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/25 08:45:37 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124709 Archived-At: * c.buhtz@posteo.jp [2020-10-25 15:00]: > Hi, > > I setup my elpy on Debian 10 via this blog-post. > https://realpython.com/emacs-the-best-python-editor/#emacs-for-python-development-with-elpy Sorry that IRC did not work, there is just few persons if more than one, on #elpy channel As you got the script from realpython.com website I also recommend contacting them, as it is in their best interest that such script works. > I also checked the (official?) docs here: > https://elpy.readthedocs.io/en/latest/ide.html#completion > > btw: What does "M-TAB (elpy-company-backend)" means? We just discussed of the notation, the notation M-TAB means Meta key and TAB, and Meta is on PC keyboards normally ALT. Internally Meta key is translated to ESC, so you can also use ESC-TAB. On Apple keyboards it is Option-TAB > In my understand "M-" on a usual IBM-PC-Keyboard is the ALT-key on the > right beside the Windows-key. Right. > But ALT + TAB does window switching (on Windows and Linux-XFCE). Eh, that is other problem, your Window Manager verwrites the M-TAB to Window Manager function of switching windows, so that is why it does not work: - you could remap Window Manager, or change it, I do not recommend - map the key to use some Emacs function, that is best I do not touch Python, not Pythonista. But there is function M-x hippie-expand and there is also M-x python-mode built in. hippie-expand could help. You could evaluate following: (define-key python-mode-map (kbd "s-") 'hippie-expand) Then you could use the Superkey between Ctrl and Alt with TAB to expand on Python expression. You can repeat it to find various expansions. Tell me if it is usable. More resources for you: https://www.emacswiki.org/emacs/PythonProgrammingInEmacs -- Jean Louis