From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Splitting and moving generic.el. Date: Wed, 20 Apr 2005 12:50:36 +0200 Message-ID: <87acntwwlf.fsf@xs4all.nl> References: <42661B71.6010504@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113994389 27588 80.91.229.2 (20 Apr 2005 10:53:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 10:53:09 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 12:53:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOCoR-00063M-PM for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 12:52:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOCsw-0007Mj-AD for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 06:56:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOCqd-0006vq-7b for emacs-devel@gnu.org; Wed, 20 Apr 2005 06:54:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOCqc-0006vU-A4 for emacs-devel@gnu.org; Wed, 20 Apr 2005 06:54:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOCqa-0006un-N2 for emacs-devel@gnu.org; Wed, 20 Apr 2005 06:54:21 -0400 Original-Received: from [194.109.24.35] (helo=smtp-vbr15.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DOCpL-0000es-Gl; Wed, 20 Apr 2005 06:53:04 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr15.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3KAobt5051325; Wed, 20 Apr 2005 12:50:37 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DOCmz-0002Sr-00; Wed, 20 Apr 2005 12:50:37 +0200 Original-To: Jason Rumney In-Reply-To: <42661B71.6010504@gnu.org> (Jason Rumney's message of "Wed, 20 Apr 2005 10:05:53 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 50 X-Virus-Scanned: by XS4ALL Virus Scanner 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:36151 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36151 Jason Rumney writes: > For some reason I'm missing all mail to emacs-devel between 4 April > and 8 April, so I had to look into the archives to find this being > discussed. > > 2005-04-05 Lute Kamstra > > * generic.el: Commentary section cleanup. > (generic): Delete. > (generic-use-find-file-hook, generic-lines-to-scan) > (generic-find-file-regexp, generic-ignore-files-regexp) > (default-generic-mode, generic-mode-find-file-hook) > (generic-mode-ini-file-find-file-hook): Move to generic-x.el. > * generic-x.el (generic-x): Docstring fix. Put it in the data group. > (generic-use-find-file-hook, generic-lines-to-scan) > (generic-find-file-regexp, generic-ignore-files-regexp) > (default-generic-mode, generic-mode-find-file-hook) > (generic-mode-ini-file-find-file-hook): Moved from generic.el. > > > This change seems to have caused problems. The only reference in my > .emacs to generic is a > > (require 'generic-x) > > which used to give me some extra generic based modes. > > Now it just gives me an error: > > Loading generic...done > > An error has occured while loading ~/.emacs: > > Symbol's value as variable is void: default-generic-mode Doing (require 'generic-x) shouldn't load generic unless generic-x is loaded from source. Any idea why your lisp/generic-x.el isn't compiled? The error suggests that an old version of generic is used (from before define-generic-mode became a macro, one month ago). Do you have lisp/emacs-lisp/generic.el, revision 1.1? Is your lisp/emacs-lisp/generic.elc up to date? Is an old lisp/generic.el{,c} shadowing lisp/emacs-lisp/generic.el{,c}? Can you reproduce your problem when you (do a make bootstrap and) start Emacs with "emacs -Q" and do (require 'generic-x) manually? Lute.