Package: yasnippet
Version: 0.6.1c-1
Severity: important

Dear Maintainer,

I have installed yasnippet on my Debian unstable installation and
tried to use yasnippet snippets in python-mode while editing python
files. I found that a few templates got expanded with wrong
indentation though the snippet file seems to have the correct
indentation.

Here are some examples:

prop<tab> expanded to

def foo():
    doc = """Doc string"""
    def fget(self):
        return self._foo
        def fset(self, value):
            self._foo = value
            def fdel(self):
                del self._foo
                return locals()
                foo = property(**foo())

instead of

def foo():
    doc = """Doc string"""
    def fget(self):
        return self._foo
    def fset(self, value):
        self._foo = value
    def fdel(self):
        del self._foo
    return locals()
foo = property(**foo())

which is expected based on what is defined in the snippets shipping
with yasnippet package. This issue is reproducible even when starting emacs
with -q option.

This issue is there even in the snippets like propg, propsg and etc.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages yasnippet depends on:
ii  emacs24 [emacsen]  24.3+1-4

yasnippet recommends no packages.

yasnippet suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to