unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* abbrev-mode and with-wrapper-hook on Windows
@ 2010-03-19 11:03 zwz
  2010-03-19 14:01 ` zwz
  0 siblings, 1 reply; 4+ messages in thread
From: zwz @ 2010-03-19 11:03 UTC (permalink / raw)
  To: emacs-devel

I just found a weird problem about the abbrev-mode on Windows. After I enable 
abbrev-mode, I cannot enter any characters but digits and letters, saying 
that "expand-abbrev: Invalid function: with-wrapper-hook". This problem does 
not happen on Linux. 

I googled and found some answers, like "make bootstrap". But in fact, this 
does not work on Windows, since I did compile the latest GNU emacs by "make 
bootstrap" with MSYS+MinGW.

And I tried:
1. eval the function "expand-abbrev" (in abbrev.el) by C-x C-e; then the error 
message chaged as "with-wrapper-hook: Symbol's function definition is void: 
labels". In a new-started emacs, however, I can see that the function "labels" 
is defined in cl-macs.el. I have no idea what else happened when I hit C-x C-e.

2. add (load "abbrev") in ~/.emacs; this solves the problem. Now I can use 
abbrev-mode, but I do not like this workaround. I hope somebody can help me 
figure out why and how.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: abbrev-mode and with-wrapper-hook on Windows
  2010-03-19 11:03 abbrev-mode and with-wrapper-hook on Windows zwz
@ 2010-03-19 14:01 ` zwz
  2010-03-19 14:12   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: zwz @ 2010-03-19 14:01 UTC (permalink / raw)
  To: emacs-devel

zwz <zhangweize <at> gmail.com> writes:

> 
> I just found a weird problem about the abbrev-mode on Windows. After I 
enable 
> abbrev-mode, I cannot enter any characters but digits and letters, saying 
> that "expand-abbrev: Invalid function: with-wrapper-hook". This problem does 
> not happen on Linux. 
> 
> I googled and found some answers, like "make bootstrap". But in fact, this 
> does not work on Windows, since I did compile the latest GNU emacs by "make 
> bootstrap" with MSYS+MinGW.

Here "latest" just means "GNU Emacs 23.1.90.1 (i386-mingw-nt6.0.6002)" :)
I pulled the *latest* one from bzr repository, and found it could not pass 
the "make bootstrap":
(after a list of very long compilation outputs)
oo-spd/i386/ctags.o:ctags.c:(.text+0x156e): undefined reference to 
`_imp__re_set_syntax'
oo-spd/i386/ctags.o:ctags.c:(.text+0x1592): undefined reference to 
`_imp__re_compile_pattern'
oo-spd/i386/ctags.o:ctags.c:(.text+0x162b): undefined reference to 
`_imp__re_set_syntax'
oo-spd/i386/ctags.o:ctags.c:(.text+0x1ded): undefined reference to 
`_imp__re_match'
oo-spd/i386/ctags.o:ctags.c:(.text+0x6ff0): undefined reference to 
`_imp__re_search'
collect2: ld returned 1 exit status

Has anyone got a solution?

> 
> And I tried:
> 1. eval the function "expand-abbrev" (in abbrev.el) by C-x C-e; then the 
error 
> message chaged as "with-wrapper-hook: Symbol's function definition is void: 
> labels". In a new-started emacs, however, I can see that the 
function "labels" 
> is defined in cl-macs.el. I have no idea what else happened when I hit C-x C-
e.
> 
> 2. add (load "abbrev") in ~/.emacs; this solves the problem. Now I can use 
> abbrev-mode, but I do not like this workaround. I hope somebody can help me 
> figure out why and how.
> 
> 








^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: abbrev-mode and with-wrapper-hook on Windows
  2010-03-19 14:01 ` zwz
@ 2010-03-19 14:12   ` Eli Zaretskii
  2010-03-19 18:26     ` zwz
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2010-03-19 14:12 UTC (permalink / raw)
  To: zwz; +Cc: emacs-devel

> From: zwz <zhangweize@gmail.com>
> Date: Fri, 19 Mar 2010 14:01:41 +0000 (UTC)
> 
> Here "latest" just means "GNU Emacs 23.1.90.1 (i386-mingw-nt6.0.6002)" :)
> I pulled the *latest* one from bzr repository, and found it could not pass 
> the "make bootstrap":
> (after a list of very long compilation outputs)
> oo-spd/i386/ctags.o:ctags.c:(.text+0x156e): undefined reference to 
> `_imp__re_set_syntax'
> oo-spd/i386/ctags.o:ctags.c:(.text+0x1592): undefined reference to 
> `_imp__re_compile_pattern'
> oo-spd/i386/ctags.o:ctags.c:(.text+0x162b): undefined reference to 
> `_imp__re_set_syntax'
> oo-spd/i386/ctags.o:ctags.c:(.text+0x1ded): undefined reference to 
> `_imp__re_match'
> oo-spd/i386/ctags.o:ctags.c:(.text+0x6ff0): undefined reference to 
> `_imp__re_search'
> collect2: ld returned 1 exit status
> 
> Has anyone got a solution?

Yes: you have an incompatible regex.h somewhere in your include
directories.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: abbrev-mode and with-wrapper-hook on Windows
  2010-03-19 14:12   ` Eli Zaretskii
@ 2010-03-19 18:26     ` zwz
  0 siblings, 0 replies; 4+ messages in thread
From: zwz @ 2010-03-19 18:26 UTC (permalink / raw)
  To: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: zwz <zhangweize@gmail.com>
>> Date: Fri, 19 Mar 2010 14:01:41 +0000 (UTC)
>> 
>> Here "latest" just means "GNU Emacs 23.1.90.1 (i386-mingw-nt6.0.6002)" :)
>> I pulled the *latest* one from bzr repository, and found it could not pass 
>> the "make bootstrap":
>> (after a list of very long compilation outputs)
>> oo-spd/i386/ctags.o:ctags.c:(.text+0x156e): undefined reference to 
>> `_imp__re_set_syntax'
>> oo-spd/i386/ctags.o:ctags.c:(.text+0x1592): undefined reference to 
>> `_imp__re_compile_pattern'
>> oo-spd/i386/ctags.o:ctags.c:(.text+0x162b): undefined reference to 
>> `_imp__re_set_syntax'
>> oo-spd/i386/ctags.o:ctags.c:(.text+0x1ded): undefined reference to 
>> `_imp__re_match'
>> oo-spd/i386/ctags.o:ctags.c:(.text+0x6ff0): undefined reference to 
>> `_imp__re_search'
>> collect2: ld returned 1 exit status
>> 
>> Has anyone got a solution?
>
> Yes: you have an incompatible regex.h somewhere in your include
> directories.

Thanks, now I am using GNU Emacs 24.0.50.1 (i386-mingw-nt6.0.6002)!
And everything works just fine.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-19 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 11:03 abbrev-mode and with-wrapper-hook on Windows zwz
2010-03-19 14:01 ` zwz
2010-03-19 14:12   ` Eli Zaretskii
2010-03-19 18:26     ` zwz

Code repositories for project(s) associated with this public inbox

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

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).