[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function Qs
From: |
Matthew Flaschen |
Subject: |
Re: function Qs |
Date: |
Sun, 25 Feb 2007 01:57:33 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070104) |
james wrote:
> On Feb 24, 9:19 pm, Matthew Flaschen <matthew.flasc...@gatech.edu>
> wrote:
>> 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:
Yes, I figured that out myself, and just changed it by setting
apropos-do-all (non-interactive functions are kind of important when
you're coding elisp).
> 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)))
Thanks, I ended up using the unaliased versions of those (however, that
method will copy text properties into the string, which may not be what
you want).
Matthew Flaschen
signature.asc
Description: OpenPGP digital signature
- function Qs, Dan Bensen, 2007/02/24
- Re: function Qs, weber, 2007/02/24
- Re: function Qs, Dan Bensen, 2007/02/24
- Message not available
- Re: function Qs, james, 2007/02/25
- Re: function Qs,
Matthew Flaschen <=
- RE: function Qs, Drew Adams, 2007/02/25
- Re: function Qs, Matthew Flaschen, 2007/02/25
- Re: function Qs, Kevin Rodgers, 2007/02/25