From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#3312: 23.0.93; Use punctuation syntax for apostrophe in Info Date: Tue, 19 May 2009 03:47:34 +0300 Organization: JURTA Message-ID: <878wktgb4d.fsf@mail.jurta.org> References: <000001c9d672$0f3f1ce0$0200a8c0@us.oracle.com> Reply-To: Juri Linkov , 3312@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242695561 24025 80.91.229.12 (19 May 2009 01:12:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 01:12:41 +0000 (UTC) Cc: 3312@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 19 03:12:34 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 1M6Dse-0004bZ-Ql for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 03:12:33 +0200 Original-Received: from localhost ([127.0.0.1]:41044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6Dse-0000tE-2h for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2009 21:12:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6DsD-0000bP-LG for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 21:12:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6Ds8-0000VE-GC for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 21:12:04 -0400 Original-Received: from [199.232.76.173] (port=35687 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6Ds8-0000Uu-5m for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 21:12:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47685) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6Ds7-0002ZI-LL for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 21:12:00 -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 n4J1BudY032012; Mon, 18 May 2009 18:11:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4J1A4jA030854; Mon, 18 May 2009 18:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 19 May 2009 01:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3312 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3312-submit@emacsbugs.donarmstrong.com id=B3312.124269502228676 (code B ref 3312); Tue, 19 May 2009 01:10:04 +0000 Original-Received: (at 3312) by emacsbugs.donarmstrong.com; 19 May 2009 01:03:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J13cZY028670 for <3312@emacsbugs.donarmstrong.com>; Mon, 18 May 2009 18:03:40 -0700 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1M6Dk1-0003rp-Vq; Tue, 19 May 2009 04:03:38 +0300 In-Reply-To: (Stefan Monnier's message of "Sun, 17 May 2009 15:29:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (x86_64-pc-linux-gnu) X-Scanner-Signature: 1118cf21f7425d415ed61e91afc5cb63 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 18 May 2009 21:12:04 -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:28002 Archived-At: >> 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. > > Yes, it might be a good idea to change it in Info-mode, which is quite > different from text-mode because of the extensive use of `...' and the > fact that it's read-only. This can be fixed with the following patch (don't know whether now is the right time to install it): Index: lisp/info.el =================================================================== RCS file: /sources/emacs/emacs/lisp/info.el,v retrieving revision 1.558 diff -u -r1.558 info.el --- lisp/info.el 14 Jan 2009 23:09:45 -0000 1.558 +++ lisp/info.el 19 May 2009 00:45:36 -0000 @@ -3441,6 +3441,14 @@ (defvar tool-bar-map) (defvar bookmark-make-record-function) +(defvar Info-mode-syntax-table + (let ((st (copy-syntax-table text-mode-syntax-table))) + ;; Use punctuation syntax for apostrophe because of + ;; extensive use of quotes in Info manuals. + (modify-syntax-entry ?' "." st) + st) + "Syntax table used while in `Info-mode'.") + ;; Autoload cookie needed by desktop.el ;;;###autoload (defun Info-mode () @@ -3512,7 +3520,7 @@ (setq tab-width 8) (use-local-map Info-mode-map) (add-hook 'activate-menubar-hook 'Info-menu-update nil t) - (set-syntax-table text-mode-syntax-table) + (set-syntax-table Info-mode-syntax-table) (setq local-abbrev-table text-mode-abbrev-table) (setq case-fold-search t) (setq buffer-read-only t) -- Juri Linkov http://www.jurta.org/emacs/