From: phillip.lord@russet.org.uk (Phillip Lord)
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25360@debbugs.gnu.org
Subject: bug#25360: File mode specification errors during building
Date: Fri, 13 Jan 2017 14:08:55 +0000 [thread overview]
Message-ID: <87inpj1288.fsf@russet.org.uk> (raw)
In-Reply-To: <83ziiyda4y.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Jan 2017 20:48:13 +0200")
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> From: phillip.lord@russet.org.uk (Phillip Lord)
>> Cc: rgm@gnu.org, 25360@debbugs.gnu.org
>> Date: Tue, 10 Jan 2017 18:40:28 +0000
>>
>> One error is caused when bootstrap-emacs loads CTLau.html, when it's
>> running this code in leim.
>>
>> misc_convert = $(AM_V_GEN)${RUN_EMACS} \
>> -l titdic-cnv -f batch-miscdic-convert -dir ${leimdir}/quail
>>
>> ## CTLau.el, CTLau-b5.el.
>> ${leimdir}/quail/CT%.el: ${srcdir}/MISC-DIC/CT%.html
>> ${misc_convert} $<
>>
>> As far as I can tell it is happening because emacs tries to put
>> CTLau.html into html-mode. AFAICT, batch-miscdic-convert uses no
>> features of html-mode.
>
> Ok, and how does image-type-auto-detected-p enter this picture?
>
>> Still, I'll plug at it a little more.
>
> Thanks.
So, the cause of the problem is this. bootstrap-emacs (nor emacs) does
not actually load loaddefs.el; it's just dumped with the binary. I was
recording autoloads until loaddefs.el was generated, but actually, I
need to record them till loaddefs.el is used, that is when emacs is
dumped.
The attached patch seems to address. Can you confirm, then I will apply
to master.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Record-autoloads-till-emacs-dump.patch --]
[-- Type: text/x-diff, Size: 7406 bytes --]
From 74539c444487094e45a0dd1b4cdb4553eb9cdfe1 Mon Sep 17 00:00:00 2001
From: Phillip Lord <phillip.lord@russet.org.uk>
Date: Fri, 13 Jan 2017 13:57:51 +0000
Subject: [PATCH] Record autoloads till emacs dump
* admin/ldefs-clean.el (ldefs-clean-up): Record autoloads till emacs dump
* lisp/ldefs-boot-auto.el (batch-byte-compile): Update
Previously, autoloads were collected till loaddefs.el was generated as
part of the build. However, bootstrap-emacs does not load
loaddefs (rather it is dumped), hence we must record autoloads until the
full emacs binary is dumped.
---
admin/ldefs-clean.el | 3 ++-
lisp/ldefs-boot-auto.el | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/admin/ldefs-clean.el b/admin/ldefs-clean.el
index 6eabe57..808b537 100644
--- a/admin/ldefs-clean.el
+++ b/admin/ldefs-clean.el
@@ -39,7 +39,8 @@ ldefs-clean-up
(goto-char (point-max))
;; We only need the autoloads up till loaddefs.el is
;; generated. After this, ldefs-boot.el is not needed
- (search-backward " GEN loaddefs.el")
+ (search-backward "-l loadup dump")
+ (beginning-of-line)
(delete-region (point) (point-max))
(keep-lines "(autoload" (point-min) (point-max))
(sort-lines nil (point-min) (point-max))
diff --git a/lisp/ldefs-boot-auto.el b/lisp/ldefs-boot-auto.el
index 914fec8..020c670 100644
--- a/lisp/ldefs-boot-auto.el
+++ b/lisp/ldefs-boot-auto.el
@@ -6,6 +6,8 @@
(autoload 'add-change-log-entry "add-log" nil nil nil)
(autoload 'add-log-current-defun "add-log" nil nil nil)
(autoload 'batch-byte-compile "bytecomp" nil nil nil)
+(autoload 'batch-update-autoloads "autoload" nil nil nil)
+(autoload 'bounds-of-thing-at-point "thingatpt" nil nil nil)
(autoload 'browse-url "browse-url" nil nil nil)
(autoload 'buffer-face-mode "face-remap" nil nil nil)
(autoload 'byte-compile "bytecomp" nil nil nil)
@@ -24,11 +26,16 @@
(autoload 'compilation-mode "compile" nil nil nil)
(autoload 'compilation-shell-minor-mode "compile" nil nil nil)
(autoload 'compilation-start "compile" nil nil nil)
+(autoload 'completing-read-multiple "crm" nil nil nil)
+(autoload 'conf-mode "conf-mode" nil nil nil)
+(autoload 'create-glyph "disp-table" nil nil nil)
(autoload 'create-image "image" nil nil nil)
+(autoload 'cursor-sensor-mode "cursor-sensor" nil nil nil)
(autoload 'custom-save-all "cus-edit" nil nil nil)
(autoload 'customize-face "cus-edit" nil nil nil)
(autoload 'customize-group "cus-edit" nil nil nil)
(autoload 'customize-option "cus-edit" nil nil nil)
+(autoload 'customize-push-and-save "cus-edit" nil nil nil)
(autoload 'customize-set-variable "cus-edit" nil nil nil)
(autoload 'debug "debug" nil nil nil)
(autoload 'define-ccl-program "ccl" nil nil t)
@@ -36,6 +43,8 @@
(autoload 'define-minor-mode "easy-mmode" nil nil t)
(autoload 'delete-extract-rectangle "rect" nil nil nil)
(autoload 'describe-char "descr-text" nil nil nil)
+(autoload 'describe-coding-system "mule-diag" nil nil nil)
+(autoload 'describe-display-table "disp-table" nil nil nil)
(autoload 'describe-function "help-fns" nil nil nil)
(autoload 'describe-function-1 "help-fns" nil nil nil)
(autoload 'describe-package "package" nil nil nil)
@@ -43,11 +52,21 @@
(autoload 'desktop-save "desktop" nil nil nil)
(autoload 'diff-mode "diff-mode" nil nil nil)
(autoload 'dired "dired" nil nil nil)
+(autoload 'dired-copy-file "dired-aux" nil nil nil)
+(autoload 'dired-goto-subdir "dired-aux" nil nil nil)
+(autoload 'dired-hide-subdir "dired-aux" nil nil nil)
+(autoload 'dired-insert-subdir "dired-aux" nil nil nil)
+(autoload 'dired-kill-subdir "dired-aux" nil nil nil)
+(autoload 'dired-mark-subdir-files "dired-aux" nil nil nil)
(autoload 'dired-mode "dired" nil nil nil)
(autoload 'dired-noselect "dired" nil nil nil)
+(autoload 'dired-query "dired-aux" nil nil nil)
+(autoload 'dired-rename-file "dired-aux" nil nil nil)
(autoload 'display-call-tree "bytecomp" nil nil nil)
+(autoload 'display-table-slot "disp-table" nil nil nil)
(autoload 'display-warning "warnings" nil nil nil)
(autoload 'easy-menu-create-menu "easymenu" nil nil nil)
+(autoload 'edebug-basic-spec "edebug" nil nil nil)
(autoload 'ediff-patch-file "ediff" nil nil nil)
(autoload 'edit-kbd-macro "edmacro" nil nil nil)
(autoload 'extract-rectangle "rect" nil nil nil)
@@ -67,8 +86,10 @@
(autoload 'help-with-tutorial "tutorial" nil nil nil)
(autoload 'help-xref-button "help-mode" nil nil nil)
(autoload 'hi-lock-face-buffer "hi-lock" nil nil nil)
+(autoload 'html-mode "sgml-mode" nil nil nil)
(autoload 'image-type-available-p "image" nil nil nil)
(autoload 'info "info" nil nil nil)
+(autoload 'info-complete-symbol "info-look" nil nil nil)
(autoload 'info-emacs-manual "info" nil nil nil)
(autoload 'insert-image "image" nil nil nil)
(autoload 'insert-rectangle "rect" nil nil nil)
@@ -83,21 +104,27 @@
(autoload 'multi-isearch-buffers-regexp "misearch" nil nil nil)
(autoload 'multi-isearch-files "misearch" nil nil nil)
(autoload 'multi-isearch-files-regexp "misearch" nil nil nil)
+(autoload 'nxml-mode "nxml-mode" nil nil nil)
(autoload 'open-network-stream "network-stream" nil nil nil)
(autoload 'package-initialize "package" nil nil nil)
(autoload 'parse-time-string "parse-time" nil nil nil)
(autoload 'pp "pp" nil nil nil)
(autoload 'pp-buffer "pp" nil nil nil)
+(autoload 'print-buffer "lpr" nil nil nil)
+(autoload 'quail-defrule-internal "quail" nil nil nil)
(autoload 'read-kbd-macro "edmacro" nil nil nil)
(autoload 'regexp-opt "regexp-opt" nil nil nil)
(autoload 'rx "rx" nil nil t)
(autoload 'seconds-to-string "time-date" nil nil nil)
(autoload 'seconds-to-time "time-date" nil nil nil)
+(autoload 'server-save-buffers-kill-terminal "server" nil nil nil)
(autoload 'server-start "server" nil nil nil)
(autoload 'set-nested-alist "mule-util" nil nil nil)
+(autoload 'skeleton-insert "skeleton" nil nil nil)
(autoload 'smerge-mode "smerge-mode" nil nil nil)
(autoload 'smerge-start-session "smerge-mode" nil nil nil)
(autoload 'standard-display-8bit "disp-table" nil nil nil)
+(autoload 'standard-display-default "disp-table" nil nil nil)
(autoload 'tags-query-replace "etags" nil nil nil)
(autoload 'tags-search "etags" nil nil nil)
(autoload 'text-scale-increase "face-remap" nil nil nil)
@@ -106,6 +133,12 @@
(autoload 'timezone-make-date-arpa-standard "timezone" nil nil nil)
(autoload 'tmm-menubar "tmm" nil nil nil)
(autoload 'truncate-string-to-width "mule-util" nil nil nil)
+(autoload 'ucs-normalize-HFS-NFC-region "ucs-normalize" nil nil nil)
+(autoload 'ucs-normalize-HFS-NFD-region "ucs-normalize" nil nil nil)
+(autoload 'ucs-normalize-NFC-region "ucs-normalize" nil nil nil)
+(autoload 'ucs-normalize-NFD-region "ucs-normalize" nil nil nil)
+(autoload 'ucs-normalize-NFKC-region "ucs-normalize" nil nil nil)
+(autoload 'ucs-normalize-NFKD-region "ucs-normalize" nil nil nil)
(autoload 'url-handler-mode "url-handlers" nil nil nil)
(autoload 'variable-at-point "help-fns" nil nil nil)
(autoload 'vc-register "vc" nil nil nil)
@@ -114,6 +147,7 @@
(autoload 'view-buffer "view" nil nil nil)
(autoload 'view-buffer-other-window "view" nil nil nil)
(autoload 'view-file "view" nil nil nil)
+(autoload 'view-mode "view" nil nil nil)
(autoload 'view-mode-enter "view" nil nil nil)
(autoload 'visit-tags-table "etags" nil nil nil)
(autoload 'warn "warnings" nil nil nil)
--
2.7.4
next prev parent reply other threads:[~2017-01-13 14:08 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 20:28 bug#25360: File mode specification errors during building Glenn Morris
2017-01-07 8:03 ` Eli Zaretskii
2017-01-09 13:06 ` Phillip Lord
2017-01-10 10:21 ` Phillip Lord
2017-01-10 15:13 ` Eli Zaretskii
2017-01-10 18:40 ` Phillip Lord
2017-01-10 18:48 ` Eli Zaretskii
2017-01-13 14:08 ` Phillip Lord [this message]
2017-01-13 14:19 ` Eli Zaretskii
2017-01-13 21:31 ` Phillip Lord
2017-01-14 19:09 ` Glenn Morris
2017-01-15 22:05 ` Phillip Lord
2017-01-15 23:53 ` npostavs
2017-01-16 0:07 ` Phillip Lord
2017-01-16 0:27 ` npostavs
2017-01-17 17:38 ` Glenn Morris
2017-01-17 21:49 ` Phillip Lord
2017-01-17 17:42 ` Glenn Morris
2017-01-17 22:04 ` Phillip Lord
2017-01-18 1:11 ` npostavs
2017-01-19 10:45 ` Phillip Lord
2017-01-19 16:05 ` Eli Zaretskii
2017-01-19 17:06 ` Noam Postavsky
2017-01-20 13:43 ` Phillip Lord
2017-01-21 21:11 ` Phillip Lord
2017-01-23 12:44 ` Phillip Lord
2017-01-23 14:16 ` npostavs
2017-01-24 12:42 ` Phillip Lord
2017-01-24 13:12 ` npostavs
2017-01-23 15:38 ` Eli Zaretskii
2017-01-24 12:51 ` Phillip Lord
2017-01-24 15:52 ` Eli Zaretskii
2017-02-06 10:31 ` Phillip Lord
2017-02-06 15:41 ` Eli Zaretskii
2017-02-13 2:06 ` Glenn Morris
2017-02-13 2:15 ` Glenn Morris
2017-02-13 2:22 ` Glenn Morris
2017-02-14 13:46 ` Phillip Lord
2017-02-19 0:36 ` Glenn Morris
2017-02-19 21:40 ` Phillip Lord
2017-02-22 19:08 ` Glenn Morris
2017-03-01 16:55 ` Phillip Lord
2017-03-02 15:20 ` Eli Zaretskii
2017-03-02 17:57 ` martin rudalics
2017-03-02 20:12 ` Eli Zaretskii
2017-03-04 10:02 ` Eli Zaretskii
2017-03-04 10:32 ` Phillip Lord
2017-03-04 11:11 ` Eli Zaretskii
2017-03-04 11:28 ` Eli Zaretskii
2017-03-06 15:33 ` Phillip Lord
2017-03-06 19:56 ` Noam Postavsky
2017-03-06 20:53 ` Eli Zaretskii
2017-03-06 21:10 ` Noam Postavsky
2017-03-06 21:25 ` Phillip Lord
2017-03-07 3:31 ` Eli Zaretskii
2017-03-07 12:26 ` Phillip Lord
2017-03-07 15:28 ` Phillip Lord
2017-03-07 16:01 ` Eli Zaretskii
2017-03-07 18:25 ` Noam Postavsky
2017-03-07 19:35 ` Phillip Lord
2017-03-08 12:31 ` Phillip Lord
2017-03-07 15:51 ` Eli Zaretskii
2017-03-05 18:26 ` Andy Moreton
2017-03-05 18:58 ` Phillip Lord
2017-03-05 20:08 ` Eli Zaretskii
2017-03-06 12:07 ` Andy Moreton
2017-03-06 16:31 ` Phillip Lord
2017-03-06 23:26 ` Andy Moreton
2017-03-06 16:30 ` Phillip Lord
2017-03-06 18:38 ` Eli Zaretskii
2017-01-25 22:46 ` Glenn Morris
2017-01-27 16:25 ` Phillip Lord
2017-02-13 2:07 ` Glenn Morris
2017-01-13 14:22 ` Eli Zaretskii
2017-01-13 16:47 ` Phillip Lord
2017-01-10 17:47 ` Glenn Morris
2017-01-10 18:50 ` Phillip Lord
2017-01-11 16:36 ` Richard Stallman
2017-01-13 14:05 ` Phillip Lord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87inpj1288.fsf@russet.org.uk \
--to=phillip.lord@russet.org.uk \
--cc=25360@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).