[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs rendering comparisson between emacs23 and emacs26.3
From: |
Eli Zaretskii |
Subject: |
Re: emacs rendering comparisson between emacs23 and emacs26.3 |
Date: |
Sat, 28 Mar 2020 15:05:21 +0300 |
> Date: Sat, 28 Mar 2020 11:43:01 +0000
> Cc: address@hidden, address@hidden, address@hidden
> From: Alan Mackenzie <address@hidden>
>
> (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?
- Re: emacs rendering comparisson between emacs23 and emacs26.3, (continued)
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/03/26
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Stefan Monnier, 2020/03/26
- Re: emacs rendering comparisson between emacs23 and emacs26.3, rrandresf, 2020/03/26
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/03/27
- Re: emacs rendering comparisson between emacs23 and emacs26.3, andrés ramírez, 2020/03/27
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Richard Stallman, 2020/03/27
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3,
Eli Zaretskii <=
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, andrés ramírez, 2020/03/29
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Stefan Monnier, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Stefan Monnier, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Richard Stallman, 2020/03/27
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Michael Albinus, 2020/03/28
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/03/28