From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: prolog-mode uses bad syntax for _ Date: Fri, 10 Oct 2008 15:28:20 +0900 Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223620128 12086 80.91.229.12 (10 Oct 2008 06:28:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 06:28:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 10 08:29:45 2008 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 1KoBVN-0000B7-V9 for ged-emacs-devel@m.gmane.org; Fri, 10 Oct 2008 08:29:42 +0200 Original-Received: from localhost ([127.0.0.1]:50315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoBUJ-0000Ez-UC for ged-emacs-devel@m.gmane.org; Fri, 10 Oct 2008 02:28:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoBUD-0000Ea-Rs for emacs-devel@gnu.org; Fri, 10 Oct 2008 02:28:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoBUC-0000DL-7u for emacs-devel@gnu.org; Fri, 10 Oct 2008 02:28:29 -0400 Original-Received: from [199.232.76.173] (port=37175 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoBUB-0000Cz-WD for emacs-devel@gnu.org; Fri, 10 Oct 2008 02:28:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:10454) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoBUB-0001rc-55; Fri, 10 Oct 2008 02:28:27 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoBU8-0002Nk-Kz; Fri, 10 Oct 2008 02:28:25 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m9A6SMgN008194; Fri, 10 Oct 2008 15:28:22 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Fri, 10 Oct 2008 15:28:21 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Fri, 10 Oct 2008 15:28:21 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 2F3D54CE; Fri, 10 Oct 2008 15:28:21 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop Original-Lines: 18 X-detected-kernel: by mx20.gnu.org: Solaris 8 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:104447 Archived-At: prolog-mode changes the syntax of _ to be a word-constituent, which I suspect is the wrong thing. It does not interact well with users' editing intuitions. Most old modes that I've seen do this, do it only so that they can use \< and \> in regexps (to match things like keywords) without getting false positives adjacent to an underscore. Nowdays we can just change the regexps to use \_< and \_> instead, so _ should be able to have a more normal syntax. Anyone see any problems with changing prolog-mode in this fashion? Thanks, -Miles -- If you can't beat them, arrange to have them beaten. [George Carlin]