From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zwz Newsgroups: gmane.emacs.devel Subject: Re: abbrev-mode and with-wrapper-hook on Windows Date: Fri, 19 Mar 2010 14:01:41 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269007435 12694 80.91.229.12 (19 Mar 2010 14:03:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Mar 2010 14:03:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 19 15:03:51 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nscnl-0004M1-S0 for ged-emacs-devel@m.gmane.org; Fri, 19 Mar 2010 15:03:50 +0100 Original-Received: from localhost ([127.0.0.1]:34333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nscni-0002m8-P9 for ged-emacs-devel@m.gmane.org; Fri, 19 Mar 2010 10:03:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NscnZ-0002lJ-JQ for emacs-devel@gnu.org; Fri, 19 Mar 2010 10:03:37 -0400 Original-Received: from [140.186.70.92] (port=52211 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NscnX-0002kD-R8 for emacs-devel@gnu.org; Fri, 19 Mar 2010 10:03:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nscm7-0004Hl-E5 for emacs-devel@gnu.org; Fri, 19 Mar 2010 10:02:08 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56813) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nscm6-0004HT-Vt for emacs-devel@gnu.org; Fri, 19 Mar 2010 10:02:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nscm1-00036D-SP for emacs-devel@gnu.org; Fri, 19 Mar 2010 15:02:02 +0100 Original-Received: from 60.191.2.238 ([60.191.2.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Mar 2010 15:02:01 +0100 Original-Received: from zhangweize by 60.191.2.238 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Mar 2010 15:02:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 60.191.2.238 (Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; eSobiSubscriber 2.0.4.16; .NET CLR 3.5.30729; .NET CLR 3.0.30729)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122280 Archived-At: zwz 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. > >