From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: D. Goel Newsgroups: gmane.emacs.help Subject: prompt: "Select one of these safe coding systems" Date: 24 Nov 2002 14:19:31 -0500 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87smxqzsfw.fsf@computer.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038165661 27153 80.91.224.249 (24 Nov 2002 19:21:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 24 Nov 2002 19:21:01 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18G2JP-00073g-00 for ; Sun, 24 Nov 2002 20:20:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18G2K1-0001T0-00; Sun, 24 Nov 2002 14:21:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: #5@=vrmx5t3mZaPY8(mR.n+V#:%4NW7j5A&^}@lGp2rK;CQ4%iH1v'gh/^A)w5*6c&R2(P' 4+seYDq8OK'LPI/C(C^A*w|f*t+8,'T8b#_0~h3!A7GoVroE[cr0Fb'A0%SdU|Lk@gBV&1vA User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 50 Original-Xref: shelby.stanford.edu gnu.emacs.help:107381 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3932 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3932 hi Here, emacs (21.2) always prompts for a "safe" coding system (when trying to save the bdbb file)---> ,---- | | These default coding systems were tried: | iso-2022-7bit-unix iso-latin-1 | However, none of them safely encodes the target text. | | Select one of the following safe coding systems: | utf-8 raw-text emacs-mule no-conversion. `---- So, I tried to set-language-environment (used to be english) to Latin-1, but emacs continued to prompt the first option being utf-8. So, I tried to setq default-buffer-file-coding-system to 'utf-8, but emacs still continued to show the same prompt. I then tried the same coding-system utf-8 with english as well, but still got the same prompt. So [1] It seems I cannot get emacs to follow a system I want (utf-8) by default. It still tries other systems and then shows me utf-8 among the list of choices. What am i doing wrong? [2] If emacs cannot "safely" encode, how do i ask it to please not prompt me, but simply select the first from the "safe" "alternatives" shows me? [3] Any other hints or workarounds, considering this situation? I really want to get rid of this prompt :(, esp. since the prompt shows up for not me but for an infobot, which is supposed to be run noninteractively. I don't care too much how it stores any international characters that may have shown up, as long as it stores the 99.9% english part just fine---i just want emacs to select somethigng and just do it. The main problem is that the bot gets stuck in the minibuffer which is really bad for other bot functions. BTW, FWIW, emacs is running in console for the bot. Thanks for any hints. DG http://deego.gnufans.org/~deego/ --