From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: GNU Emacs 21.2.1 kill-line bug ? Date: Tue, 13 Jul 2004 17:27:31 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40F46FE3.9010903@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1089761287 11713 80.91.224.253 (13 Jul 2004 23:28:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2004 23:28:07 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 14 01:27:55 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkWgl-000488-00 for ; Wed, 14 Jul 2004 01:27:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkWj9-00015B-EU for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jul 2004 19:30:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BkWj7-000156-9v for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2004 19:30:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BkWj5-00014U-Eo for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2004 19:30:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkWj5-00014R-Bz for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2004 19:30:19 -0400 Original-Received: from [193.4.58.12] (helo=horus.isnic.is) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BkWgO-0001rG-6k for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2004 19:27:32 -0400 Original-Received: from Mail.FU-Berlin.DE (mail.fu-berlin.de [130.133.1.2]) by horus.isnic.is (8.12.9p2/8.12.9/isnic) with ESMTP id i6DNRTh9083130 for ; Tue, 13 Jul 2004 23:27:29 GMT (envelope-from mod-submit@uni-berlin.de) Original-Received: by Mail.FU-Berlin.DE (Exim 4.34) from curry.zedat.fu-berlin.de ([160.45.10.36]) for gnu-emacs-bug@moderators.isc.org with esmtp id <1BkWgL-00070L-07>; Wed, 14 Jul 2004 01:27:29 +0200 Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.uni-berlin.de with bsmtp id ; Wed, 14 Jul 2004 01:27:28 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 46 X-Orig-X-Trace: news.uni-berlin.de cjcRhr/OF0HTN1FYL7eOIArdLzeatCYx1Z+wDEcEXL+1UVti4= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8407 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8407 Besam Khidhir wrote: > So, running Emacs 21.2.1 on Mac OS X 10.3.4, base emacs install, I'm > in a buffer with some binary characters, I do a kill-line (C-k) and > then switch to another buffer and yank, and guess what, my characters > come out different... it looks like some characters such as \366 get > replaced with '?'. > > When I do a save I get prompted for what encoding I want to > use... which doesn't change anything because vi sees the characters as > '?'. ... > Any ideas? C-h v buffer-file-coding-system [in both buffers] C-h v selection-coding-system See the "Coding Systems" node of the Emacs manual, and the preceding nodes under "International [Character Set Support]". `C-h n' will show you all the user-visible changes since the venerable Emacs 19.34 (released almost 8 years ago!). > If this is a "feature" is there anyway to turn it off: ie. get emacs > back to the good old days when a character was a character and there > wasn't any "hiding" of characters (noticed how ^M characters don't > appear any more when you edit DOS files) or "replacing" of characters > with '?'. The "Enabling Multibyte Characters" node of the Emacs manual explains: | To turn off multibyte character support by default, start Emacs with | the `--unibyte' option (*note Initial Options::), or set the | environment variable `EMACS_UNIBYTE'. You can also customize | `enable-multibyte-characters' or, equivalently, directly set the | variable `default-enable-multibyte-characters' to `nil' in your init | file to have basically the same effect as `--unibyte'. > I mean I used to rely on emacs to show me everything but these days I > trust vi more than emacs and that's saying something... You are confused. Trust the One True Editor, and deliver yourself from eVIl. -- Kevin Rodgers