From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r112183: Move forward-whitespace, forward-symbol, forward-same-syntax commands to subr.el. Use forward-symbol in supermode.el again. Date: Sun, 31 Mar 2013 10:39:20 +0200 Message-ID: <5157F638.6020800@online.de> References: <87a9plozpd.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364719101 15705 80.91.229.3 (31 Mar 2013 08:38:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Mar 2013 08:38:21 +0000 (UTC) Cc: Leo To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 31 10:38:48 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UMDmp-0001rn-L0 for ged-emacs-devel@m.gmane.org; Sun, 31 Mar 2013 10:38:47 +0200 Original-Received: from localhost ([::1]:51480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMDmR-0004Y3-1n for ged-emacs-devel@m.gmane.org; Sun, 31 Mar 2013 04:38:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMDmI-0004Xx-Ut for emacs-devel@gnu.org; Sun, 31 Mar 2013 04:38:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMDmC-0002CL-EE for emacs-devel@gnu.org; Sun, 31 Mar 2013 04:38:14 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:56988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMDmC-0002C6-4q for emacs-devel@gnu.org; Sun, 31 Mar 2013 04:38:08 -0400 Original-Received: from [192.168.178.21] (brln-4dbc6e76.pool.mediaWays.net [77.188.110.118]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MNiNa-1UJStD21k2-007DGH; Sun, 31 Mar 2013 10:38:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: X-Provags-ID: V02:K0:867XV3HZgV/WzGXtAZlWycq9GooT2QybWiCADgsNJOA gdYRyPWMeZb8SBG2bowP4OJCujO6XDJnGbMyQnDCD93iwirwl/ VEGD8CSIRndPjqurMIDVYhQJvjz95C2lVkKYwXDiYe9yVUH1dv bG5P1vurHWuLQIUtDNPWpweA7+zP2BdbmNgjHkOVDbLgmMgMES gk75WyZfX1uMUDbvMGCH/0j+XQXYuyWC5yAMuhRJvL1LSHaR0h SoVfIXkzXa8/szKjOrVD3CmGhqq0/4OmLWiBfu+1+VbNPw3b24 Y19T9BnBAs7lVr9hOPluOpGPdacFPCerwRWsYZUOlrnJu7cSO5 RkQ0SsyhwM0H/QdWDsAzTIG9RU5LUNCge5F8kdMk3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158492 Archived-At: Am 31.03.2013 08:06, schrieb Leo Liu: > On 2013-03-30 20:10 +0800, Ted Zlatanov wrote: >> http://permalink.gmane.org/gmane.emacs.devel/158448 >> >> Stefan advised it for `forward-symbol' and after looking at >> `thingatpt.el', I agreed with him. The other two (`forward-same-syntax' >> and `forward-whitespace') were very similar so I followed the same >> logic: >> >> 1) simple, generally useful, small >> >> 2) use only basic Emacs commands and no commands from `thingatpt.el' >> >> 3) seem consistent with the rest of `subr.el' >> >> Perhaps we can have `motion.el' or something, but with the current >> layout `subr.el' seems the best place. > > You already have a nice and broad name space to work with i.e. thingatpt > so no need to make another one. thingatpt gives you forward and backward > motions and other goodies. Hi Leo, thingatpt.el delivers a framework, an unified way to determine the start and the end of an object in buffer. Upon that identifications some simple commands are implemented there, which make use of it: jumps-to-start, -end, move-over etc. The commands moved now are simple commands also with a related purpose but not constructed upon the thingatpt framework. Not everything with wheels needs to be exposed during an car-saloon ;) Best, Andreas > > I think a better and cleaner way to do this is maybe clean up > thingatpt.el. Now codes are scattered everywhere which is messier in my > book. > > Leo > >