[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rendering a string as a new line?
From: |
Stefan Monnier |
Subject: |
Re: rendering a string as a new line? |
Date: |
Tue, 16 Sep 2003 14:43:08 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> I will have to work systematically with Unicode files which happen to
> use some strange tags to represent new line. Is there a way to render
> the tags as newlines without explicitly adding the new line
> characters?
You can put a string "\n" as a `display' property on those tags.
You might also be able to get your way using `compose-region'
... ah no, you'd get the 10th glyph of your ascii font (which might
display some kind of LF).
As for how to put that `display' property, well you could use font-lock.
But all in all, I'd say it's probably better to write up a coding-system
that maps those tags to/from \n. Ask a coding-system guru how to do that.
Stefan
- regexp NOT matching an extension, Leo, 2003/09/15
- Re: regexp NOT matching an extension, Oliver Scholz, 2003/09/16
- rendering a string as a new line?, Janusz S. Bień, 2003/09/16
- Re: regexp NOT matching an extension, Gareth Rees, 2003/09/16
- Message not available
- Re: rendering a string as a new line?, Stefan Monnier, 2003/09/18
- Re: rendering a string as a new line?, Oliver Scholz, 2003/09/19
- Re: rendering a string as a new line?, Stefan Monnier, 2003/09/19