all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: dprideout@gmail.com, emacs-devel@gnu.org
Subject: Re: bug in international/latexenc.el: latexenc-coding-system-to-inputenc
Date: Sat, 08 Dec 2007 14:51:39 +0200	[thread overview]
Message-ID: <uir39xsbo.fsf@gnu.org> (raw)
In-Reply-To: <200712071824.lB7IOqwt014415@oogie-boogie.ics.uci.edu> (message from Dan Nicolaescu on Fri, 07 Dec 2007 10:24:51 -0800)

> From: Dan Nicolaescu <dann@ics.uci.edu>
> 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  <eliz@fencepost.gnu.org>

	* 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))

  reply	other threads:[~2007-12-08 12:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-01 21:52 revert-buffer fails on cvs controlled .tex file David Rideout
2007-12-03  6:10 ` Richard Stallman
2007-12-03 22:35   ` Dan Nicolaescu
2007-12-04 15:26     ` David Rideout
2007-12-04 15:59       ` bug in international/latexenc.el: latexenc-coding-system-to-inputenc (was: Re: revert-buffer fails on cvs controlled .tex file) Dan Nicolaescu
2007-12-04 21:22         ` Eli Zaretskii
2007-12-07 18:24           ` bug in international/latexenc.el: latexenc-coding-system-to-inputenc Dan Nicolaescu
2007-12-08 12:51             ` Eli Zaretskii [this message]
2007-12-17  8:25       ` revert-buffer fails on cvs controlled .tex file Richard Stallman

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=uir39xsbo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dann@ics.uci.edu \
    --cc=dprideout@gmail.com \
    --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.