From: "Jonathan Roes" <jroes@jroes.net>
To: emacs-pretest-bug@gnu.org
Subject: 23.0.60; Unable to save buffer containing Unicode character
Date: Tue, 10 Jun 2008 21:27:43 -0400 [thread overview]
Message-ID: <8e1d9f110806101827w23c3c2aan7130a107caae66b5@mail.gmail.com> (raw)
When I put Unicode character 8217 with the following describe-char
output into my buffer and try to save with C-x C-s I get an error and
my file is not saved. The minibuffer showed (wrong-type-argument
number-or-marker-p nil) and I was able to repro this to get debug
output (follows as well).
character: =2019 (8217, #o20031, #x2019)
preferred charset: unicode (Unicode (ISO10646))
code point: 0x2019
syntax: . which means: punctuation
category: c:Chinese h:Korean j:Japanese
buffer code: #xE2 #x80 #x99
file code: not encodable by coding system iso-latin-1-dos
display: by this font (glyph code)
-outline-Courier
New-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1 (#xB6)
My workaround is to set the proper coding system with M-x
set-buffer-file-coding-system RET utf-8-emacs RET
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
min(nil nil)
apply(min (nil nil))
select-safe-coding-system-interactively(1 1706 (gb2312 shift_jis
iso-2022-jp utf-8 euc-kr euc-jis-2004 euc-jp euc-tw windows-1258 cp874
iso-2022-jp-2004 windows-1255 cp869 windows-1253 iso-8859-7
adobe-standard-encoding next mac-roman windows-1257 windows-1254
windows-1252 windows-1250 iso-8859-13 windows-1251 koi8-t gb18030 gbk
big5-hkscs big5 hz-gb-2312 utf-7 iso-2022-kr iso-2022-jp-2
iso-2022-cn-ext iso-2022-cn utf-16 utf-16be-with-signature
utf-16le-with-signature utf-16be utf-16le x-ctext iso-2022-7bit
utf-8-auto utf-8-with-signature emacs-mule raw-text iso-2022-8bit-ss2
iso-2022-7bit-lock eucjp-ms georgian-academy ...) (undecided-dos
iso-latin-1-dos) nil chinese-iso-8bit)
select-safe-coding-system(1 1706 undecided-dos nil "c:/jroes/work.org")
write-region(nil nil "c:/jroes/work.org" nil t "c:/jroes/work.org")tt
basic-save-buffer-2()
basic-save-buffer-1()
basic-save-buffer()
save-buffer(1)
call-interactively(save-buffer nil nil)
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-05-29 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENU
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Text
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f t e s t . t x t <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
t m p / t e s t . t x t <return> M-p M-e M-p C-x C-s
C-x RET r e p o r t - e m a c s - b u g <return>
Recent messages:
Adding c:/Program Files/EmacsUnpatched/EmacsW32/lisp/ to load-path
Loading c:/Documents and Settings/Jonathan Roes/Application
Data/.emacs.d/ergo.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Searching for `test'....
(New file)
Mark set
Undo!
Mark set
apply: Wrong type argument: number-or-marker-p, nil
reply other threads:[~2008-06-11 1:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8e1d9f110806101827w23c3c2aan7130a107caae66b5@mail.gmail.com \
--to=jroes@jroes.net \
--cc=emacs-pretest-bug@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.