From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: safe_call1 considered harmful
Date: Fri, 21 Jul 2006 20:34:16 +0900 [thread overview]
Message-ID: <E1G3tGq-0006Z3-00@etlken> (raw)
In-Reply-To: <uirlrguz3.fsf@gnu.org> (message from Eli Zaretskii on Fri, 21 Jul 2006 12:36:48 +0300)
In article <uirlrguz3.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:
> The change below was presumably made to avoid errors in functions that
> are put on the various *-coding-system-alist variables. Those errors
> might have been caused by the recent changes in several modes that now
> use a cons cell `(FILENAME . BUFFER)' instead of just the file name as
> the argument to find-operation-coding-system (when the operation is
> insert-file-contents), because some packages put functions on the
> file-coding-system-alist that are not ready for the cons cell.
> I think the change in coding.c is for the worse: it masks such
> problems from us, so instead of seeing bug reports, we sweep the
> problems under the carpet, where they run risk to be left undetected
> until after the release.
> A case in point is the function find-buffer-file-type-coding-system
> that dos-w32.el adds to file-coding-system-alist: it was not modified
> to support the change in the find-operation-coding-system's interface,
> and caused files with DOS EOLs uncompressed from archives to be shown
> with the ^M characters. This happened because
> find-buffer-file-type-coding-system throws an error, but safe_call1
> silently ignores it.
> So how about if we undo the change below?
Ah, hmmm, I didn't think about such a situation. The change
was to avoid the backward incompatiblity reported by the
attached mail.
But, by considering this problem again, I found another
solution than calling find-operation-coding-system with
(FILENAME . BUFFER). That is to provide an extra argument
BUFFER. Then, we can keep backward compatibility and
find-buffer-file-type-coding-system works as before, and, by
modifying po-find-file-coding-system to check that extra
argument instead of checking if FILENAME is cons or not, we
can make it work well too.
Do I still miss something? If not, I'll try to change the
current code along that line.
---
Kenichi Handa
handa@m17n.org
Date: Sun, 28 May 2006 10:23:16 +0200
From: Sven Joachim <svenjoac@gmx.de>
MIME-Version: 1.0
To: Kenichi Handa <handa@m17n.org>
In-Reply-To: <E1FkDtH-0002qI-00@etlken>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Cc: emacs-pretest-bug@gnu.org
Subject: Re: Coding system of compressed PO files is not recognized
X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3
Kenichi Handa wrote:
> Do you mean that, po-compat.el was able to detect a coding
> system of compressed PO file correctly before my change?
No, it wasn't. But at least it was able to visit the file
without getting an error. ;-)
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
next prev parent reply other threads:[~2006-07-21 11:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-21 9:36 safe_call1 considered harmful Eli Zaretskii
2006-07-21 11:34 ` Kenichi Handa [this message]
2006-07-21 15:49 ` Eli Zaretskii
2006-07-24 1:36 ` Kenichi Handa
2006-07-29 11:00 ` Eli Zaretskii
2006-07-31 3:04 ` Kenichi Handa
2006-07-21 19:37 ` Richard Stallman
2006-07-24 1:44 ` Kenichi Handa
2006-07-24 18:22 ` Richard Stallman
2006-07-30 9:18 ` Kenichi Handa
2006-07-31 4:38 ` Richard Stallman
2006-07-31 5:14 ` Kenichi Handa
2006-07-31 22:16 ` Richard Stallman
2006-08-01 0:50 ` Kenichi Handa
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=E1G3tGq-0006Z3-00@etlken \
--to=handa@m17n.org \
--cc=emacs-devel@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 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.