help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: thing-at-point: inconsistent behaviour?


From: Barry Margolin
Subject: Re: thing-at-point: inconsistent behaviour?
Date: Thu, 16 Aug 2012 19:19:06 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <a94o01FiegU1@mid.individual.net>,
 Raffaele Ricciardi <rfflrccrd@gmail.com> wrote:

> On 08/16/2012 05:24 PM, Andreas Röhler wrote:
>  > Not to expect is changing the computers internal state already when
>  > picking an object by thing-at-point.
>  > That's what is done by "intern" however.
> 
> Indeed this is an undesirable side effect of `symbol-at-point' calling
> `intern'.  Could `intern' be replaced with `make-symbol'?

Most applications that use symbols need interned symbols.  If you're 
doing something that wants an uninterned symbol, call (make-symbol 
(thing-at-point 'symbol)).

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

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