From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastian P. Luque" Newsgroups: gmane.emacs.help Subject: Re: How to get rid of Microsoft dumb quotes, e.g. \222 for apostrophe? Date: Fri, 16 Feb 2007 10:14:52 -0600 Organization: Memorial University Message-ID: <87hctmgjur.fsf@patagonia.sebmags.homelinux.org> References: <1171628373.417583.61410@k78g2000cwa.googlegroups.com> <87zm7e8e7j.fsf@wivenhoe.staff8.ul.ie> <45D5D58F.2050900@speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171642544 16503 80.91.229.12 (16 Feb 2007 16:15:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2007 16:15:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 16 17:15:36 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HI5k8-00065t-8s for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Feb 2007 17:15:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HI5k7-0007qq-Mb for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Feb 2007 11:15:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HI5jv-0007ql-Iv for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 11:15:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HI5js-0007qZ-81 for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 11:15:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HI5js-0007qW-1P for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 11:15:12 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HI5jr-0002lI-I4 for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 11:15:11 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HI5jf-0007mE-Jp for help-gnu-emacs@gnu.org; Fri, 16 Feb 2007 17:15:00 +0100 Original-Received: from s01060015e975d7fb.wp.shawcable.net ([24.77.75.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Feb 2007 17:14:59 +0100 Original-Received: from spluque by s01060015e975d7fb.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Feb 2007 17:14:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s01060015e975d7fb.wp.shawcable.net User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:C+SoBnW4cwA7xIHteM+bU8VAVWY= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41258 Archived-At: On Fri, 16 Feb 2007 11:02:23 -0500, ken wrote: [...] > This allows, or should allow, the binding of the function to a key > chord. But something is not right. Can anyone tell where the problem > is. Running this function I get no errors, but the garbage/mschars are > not replaced. I can't tell what is wrong with that code, but I've solved those issues with this (I lost track where I stole this from): (standard-display-ascii ?\200 (vector (decode-char 'ucs #x253c))) (standard-display-ascii ?\201 (vector (decode-char 'ucs #x251c))) (standard-display-ascii ?\202 (vector (decode-char 'ucs #x252c))) (standard-display-ascii ?\203 (vector (decode-char 'ucs #x250c))) (standard-display-ascii ?\204 (vector (decode-char 'ucs #x2524))) (standard-display-ascii ?\205 (vector (decode-char 'ucs #x2502))) (standard-display-ascii ?\206 (vector (decode-char 'ucs #x2510))) (standard-display-ascii ?\210 (vector (decode-char 'ucs #x2534))) (standard-display-ascii ?\211 (vector (decode-char 'ucs #x2514))) (standard-display-ascii ?\212 (vector (decode-char 'ucs #x2500))) (standard-display-ascii ?\214 (vector (decode-char 'ucs #x2518))) (standard-display-ascii ?\220 [? ]) (standard-display-ascii ?\221 [?\` ]) (standard-display-ascii ?\222 [?\']) (standard-display-ascii ?\223 [?\"]) (standard-display-ascii ?\224 [?\"]) (standard-display-ascii ?\225 "* ") (standard-display-ascii ?\226 "--") (standard-display-ascii ?\227 " -- ") -- Seb