all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: towi <towitowi@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: linux/gcc, apostrophs display problem
Date: Wed, 4 Mar 2009 07:20:28 -0800 (PST)	[thread overview]
Message-ID: <c229e143-7cf1-4c14-ba55-9893da2b648a@j8g2000yql.googlegroups.com> (raw)
In-Reply-To: m2wsbbndsc.fsf@gmail.com

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 am, Vagn Johansen <gonz...@hotmail.com> wrote:
> towi <towit...@gmail.com> 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          ; Default value is nil!
>   (setq standard-display-table (make-display-table)))
>
> (aset standard-display-table #x53978 [96])
> (aset standard-display-table #x53979 [39])
>
> --
> Vagn Johansen




  reply	other threads:[~2009-03-04 15:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-23 13:45 linux/gcc, apostrophs display problem towi
2009-02-28  8:53 ` Vagn Johansen
2009-03-04 15:20   ` towi [this message]
2009-03-04 15:37     ` towi

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=c229e143-7cf1-4c14-ba55-9893da2b648a@j8g2000yql.googlegroups.com \
    --to=towitowi@gmail.com \
    --cc=help-gnu-emacs@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.