emacs-devel
[Top][All Lists]
Advanced

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

Re: symbol-at-point


From: Stefan Monnier
Subject: Re: symbol-at-point
Date: Thu, 26 Jul 2007 15:17:48 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

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

I agree that symbol-at-point should return a string.
When I fixed symbol-at-point to work in non-elisp major modes, I preserved
this part of the behavior for no good reason.

But returning a symbol has the main disadvantage that you can't distinguish
the case where point is not on a symbol (w.g. it's looking at a semi-colon)
from the case where it's looking at the symbol "nil".


        Stefan




reply via email to

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