emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: buff-menu.el in CVS today has utf-8 characters?


From: Drew Adams
Subject: RE: buff-menu.el in CVS today has utf-8 characters?
Date: Tue, 14 Jun 2005 15:02:38 -0700

Well, I guess the odd characters are supposed to be there, looking at the
code.

I saved as utf-8, as the warning suggested. If I try to load the source
file, I get this backtrace:

Debugger entered--Lisp error: (invalid-read-syntax "?")
  eval-buffer(#<buffer  *load*> nil "c:/.../buff-menu-CVS-2005-06-14.el" nil
t)
  ;;; Reading at buffer position 25778
  load-with-code-conversion("c:/.../buff-menu-CVS-2005-06-14.el"
"c:/.../buff-menu-CVS-2005-06-14.el" nil nil)
  load("c:/.../buff-menu-CVS-2005-06-14.el" nil nil t)
  load-file("c:/.../buff-menu-CVS-2005-06-14.el")
  call-interactively(load-file)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

I was able to load the byte-compiled file, however. Is this normal, that I
cannot load the .el but I can load the .elc?

I byte-compiled it in Emacs 20, in hopes of compatibility. Is that
reasonable, or will the library only work in Emacs 22?


    I create a new buffer foo.el, and paste the text from buff-menu.el
    (from CVS) into it. When I try to save, I get this message:

    These default coding systems were tried to encode text
    in the buffer `buff-menu-CVS-2005-06-14.el':
      undecided-unix iso-latin-1
    However, each of them encountered these problematic characters:
      undecided-unix: ⠀ “ ⠀ ” ⠀ ”
      iso-latin-1: € “ € ” € ”
    The first problematic character is at point in the displayed buffer,
    and C-u C-x = will give information about it.

    Select one of the following safe coding systems, or edit the buffer:
      utf-8 windows-1258 windows-1256 windows-1254 windows-1250 mac-roman
      windows-1252 utf-16 utf-16 utf-16 utf-16be utf-16le iso-2022-7bit
    Or specify any other coding system
    at the risk of losing the problematic characters.

    In the minibuffer, it says "Select coding system (default mule-utf-8):"

    Point is on this in buff-menu.el: –-Stef

    Questions:
    Is it normal to have these characters in the file?
    Does this file need to be utf-8? Should it be?
    What coding system should I use to save this file? I used utf-8.

    The first line of the buffer has this - shouldn't it force utf-8
    encoding automatically?  -*- coding:utf-8 -*-



    In GNU Emacs 22.0.50.2 (i386-mingw-nt5.1.2600)
     of 2005-04-16 on LAPTOP
    Distributor `Microsoft Corp.', version 5.1.2600
    configured using `configure --with-gcc (3.4)'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]