From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Need help in upgrade from emacs 23.1 to 23.2 Date: Mon, 10 May 2010 08:20:19 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <878w7svhss.fsf@rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273444852 32406 80.91.229.12 (9 May 2010 22:40:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 May 2010 22:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 10 00:40:51 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@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 1OBFB2-0007We-C0 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 May 2010 00:40:48 +0200 Original-Received: from localhost ([127.0.0.1]:43609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBFB1-00051X-Or for geh-help-gnu-emacs@m.gmane.org; Sun, 09 May 2010 18:40:47 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:YLF6iyeF0TzeEC4uId4a6Ap4bzc= Original-Lines: 61 Original-NNTP-Posting-Host: 5bdfad9e.news.astraweb.com Original-X-Trace: DXC=lBF List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73617 Archived-At: hap 497 writes: > Hi, > > i am using emacs 23.1 on ubuntu 10.04. > And after 23.2 release, i have download and compiled it under ubuntu 10.04. > > But when I start emacs 23.2 (using the same .emacs file works for > emacs 23.1). I get the following error: > Debugger entered--Lisp error: (wrong-number-of-arguments #[(&optional > arg) "\306 \307=\203 > > > ?\202( > \204\"10\316\323\324\"\210\202N326 \315211\203x > \203he--(13%) > \203\2032\203\251 > \203\246 > \207" [last-message arg global-font-lock-mode buf --dolist-tail-- font-lock-mode > current-message toggle prefix-numeric-value 0 t message "Toggling %s off; bette > r pass an explicit argument." nil add-hook after-change-major-mode-hook global-f > ont-lock-mode-enable-in-buffers find-file-hook global-font-lock-mode-check-buffe > rs change-major-mode-hook global-font-lock-mode-cmhh remove-hook buffer-list tur > n-on-font-lock-if-desired -1 run-hooks global-font-lock-mode-hook global-font-lo > ck-mode-on-hook global-font-lock-mode-off-hook called-interactively-p any custom > ize-mark-as-set "Global-Font-Lock mode %sabled" "en" "dis" force-mode-line-updat > e] 4 2242414 (list (or current-prefix-arg (quote toggle)))] 2) > global-font-lock-mode(1 ON) > eval-buffer(# nil "/home/scheung/.emacs" nil t) ; Reading at > buffer position 1230 > load-with-code-conversion("/home/scheung/.emacs" "/home/scheung/.emacs" t t) > load("~/.emacs" t t) > #[nil \205\264 > \321=\203_30\232\203\244ile-1 user-init-file otherfile > source ms-dos "~" "/_emacs" windows-nt directory- > files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_ema > cs" "/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" > file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newe > r-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" alt inh > ibit-default-init inhibit-startup-screen] 7]() > command-line() > normal-top-level() > If you are replacing a ubuntu build of emacs with one you are building yourself, there are some patches which need to be applied. In particular, the startup.el file needs to be modified to include the debian-flavor variable and the subsequent library load process needs to be modified to use this information. There are other patches, but I find just modifying the startup.el file works fine for a home built version. What I do is grep startup.el from emacs 23.1 for the string debian. I then modify the emacs 23.2 startup.el to include the same bits and then do the build. Tim -- tcross (at) rapttech dot com dot au