[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'buffer-substring' returns rubbish

From: Peter S Galbraith
Subject: Re: 'buffer-substring' returns rubbish
Date: Wed, 17 Jan 2001 09:04:34 -0500

PILCH Hartmut wrote:

> When evalling the following sexp in a buffer
>      (buffer-substring (line-beginning-position) (line-end-position))
> I usually get a string representing the current line under my cursor.
> But quite often I instead get a strange record back, like this:
> #("WeOfferRewardsForKnowledge (buffer-substring (line-beginning-position) (li
> ne-end-position))" 0 26 (face (w3-style-face-00000 w3-style-face-00000 w3-sty
> le-face-00000 w3-style-face-00000 w3-style-face-00000
> w3-style-face-00000 w3-

Use buffer-substring-no-properties instead.

Peter Galbraith, research scientist          <address@hidden>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
    6623'rd GNU/Linux user at the Counter - http://counter.li.org/ 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]