From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug in international/latexenc.el: latexenc-coding-system-to-inputenc Date: Sat, 08 Dec 2007 14:51:39 +0200 Message-ID: References: <1ce81abb0712011352n550ce34s358f29a5bd8c8ad9@mail.gmail.com> <200712032235.lB3MZZre006484@oogie-boogie.ics.uci.edu> <1ce81abb0712040726m435266c7y354891e631f53975@mail.gmail.com> <200712041559.lB4Fxf3L013051@oogie-boogie.ics.uci.edu> <200712071824.lB7IOqwt014415@oogie-boogie.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1197118319 31309 80.91.229.12 (8 Dec 2007 12:51:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2007 12:51:59 +0000 (UTC) Cc: dprideout@gmail.com, emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 13:52:08 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J0zA8-0003rU-83 for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 13:52:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0z9q-00048H-DK for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2007 07:51:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0z9m-00047B-Ch for emacs-devel@gnu.org; Sat, 08 Dec 2007 07:51:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J0z9k-00045n-2j for emacs-devel@gnu.org; Sat, 08 Dec 2007 07:51:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0z9j-00045h-P8 for emacs-devel@gnu.org; Sat, 08 Dec 2007 07:51:43 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J0z9i-0005Q8-Td for emacs-devel@gnu.org; Sat, 08 Dec 2007 07:51:43 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-115-66.inter.net.il [84.229.115.66]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EHT72395 (AUTH halo1); Sat, 8 Dec 2007 14:51:40 +0200 (IST) In-reply-to: <200712071824.lB7IOqwt014415@oogie-boogie.ics.uci.edu> (message from Dan Nicolaescu on Fri, 07 Dec 2007 10:24:51 -0800) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84873 Archived-At: > From: Dan Nicolaescu > Cc: dprideout@gmail.com, emacs-devel@gnu.org > Date: Fri, 07 Dec 2007 10:24:51 -0800 > > My bad (didn't check the results of M-/ properly whey typing this > message), the call to coding-system-base is from: > latexenc-find-file-coding-system > > The files needed to reproduce this were attached in a message in this > thread, so you could try this. I don't know enough about coding systems > to debug this myself. Please try the patch below. I installed it on the Emacs 22 branch; with any luck, it will be merged onto trunk by Miles. 2007-12-08 Eli Zaretskii * international/latexenc.el (latexenc-find-file-coding-system): If both coding-system-for-write and buffer-file-coding-system of latex-main-file are nil, use `undecided'. Index: lisp/international/latexenc.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/international/latexenc.el,v retrieving revision 1.18.2.1 retrieving revision 1.18.2.2 diff -u -r1.18.2.1 -r1.18.2.2 --- lisp/international/latexenc.el 25 Jul 2007 06:54:49 -0000 1.18.2.1 +++ lisp/international/latexenc.el 8 Dec 2007 12:38:46 -0000 1.18.2.2 @@ -181,7 +181,8 @@ (find-file-noselect latexenc-main-file t))) (coding-system-base ;Disregard the EOL part of the CS. (with-current-buffer latexenc-main-buffer - (or coding-system-for-write buffer-file-coding-system)))) + (or coding-system-for-write buffer-file-coding-system + 'undecided)))) 'undecided)))) 'undecided))