[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list-at-point
From: |
martin rudalics |
Subject: |
Re: list-at-point |
Date: |
Sat, 14 Oct 2006 20:26:44 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
With
(defun foo ()
" "
(message "%s" "baz"))
and point somewhere within the word message, `list-at-point' returns
(message "%s" "baz"). With point within one of the strings it will
return nil. If you want to return the list instead, use `syntax-ppss'
to check whether you're in a string or comment, move to the beginning of
the string/comment, and call `list-at-point' from there.