From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: towi Newsgroups: gmane.emacs.help Subject: Re: linux/gcc, apostrophs display problem Date: Wed, 4 Mar 2009 07:20:28 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236232124 12932 80.91.229.12 (5 Mar 2009 05:48:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 05:48: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 Thu Mar 05 06:49:59 2009 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 1Lf6T0-0004zX-Nr for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 06:49:58 +0100 Original-Received: from localhost ([127.0.0.1]:60806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lf6Rf-0003gi-GY for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Mar 2009 00:48:35 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j8g2000yql.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 86 Original-NNTP-Posting-Host: 87.139.103.55 Original-X-Trace: posting.google.com 1236180028 3867 127.0.0.1 (4 Mar 2009 15:20:28 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 4 Mar 2009 15:20:28 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j8g2000yql.googlegroups.com; posting-host=87.139.103.55; posting-account=mZpoRwoAAADqM84zOJt_lYWyD-MWn01f User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:167288 X-Mailman-Approved-At: Thu, 05 Mar 2009 00:46:06 -0500 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:62600 Archived-At: Hi, """ (unless standard-display-table ; Default value is nil! (setq standard-display-table (make-display-table))) (aset standard-display-table #x53978 [96]) (aset standard-display-table #x53979 [39]) """ into .emacs and.... it works! Hey, great! Unbeliable. Do I understand this...? Sort of... #x53978 is the emacs-internal represenation of that apostroph? What _is_ emacs' internal representation of characters? Can I use this also to replace all tabs with '*' or all spaces with '_'? lets try... """ (aset standard-display-table ?U [?X] ) """ Cool, making an "X" from a "U" :-). Ok, understuud. Thanks, that was exacltly what I wanted to know. I do not recognize the "?..." and "[?...]" form of the arguments here, they came from the documentation of "standard-display-table". Can I trouble you to give me an additional hint here? thanks, tschau, towi. On Feb 28, 9:53=A0am, Vagn Johansen wrote: > towi writes: > > Hi, > > > when gcc prints warnings or errors it puts identifiers in two strange > > single-quotes. > > > When I do "M-x compile" with "gcc textm.c" theapostrophsare printed > > fine. > > > But, when I have a more complex project with automake and libtool and > > everything, when I compile "M-x compile" and "make" theapostrophsget > > converted somehow so that emacs displays them as octalcodes. > > For example: > > > ../../../../trunk/src/mediator/Utils/PortingDBMap.cpp:18: warning: > > \342\200\230utils::PortingDBMap::entries\342\200\231 should be > > initialized in the member initialization list > > > I realize that theabovecodesareUTF-8apostrophs, and when I copy- > > pasted them here they even appeared asapostrophs. Therefor, I gather, > > the output is still ok in some sense. > > > But why is it displayed fine this way and quoted the other way? > > fine? you mean differently? > > It is probably because of different settings of an environment > variable. > > I am able to get different quotes by modifying the LANG variable. > > Read more about it here > > http://www.mcs.vuw.ac.nz/cgi-bin/info2www?(gcc)Environment+Variables > > >> Do I > > have to switch the encoding on the "*compilation*" buffer? And how > > would I do that? Or can I pass the output through a filter, just > > replacing the nastyUTF-8chars with a simple '-tick? Can I configure > > emacs to do this? > > I use the code below to replace theUTF-8chars with ` and ' > > (unless standard-display-table =A0 =A0 =A0 =A0 =A0; Default value is nil! > =A0 (setq standard-display-table (make-display-table))) > > (aset standard-display-table #x53978 [96]) > (aset standard-display-table #x53979 [39]) > > -- > Vagn Johansen