From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Sat, 28 Mar 2020 15:05:21 +0300 Message-ID: <83o8sg7khq.fsf@gnu.org> References: <86tv2h2vww.fsf@gmail.com> <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> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="49172"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rrandresf@gmail.com, rms@gnu.org, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 28 13:06:15 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 1jIAEB-000CiF-RP for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 13:06:15 +0100 Original-Received: from localhost ([::1]:52644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIAEA-0004xB-T7 for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Mar 2020 08:06:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47643) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIADR-0004T1-JI for emacs-devel@gnu.org; Sat, 28 Mar 2020 08:05:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIADR-0007Ec-8V; Sat, 28 Mar 2020 08:05:29 -0400 Original-Received: from [176.228.60.248] (port=3541 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jIADF-0007Qn-7t; Sat, 28 Mar 2020 08:05:19 -0400 In-Reply-To: <20200328114301.GB7449@ACM> (message from Alan Mackenzie on Sat, 28 Mar 2020 11:43:01 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:245866 Archived-At: > 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?