From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yu Yang Newsgroups: gmane.emacs.help Subject: abbrev-mode can't work in python-mode Date: Mon, 11 Nov 2013 17:09:36 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1384176291 7179 80.91.229.3 (11 Nov 2013 13:24:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 13:24:51 +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 14:24:56 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 1VfrU5-0002nm-7z for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 14:24:53 +0100 Original-Received: from localhost ([::1]:37069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfrU1-0005lV-OJ for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 08:24:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfnVP-0004r6-Mg for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 04:10:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfnVO-00057b-5R for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 04:09:59 -0500 Original-Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:59635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfnVN-00057O-U8 for help-gnu-emacs@gnu.org; Mon, 11 Nov 2013 04:09:58 -0500 Original-Received: by mail-ea0-f173.google.com with SMTP id g10so2570795eak.32 for ; Mon, 11 Nov 2013 01:09:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qOSTTsteSoBdVYxH1LnDQrYLktqFDSnBNPbbH080r08=; b=cU36nXGXlZXyrVXpXr3ho7mv1Yjt2sLJgHWTUxtl2wYYrXc9yEMUe8B+/mwAdw4lt9 s2jYuTpiGV09epYp/IU4VL0Sxa8f5pYzgYjkdJBvwyOPd7aowUpxZIFHvxcz2xhWyJ2T 6S/CyvidN+tWprAKPKx1Wr7VzpoMGy2Rx/yZ7QI1uUAVSpTSq/VY0AkKKiMTIAF+Xy5f dntPBWZr8sBqVPQnvY3IlLdMfNxYGzSwmwrwzfAmbvsjDh5qhrRtInbxICXBB7ocZ95/ EVFp+lMIqtveZRtPS8rrl+RPNA6XfohBmjGmS3t7QC/p9o8GJV4z9gPzfmPgyamDeJQR rUkw== X-Received: by 10.14.251.196 with SMTP id b44mr19311112ees.10.1384160996994; Mon, 11 Nov 2013 01:09:56 -0800 (PST) Original-Received: by 10.14.204.194 with HTTP; Mon, 11 Nov 2013 01:09:36 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22d X-Mailman-Approved-At: Mon, 11 Nov 2013 08:24:29 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94443 Archived-At: 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?