[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unmentioned "stringify" aspect in docu buffer-substring-no-propertie
Re: Unmentioned "stringify" aspect in docu buffer-substring-no-properties
Fri, 23 Jun 2006 16:31:08 +0900
Andreas Roehler <address@hidden> writes:
> (setq baz (buffer-substring-no-properties 34 37))
> baz"e \""
> there was no prin1 between, AFAIS.
> The behavior of prin1 BTW was not the item.
prin1 (or some internal equivalent) is what's used to insert the result
of evaluating the form (in the *scratch* buffer or in the minibuffer
when using M-x eval-expression).
Try explicitly using prin1 yourself, e.g.:
(prin1 (buffer-substring-no-properties 34 37))
"e \"""e \""
prin1 returns its argument, which is then printed by the interaction
loop, so you get two things printed in *scratch*. Note that they are
the same, as the explicit and implicit calls to prin1 performed the same
ascii-encoding of the value.
[|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that
will make every christian in the world foamm at the mouth?
[iddt] nurg, that's the goal