From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: abbrev-mode can't work in python-mode Date: Mon, 11 Nov 2013 16:43:34 +0100 Message-ID: <5280FB26.1050701@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384184472 9582 80.91.229.3 (11 Nov 2013 15:41:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 15:41:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 11 16:41:16 2013 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 1Vftc0-0007Jd-F0 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 16:41:12 +0100 Original-Received: from localhost ([::1]:37872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vftc0-0003j4-37 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 10:41:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vftbj-0003he-HX for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 10:41:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vftbd-0005ax-0S for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 10:40:55 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:64280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vftbc-0005af-Mn for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 10:40:48 -0500 Original-Received: from purzel.sitgens (brln-4db9c067.pool.mediaWays.net [77.185.192.103]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0Lm6KH-1V6py82gWf-00aDHF; Mon, 11 Nov 2013 16:40:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: X-Provags-ID: V02:K0:CHAw9IdmuDuFh1/4zerl3DY2y993AF3mvYorOHE0hwo GUrAySX8hcu4z2J+bFIlMNRLyDI06e7Vo599c82SxRzFEyQcGk wnTCpzcM9eMe2t7xpe2IukQw12c7zF2VVYC5QWEk11UBMZhW8m fbi0YzoLD2GOhlBDVrSQRPmLGBDWknTtOFJbqy3p9qCx8sgS0O fJLlJuVVrcnTVsqQFJJ91MryJO3EwbJdI1ig3vKqEKVp76comK x5QDB7twblyUAblReqNv3gzNot6M3cFogm5SrxQqFtl4qKYnTv RJMrdj7qBA+a/v5tfB2HOjlaHDvRW0EmTH6prU5Ai5i5pupYjT qIFAiOJsKlSQeWRpUEUh/ER+WLcEUqt8lSkLLm5LL X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.187 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:94447 Archived-At: Am 11.11.2013 10:09, schrieb Yu Yang: > I have defined some abbreviations for python mode by using code like this > >> (define-abbrev-table 'python-mode-abbrev-table >> '( >> ("isettings" "from django.conf import settings") >> ("irequestcontext" "from django.template import RequestContext") >> ("imodel" "from django.db import models") >> ("iform" "from django import forms") >> )) >> > but it can't work correctly. for example, if I input "isettings" then input > a space, emacs doesn't expand to "from django.conf import settings". I have > tried it with all configuration disabled, but no help.if I change > *python-mode-abbrev-table > *to *sh-mode-abbrev-table*, then in a shell script source file , emacs can > expand the "isettings" correctly. so I think there is something wrong with > pyhon-mode.my emacs version is 24.3. os is linux mint 15. Does Anyone has > similar problem? > If you do M-x edit-abbrevs RET, what is the result? Do you see the abbrevs defined previously?