all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: abbrev-mode can't work in python-mode
Date: Mon, 11 Nov 2013 16:43:34 +0100	[thread overview]
Message-ID: <5280FB26.1050701@easy-emacs.de> (raw)
In-Reply-To: <CAHvdkjgM1GV4p8VRDNGy21JuUHe6S1yR9-i+3NHBYHQ81dgi8A@mail.gmail.com>

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?



  reply	other threads:[~2013-11-11 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-11  9:09 abbrev-mode can't work in python-mode Yu Yang
2013-11-11 15:43 ` Andreas Röhler [this message]
     [not found]   ` <CAHvdkjgMhx8EEUnQOU1DMEWM9hFA65g1tCpP-kU+c5XxqbCZug@mail.gmail.com>
2013-11-12  7:15     ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5280FB26.1050701@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.