* abbrev mode not working
@ 2014-04-16 8:18 Florian Lindner
2014-04-19 7:40 ` Andreas Röhler
0 siblings, 1 reply; 6+ messages in thread
From: Florian Lindner @ 2014-04-16 8:18 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
on emacs 24.3.1 I have trouble using the abbrev mode.
emacs -Q
M-x python-mode
M-x abbrev-mode
typing "pdb", nothing happens.
Though my ~/.emacs.d/abbrev_defs contains:
;;-*-coding: utf-8;-*-
(define-abbrev-table 'python-mode-abbrev-table
'(
("pdb" "pdb.set_trace()" nil 0)
))
If starting emacs without -Q behaviour is the same. Saving the abbrevs
to the global-abbrev-table does not make a difference either.
What could be wrong there?
Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: abbrev mode not working
2014-04-16 8:18 abbrev mode not working Florian Lindner
@ 2014-04-19 7:40 ` Andreas Röhler
2014-04-20 13:39 ` Florian Lindner
[not found] ` <mailman.19922.1398001214.10748.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Röhler @ 2014-04-19 7:40 UTC (permalink / raw)
To: help-gnu-emacs
Am 16.04.2014 10:18, schrieb Florian Lindner:
> Hello,
>
> on emacs 24.3.1 I have trouble using the abbrev mode.
>
> emacs -Q
> M-x python-mode
> M-x abbrev-mode
This toggles abbrev-mode.
If abbrev-mode was on by init, it's now off.
What does the status bare tell WRT abbrev-mode?
>
> typing "pdb", nothing happens.
Just typing an abbrev does nothing. Needs <space> to expand, for example.
>
> Though my ~/.emacs.d/abbrev_defs contains:
>
> ;;-*-coding: utf-8;-*-
>
> (define-abbrev-table 'python-mode-abbrev-table
> '(
> ("pdb" "pdb.set_trace()" nil 0)
> ))
>
>
> If starting emacs without -Q behaviour is the same. Saving the abbrevs to the global-abbrev-table does not make a difference either.
>
> What could be wrong there?
>
> Thanks!
>
>
Does this solve it already?
Andreas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: abbrev mode not working
2014-04-19 7:40 ` Andreas Röhler
@ 2014-04-20 13:39 ` Florian Lindner
2014-04-21 8:34 ` Andreas Röhler
[not found] ` <mailman.19922.1398001214.10748.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 6+ messages in thread
From: Florian Lindner @ 2014-04-20 13:39 UTC (permalink / raw)
To: help-gnu-emacs
Am Samstag, 19. April 2014, 09:40:08 schrieb Andreas Röhler:
> Am 16.04.2014 10:18, schrieb Florian Lindner:
> > Hello,
> >
> > on emacs 24.3.1 I have trouble using the abbrev mode.
> >
> > emacs -Q
> > M-x python-mode
> > M-x abbrev-mode
>
> This toggles abbrev-mode.
> If abbrev-mode was on by init, it's now off.
That's why I invoked emacs using -Q.
> What does the status bare tell WRT abbrev-mode?
i enabled abbrev-mode, Abbrev is shown in the status bar.
> > typing "pdb", nothing happens.
>
> Just typing an abbrev does nothing. Needs <space> to expand, for example.
Sure.
> > Though my ~/.emacs.d/abbrev_defs contains:
> >
> > ;;-*-coding: utf-8;-*-
> >
> > (define-abbrev-table 'python-mode-abbrev-table
> > '(
> > ("pdb" "pdb.set_trace()" nil 0)
> > ))
> Does this solve it already?
Sorry, no.
Thanks!
Florian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: abbrev mode not working
[not found] ` <mailman.19922.1398001214.10748.help-gnu-emacs@gnu.org>
@ 2014-04-20 13:50 ` Stefan Monnier
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2014-04-20 13:50 UTC (permalink / raw)
To: help-gnu-emacs
>> > M-x python-mode
>> > M-x abbrev-mode
I think this is a known problem with 24.3.
You can probably work around it by (setq python-skeleton-autoinsert t)
But please try the 24.4 pretest (i.e. 24.3.90) to make sure it'll be
fixed in 24.4 (and if the problem remains, make it a bug report).
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: abbrev mode not working
2014-04-20 13:39 ` Florian Lindner
@ 2014-04-21 8:34 ` Andreas Röhler
2014-04-21 9:41 ` Andreas Röhler
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Röhler @ 2014-04-21 8:34 UTC (permalink / raw)
To: help-gnu-emacs
Am 20.04.2014 15:39, schrieb Florian Lindner:
> Am Samstag, 19. April 2014, 09:40:08 schrieb Andreas Röhler:
>> Am 16.04.2014 10:18, schrieb Florian Lindner:
>>> Hello,
>>>
>>> on emacs 24.3.1 I have trouble using the abbrev mode.
>>>
>>> emacs -Q
>>> M-x python-mode
>>> M-x abbrev-mode
>>
>> This toggles abbrev-mode.
>> If abbrev-mode was on by init, it's now off.
>
> That's why I invoked emacs using -Q.
>
>> What does the status bare tell WRT abbrev-mode?
>
> i enabled abbrev-mode, Abbrev is shown in the status bar.
>
>>> typing "pdb", nothing happens.
>>
>> Just typing an abbrev does nothing. Needs <space> to expand, for example.
>
> Sure.
>
>>> Though my ~/.emacs.d/abbrev_defs contains:
>>>
>>> ;;-*-coding: utf-8;-*-
>>>
>>> (define-abbrev-table 'python-mode-abbrev-table
>>> '(
>>> ("pdb" "pdb.set_trace()" nil 0)
>>> ))
>
>> Does this solve it already?
>
> Sorry, no.
>
> Thanks!
> Florian
>
>
Using abbrevs heavily with python-mode.el, you may give it a try.
https://launchpad.net/python-mode
As it doesn't unload python.el, it's a little bit strange seeing abbrevs working that way, but so it is.
BTW you should be able to run the python.el commands used to while
expanding python-mode.el based abbrevs.
Cheers,
Andreas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: abbrev mode not working
2014-04-21 8:34 ` Andreas Röhler
@ 2014-04-21 9:41 ` Andreas Röhler
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Röhler @ 2014-04-21 9:41 UTC (permalink / raw)
To: help-gnu-emacs
Am 21.04.2014 10:34, schrieb Andreas Röhler:
> Am 20.04.2014 15:39, schrieb Florian Lindner:
> As it doesn't unload python.el, it's a little bit strange seeing abbrevs working that way, but so it is.
> BTW you should be able to run the python.el commands used to while
> expanding python-mode.el based abbrevs.
To be precise `python-mode-map' is re-defined by python-mode.el using setq - however shouldn't be at stake here.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-04-21 9:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 8:18 abbrev mode not working Florian Lindner
2014-04-19 7:40 ` Andreas Röhler
2014-04-20 13:39 ` Florian Lindner
2014-04-21 8:34 ` Andreas Röhler
2014-04-21 9:41 ` Andreas Röhler
[not found] ` <mailman.19922.1398001214.10748.help-gnu-emacs@gnu.org>
2014-04-20 13:50 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).