From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info Date: Sat, 16 May 2009 15:02:51 -0700 Message-ID: <000001c9d672$0f3f1ce0$0200a8c0@us.oracle.com> Reply-To: Drew Adams , 3312@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242511946 21106 80.91.229.12 (16 May 2009 22:12:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2009 22:12:26 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 17 00:12:19 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5S78-0003DT-Bg for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 May 2009 00:12:18 +0200 Original-Received: from localhost ([127.0.0.1]:52189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5S77-0008Rg-LE for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 May 2009 18:12:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5S6u-0008Ny-48 for bug-gnu-emacs@gnu.org; Sat, 16 May 2009 18:12:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5S6p-0008NU-80 for bug-gnu-emacs@gnu.org; Sat, 16 May 2009 18:12:03 -0400 Original-Received: from [199.232.76.173] (port=38660 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5S6p-0008NP-53 for bug-gnu-emacs@gnu.org; Sat, 16 May 2009 18:11:59 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44704) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5S6o-0007ZV-JJ for bug-gnu-emacs@gnu.org; Sat, 16 May 2009 18:11:58 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4GMBuKJ028605; Sat, 16 May 2009 15:11:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4GMA4RB027423; Sat, 16 May 2009 15:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 16 May 2009 22:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3312 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124251138625000 (code B ref -1); Sat, 16 May 2009 22:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 May 2009 22:03:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4GM32Bn024990 for ; Sat, 16 May 2009 15:03:03 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:60966) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1M5Ry9-0006sn-Is for emacs-pretest-bug@gnu.org; Sat, 16 May 2009 18:03:01 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1M5Ry7-0006py-JR for emacs-pretest-bug@gnu.org; Sat, 16 May 2009 18:03:01 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:32813) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5Ry7-0006pg-4G for emacs-pretest-bug@gnu.org; Sat, 16 May 2009 18:02:59 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4GM2h7B032686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 16 May 2009 22:02:45 GMT Original-Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4GM2uSB029395 for ; Sat, 16 May 2009 22:02:56 GMT Original-Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 16 May 2009 15:02:53 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcnWatCVATg+IWOhRs+/n+HvPNereA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: abhmt005.oracle.com [141.146.116.14] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010201.4A0F380E.00A6:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 16 May 2009 18:12:03 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27915 gmane.emacs.pretest.bugs:24433 Archived-At: I don't know if this would be appropriate for all Info manuals, but at least for Emacs, Elisp, Eintr, and Efaq it makes sense, I think. Apostrophe, or single quote, (') currently has word-constituent syntax in Info, which it inherits from text-mode. This means that if point is inside some `...' string, and you use `C-s C-w', you will pick up also the ' at the end as part of the search string, which is typically not what you want. If the syntax class for ' were `punctuation' instead of `word', then you could more easily pick up key sequences, function names, and variable names that are quoted: `C-x C-x' or `char-syntax', for example. Yes, you can today pick up everything, including the ` and the ', by positioning the cursor on the `, but if you want just the quoted content or some suffix of it, and not the quoting delimiters, you get the ' too, which is not what you want. If this makes sense for all Info manuals, then a simple fix would presumably be to change this (in the definition of `info-mode'): (set-syntax-table text-mode-syntax-table) To this: (set-syntax-table (copy-syntax-table text-mode-syntax-table)) (modify-syntax-entry ?' ".") I don't know much about text-mode, but I wonder if even there it might make sense for ' to have syntax class `punctuation' instead of `word'. Probably the answer is "no", or that would already be the case. ;-) I see this in `text-mode.el': ;; We add `p' so that M-c on 'hello' leads to 'Hello' ;; rather than 'hello'. (modify-syntax-entry ?' "w p" st) That explains why p was added, but not why ' should have syntax class w at all. Again, there probably is a good reason, but I don't know what it is. After changing the syntax to punctuation, M-c still seems to act as desired on 'hello'. In GNU Emacs 23.0.93.1 (i386-mingw-nt5.1.2600) of 2009-05-02 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)'