From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: symbol-at-point Date: Thu, 26 Jul 2007 15:17:48 -0400 Message-ID: References: <200707261107.29692.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185477479 13959 80.91.229.12 (26 Jul 2007 19:17:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2007 19:17:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 26 21:17:56 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IE8qR-00041x-NY for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 21:17:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE8qQ-0005Jz-V3 for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 15:17:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IE8qN-0005EE-A2 for emacs-devel@gnu.org; Thu, 26 Jul 2007 15:17:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IE8qL-00053H-O5 for emacs-devel@gnu.org; Thu, 26 Jul 2007 15:17:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IE8qL-000531-L9 for emacs-devel@gnu.org; Thu, 26 Jul 2007 15:17:49 -0400 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IE8qL-0000iq-BU for emacs-devel@gnu.org; Thu, 26 Jul 2007 15:17:49 -0400 Original-Received: from pastel.home ([70.53.195.62]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070726191748.ZUGF18413.tomts22-srv.bellnexxia.net@pastel.home> for ; Thu, 26 Jul 2007 15:17:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 2C3907FF0; Thu, 26 Jul 2007 15:17:47 -0400 (EDT) In-Reply-To: <200707261107.29692.andreas.roehler@online.de> ("Andreas =?iso-8859-1?Q?R=F6hler=22's?= message of "Thu\, 26 Jul 2007 11\:07\:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75604 Archived-At: > 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