aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-25 13:23:17 +0200
committerEli Zaretskii2015-12-25 13:23:17 +0200
commit94a3606243d3923ac457aeff33f3ce82b65ef6cd (patch)
tree22c510879eebd1e466485acac9e33154f59ff408 /lisp
parentb2b84b166a7ac454850ab4832ef40a41dce74cf7 (diff)
downloademacs-94a3606243d3923ac457aeff33f3ce82b65ef6cd.tar.gz
emacs-94a3606243d3923ac457aeff33f3ce82b65ef6cd.zip
Fix bootstrap broken by changes related to OS X file-name encoding
* lisp/international/ucs-normalize.el (eval-when-compile): Make sure char-code-property-alist includes elements that allow access to 'decomposition' and 'canonical-combining-class' Unicode properties, as compiling ucs-normalize.el requires that. * lisp/loadup.el (featurep 'ns): Load ucs-normalize and ns-win only of charprop.el was already loaded. * src/Makefile.in ($(lispsource)/international/ucs-normalize.elc): New order-only dependency.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/international/ucs-normalize.el7
-rw-r--r--lisp/loadup.el8
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/international/ucs-normalize.el b/lisp/international/ucs-normalize.el
index 6f2fb2856da..de3c54534bd 100644
--- a/lisp/international/ucs-normalize.el
+++ b/lisp/international/ucs-normalize.el
@@ -176,6 +176,13 @@
176 (setq decomposition-pair-to-composition nil) 176 (setq decomposition-pair-to-composition nil)
177 (defvar non-starter-decompositions nil) 177 (defvar non-starter-decompositions nil)
178 (setq non-starter-decompositions nil) 178 (setq non-starter-decompositions nil)
179 ;; This file needs to access these 2 Unicode properties, but when we
180 ;; compile it during bootstrap, charprop.el was not built yet, and
181 ;; therefore is not yet loaded into bootstrap-emacs, so
182 ;; char-code-property-alist is nil, and get-char-code-property
183 ;; always returns nil, something the code here doesn't like.
184 (define-char-code-property 'decomposition "uni-decomposition.el")
185 (define-char-code-property 'canonical-combining-class "uni-combining.el")
179 (let ((char 0) ccc decomposition) 186 (let ((char 0) ccc decomposition)
180 (mapc 187 (mapc
181 (lambda (start-end) 188 (lambda (start-end)
diff --git a/lisp/loadup.el b/lisp/loadup.el
index dda433e4eaf..a58d04223ea 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -276,8 +276,12 @@
276(if (featurep 'ns) 276(if (featurep 'ns)
277 (progn 277 (progn
278 (load "term/common-win") 278 (load "term/common-win")
279 (load "international/ucs-normalize") 279 ;; Don't load ucs-normalize.el unless uni-*.el files were
280 (load "term/ns-win"))) 280 ;; already produced, because it needs uni-*.el files that might
281 ;; not be built early enough during bootstrap.
282 (when (load-history-filename-element "charprop\\.el")
283 (load "international/ucs-normalize")
284 (load "term/ns-win"))))
281(if (fboundp 'x-create-frame) 285(if (fboundp 'x-create-frame)
282 ;; Do it after loading term/foo-win.el since the value of the 286 ;; Do it after loading term/foo-win.el since the value of the
283 ;; mouse-wheel-*-event vars depends on those files being loaded or not. 287 ;; mouse-wheel-*-event vars depends on those files being loaded or not.