[Top][All Lists]

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

Re: function Qs

From: james
Subject: Re: function Qs
Date: 24 Feb 2007 20:43:11 -0800
User-agent: G2/1.0

On Feb 24, 9:19 pm, Matthew Flaschen <address@hidden>
> I searched apropos for point, and I can't find a point-end-of-line or
> equivalent.  Is there such a function?  If not, do you know a way I
> could get the full text of the current line?
> Matthew Flaschen

apropos only searches interactive functions (those that can be called
by M-x) by default... but if you give it a parameter:

C-u C-h a point

(I just discovered this myself by: C-h f apropos)

Looks like what you're looking for is point-at-bol and point-at-eol:

(setq line-string
   (buffer-substring (point-at-bol) (point-at-eol)))

reply via email to

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