From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Sat, 28 Mar 2020 12:18:06 +0000 Message-ID: <20200328121806.GD7449@ACM> References: <20200322123818.GB32470@ACM> <87eetk5swm.fsf@gnu.org> <20200326193128.GC14092@ACM> <86d08y4zsx.fsf@gmail.com> <83wo768eq5.fsf@gnu.org> <838sjl7y60.fsf@gnu.org> <20200328114301.GB7449@ACM> <83o8sg7khq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="97996"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: rrandresf@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 28 13:18:45 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIAQH-000PP3-B4 for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 13:18:45 +0100 Original-Received: from localhost ([::1]:52694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAQG-0007LN-Cp for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 08:18:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49038) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAPk-0006vg-EC for emacs-devel@gnu.org; Sat, 28 Mar 2020 08:18:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIAPj-0006Ef-AN for emacs-devel@gnu.org; Sat, 28 Mar 2020 08:18:12 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:11700 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1jIAPj-0006EC-1n for emacs-devel@gnu.org; Sat, 28 Mar 2020 08:18:11 -0400 Original-Received: (qmail 69930 invoked by uid 3782); 28 Mar 2020 12:18:10 -0000 Original-Received: from acm.muc.de (p2E5D54D7.dip0.t-ipconnect.de [46.93.84.215]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 28 Mar 2020 13:18:06 +0100 Original-Received: (qmail 7534 invoked by uid 1000); 28 Mar 2020 12:18:06 -0000 Content-Disposition: inline In-Reply-To: <83o8sg7khq.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245867 Archived-At: Hello, Eli. On Sat, Mar 28, 2020 at 15:05:21 +0300, Eli Zaretskii wrote: > > Date: Sat, 28 Mar 2020 11:43:01 +0000 > > Cc: rms@gnu.org, rrandresf@gmail.com, emacs-devel@gnu.org > > From: Alan Mackenzie > > (defvar loaded-cc-version nil) > > (defun load-cc-version (dir) > > "Load the version of CC Mode contained in directory DIR." > > (interactive "D") > > (or (string-match "/$" dir) > > (setq dir (concat dir "/"))) > > (let (fname) > > ;; `c-fallback-style' gets stuff pushed onto it by loading cc-vars. So > > ;; clear it out first, after a quick and dirty sanity check. > > (if (file-exists-p (concat dir "cc-vars.elc")) > > (setq c-fallback-style nil)) > > (mapc (lambda (f) > > (condition-case err > > (load-file (setq fname (concat dir "cc-" f ".elc"))) > > (error (message "Couldn't load %s" fname)))) > > '("defs" "vars" "fix" "engine" "cmds" "menus" > > "align" "styles" "awk" "fonts" "mode" > > "subword" "bytecomp" "compat" "guess")) > > (setq loaded-cc-version dir))) > Thanks, but when I use this command to load CC Mode from Emacs 23.4, > and then visit xdisp.c, I get an error message: > File mode specification error: (void-function make-local-hook) > and CC mode is not turned on. What am I missing? make-local-hook was removed from Emacs in around 2010. I think it still exists in XEmacs (as much as anything can still be said to exist there). If you can give me some time to eat my lunch, I'll seek out the workaround I must have introduced some time after Emacs 23.4. There may be one or two other obsolete variables/functions which may now need workarounds to allow timing of the old CC Mode versions. -- Alan Mackenzie (Nuremberg, Germany).