emacs-devel
[Top][All Lists]
Advanced

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

Re: symbol-at-point


From: Tassilo Horn
Subject: Re: symbol-at-point
Date: Thu, 26 Jul 2007 17:37:39 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

Andreas Röhler <address@hidden> writes:

> AFAIU implementation of `symbol-at-point' is not straightforward in
> relation with other thing at point functions:
>
> These return THING as a substring of buffer, doing nothing else,

Yeah, because most THINGs are strings. An url is a string, a filename is
a string, ...

> whereas symbol-at-point interns existing THING unconditionally

Well, the THING symbol clearly is not a string.

> Wouldn't it be more clean to write a separate (intern SYMBOL-at-point)
> function, if someone wants to do that?

It would be very confusing if a function named `symbol-at-point'
wouldn't return a symbol (or nil if there's no symbol at point).

Bye,
Tassilo
-- 
The  desire  to  be  rewarded  for one's  creativity  does  not  justify
depriving  the world  in  general of  all  or part  of that  creativity.
(Richard M. Stallman)





reply via email to

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