all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: emacs-devel@gnu.org, miles@gnu.org
Subject: Re: remove leim/leim-list.el for make bootstrap?
Date: Fri, 20 Mar 2009 14:36:09 +0200	[thread overview]
Message-ID: <uvdq4pe12.fsf@gnu.org> (raw)
In-Reply-To: <m2zlfg8lto.fsf@igel.home>

> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Miles Bader <miles@gnu.org>,  emacs-devel@gnu.org
> Date: Fri, 20 Mar 2009 12:39:47 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > If you managed to figure out the reason for corruption, could you
> > please explain it?
> 
> The coding has changed from iso-2022-7bit to utf-8, but existing
> contents were not converted.

Thanks, but there's still something strange here.  First,
leim/Makefile.in removes leim-list.el and then rebuilds it:

    leim-list.el: ${SUBDIRS} ${TIT-MISC} changed.tit changed.misc ${srcdir}/leim-ext.el
	    rm -rf leim-list.el
	    ${RUN-EMACS}  -l ${buildlisppath}/international/quail \
	      -f batch-byte-compile-if-not-done ${TIT-MISC:.elc=.el}
	    if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
	      ${RUN-EMACS} -l ${buildlisppath}/international/quail \
		--eval "(update-leim-list-file \".\")" ; \
	    else \
	      ${RUN-EMACS} -l ${buildlisppath}/international/quail \
		--eval "(update-leim-list-file \".\" \"${srcdir}\")" ; \
	    fi
	    sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@

So any existing contents should be gone.

Second, even if leim-list.el would somehow survive from the previous
build, and some of its previous contents would have been left behind
after the following fragment from quail.el removes all of its entries
that have 'quail-use-package in the register-input-method form:

	;; Remove all entries for Quail.
	(while (re-search-forward leim-list-entry-regexp nil 'move)
	  (goto-char (match-beginning 0))
	  (setq pos (point))
	  (condition-case nil
	      (let ((form (read list-buf)))
		(when (equal (nth 3 form) ''quail-use-package)
		  (if (eolp) (forward-line 1))
		  (delete-region pos (point))))

still, writing out of the file, viz.:

    ;; At last, write out LEIM list file.
    (with-current-buffer list-buf
      (let ((coding-system-for-write 'utf-8))
	(save-buffer 0)))

should have encoded anything left in UTF-8, since
quail-update-leim-list-file works on decoded text, not on the original
encoded text as it resides on disk, right?

And the Sed command that appends leim-ext.el to the just-produced
leim-list.el could not be the source of the problem, either, because
Handa-san converted leim-ext.el to UTF-8.

What am I missing?




  reply	other threads:[~2009-03-20 12:36 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-20  5:00 remove leim/leim-list.el for make bootstrap? Miles Bader
2009-03-20 10:41 ` Eli Zaretskii
2009-03-20 11:39   ` Andreas Schwab
2009-03-20 12:36     ` Eli Zaretskii [this message]
2009-03-20 12:50       ` Eli Zaretskii
2009-03-20 13:15         ` Stefan Monnier
2009-03-20 15:20           ` Eli Zaretskii
2009-03-20 20:22             ` Stefan Monnier
2009-03-23  3:56             ` Kenichi Handa
2009-03-20 13:14       ` Andreas Schwab
2009-03-20 15:13         ` Eli Zaretskii
2009-03-20 15:46           ` Andreas Schwab
2009-03-20 18:08             ` Eli Zaretskii
2009-03-20 18:47               ` Andreas Schwab
2009-03-20 21:05                 ` Eli Zaretskii
2009-03-23  2:51               ` Kenichi Handa
2009-03-23  4:18                 ` Eli Zaretskii
2009-03-23  6:07                   ` Kenichi Handa
2009-03-20 16:13         ` Stefan Monnier
2009-03-23  2:47           ` Kenichi Handa
2009-03-23  3:12             ` Miles Bader
2009-03-23  4:19               ` Eli Zaretskii
2009-03-23  4:16             ` Eli Zaretskii
2009-03-27  7:02               ` Kenichi Handa
2009-03-27  8:42                 ` Eli Zaretskii
2009-03-20 21:43 ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uvdq4pe12.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=schwab@linux-m68k.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.